*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}
body {
    font-family: 'Prompt', 'Segoe UI', sans-serif;
    background: url("images/bp.webp") center center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0
}
.overlay {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .20)
}
.donate-box {
    width: 560px;
    max-width: 100%;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 32px;
    padding: 32px 32px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12), 0 0 0 1px rgba(255, 255, 255, .5) inset;
    border: 1px solid rgba(255, 255, 255, .3);
    transition: box-shadow .3s ease;
    animation: cardIn .6s cubic-bezier(.22, 1, .36, 1) both
}
@keyframes cardIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(.97)
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}
.header {
    text-align: center;
    margin-bottom: 24px
}
.header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    letter-spacing: -.2px;
    background: linear-gradient(135deg, #1a2a6c, #3578ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 8px
}
.header p {
    color: #555;
    font-size: 15px;
    font-weight: 400;
    margin-top: 2px;
    opacity: .8
}
.input-group {
    margin-bottom: 18px
}
.input-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #2d2d2d;
    margin-bottom: 6px
}
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Prompt', sans-serif;
    border: 2px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    background: rgba(255, 255, 255, .6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all .25s ease;
    outline: none;
    color: #1a1a1a
}
.input-group input:focus,
.input-group textarea:focus {
    border-color: #5f9cff;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 0 0 4px rgba(95, 156, 255, .10)
}
.input-group textarea {
    resize: vertical;
    min-height: 78px;
    max-height: 140px
}
.section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f1f1f;
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px
}
.badge {
    font-size: 11px;
    font-weight: 500;
    background: rgba(95, 156, 255, .12);
    color: #3578ff;
    padding: 0 12px;
    border-radius: 20px;
    line-height: 20px;
    margin-left: auto
}
.effect-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 2px
}
.effect-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, .5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 2px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    padding: 8px 12px 8px 16px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.22, 1, .36, 1);
    user-select: none
}
.effect-item:hover {
    border-color: #b8d4ff;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .75)
}
.effect-item.active {
    border-color: #5f9cff;
    background: rgba(95, 156, 255, .10);
    box-shadow: 0 0 0 3px rgba(95, 156, 255, .06)
}
.effect-item .label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 13px;
    color: #222
}
.play-btn {
    border: none;
    background: #2a6cf0;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    transition: all .2s ease;
    letter-spacing: .3px
}
.play-btn:hover {
    background: #1a5cdb;
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(42, 108, 240, .30)
}
.voice-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 2px
}
.voice-btn {
    border: 2px solid rgba(0, 0, 0, .06);
    padding: 10px 4px;
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Prompt', sans-serif;
    text-align: center;
    transition: all .25s cubic-bezier(.22, 1, .36, 1);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px
}
.voice-btn:hover {
    background: rgba(255, 255, 255, .9);
    border-color: #b8d4ff;
    transform: translateY(-2px)
}
.voice-btn.active {
    background: #fff;
    border-color: #5f9cff;
    color: #1a4fa0;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(95, 156, 255, .08)
}
.tts-preview {
    margin: 8px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px
}
.tts-btn {
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 14px;
    background: #2d2d2d;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    transition: all .25s ease;
    letter-spacing: .3px
}
.tts-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12)
}
.tts-btn:active {
    transform: scale(.97)
}
.tts-preview small {
    color: #777;
    font-size: 12px;
    text-align: center;
    font-weight: 400
}
.donate-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, #5f9cff, #3d7ef9);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Prompt', sans-serif;
    transition: all .3s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 6px 24px rgba(95, 156, 255, .25);
    letter-spacing: .5px;
    margin-top: 4px
}
.donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(95, 156, 255, .35);
    background: linear-gradient(135deg, #4a8aff, #2a6cf0)
}
.donate-btn:active {
    transform: scale(.97)
}
.notif-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 40px);
    pointer-events: none
}
.notif {
    pointer-events: auto;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 18px;
    padding: 16px 20px 16px 22px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .10), 0 0 0 1px rgba(255, 255, 255, .5) inset;
    border: 1px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: notifIn .4s cubic-bezier(.22, 1, .36, 1) both;
    transition: all .3s ease
}
.notif.hiding {
    animation: notifOut .35s cubic-bezier(.22, 1, .36, 1) both
}
@keyframes notifIn {
    0% {
        opacity: 0;
        transform: translateX(30px) scale(.95)
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1)
    }
}
@keyframes notifOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1)
    }
    100% {
        opacity: 0;
        transform: translateX(30px) scale(.95)
    }
}
.notif-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-top: 2px
}
.notif-icon.success {
    background: rgba(46, 213, 115, .12)
}
.notif-icon.error {
    background: rgba(255, 71, 87, .10)
}
.notif-icon.warning {
    background: rgba(255, 165, 0, .10)
}
.notif-icon.info {
    background: rgba(95, 156, 255, .10)
}
.notif-body {
    flex: 1;
    min-width: 0
}
.notif-title {
    font-weight: 700;
    font-size: 15px;
    color: #111;
    margin-bottom: 1px
}
.notif-text {
    font-size: 14px;
    color: #444;
    font-weight: 400;
    line-height: 1.5;
    word-wrap: break-word
}
.notif-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 20px;
    color: #aaa;
    cursor: pointer;
    padding: 2px 4px 0 0;
    transition: color .2s;
    line-height: 1
}
.notif-close:hover {
    color: #333
}
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .20);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .3s ease
}
.loading-overlay.hidden {
    display: none
}
@keyframes fadeIn {
    0% {
        opacity: 0
    }
    100% {
        opacity: 1
    }
}
.loading-card {
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .10);
    animation: cardIn .4s cubic-bezier(.22, 1, .36, 1) both;
    max-width: 90vw
}
.loading-card .spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border: 4px solid rgba(95, 156, 255, .10);
    border-top-color: #5f9cff;
    border-radius: 50%;
    animation: spin .8s linear infinite
}
@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}
.loading-card p {
    font-size: 16px;
    font-weight: 500;
    color: #222
}
.payment-page {
    display: none;
    animation: cardIn .5s cubic-bezier(.22, 1, .36, 1) both
}
.payment-page.visible {
    display: block
}
.donate-box .main-form.hidden {
    display: none
}
.payment-page .qr-wrap {
    text-align: center;
    margin: 10px 0 16px;
    position: relative;
    display: inline-block;
    width: 100%
}
.payment-page .qr-wrap .qr-container {
    position: relative;
    margin: 0 auto
}
.payment-page .qr-wrap img#qrImage {
    width: 240px;
    height: 240px;
    border: 2px solid #3578ff;
    border-radius: 16px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    display: block;
    margin: 0 auto
}
.payment-page .qr-wrap .promptpay-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, .92);
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .10);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none
}
.payment-page .qr-wrap .promptpay-overlay img {
    width: 100%;
    height: 100%;
    display: block
}
.payment-page .qr-wrap .download-qr-btn {
    margin-top: 10px;
    padding: 8px 22px;
    border: none;
    border-radius: 20px;
    background: #3578ff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    transition: background .2s
}
.payment-page .qr-wrap .download-qr-btn:hover {
    background: #2a6cf0
}
.payment-page .slip-section {
    margin: 14px 0 16px
}
.payment-page .slip-section label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    margin-bottom: 6px
}
.payment-page .slip-section input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    background: #fafafa;
    outline: none;
    font-family: 'Prompt', sans-serif
}
.payment-page .slip-preview-wrap {
    display: none;
    margin-top: 10px;
    text-align: center;
    border: 1px dashed #ccc;
    border-radius: 12px;
    padding: 8px;
    background: #f8f8f8
}
.payment-page .slip-preview-wrap img {
    max-height: 130px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04)
}
.payment-page .action-row {
    display: flex;
    gap: 10px;
    margin-top: 8px
}
.payment-page .action-row .confirm-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #5f9cff, #3d7ef9);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    transition: all .25s;
    box-shadow: 0 4px 16px rgba(95, 156, 255, .20)
}
.payment-page .action-row .confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(95, 156, 255, .30)
}
.payment-page .action-row .back-btn {
    padding: 14px 22px;
    border: none;
    border-radius: 14px;
    background: #e8e8e8;
    color: #444;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    cursor: pointer;
    transition: background .2s
}
.payment-page .action-row .back-btn:hover {
    background: #d5d5d5
}
.payment-page .amount-display {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    text-align: center;
    margin-bottom: 6px
}
.payment-page .amount-display span {
    color: #3578ff;
    font-size: 24px
}
@media (max-width:600px) {
    .overlay {
        padding: 8px;
        background: rgba(0, 0, 0, .12)
    }
    .donate-box {
        padding: 22px 16px 26px;
        border-radius: 24px;
        background: rgba(255, 255, 255, .88);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px)
    }
    .header h2 {
        font-size: 22px
    }
    .effect-list {
        grid-template-columns: 1fr 1fr;
        gap: 8px
    }
    .voice-list {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px
    }
    .voice-btn {
        font-size: 12px;
        padding: 8px 2px
    }
    .effect-item {
        padding: 6px 10px 6px 12px
    }
    .effect-item .label {
        font-size: 12px
    }
    .play-btn {
        font-size: 11px;
        padding: 3px 10px
    }
    .payment-page .qr-wrap img#qrImage {
        width: 180px;
        height: 180px
    }
    .payment-page .qr-wrap .promptpay-overlay {
        width: 50px;
        height: 50px
    }
    .notif-container {
        top: 10px;
        right: 10px;
        max-width: calc(100% - 20px)
    }
    .notif {
        padding: 12px 14px 12px 16px;
        border-radius: 14px
    }
}
@media (max-width:420px) {
    .donate-box {
        padding: 16px 10px 20px;
        border-radius: 20px
    }
    .effect-list {
        grid-template-columns: 1fr 1fr
    }
    .voice-list {
        grid-template-columns: 1fr 1fr
    }
    .payment-page .action-row {
        flex-direction: column
    }
    .payment-page .action-row .back-btn {
        justify-content: center;
        text-align: center
    }
}