/* ─── Modals (login & register) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(0, 0, 0, .65);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-dialog {
    background: #fff;
    border-radius: 8px;
    padding: 32px 28px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow);
    text-align: left;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-dialog.wide {
    max-width: 680px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-sub {
    font-size: 14px;
    opacity: .85;
    margin-top: 0;
    margin-bottom: 24px
}

label {
    display: block;
    font-size: 14px;
    margin: 14px 0 6px
}

input[type=text],
input[type=password],
input[type=date],
input[type=tel] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px
}

.pw-wrap {
    position: relative
}

.pw-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: url('https://claimyourjackpot.com/img/eye.svg') center/20px no-repeat;
    cursor: pointer;
    opacity: .55
}

.chk {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    margin: 16px 0
}

.chk label {
    margin: 0;
    padding-top: 2px
}

.primary-btn {
    background: #555;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    width: 100%
}

.primary-btn.full {
    margin-top: 14px
}

.switch {
    text-align: center;
    font-size: 14px;
    margin-top: 18px
}

.switch a {
    color: #0066ee;
    cursor: pointer;
    text-decoration: underline
}

/* registration grid */
.reg-grid fieldset {
    border: none;
    padding: 0;
    margin-bottom: 22px
}

.reg-grid legend {
    font-weight: var(--fw-bold);
    text-align: center;
    margin-bottom: 12px
}

.reg-grid .two {
    display: flex;
    gap: 12px
}

.reg-grid .two span {
    flex: 1
}

.reg-grid .two input {
    width: 100%
}

/* ─── preload overlay + message inside any .modal-dialog ─── */


.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #ddd;
    border-top-color: #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

@media(max-width:480px) {
    .modal {
        padding: 12px;
    }

    .modal-dialog,
    .modal-dialog.wide {
        width: 100%;
        border-radius: 6px;
    }
}