/* -------------------------------
   NAV BUTTONS
---------------------------------*/
.donate-btn,
.login-btn {
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
    display: inline-block;
}

/* Donate button */
.donate-btn {
    background: #ff9f1c;
    color: #fff;
}

.donate-btn:hover {
    background: #ff7f0f;
}

/* Login button */
.login-btn {
    background: #0073ff;
    color: #fff;
}

.login-btn:hover {
    background: #005fcc;
}

/* -------------------------------
   MODAL OVERLAY
---------------------------------*/
.modal-overlay {
    display: none; /* Hidden until JS opens it */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    z-index: 9999;
}

/* Modal box */
.modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 330px;
    animation: fadeIn 0.3s ease;
    text-align: center;
    position: relative;
}

/* Modal inputs */
.modal-box input {
    width: 95%;
    margin: 10px 0;
    padding: 10px;
    font-size: 15px;
    border: 1px solid #bbb;
    border-radius: 6px;
}

.modal-box input.valid {
    border-color: green;
}

.modal-box input.invalid {
    border-color: red;
}

.modal-box small {
    display: block;
    margin-bottom: 5px;
    height: 18px;
    font-size: 12px;
}

/* Modal main buttons (Login/Register) */
.modal-box .modal-btn {
    padding: 10px 20px;
    width: 100%;
    border: none;
    background: #4285f4;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

.modal-box .modal-btn:hover {
    background: #3367d6;
}

.modal-box .modal-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Modal small links */
.modal-small {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
}

.modal-small a {
    color: #4285f4;
    cursor: pointer;
}

/* Close button */
.login-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.login-close-btn:hover {
    color: #000;
}

/* -------------------------------
   LOGOUT BUTTON (inside dropdown)
---------------------------------*/
.logout-btn {
    background: #d9534f;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.logout-btn:hover {
    background: #c9302c;
}

/* -------------------------------
   ANIMATIONS
---------------------------------*/
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
