/* 公用确认框 / Toast（会员页与会员中心共用） */
body.uc-dlg-open {
    overflow: hidden;
}

.uc-dlg {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
}

.uc-dlg.is-open {
    visibility: visible;
    pointer-events: auto;
}

.uc-dlg-mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.uc-dlg-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    padding: 28px 24px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
    text-align: center;
    transform: translate3d(0, 12px, 0) scale(0.96);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
    will-change: transform, opacity;
}

.uc-dlg.is-show .uc-dlg-mask {
    opacity: 1;
}

.uc-dlg.is-show .uc-dlg-panel {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

.uc-dlg-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fff7ed;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.uc-dlg-icon.is-wallet {
    background: #e8f3ff;
    color: #1677ff;
}

.uc-dlg-icon.is-info {
    background: #eef2ff;
    color: #4f46e5;
}

.uc-dlg-icon.is-success {
    background: #ecfdf5;
    color: #059669;
}

.uc-dlg-icon.is-danger {
    background: #fef2f2;
    color: #ef4444;
}

.uc-dlg-icon.is-warn {
    background: #fff7ed;
    color: #ea580c;
}

.uc-dlg-icon .uc-dlg-yen {
    font-style: normal;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.uc-dlg-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.uc-dlg-msg {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
}

.uc-dlg-msg .uc-dlg-balance {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    text-align: left;
}

.uc-dlg-msg .uc-dlg-balance > div {
    flex: 1;
    min-width: 0;
}

.uc-dlg-msg .uc-dlg-balance span {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.uc-dlg-msg .uc-dlg-balance strong {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.uc-dlg-msg .uc-dlg-balance strong.is-need {
    color: #1677ff;
}

.uc-dlg-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.uc-dlg-btn {
    min-width: 108px;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #f1f5f9;
    color: #475569;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.uc-dlg-btn.is-ghost {
    background: #fff;
    border-color: #e2e8f0;
    color: #475569;
}

.uc-dlg-btn.is-ghost:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.uc-dlg-btn.is-primary {
    background: #1677ff;
    color: #fff;
}

.uc-dlg-btn.is-primary:hover {
    background: #0f66e0;
}

.uc-dlg-btn.is-danger {
    background: #ef4444;
    color: #fff;
}

.uc-dlg-btn.is-danger:hover {
    background: #dc2626;
}

@media (prefers-reduced-motion: reduce) {
    .uc-dlg-mask,
    .uc-dlg-panel,
    .uc-dlg-btn {
        transition: none !important;
    }
}

.uc-toast-wrap {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10060;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.uc-toast {
    min-width: 160px;
    max-width: 80vw;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.uc-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

.uc-toast.is-ok {
    background: #1677ff;
}

.uc-toast.is-err {
    background: #ef4444;
}
