/* ===== PAYMENT MODULE STYLES ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'Segoe UI', sans-serif; background: #f4f6fb; color: #1a1a2e; }

.payment-container {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.payment-header {
    text-align: center;
    margin-bottom: 36px;
}
.payment-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1a1a2e;
}
.payment-header p {
    color: #666;
    margin-top: 6px;
    font-size: 0.97rem;
}

.payment-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 720px) {
    .payment-layout { grid-template-columns: 1fr; }
}

/* Module Cards */
.modules-section h2, .order-summary h2 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.module-card {
    background: #fff;
    border: 2px solid #e8eaf0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.module-card:hover { border-color: #4f46e5; box-shadow: 0 2px 12px rgba(79,70,229,0.08); }
.module-card.selected { border-color: #4f46e5; background: #f8f7ff; }

.module-card input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #4f46e5;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.module-info { flex: 1; }
.module-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.module-info p { font-size: 0.85rem; color: #666; margin-bottom: 10px; line-height: 1.5; }

.module-features { list-style: none; padding: 0; }
.module-features li {
    font-size: 0.82rem;
    color: #444;
    padding: 2px 0;
}
.module-features li::before { content: "✓ "; color: #4f46e5; font-weight: 700; }

.module-price {
    text-align: right;
    flex-shrink: 0;
}
.module-price .price-usd {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4f46e5;
}
.module-price .price-cycle {
    font-size: 0.75rem;
    color: #888;
    display: block;
}
.module-price .price-local {
    font-size: 0.8rem;
    color: #555;
    margin-top: 4px;
}

/* Order Summary */
.order-summary {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e8eaf0;
    position: sticky;
    top: 24px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 6px 0;
    color: #444;
}
.summary-line.total {
    border-top: 1px solid #e8eaf0;
    margin-top: 10px;
    padding-top: 14px;
    font-weight: 700;
    font-size: 1rem;
    color: #1a1a2e;
}
.summary-local {
    text-align: right;
    font-size: 0.78rem;
    color: #888;
    margin-top: 4px;
}

.btn-pay {
    width: 100%;
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s;
}
.btn-pay:hover:not(:disabled) { background: #4338ca; }
.btn-pay:disabled { background: #a5a4c7; cursor: not-allowed; }

.rate-note {
    font-size: 0.74rem;
    color: #aaa;
    text-align: center;
    margin-top: 10px;
}

/* Messages */
.msg {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 0.9rem;
    display: none;
}
.msg.success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.msg.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; display: block; }
.msg.info    { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; display: block; }

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 0.95rem;
}


/* === migrated from payment/mock-checkout.html === */
* { box-sizing: border-box; margin: 0; padding: 0; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #f0f2f5;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .card {
            background: #fff;
            border-radius: 16px;
            padding: 40px 36px;
            max-width: 420px;
            width: 100%;
            box-shadow: 0 8px 32px rgba(0,0,0,0.10);
        }
        .mock-badge {
            display: inline-block;
            background: #fef3c7;
            color: #92400e;
            font-size: 0.72rem;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: 20px;
            letter-spacing: 0.05em;
            margin-bottom: 20px;
        }
        .logo { font-size: 1.3rem; font-weight: 800; color: #4f46e5; margin-bottom: 6px; }
        .logo span { color: #f59e0b; }
        h2 { font-size: 1.1rem; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; }
        .amount-display { font-size: 2rem; font-weight: 800; color: #1a1a2e; margin: 18px 0 6px; }
        .email-display { font-size: 0.88rem; color: #666; margin-bottom: 28px; }
        .divider { height: 1px; background: #f0f0f0; margin: 20px 0; }
        .card-section label { font-size: 0.78rem; color: #555; display: block; margin-bottom: 5px; font-weight: 500; }
        .card-section input {
            width: 100%; padding: 11px 14px; border: 1px solid #d1d5db;
            border-radius: 8px; font-size: 0.9rem; margin-bottom: 14px; background: #fafafa;
        }
        .card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .btn-pay {
            width: 100%; background: #4f46e5; color: #fff; border: none;
            border-radius: 10px; padding: 14px; font-size: 1rem; font-weight: 700;
            cursor: pointer; margin-top: 8px; transition: background 0.2s;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .btn-pay:hover { background: #4338ca; }
        .btn-pay:disabled { background: #a5b4fc; cursor: not-allowed; }
        .btn-fail {
            width: 100%; background: none; color: #dc2626; border: 1px solid #fca5a5;
            border-radius: 10px; padding: 11px; font-size: 0.88rem; font-weight: 600;
            cursor: pointer; margin-top: 10px; transition: background 0.2s;
        }
        .btn-fail:hover { background: #fef2f2; }
        .status-msg {
            text-align: center; padding: 14px; border-radius: 8px;
            font-size: 0.9rem; margin-top: 16px; display: none;
        }
        .status-msg.success { background: #ecfdf5; color: #065f46; display: block; }
        .status-msg.error   { background: #fef2f2; color: #991b1b; display: block; }
        .status-msg.loading { background: #eff6ff; color: #1e40af; display: block; }
        .security-note { text-align: center; font-size: 0.73rem; color: #bbb; margin-top: 18px; }
        .spinner { animation: spin 1s linear infinite; display: inline-block; }
        @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
