﻿/* ── Page wrapper ── */
.pp-page {
    padding: 1.5rem;
    background: #f7f5f2;
    min-height: 100vh;
    font-family: var(--HeadingFont);
}

/* ── Two-column grid ── */
.pp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.pp-left-col {
    display: flex;
    flex-direction: column;
}

/* ── Card ── */
.pp-card {
    background: #ffffff;
    border: 1px solid #e8e5df;
    border-radius: 12px;
    padding: 1.5rem;
}

.pp-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.pp-card-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    font-family: var(--HeadingFont);
}

/* ── Badge ── */
.pp-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--HeadingFont);
}

.pp-badge-info {
    background: #E6F1FB;
    color: #185FA5;
    font-family: var(--HeadingFont);
}

/* ── Avatar row ── */
.pp-avatar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f0ede8;
}

.pp-avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #B5D4F4;
    color: #0C447C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.pp-avatar-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 13px;
    color: #666;
    font-family: var(--HeadingFont);
}

    .pp-avatar-meta strong {
        font-size: 15px;
        color: #1a1a1a;
        font-family: var(--HeadingFont);
    }

.pp-upload-btn {
    margin-top: 4px;
    font-family: var(--HeadingFont);
    width: fit-content;
}


.pp-close-acccunt-title {
    font-size: 16px;
    font-weight: 500;
    color: #791F1F !important;
    font-family: var(--HeadingFont);
}

/* ── Field grid ── */
.pp-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.pp-field {
    display: flex;
    flex-direction: column;
    gap: 0px;
    font-family: var(--HeadingFont);
}

.pp-field-full {
    grid-column: 1 / -1;
}

.pp-input {
    width: 100%;
    font-family: var(--HeadingFont);
}

/* ── Divider ── */
.pp-divider {
    height: 1px;
    background: #f0ede8;
    margin: 1.125rem 0;
}

/* ── Action row ── */
.pp-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--HeadingFont);
}

.pp-saved-msg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #0F6E56;
    font-weight: 500;
    font-family: var(--HeadingFont);
}

/* ── Notice ── */
.pp-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: var(--HeadingFont);
    line-height: 1.5;
}

.pp-notice-warn {
    background: #fefce8;
    border: 1px solid #fde68a;
    color: #854F0B;
    font-family: var(--HeadingFont);
}

.pp-notice-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Phone number rows ── */
.pp-phone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fafaf8;
    border: 1px solid #e8e5df;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: var(--HeadingFont);
}

.pp-phone-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pp-phone-label-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--HeadingFont);
}

.pp-phone-number {
    font-size: 16px;
    font-family: var(--HeadingFont);
}

.pp-phone-empty {
    font-size: 13px;
    font-weight: 400;
    color: #bbb;
    font-style: italic;
    font-family: var(--HeadingFont);
}

.pp-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #185FA5;
    background: #e6f1fb;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    font-family: var(--HeadingFont);
}

    .pp-change-btn:hover {
        background: #cce0f5;
        color: #0f4a85;
    }

/* ── Responsive ── */
@media (max-width: 900px) {
    .pp-grid {
        grid-template-columns: 1fr;
    }

    .pp-field-grid {
        grid-template-columns: 1fr;
    }

    .pp-field-full {
        grid-column: 1;
    }
}


/* =======================================================
   PHONE NUMBER CHANGE MODAL
   ======================================================= */

/* ── Backdrop ── */
.pnm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pnm-fade-in 0.18s ease;
    font-family: var(--HeadingFont);
}

@keyframes pnm-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Dialog ── */
.pnm-dialog {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
    animation: pnm-slide-up 0.22s ease;
    overflow: hidden;
    font-family: var(--HeadingFont);
}

@keyframes pnm-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ── Header ── */
.pnm-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #f0ede8;
    font-family: var(--HeadingFont);
}

.pnm-title {
    font-size: 20px;
    color: #1a1a1a;
    text-transform: capitalize;
    margin-bottom: 6px;
    font-family: var(--HeadingFont);
}

.pnm-steps-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pnm-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d8d4ce;
    transition: background 0.2s;
}

.pnm-step-dot-active {
    background: #185FA5;
}

.pnm-step-text {
    font-size: 14px;
    color: #999;
    margin-left: 4px;
}

.pnm-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.15s;
}

    .pnm-close:hover {
        color: #333;
    }

/* ── Body ── */
.pnm-body {
    padding: 20px;
    min-height: 180px;
    font-family: var(--HeadingFont);
}

.pnm-body-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
    font-family: var(--HeadingFont);
}

/* ── Step intro block (primary step 1) ── */
.pnm-step-intro {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f7f9fd;
    border: 1px solid #dce8f5;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 18px;
}

.pnm-step-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pnm-step-icon-phone {
    background: #e6f1fb;
}

.pnm-step-title {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.pnm-step-subtitle {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

/* ── Flow preview (step 1 primary) ── */
.pnm-flow-preview {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 18px;
    padding: 12px 14px;
    background: #fafaf8;
    border: 1px solid #ede9e3;
    border-radius: 8px;
}

.pnm-flow-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #185FA5;
    white-space: nowrap;
}

    .pnm-flow-step:not(.pnm-flow-step-active) {
        color: #aaa;
    }

.pnm-flow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #185FA5;
    flex-shrink: 0;
}

