/* magflow /vip/ 只需要通用提示框：从 magnet_web/vip/kids-common.css 的 .kd-modal 段复制。
   不复制整份——vip-center.php 早就引用了本文件名，整份引入会改变会员中心现有外观。 */
.kd-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.kd-modal.is-open {
    display: flex;
}
.kd-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}
.kd-modal__dialog {
    position: relative;
    width: min(92vw, 360px);
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 16px 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    border: 1px solid #e2e8f0;
    z-index: 1;
}
@supports (-webkit-overflow-scrolling: touch) {
    .kd-modal__dialog {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}
.kd-modal__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}
.kd-modal__message {
    margin: 0 0 14px;
    color: #334155;
    line-height: 1.5;
    font-size: 0.98rem;
}
.kd-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.kd-modal__btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
}
.kd-modal__btn--primary {
    border-color: #0ea5e9;
    background: #0ea5e9;
    color: #ffffff;
}
body.dark-mode .kd-modal__dialog {
    background: #111827;
    border-color: #1f2937;
}
body.dark-mode .kd-modal__title,
body.dark-mode .kd-modal__message {
    color: #e5e7eb;
}
body.dark-mode .kd-modal__btn {
    background: #0b1220;
    color: #e5e7eb;
    border-color: #1f2937;
}
body.dark-mode .kd-modal__btn--primary {
    background: #38bdf8;
    color: #0b1220;
    border-color: #38bdf8;
}
