/* ========== Reset ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

/* ========== Background ========== */
body {
    min-height: 100vh;
    background: linear-gradient(160deg, #9b6cb4 0%, #b07cc6 30%, #7ec8c8 70%, #a8dcd0 100%);
    color: #333;
}

.container {
    min-height: 100vh;
    padding: 40px 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ========== Card ========== */
.payment-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    padding: 28px 22px 18px;
    margin-top: 20px;
}

/* ========== Amount Section ========== */
.amount-section {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.amount-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.amount-section h2 {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.click-hint {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

/* ========== Payment Methods ========== */
.payment-methods {
    margin-bottom: 18px;
}

#other-payment-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
}

.payment-option:first-child {
    border-top: 1px solid #f0f0f0;
}

.payment-option:hover {
    background: #fafafa;
}

.payment-option.selected {
    background: #f5f5ff;
}

.payment-option::after {
    content: "›";
    position: absolute;
    right: 16px;
    font-size: 20px;
    color: #999;
    font-weight: 300;
}

.payment-icon {
    width: 36px;
    height: 36px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-name {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* ========== Pay Button ========== */
.pay-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #9b6cb4, #7ec8c8);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.pay-button:hover {
    opacity: 0.9;
}

.pay-button:active {
    transform: translateY(1px);
}

/* ========== Info Text ========== */
.info-text {
    margin-bottom: 16px;
}

.info-text p {
    font-size: 12px;
    line-height: 1.6;
    color: #666;
}

/* ========== Footer ========== */
.page-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}

.footer-lang {
    font-size: 12px;
    color: #999;
}

.footer-brand {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
}

/* ========== Loading Overlay ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.2s, opacity 0.2s;
}

.loading-overlay.visible {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(155, 108, 180, 0.25);
    border-radius: 50%;
    border-top-color: #9b6cb4;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
