/* Progress bar (Fix 4) */
.verify-prompt-progress {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    vertical-align: middle;
}
.verify-prompt-progress.hidden {
    display: none;
}
.progress-box {
    width: 26px;
    height: 14px;
    border: 1.5px solid var(--text-primary, #333);
    border-radius: 3px;
    background: var(--bg-primary, #ffffff);
    box-sizing: border-box;
}
.progress-box.filled {
    background: #2ea043;
    border-color: #2ea043;
}

/* Backdrop (Fix 3) */
#modal-extended-profile {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 24px;
}
#modal-extended-profile.hidden {
    display: none;
}

/* Content box (Fix 3) */
#modal-extended-profile .modal-content,
#modal-extended-profile .extended-profile-modal {
    position: relative;
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #111111);
    border: 1px solid var(--border, #d0d0d0);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px 28px;
}
#modal-extended-profile .modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-primary, #111111);
}
#modal-extended-profile .extended-profile-notice {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border, #d0d0d0);
}
#modal-extended-profile .extended-profile-notice a {
    color: var(--accent, #5a4fcf);
}
#modal-extended-profile .extended-profile-saving {
    position: absolute;
    top: 14px;
    right: 48px;
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
    opacity: 0;
    transition: opacity 0.2s;
}
#modal-extended-profile .extended-profile-saving.visible {
    opacity: 1;
}
#modal-extended-profile h3 {
    margin: 18px 0 10px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary, #555);
}
#modal-extended-profile .field-group {
    margin-bottom: 14px;
}
#modal-extended-profile .field-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--text-primary, #111);
}
#modal-extended-profile input,
#modal-extended-profile select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border, #c4c4c4);
    border-radius: 6px;
    background: var(--bg-input, #fff);
    color: var(--text-primary, #111);
    font-size: 0.95rem;
    box-sizing: border-box;
}
#modal-extended-profile .radio-group {
    display: flex;
    gap: 16px;
}
#modal-extended-profile .radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    font-size: 0.95rem;
}
#modal-extended-profile .radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

/* Hide number spinners (Fix 2) */
#modal-extended-profile input[type="number"]::-webkit-inner-spin-button,
#modal-extended-profile input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#modal-extended-profile input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
