.header {
    background: linear-gradient(160deg, #bf4c00 0%, #e87215 40%, #f4a929 75%, #f8c740 100%);
    padding: 36px 28px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.header .sun-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3), 0 0 0 8px rgba(255, 255, 255, 0.12), 0 8px 28px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

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

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

.intro p {
    font-size: 14.5px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 8px;
}

.intro .highlight {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-radius: 12px;
    border-left: 3px solid #e87215;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #431407;
    line-height: 1.7;
    margin-top: 0;
    text-align: left;
}

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

/* ── Book features strip ── */
.book-features {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.book-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid #fed7aa;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12.5px;
    color: #9a3412;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(192, 83, 0, 0.08);
}

.book-feature .feature-icon {
    font-size: 14px;
    line-height: 1;
}

.payment-note {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1.5px solid #e87215;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 12px;
    font-size: 13.5px;
    color: #7c2d12;
    line-height: 1.7;
}

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

.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 / Popup */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    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, #27ae60, #2ecc71);
    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: #1a1a2e;
    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: #2d2d4e;
}

.redirect-countdown {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 12.5px;
    color: #8a8a8a;
}

@media (max-width: 480px) {
    .container {
        border-radius: 18px;
    }

    .header {
        padding: 28px 20px 24px;
    }

    .header h1 {
        font-size: 23px;
    }

    .form-section,
    .intro {
        padding-left: 18px;
        padding-right: 18px;
    }

    .buttons {
        flex-direction: column;
    }
}

.lang-toggle {
    position: absolute;
    top: 12px;
    right: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.2s;
    z-index: 2;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ── Payment Modal ── */
.payment-modal {
    padding: 24px 22px 0;
    max-width: 380px;
    max-height: 90vh;
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-x-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 6px;
    font-family: inherit;
}

.modal-x-close:hover {
    background: #f0f0f0;
    color: #333;
}

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

.payment-method-modal {
    padding: 24px 22px;
    max-width: 420px;
}

.payment-method-options {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.payment-method-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1.5px solid #e4e7ef;
    border-radius: 12px;
    background: #fafbfd;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.payment-method-option:hover {
    border-color: #f8b500;
    background: #fff8e7;
}

.payment-method-option input[type="radio"] {
    accent-color: #f8b500;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.payment-method-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-method-name {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.45;
}

.payment-method-desc {
    color: #6a6a7a;
    font-size: 12.5px;
    line-height: 1.4;
}

.payment-method-actions {
    margin-top: 14px;
    text-align: center;
}

.cod-modal {
    max-width: 430px;
}

.cod-info-rows .pay-label {
    min-width: 105px;
}

.cod-info-rows .pay-value {
    word-break: break-word;
}

.cod-bottom-bar {
    padding-top: 12px;
}

.payment-qr-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.qr-countdown {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 1;
}

.payment-qr-wrap img {
    max-width: 230px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
}

.payment-info-rows {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 4px 14px;
    margin-bottom: 14px;
}

.pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    gap: 8px;
}

.pay-row:last-child {
    border-bottom: none;
}

.pay-label {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
    min-width: 85px;
}

.pay-value {
    font-size: 13px;
    color: #1a1a2e;
    font-weight: 600;
    word-break: break-all;
    text-align: right;
}

.pay-amount {
    font-size: 18px;
    color: #d63031;
    font-weight: 800;
}

.pay-copy-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-copy {
    background: #eef2ff;
    color: #4a6cf7;
    border: none;
    border-radius: 5px;
    padding: 3px 9px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    font-weight: 600;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: #dde5ff;
}

.btn-copy.copied {
    background: #e8f5e9;
    color: #27ae60;
}

.payment-bottom-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    text-align: center;
    margin-top: auto;
    padding: 14px 0 16px;
    z-index: 2;
}

.btn-check-payment {
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-check-payment:hover {
    background: #2d2d4e;
}

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

.payment-modal__trouble {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.trouble-link {
    color: #d63031;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.15s;
}

.trouble-link:hover {
    color: #c92a21;
}