/* ============================================================
   RÚT VÍ TRẢ SAU - SENIOR MODERN FINTECH UI STYLES
   Tối ưu hoàn hảo Desktop, iPad & Mobile
   Khắc phục triệt để lỗi Header che khuất & Tràn ngang
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    /* Bảo đảm giữ nguyên khoảng trống 70px cho Fixed Header */
    padding-top: 70px;
    margin: 0;
}

:root {
    --rv-primary: #a50064;
    --rv-primary-hover: #860051;
    --rv-primary-gradient: linear-gradient(135deg, #a50064 0%, #d81b84 100%);
    --rv-primary-soft: #fdf2f8;
    --rv-primary-border: #fbcfe8;
    --rv-dark: #0f172a;
    --rv-dark-soft: #1e293b;
    --rv-muted: #64748b;
    --rv-light-bg: #f8fafc;
    --rv-white: #ffffff;
    --rv-green: #059669;
    --rv-green-soft: #ecfdf5;
    --rv-green-border: #a7f3d0;
    --rv-border: #e2e8f0;
    --rv-radius-sm: 8px;
    --rv-radius-md: 14px;
    --rv-radius-lg: 20px;
    --rv-radius-full: 9999px;
    --rv-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --rv-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --rv-shadow-lg: 0 20px 40px -12px rgba(165, 0, 100, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
}

.rv-page-wrapper {
    background-color: #fafbfc;
    color: var(--rv-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    padding-bottom: 60px;
    overflow-x: hidden;
    width: 100%;
}

.rv-page-wrapper .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Common Section */
.rv-section {
    padding: 56px 0;
    width: 100%;
    box-sizing: border-box;
}

.rv-section-head {
    max-width: 680px;
    margin: 0 auto 36px auto;
    width: 100%;
    box-sizing: border-box;
}

.section-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--rv-primary);
    background: var(--rv-primary-soft);
    padding: 4px 12px;
    border-radius: var(--rv-radius-full);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.45rem, 2.8vw, 2.05rem);
    font-weight: 800;
    color: var(--rv-dark);
    letter-spacing: -0.4px;
    margin-bottom: 8px;
    overflow-wrap: break-word;
}

.section-desc {
    font-size: 0.96rem;
    color: var(--rv-muted);
    line-height: 1.6;
    overflow-wrap: break-word;
}

