.dkrd-pp-wrap,
.dkrd-pp-wrap * {
    box-sizing: border-box;
}

.dkrd-pp-wrap {
    width: 100%;
    padding: 28px 16px 42px;
    font-family: inherit;
    color: #1d2327;
}

.dkrd-pp-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 34px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 26px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .08);
}

.dkrd-pp-header {
    text-align: center;
    margin-bottom: 30px;
}

.dkrd-pp-avatar-shell {
    width: 132px;
    height: 132px;
    padding: 5px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #181a1e, #555b66);
    box-shadow: 0 12px 32px rgba(24, 26, 30, .22);
}

.dkrd-pp-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #f1f2f4;
}

.dkrd-pp-name {
    margin: 0 0 8px;
    font: inherit;
    font-size: clamp(23px, 4vw, 32px);
    font-weight: 800;
    line-height: 1.35;
}

.dkrd-pp-member {
    margin: 0;
    font-size: 15px;
    color: #6b7280;
}

.dkrd-pp-member strong {
    color: #181a1e;
    direction: ltr;
    display: inline-block;
}

.dkrd-pp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dkrd-pp-menu-card {
    min-height: 142px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    text-align: center;
    text-decoration: none !important;
    color: #181a1e !important;
    background: #f7f8fa;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 20px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.dkrd-pp-menu-card:hover,
.dkrd-pp-menu-card:focus-visible {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .09);
    outline: none;
}

.dkrd-pp-menu-card:active {
    transform: scale(.985);
}

.dkrd-pp-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #181a1e;
    color: #fff;
}

.dkrd-pp-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.dkrd-pp-menu-text {
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.dkrd-pp-login-required {
    max-width: 540px;
    text-align: center;
}

.dkrd-pp-lock {
    display: block;
    font-size: 42px;
    margin-bottom: 10px;
}

.dkrd-pp-login-required h2 {
    margin: 0 0 10px;
    font: inherit;
    font-size: 25px;
    font-weight: 800;
}

.dkrd-pp-login-required p {
    margin: 0 0 20px;
    color: #68707c;
    line-height: 1.8;
}

.dkrd-pp-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 24px;
    border-radius: 13px;
    background: #181a1e;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
}