.pnm-flow-dot-inactive {
    background: #d0ccc7;
}

.pnm-flow-line {
    flex: 1;
    height: 1px;
    background: #e0dbd4;
    margin: 0 6px;
    min-width: 20px;
}

/* ── Context action badge ── */
.pnm-action-context-badge {
    margin-bottom: 14px;
}

.pnm-ctx-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 12px;
}

.pnm-ctx-badge-blue {
    background: #e6f1fb;
    color: #185FA5;
}

.pnm-ctx-badge-red {
    background: #fdecea;
    color: #a32d2d;
}

/* ── Verify icon wrapper ── */
.pnm-verify-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.pnm-verify-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pnm-verify-icon-email {
    background: #e6f1fb;
}

.pnm-verify-icon-sms {
    background: #e6f5f0;
}

.pnm-verify-channel-label {
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 12px;
    font-family: var(--HeadingFont);
}

/* ── Option tiles ── */
.pnm-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #e8e5df;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: border-color 0.15s, background 0.15s;
    font-family: var(--HeadingFont);
}

    .pnm-option:hover {
        border-color: #b3cfe8;
        background: #f6f9fd;
    }

.pnm-option-active {
    border-color: #185FA5;
    background: #eef5fc;
}

/* Danger option (remove) */
.pnm-option-danger {
    border-color: #f5c6c6;
}

    .pnm-option-danger:hover {
        border-color: #e08080;
        background: #fef5f5;
    }

.pnm-option-danger-active {
    border-color: #c0392b !important;
    background: #fdecea !important;
}

/* ── Radio circles ── */
.pnm-option-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #185FA5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.pnm-option-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #185FA5;
}

.pnm-option-radio-danger {
    border-color: #c0392b;
}

.pnm-option-radio-dot-danger {
    background: #c0392b;
}

.pnm-option-label {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2px;
    font-family: var(--HeadingFont);
}

.pnm-option-hint {
    font-size: 14px;
    color: #888;
    line-height: 1.45;
    font-family: var(--HeadingFont);
}

/* ── OTP overlay wrapper ── */
.pnm-otp-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 8px 0 4px;
    height: 52px;
}

/* Invisible real input stretches across all 6 boxes */
.pnm-otp-real {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: text;
    z-index: 10;
    font-size: 16px;
    color: transparent;
    background: transparent;
    border: none;
    outline: none;
    caret-color: transparent;
    letter-spacing: 999px;
}

/* Visual digit boxes */
.pnm-otp-box {
    width: 46px;
    height: 52px;
    border: 1.5px solid #d0ccc7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.15s, background 0.15s;
    pointer-events: none;
    user-select: none;
    min-width: 46px;
    font-family: var(--HeadingFont);
}

.pnm-otp-filled {
    border-color: #057A55;
    background: #eef5fc;
    color: #057A55;
}

.pnm-otp-focused {
    border-color: #185FA5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.10);
}

/* Blinking cursor on the active empty box */
.pnm-otp-cursor::after {
    content: "|";
    color: #185FA5;
    font-weight: 300;
    animation: pnm-blink 1s step-start infinite;
}

@keyframes pnm-blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── OTP timer badge ── */
.pnm-otp-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #185FA5;
    background: #e6f1fb;
    border-radius: 20px;
    padding: 3px 10px;
    font-family: var(--HeadingFont);
}

.pnm-otp-timer-expired {
    color: #c0392b;
    background: #fdecea;
}

.pnm-resent-msg {
    text-align: center;
    font-size: 14px;
    color: #0F6E56;
    margin-top: 8px;
    font-family: var(--HeadingFont);
}

/* ── Identity verified chip ── */
.pnm-identity-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #0F6E56;
    background: #e6f5f0;
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 16px;
    font-family: var(--HeadingFont);
}

/* ── Field ── */
.pnm-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 4px;
}

.pnm-label {
    font-size: 16px;
    font-family: var(--HeadingFont) !important;
}

.pnm-field-hint {
    font-size: 14px;
    color: #999;
    margin-top: 2px;
    line-height: 1.4;
    font-family: var(--HeadingFont);
}

/* ── Success state ── */
.pnm-success-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    text-align: center;
    font-family: var(--HeadingFont);
}

.pnm-success-icon {
    margin-bottom: 18px;
    animation: pnm-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pnm-pop {
    from {
        transform: scale(0.4);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pnm-success-title {
    font-size: 20px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-family: var(--HeadingFont);
}

.pnm-success-desc {
    font-size: 15px;
    color: #777;
    max-width: 290px;
    line-height: 1.6;
    font-family: var(--HeadingFont);
}

/* ── Footer ── */
.pnm-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #f0ede8;
    background: #fafaf8;
    font-family: var(--HeadingFont);
}

.pnm-btn-cancel {
    border: 1px solid #d0ccc7 !important;
    font-family: var(--HeadingFont);
}