/* ==================== 1. HERO + CALCULATOR INTEGRATED ==================== */
.rv-hero-clean {
    padding: 48px 0 40px 0;
    background: radial-gradient(circle at 0% 0%, #fdf2f8 0%, #ffffff 50%),
                radial-gradient(circle at 100% 100%, #f1f5f9 0%, #ffffff 50%);
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

.rv-hero-flex {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 48px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.rv-hero-info {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.rv-hero-tool {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.rv-mini-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--rv-primary-border);
    padding: 6px 14px;
    border-radius: var(--rv-radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rv-primary);
    box-shadow: var(--rv-shadow-sm);
    margin-bottom: 16px;
}

.rv-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--rv-primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(165, 0, 100, 0.7);
    animation: rvPulse 1.8s infinite;
    flex-shrink: 0;
}

@keyframes rvPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(165, 0, 100, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(165, 0, 100, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(165, 0, 100, 0); }
}

.rv-main-title {
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    font-weight: 800;
    color: var(--rv-dark);
    line-height: 1.25;
    letter-spacing: -0.6px;
    margin-bottom: 14px;
    overflow-wrap: break-word;
}

.rv-main-title .text-gradient {
    background: var(--rv-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rv-main-subtitle {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 24px;
    overflow-wrap: break-word;
}

/* 3 Điểm tựa an toàn */
.rv-core-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.rv-core-feat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 12px 16px;
    border-radius: var(--rv-radius-md);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.rv-core-feat-item .feat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--rv-primary-soft);
    color: var(--rv-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.rv-core-feat-item strong {
    display: block;
    font-size: 0.92rem;
    color: var(--rv-dark);
}

.rv-core-feat-item span {
    font-size: 0.8rem;
    color: var(--rv-muted);
}

/* Ticker Live */
.rv-live-ticker-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 14px;
    border-radius: var(--rv-radius-full);
    font-size: 0.82rem;
    color: #334155;
    box-shadow: var(--rv-shadow-sm);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.rv-live-ticker-box .ticker-badge {
    color: var(--rv-green);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.rv-live-ticker-box .highlight-val {
    color: var(--rv-primary);
    font-weight: 700;
}

.rv-live-ticker-box .ticker-content {
    flex: 1 1 0%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.25s ease;
}

/* Calculator Card */
.rv-calc-card-unified {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--rv-radius-lg);
    padding: 24px;
    box-shadow: var(--rv-shadow-lg);
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.rv-calc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}

.rv-calc-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rv-dark);
    margin-bottom: 2px;
}

.rv-calc-title i {
    color: var(--rv-primary);
}

.rv-calc-sub {
    font-size: 0.82rem;
    color: var(--rv-muted);
    margin: 0;
}

.badge-instant {
    background: var(--rv-green-soft);
    color: var(--rv-green);
    border: 1px solid var(--rv-green-border);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--rv-radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.rv-calc-group {
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.rv-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--rv-dark);
    margin-bottom: 8px;
}

.text-muted-xs {
    font-size: 0.76rem;
    color: var(--rv-muted);
}

/* Wallet Chips Grid (3 cột chuẩn mực trên Desktop) */
.rv-wallet-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.rv-wallet-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 9px;
    border-radius: var(--rv-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    min-height: 42px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.rv-wallet-chip:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.rv-wallet-chip.active {
    background: var(--rv-primary-soft);
    border-color: var(--rv-primary);
    box-shadow: 0 0 0 1px var(--rv-primary);
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chip-dot.momo { background: #a50064; }
.chip-dot.kredivo { background: #dc2626; }
.chip-dot.shopee { background: #ea580c; }
.chip-dot.zalo { background: #0284c7; }
.chip-dot.viettel { background: #b91c1c; }
.chip-dot.credit { background: #7c3aed; }

.chip-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--rv-dark);
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip-fee {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rv-primary);
    background: #ffffff;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid var(--rv-primary-border);
    flex-shrink: 0;
}

/* Amount Showcase */
.rv-amount-showcase {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--rv-radius-md);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.rv-amount-showcase .val {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--rv-dark);
    letter-spacing: -0.5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rv-amount-showcase .unit {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--rv-muted);
    flex-shrink: 0;
}

/* Range Slider */
.rv-slider-wrap {
    margin-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}

.rv-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    display: block;
}

.rv-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rv-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(165, 0, 100, 0.4);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}

.rv-slider-endpoints {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--rv-muted);
    font-weight: 600;
    margin-top: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* Quick pills (7 nút đều trên Desktop) */
.rv-quick-amounts-bar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.btn-quick-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 7px 2px;
    border-radius: var(--rv-radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rv-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    min-height: 34px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-quick-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.btn-quick-pill.active {
    background: var(--rv-primary);
    color: #ffffff;
    border-color: var(--rv-primary);
}

/* Result Box */
.rv-calc-result-box {
    background: #fdfafc;
    border: 1px solid var(--rv-primary-border);
    border-radius: var(--rv-radius-md);
    padding: 14px 16px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.84rem;
    margin-bottom: 6px;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.result-divider {
    height: 1px;
    background: #fed7aa;
    opacity: 0.4;
    margin: 8px 0;
    width: 100%;
}

.result-row.total-highlight {
    margin-bottom: 0;
    align-items: center;
}

.label-receive {
    font-size: 0.76rem;
    font-weight: 800;
    color: #334155;
    letter-spacing: 0.5px;
    display: block;
}

.sub-guarantee {
    font-size: 0.72rem;
    color: var(--rv-green);
    font-weight: 600;
}

.amount-receive {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--rv-green);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.amount-receive .cur {
    font-size: 0.95rem;
    font-weight: 700;
}

/* Action Buttons */
.rv-calc-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    box-sizing: border-box;
}

.rv-btn-action-primary {
    width: 100%;
    background: var(--rv-primary-gradient);
    color: #ffffff;
    border: none;
    padding: 13px 16px;
    border-radius: var(--rv-radius-full);
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(165, 0, 100, 0.28);
    transition: all 0.2s ease;
    min-height: 46px;
    box-sizing: border-box;
}

.rv-btn-action-primary:hover {
    background: linear-gradient(135deg, #8a0053 0%, #b81670 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(165, 0, 100, 0.35);
}

.rv-btn-action-zalo {
    width: 100%;
    background: #ffffff;
    color: #0284c7;
    border: 1px solid #bae6fd;
    padding: 11px 16px;
    border-radius: var(--rv-radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 44px;
    box-sizing: border-box;
}

.rv-btn-action-zalo:hover {
    background: #f0f9ff;
    border-color: #0284c7;
    color: #0369a1;
}

/* ==================== 2. SUPPORTED WALLETS (COMPACT MATRIX) ==================== */
.rv-supported-wallets {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.rv-wallets-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.rv-wallet-box {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: var(--rv-radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.rv-wallet-box:hover {
    background: #ffffff;
    border-color: var(--rv-primary);
    transform: translateY(-2px);
    box-shadow: var(--rv-shadow);
}

.rv-wallet-box.active-wallet {
    background: #ffffff;
    border-color: var(--rv-primary);
    box-shadow: 0 0 0 2px var(--rv-primary-border);
}

.wallet-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.wallet-icon-circle.momo { background: #a50064; }
.wallet-icon-circle.kredivo { background: #dc2626; }
.wallet-icon-circle.shopee { background: #ea580c; }
.wallet-icon-circle.zalo { background: #0284c7; }
.wallet-icon-circle.viettel { background: #b91c1c; }
.wallet-icon-circle.credit { background: #7c3aed; }

.wallet-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.wallet-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rv-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-limit {
    font-size: 0.8rem;
    color: var(--rv-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-limit strong {
    color: #334155;
}

.wallet-rate {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rate-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rv-green);
    background: var(--rv-green-soft);
    border: 1px solid var(--rv-green-border);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.action-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.rv-wallet-box:hover .action-hint {
    transform: translateX(3px);
    color: var(--rv-primary);
}

/* ==================== 3. QUY TRÌNH 3 BƯỚC ==================== */
.rv-process-clean {
    background: #fafbfc;
}

.rv-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 26px;
    width: 100%;
    box-sizing: border-box;
}

.rv-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--rv-radius-md);
    padding: 24px 20px;
    position: relative;
    box-shadow: var(--rv-shadow-sm);
    transition: transform 0.2s ease;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.rv-step-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rv-shadow);
}

.step-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.72rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: var(--rv-radius-full);
}

.step-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--rv-primary-soft);
    color: var(--rv-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.step-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--rv-dark);
    margin-bottom: 8px;
    overflow-wrap: break-word;
}

.step-text {
    font-size: 0.88rem;
    color: var(--rv-muted);
    line-height: 1.55;
    margin: 0;
    overflow-wrap: break-word;
}

.step-text strong {
    color: #dc2626;
}

/* Notice Bảo mật */
.rv-security-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fffbeb;
    border: 1px solid #fef08a;
    border-radius: var(--rv-radius-md);
    padding: 14px 18px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.sec-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fde047;
    color: #854d0e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sec-content {
    font-size: 0.86rem;
    color: #713f12;
    line-height: 1.5;
    overflow-wrap: break-word;
}

.sec-content strong {
    color: #991b1b;
}

/* ==================== 4. TRUST & SECURITY STRIP ==================== */
.rv-trust-section {
    padding: 16px 0 28px 0;
}

.rv-trust-strip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--rv-radius-lg);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    box-shadow: var(--rv-shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}

.trust-item i {
    font-size: 1.4rem;
    color: var(--rv-primary);
    flex-shrink: 0;
}

.trust-item h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--rv-dark);
    margin: 0 0 2px 0;
    overflow-wrap: break-word;
}

.trust-item p {
    font-size: 0.78rem;
    color: var(--rv-muted);
    margin: 0;
    overflow-wrap: break-word;
}

/* ==================== 5. FAQ ACCORDION ==================== */
.rv-faq-clean {
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.rv-faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.rv-faq-card {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: var(--rv-radius-md);
    overflow: hidden;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.rv-faq-card:hover {
    border-color: #cbd5e1;
}

.rv-faq-card.open {
    background: #ffffff;
    border-color: var(--rv-primary-border);
    box-shadow: var(--rv-shadow-sm);
}

.rv-faq-q {
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rv-dark);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.faq-arrow {
    color: #94a3b8;
    font-size: 0.85rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.rv-faq-card.open .faq-arrow {
    transform: rotate(180deg);
    color: var(--rv-primary);
}

.rv-faq-a {
    display: none;
    padding: 0 20px 16px 20px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.rv-faq-card.open .rv-faq-a {
    display: block;
}

.rv-faq-a p {
    margin: 0;
}

/* ==================== 6. CTA BANNER CHỐT HẠ ==================== */
.rv-cta-box-section {
    padding: 36px 0 18px 0;
}

.rv-cta-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border-radius: var(--rv-radius-lg);
    padding: 34px 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: #ffffff;
    box-shadow: var(--rv-shadow-lg);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.rv-cta-banner .cta-text {
    flex: 1 1 auto;
    min-width: 0;
}

.rv-cta-banner h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    overflow-wrap: break-word;
}

.rv-cta-banner p {
    font-size: 0.92rem;
    color: #cbd5e1;
    margin: 0;
    overflow-wrap: break-word;
}

.cta-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.rv-btn-primary-compact {
    background: var(--rv-primary-gradient);
    color: #ffffff !important;
    padding: 12px 22px;
    border-radius: var(--rv-radius-full);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.rv-btn-primary-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(165, 0, 100, 0.4);
}

.rv-btn-zalo-compact {
    background: #0284c7;
    color: #ffffff !important;
    padding: 12px 22px;
    border-radius: var(--rv-radius-full);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.rv-btn-zalo-compact:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

/* ==================== MODAL POPUP NHẬN TIỀN ==================== */
.rv-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.rv-modal-backdrop.open {
    display: flex;
}

.rv-modal-box {
    background: #ffffff;
    border-radius: var(--rv-radius-lg);
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 22px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalIn 0.2s ease;
    box-sizing: border-box;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.rv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    gap: 10px;
}

.rv-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rv-dark);
    margin: 0 0 2px 0;
}

.rv-modal-header p {
    font-size: 0.78rem;
    color: var(--rv-muted);
    margin: 0;
}

.rv-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.rv-modal-summary {
    background: #fdfafc;
    border: 1px solid var(--rv-primary-border);
    border-radius: var(--rv-radius-md);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
    box-sizing: border-box;
}

.sum-label {
    font-size: 0.74rem;
    color: var(--rv-muted);
}

.sum-wallet {
    font-size: 0.86rem;
    color: var(--rv-primary);
}

.sum-amount {
    font-size: 1.05rem;
    color: var(--rv-green);
}

.rv-form-group {
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.rv-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 5px;
}

.rv-form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--rv-radius-sm);
    font-size: 0.86rem;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.rv-form-input:focus {
    border-color: var(--rv-primary);
    box-shadow: 0 0 0 2px var(--rv-primary-soft);
}

.modal-form-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== MOBILE FLOATING STICKY BAR ==================== */
.rv-mobile-sticky-bar {
    display: none;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS: IPAD, TABLET & MOBILE
   ============================================================ */

/* 1. TABLET & IPAD (768px -> 1024px) */
@media (max-width: 1024px) {
    .rv-hero-clean {
        padding: 36px 0 28px 0;
    }

    .rv-hero-flex {
        grid-template-columns: 100%;
        gap: 28px;
    }

    .rv-hero-info {
        text-align: center;
        max-width: 620px;
        margin: 0 auto;
    }

    .rv-mini-tag {
        margin-left: auto;
        margin-right: auto;
    }

    .rv-core-features {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: left;
    }

    .rv-live-ticker-box {
        max-width: 100%;
        margin: 0 auto;
    }

    .rv-hero-tool {
        max-width: 480px;
        margin: 0 auto;
    }

    .rv-wallets-matrix {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .rv-trust-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .rv-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 26px 24px;
        gap: 18px;
    }

    .cta-btns {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .rv-btn-primary-compact,
    .rv-btn-zalo-compact {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* 2. TABLET DƯỚI 900px */
@media (max-width: 900px) {
    .rv-steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rv-step-card {
        padding: 18px;
    }
}

/* 3. MOBILE CHUẨN (max-width: 768px) */
@media (max-width: 768px) {
    .rv-page-wrapper {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 12px));
    }

    .rv-section {
        padding: 36px 0;
    }

    .rv-section-head {
        margin-bottom: 22px;
    }

    .rv-core-feat-item {
        padding: 9px 12px;
        gap: 10px;
    }

    .rv-core-feat-item .feat-icon {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    /* 4 cột hàng trên + 3 cột hàng dưới cho nút số tiền nhanh */
    .rv-quick-amounts-bar {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .rv-quick-amounts-bar button:last-child {
        grid-column: span 2;
    }

    /* Mobile Sticky Bar */
    .rv-mobile-sticky-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)) 16px;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        z-index: 1000;
        box-sizing: border-box;
    }

    .rv-mobile-bar-title {
        font-size: 0.82rem;
        font-weight: 800;
        color: var(--rv-dark);
    }

    .rv-mobile-bar-sub {
        font-size: 0.7rem;
        color: var(--rv-green);
        font-weight: 600;
    }

    .rv-mobile-bar-actions {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
    }

    .rv-mobile-bar-btn {
        padding: 8px 14px;
        border-radius: var(--rv-radius-full);
        font-size: 0.82rem;
        font-weight: 700;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        min-height: 38px;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .rv-mobile-bar-btn.btn-calc {
        background: #f1f5f9;
        color: #334155;
    }

    .rv-mobile-bar-btn.btn-zalo {
        background: var(--rv-primary);
        color: #ffffff;
    }
}

/* 4. MOBILE NHỎ (max-width: 576px, iPhone, Android...) */
@media (max-width: 576px) {
    .rv-hero-clean {
        padding: 22px 0 18px 0;
    }

    .rv-main-title {
        font-size: 1.55rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .rv-main-subtitle {
        font-size: 0.88rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .rv-calc-card-unified {
        padding: 16px 14px;
        border-radius: var(--rv-radius-md);
    }

    .rv-calc-title {
        font-size: 1.1rem;
    }

    /* 2 cột chip chọn ví trên mobile để chữ không bị nén */
    .rv-wallet-chips-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .rv-wallet-chip {
        padding: 6px 8px;
        min-height: 38px;
    }

    .chip-name {
        font-size: 0.78rem;
    }

    .chip-fee {
        font-size: 0.68rem;
        padding: 1px 3px;
    }

    .rv-amount-showcase {
        padding: 8px 12px;
    }

    .rv-amount-showcase .val {
        font-size: 1.35rem;
    }

    /* Bảng quyết toán */
    .rv-calc-result-box {
        padding: 12px 14px;
    }

    .result-row.total-highlight {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .amount-receive {
        font-size: 1.45rem;
        align-self: flex-end;
    }

    .rv-btn-action-primary {
        padding: 12px 14px;
        font-size: 0.88rem;
        min-height: 44px;
    }

    .rv-btn-action-zalo {
        padding: 10px 14px;
        font-size: 0.84rem;
        min-height: 40px;
    }

    /* Danh mục ví 1 cột chống chèn ép */
    .rv-wallets-matrix {
        grid-template-columns: 100%;
        gap: 8px;
    }

    .rv-wallet-box {
        padding: 12px 14px;
    }

    .wallet-icon-circle {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .wallet-name {
        font-size: 0.88rem;
    }

    .wallet-limit {
        font-size: 0.76rem;
    }

    /* Dải tin cậy 2 cột mini */
    .rv-trust-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 8px;
        padding: 14px 12px;
    }

    .trust-item {
        gap: 8px;
    }

    .trust-item i {
        font-size: 1.15rem;
    }

    .trust-item h4 {
        font-size: 0.82rem;
    }

    .trust-item p {
        font-size: 0.7rem;
    }

    /* FAQ */
    .rv-faq-q {
        padding: 12px 14px;
        font-size: 0.86rem;
    }

    .rv-faq-a {
        padding: 0 14px 12px 14px;
        font-size: 0.82rem;
    }

    /* CTA Banner cuối */
    .rv-cta-banner {
        padding: 22px 16px;
        border-radius: var(--rv-radius-md);
    }

    .rv-cta-banner h3 {
        font-size: 1.15rem;
    }

    .rv-cta-banner p {
        font-size: 0.82rem;
    }

    .rv-btn-primary-compact,
    .rv-btn-zalo-compact {
        padding: 10px 14px;
        font-size: 0.84rem;
    }
}

/* 5. MÀN HÌNH SIÊU NHỎ (<= 360px) */
@media (max-width: 360px) {
    .rv-main-title {
        font-size: 1.35rem;
    }

    .rv-trust-strip {
        grid-template-columns: 100%;
        gap: 8px;
    }

    .amount-receive {
        font-size: 1.25rem;
    }

    .rv-mobile-bar-title {
        font-size: 0.74rem;
    }

    .rv-mobile-bar-btn {
        padding: 6px 10px;
        font-size: 0.74rem;
    }
}
