/* Basic Modal Styling */
#confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    width: 300px;
    border-radius: 8px;
}

#confirm-modal[open] {
    display: block;
}

.modal-content h2 { margin-top: 0; }
.modal-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 15px; }
.modal-buttons button { padding: 8px 12px; cursor: pointer; }
#modal-cancel { background: #f0f0f0; }
#modal-confirm { background: #007bff; color: white; border: none; }
/* ---- Password gate ---- */
/* Make the `hidden` attribute win over the ID selectors below */
[hidden] { display: none !important; }

#gate {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    z-index: 10000;
}

.gate-card {
    width: 100%;
    max-width: 340px;
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gate-title {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 26px;
    color: #0f172a;
}

.gate-sub {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    color: #64748b;
}

#gate-input {
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

#gate-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

#gate-submit {
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

#gate-submit:hover { background: #1d4ed8; }

.gate-error {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 13px;
    color: #dc2626;
}
