.header {
    background: linear-gradient(135deg, #e85d04 0%, #dc2f02 50%, #9d0208 100%);
    padding: 32px 28px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -20px;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.header h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.header .header-logo {
    display: block;
    margin: 0 auto 10px;
    max-width: min(340px, 100%);
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

.header .subtitle {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.intro {
    padding: 20px 28px 0;
    text-align: center;
}

.intro .highlight {
    background: linear-gradient(135deg, #fff5f0, #ffe8de);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #3d2b1a;
    line-height: 1.7;
    margin-top: 10px;
    border-left: 3px solid #e85d04;
}

.intro .highlight strong {
    color: #dc2f02;
}

.payment-note {
    background: linear-gradient(135deg, #fff8e7, #fef3c7);
    border: 1.5px solid #e85d04;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 12px;
    font-size: 13.5px;
    color: #5a3a1a;
    line-height: 1.7;
}

.payment-note strong {
    color: #9d0208;
}

.footer {
    text-align: center;
    padding: 0 28px 20px;
    font-size: 11.5px;
    color: #aaa;
    line-height: 1.6;
}

.footer a {
    color: #888;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ====== Modal / Overlay ====== */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.overlay.show {
    display: flex;
}

.modal {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 28px 28px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal .check-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e85d04, #dc2f02);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 32px;
    color: #fff;
}

.modal h2 {
    font-size: 22px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.modal p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal .btn-close {
    background: linear-gradient(135deg, #e85d04, #dc2f02);
    color: #fff;
    padding: 11px 32px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.modal .btn-close:hover {
    background: linear-gradient(135deg, #dc2f02, #9d0208);
}

/* ====== Payment Modal ====== */
.payment-modal {
    max-width: 400px;
    position: relative;
}

.payment-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.payment-qr-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.payment-qr-wrap img {
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    display: block;
}

.qr-countdown {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.payment-info-rows {
    width: 100%;
    margin-bottom: 14px;
}

.pay-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.pay-label {
    color: #888;
}

.pay-amount {
    font-size: 20px;
    font-weight: 700;
    color: #e85d04;
}

.modal-x-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.modal-x-close:hover {
    color: #555;
}

.btn-check-payment {
    background: linear-gradient(135deg, #e85d04, #dc2f02);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}

.btn-check-payment:hover {
    opacity: 0.9;
}

.btn-check-payment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payment-modal__trouble {
    font-size: 12.5px;
    color: #888;
    margin-top: 6px;
}

.payment-modal__trouble a {
    color: #e85d04;
    text-decoration: none;
}

.payment-modal__trouble a:hover {
    text-decoration: underline;
}

.redirect-countdown {
    font-size: 12.5px;
    color: #aaa;
    margin-top: 8px;
}