@media (max-width: 640px) {
    .dkrd-pp-wrap {
        padding: 18px 12px 30px;
    }

    .dkrd-pp-card {
        padding: 25px 15px;
        border-radius: 21px;
    }

    .dkrd-pp-avatar-shell {
        width: 112px;
        height: 112px;
    }

    .dkrd-pp-grid {
        gap: 11px;
    }

    .dkrd-pp-menu-card {
        min-height: 128px;
        padding: 18px 10px;
        border-radius: 17px;
    }

    .dkrd-pp-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .dkrd-pp-icon svg {
        width: 25px;
        height: 25px;
    }

    .dkrd-pp-menu-text {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .dkrd-pp-grid {
        grid-template-columns: 1fr;
    }

    .dkrd-pp-menu-card {
        min-height: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dkrd-pp-menu-card {
        transition: none;
    }
}


/* Logout button: same polished appearance on desktop, tablet and mobile. */
.dkrd-pp-logout-area {
    width: 100%;
    max-width: 420px;
    margin: 20px auto 0;
}

.dkrd-pp-logout-btn {
    width: 100%;
    min-height: 50px;
    padding: 10px 18px;
    border: 1px solid rgba(185, 28, 28, .20);
    border-radius: 15px;
    background: #fff1f2;
    color: #b91c1c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(185, 28, 28, .08);
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.dkrd-pp-logout-btn:hover,
.dkrd-pp-logout-btn:focus-visible {
    background: #ffe4e6;
    color: #991b1b;
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(185, 28, 28, .13);
}

.dkrd-pp-logout-btn-icon,
.dkrd-pp-logout-btn-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.dkrd-pp-logout-modal[hidden] { display: none !important; }
.dkrd-pp-logout-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 20px;
}
.dkrd-pp-logout-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.52);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.dkrd-pp-logout-dialog {
    position: relative;
    width: min(100%, 380px);
    padding: 26px 22px 22px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
    text-align: center;
}
.dkrd-pp-logout-symbol {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #fff1f2;
    color: #be123c;
}
.dkrd-pp-logout-symbol svg { width: 28px; height: 28px; }
.dkrd-pp-logout-dialog h2 {
    margin: 0;
    color: #181a1e;
    font: inherit;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.7;
}
.dkrd-pp-logout-actions {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.dkrd-pp-confirm-yes,
.dkrd-pp-confirm-no {
    min-height: 46px;
    padding: 9px 16px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}
.dkrd-pp-confirm-yes {
    border: 1px solid #181a1e;
    background: #181a1e;
    color: #fff !important;
}
.dkrd-pp-confirm-no {
    border: 1px solid rgba(0,0,0,.10);
    background: #f4f5f7;
    color: #181a1e;
}
body.dkrd-pp-modal-open { overflow: hidden; }

@media (max-width: 640px) {
    .dkrd-pp-logout-area { max-width: none; margin-top: 16px; }
    .dkrd-pp-logout-btn { min-height: 50px; border-radius: 15px; }
    .dkrd-pp-logout-dialog { padding: 23px 17px 18px; border-radius: 19px; }
    .dkrd-pp-logout-dialog h2 { font-size: 17px; }
}


/* Desktop-only logout button fix: prevent theme button/SVG styles from stretching it. */
@media (min-width: 641px) {
    .dkrd-private-profile .dkrd-pp-logout-area {
        width: auto !important;
        max-width: none !important;
        margin: 18px auto 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .dkrd-private-profile button.dkrd-pp-logout-btn {
        appearance: none !important;
        -webkit-appearance: none !important;
        width: auto !important;
        min-width: 148px !important;
        max-width: 190px !important;
        min-height: 42px !important;
        height: 42px !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        border: 1px solid rgba(185, 28, 28, .20) !important;
        border-radius: 12px !important;
        background: #fff1f2 !important;
        color: #b91c1c !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        font-family: inherit !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-align: center !important;
        box-shadow: 0 5px 14px rgba(185, 28, 28, .07) !important;
        overflow: hidden !important;
    }

    .dkrd-private-profile button.dkrd-pp-logout-btn:hover,
    .dkrd-private-profile button.dkrd-pp-logout-btn:focus-visible {
        background: #ffe4e6 !important;
        color: #991b1b !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 8px 18px rgba(185, 28, 28, .11) !important;
    }

    .dkrd-private-profile .dkrd-pp-logout-btn-icon {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        flex: 0 0 18px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 0 !important;
    }

    .dkrd-private-profile .dkrd-pp-logout-btn-icon svg {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        max-width: 18px !important;
        display: block !important;
    }

    .dkrd-private-profile .dkrd-pp-logout-btn > span:last-child {
        display: inline-block !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }
}


/* Final hard fix for desktop/laptop logout UI. */
@media (min-width: 641px) {
    html body .dkrd-pp-logout-area {
        width: 100% !important;
        max-width: 100% !important;
        margin: 18px 0 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    html body button.dkrd-pp-logout-btn {
        all: unset !important;
        box-sizing: border-box !important;
        width: 156px !important;
        height: 42px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 16px !important;
        border: 1px solid rgba(185,28,28,.20) !important;
        border-radius: 12px !important;
        background: #fff1f2 !important;
        color: #b91c1c !important;
        font-family: inherit !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-align: center !important;
        cursor: pointer !important;
        box-shadow: 0 6px 16px rgba(185,28,28,.08) !important;
    }

    html body button.dkrd-pp-logout-btn:hover,
    html body button.dkrd-pp-logout-btn:focus-visible {
        background: #ffe4e6 !important;
        color: #991b1b !important;
        transform: translateY(-1px) !important;
        outline: none !important;
    }

    html body .dkrd-pp-logout-modal {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2147483640 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 24px !important;
    }

    html body .dkrd-pp-logout-modal[hidden] { display: none !important; }

    html body .dkrd-pp-logout-backdrop {
        position: absolute !important;
        inset: 0 !important;
        background: rgba(0,0,0,.48) !important;
    }

    html body .dkrd-pp-logout-dialog {
        all: unset !important;
        box-sizing: border-box !important;
        position: relative !important;
        width: 360px !important;
        max-width: calc(100vw - 48px) !important;
        padding: 24px !important;
        border: 1px solid rgba(0,0,0,.08) !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: 0 24px 70px rgba(0,0,0,.24) !important;
        display: block !important;
        text-align: center !important;
        direction: rtl !important;
    }

    html body .dkrd-pp-logout-dialog h2 {
        all: unset !important;
        display: block !important;
        margin: 0 !important;
        color: #181a1e !important;
        font-family: inherit !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        line-height: 1.7 !important;
        text-align: center !important;
    }

    html body .dkrd-pp-logout-actions {
        margin-top: 18px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    html body .dkrd-pp-confirm-yes,
    html body button.dkrd-pp-confirm-no {
        all: unset !important;
        box-sizing: border-box !important;
        min-height: 44px !important;
        border-radius: 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-family: inherit !important;
        font-size: 14px !important;
        font-weight: 800 !important;
        cursor: pointer !important;
        text-decoration: none !important;
    }

    html body .dkrd-pp-confirm-yes {
        background: #181a1e !important;
        color: #fff !important;
        border: 1px solid #181a1e !important;
    }

    html body button.dkrd-pp-confirm-no {
        background: #f4f5f7 !important;
        color: #181a1e !important;
        border: 1px solid rgba(0,0,0,.10) !important;
    }
}
