/* ========== 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: #f0f0f0;
    color: #333;
}

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

/* ========== Card ========== */
.payment-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 24px 20px 18px;
}

/* ========== Brand Header ========== */
.brand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.brand-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.brand-sub {
    font-size: 11px;
    color: #999;
}

/* ========== Amount Section ========== */
.amount-section {
    background: #f5b731;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

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

.amount-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

/* ========== Methods Title ========== */
.methods-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

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

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

.payment-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #fff8e6;
    border: 1px solid #f5dfa0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.payment-option:hover {
    background: #fef2cc;
    border-color: #f5b731;
}

.payment-option.selected {
    border-color: #f5b731;
    background: #fef2cc;
    box-shadow: 0 2px 10px rgba(245, 183, 49, 0.2);
}

.payment-option::after {
    content: "";
    position: absolute;
    right: 16px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #f5b731;
    border-right: 2px solid #f5b731;
    transform: rotate(45deg);
}

.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: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

/* ========== Pay Button ========== */
.pay-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: #f5b731;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.pay-button:hover {
    background: #e5a820;
}

.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: 13px;
    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(245, 183, 49, 0.25);
    border-radius: 50%;
    border-top-color: #f5b731;
    animation: spin 0.8s linear infinite;
}

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