/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    primary-bg: #f9fbfc;
    bkash-color: #e2136e;
    nagad-color: #ed1c24;
    nagad-grad: linear-gradient(135deg, #b31217 0%, #e31019 100%);
    text-main: #333;
    text-muted: #777;
    white: #ffffff;
    border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #eaeff2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}

.app-container {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    min-height: 500px;
}

.view-section {
    display: none;
    padding: 24px;
    animation: fadeIn 0.3s ease-in-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography & Utilities */
.section-title {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white) !important; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.mt-10 { margin-top: 10px; }
.fw-bold { font-weight: 600; }

/* Method Cards */
.method-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-card:has(input:checked) {
    border-color: var(--bkash-color);
    background: #fdf2f7;
}

.method-card:has(input[value="nagad"]:checked) {
    border-color: var(--nagad-color);
    background: #fdf2f2;
}

.method-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.method-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.method-name { font-weight: 600; font-size: 16px; }
.bkash-text { color: var(--bkash-color); }
.nagad-text { color: var(--nagad-color); }
.method-desc { font-size: 12px; color: var(--text-muted); }

input[type="radio"] { display: none; }

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
}

input:checked + .method-info + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--bkash-color);
    border-radius: 50%;
}

input[value="nagad"]:checked + .method-info + .radio-custom::after {
    background: var(--nagad-color);
}

/* Buttons */
.btn-primary, .btn-secondary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary {
    background: var(--bkash-color);
    color: white;
}

.btn-secondary {
    background: #e0e0e0;
    color: var(--text-main);
}

.btn-primary:hover, .btn-secondary:hover { opacity: 0.9; }

.security-badge {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 15px;
}

/* Gateway Pages specific styling */
.gateway-bg { padding: 0; min-height: 500px; display: flex; flex-direction: column; }
.bkash-bg { background: var(--bkash-color); }
.nagad-bg { background: var(--nagad-grad); }

.gateway-header {
    background: white;
    padding: 15px;
    text-align: center;
    border-bottom: 2px solid #ccc;
}

.gateway-main-logo { height: 40px; object-fit: contain; }
.nagad-specific-logo { height: 55px; }

.white-box {
    background: white;
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.white-box h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.receiver-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f4;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 20px;
}

.copy-btn {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.copy-btn:active { transform: scale(0.95); }

.input-group { text-align: left; }
.input-group label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-weight: 500;
}

.account-input, .trx-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
}

.terms-text {
    text-align: center;
    font-size: 12px;
    color: white;
    margin: 10px 0 20px 0;
}

.terms-text a { color: white; font-weight: 600; }

.action-buttons {
    display: flex;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.btn-half {
    flex: 1;
    padding: 16px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: background 0.2s;
}

.btn-half:hover { background: rgba(255,255,255,0.2); }
.btn-close { border-right: 1px solid rgba(255,255,255,0.2); }

.hotline {
    text-align: center;
    padding: 15px;
    color: white;
    font-size: 14px;
    background: rgba(0,0,0,0.1);
}

/* Receipt Styles */
.receipt-card { text-align: center; }
.receipt-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #f39c12;
}

.receipt-details {
    background: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.detail-row:last-child { border-bottom: none; }
.status-pending { color: #f39c12; font-weight: 600; }