:root {
    /* Primary Colors - Based on the Green Signup button and Fintech trust colors */
    --primary-color: #095548; /* Vibrant Nigerian Green */
    --primary-dark: #008545;
    --primary-light: #E6F7EF;
    --primary-color-light-2: #09554899;
    
    /* Accent & Status Colors */
    --accent-color: #F9A825; /* Yellow/Gold for discounts/commissions */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    
    /* Neutrals - Text and Backgrounds */
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280; /* Muted grey for subtitles */
    --text-light: #9CA3AF;
    --text-white: #f6f6f6;
    --text-muted:#6c757d;
    --bg-body: #d2d2d2; /* Light grey background */
    --bg-white: #FFFFFF;
    --bg-app-body: #edededf9;

    /* Bgs */
    --primary-color-light: #0955484f;
    
    /* Layout Constraints for Mobile-First Web */
    --max-width: 480px; /* Simulates a mobile screen on web */
    
    /* Typography */
    --font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* The container that acts like a mobile phone screen */
.app-container {
    width: 100%;
    max-width: var(--max-width);
    background-color: var(--bg-app-body);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 14px;
    border-radius: var(--border-radius);
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}
.nav-header-link{
    text-decoration: none;
}
.nav-header{
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 4px 15px;
    width: fit-content;
    border-radius: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-header svg{
    margin: 0;
    padding: 0;
    margin-right: 10px;
}
.nav-header p{
    margin: 0;
    padding: 0;
    font-size: 0.7em;
}

/* Input Styles */
.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #E5E7EB;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-color) !important;
    outline: none;
    /* box-shadow: 0 0 0 3px var(--primary-light); */
}

input::placeholder{
    color: var(--text-light) !important;
    opacity: 0.6;
}
.settings-container{
    margin-bottom: 120px;
}

.settings-container a,
.profile-nav-container a{
    text-decoration: none;
    color: inherit;
}
.settings-container .rounded-circle{
    flex-shrink: 0 !important;
}

/* --- Data Purchase Page Styles --- */

/* 1. Network Selector Containers */
.network-selector-wrapper {
    margin-top: 60px;
    position: relative;
    margin-bottom: 20px;
}

.network-bg-container {
    background-color: var(--primary-color);
    border-radius: 20px;
    height: 100px;
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    z-index: 0;
}

.network-selector-title {    
    text-align: center;
    color: white;
    font-weight: 600;
}

.network-main-container {
    background-color: #F9FAFB; /* Off-white */
    border-radius: 20px;
    position: relative;
    z-index: 2;
    margin-top: 40px; /* Reveal green bottom */
    padding: 20px 15px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 2. Network Items */
.network-item {
    background: var(--primary-color-light);
    border-radius: 50%; /* Fully rounded */
    padding: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
}

.network-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.network-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(9, 85, 72, 0.2);
    border-width: 2px;
}

/* 3. Input Section Container */
.input-section-container {
    background-color: #F9FAFB;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

/* 5. Plan Cards */
.plan-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-white);
    
}
.plan-card .plan-cost{
    color: var(--text-muted);
    text-align: center;
}

.plan-card .plan-validity-pill {
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 8px;
    text-align: center;
}

.plan-card.active {
    /* border: 2px solid var(--primary-color);
    background-color: var(--primary-light); */
    /*  */
    background-color: var(--primary-color);
    color: var(--text-white);
}

.plan-card.active .plan-cost{
    color: #dededef6;
}

.plan-card.active .plan-validity-pill{
    background-color: var(--bg-white);
    color: var(--text-primary);
}

.amount-card h6{
    font-weight: 0.7em;
}

.amount-card.active h6{
    color: var(--text-white);
}



/* Modal Styles */

.modal-content {
    border-radius: 20px;
    border: none;
    background-color: var(--bg-app-body) !important;
}

#pinModal .modal-content,
#feedbackModal .modal-content{
    background-color: var(--bg-white) !important;
}
.modal-content .modal-title{
    font-size: 0.9em;
    font-weight: 600;
}

/* Summary Warning */
.summary-warning {
    background-color: #FFF3E0; /* Peach variant */
    border-radius: 12px;
    padding: 15px;
    font-size: 0.8em;
    font-weight: 600;
    color: #D84315;
    line-height: 1.5;
    margin-top: 10px;
    text-align: justify;
}

/* Beneficiary Section */
.beneficiary-container {
    background-color: rgba(9, 85, 72, 0.05); /* Transparent primary */
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.beneficiary-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

/* PIN Input Styles */
.pin-input-container {
    background-color: rgba(9, 85, 72, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 15px;
}

.pin-input {
    width: 50px !important;
    height: 50px !important;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px !important; /* Rounded rectangle */
    border: 1px solid #E5E7EB !important;
}

.pin-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px var(--primary-light) !important;
}

/* Toggle Switch Size */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input {
    width: 3em;
    height: 1.5em;
}


/* === Transaction History Styles === */

/* List Item Card */
.txn-item {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
    transition: transform 0.1s;
    cursor: pointer;
}
.txn-item:active {
    transform: scale(0.99);
    background: #fafafa;
}

.txn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}
.txn-icon.debit { background: rgba(220, 53, 69, 0.1); color: var(--danger); }
.txn-icon.credit { background: rgba(40, 167, 69, 0.1); color: var(--success); }

.txn-body {
    flex-grow: 1;
    min-width: 0;
}
.txn-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.txn-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.txn-right {
    text-align: right;
    margin-left: 10px;
}
.txn-amount {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}
.txn-amount.debit { color: var(--danger); }
.txn-amount.credit { color: var(--success); }

.txn-badge {
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: capitalize;
    font-weight: 600;
}
.txn-badge.success { background: #e6f7ef; color: #28a745; }
.txn-badge.failed { background: #f8d7da; color: #721c24; }
.txn-badge.pending { background: #fff3cd; color: #856404; }

/* Filter Modal */
.filter-modal-body {
    padding: 20px;
}
.filter-group-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.filter-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 5px;
}
.filter-option:hover { background: var(--bg-app-body); }
.filter-option input { margin-right: 10px; accent-color: var(--primary-color); }

/* Receipt Image in Modal */
.receipt-preview {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Header */
.txn-header {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.txn-header h5 { color: white; }
.txn-header .btn { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); color: white; }
.txn-header .btn:hover { background: white; color: var(--primary); }

/* Filter Pills */
.filter-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.filter-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid var(--bg-app-body);
    background-color: var(--primary-color-light-2);
    color: #f6f6f6;
    transition: all 0.2s;
}

.filter-pill:hover {
    border-color: var(--primary-color);
}

.filter-pill.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary);
}

/* List Loading Indicator */
.scroll-loader {
    text-align: center;
    padding: 20px;
    display: none;
}

/* Bottom nav */
.bottom-nav .active-nav{
    color: var(--primary-color);
}

/* Requirement Modal & Block Buttons */
.req-modal-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.req-modal-icon i { font-size: 32px; color: var(--danger); }
.req-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    text-align: left;
}
.req-list-item i { color: var(--warning); font-size: 20px; margin-top: 2px; }
.block-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    transition: opacity 0.2s;
}
.block-btn-primary { background-color: var(--primary-color); color: white; }
.block-btn-secondary { background-color: #f3f4f6; color: var(--text-secondary); }
.block-btn:hover { opacity: 0.9; }

/* Wallet Funding Page */
.wallet-bank-card {
    border-radius: 20px;
    padding: 24px;
    color: white;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s;
}
.wallet-bank-card:hover { transform: translateY(-2px); }
.wallet-bank-logo {
    width: 50px; height: 50px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.wallet-bank-logo img { width: 100%; height: 100%; object-fit: contain; }
.wallet-bank-info h5 { margin: 0; font-weight: 700; font-size: 18px; }
.wallet-bank-info div { display: flex; justify-content: space-between; gap: 15px; font-size: 14px; opacity: 0.9; }

/* KYC Success Modal Concentric Circles */
.kyc-success-icon {
    width: 100px; height: 100px; margin: 0 auto;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.kyc-success-icon .c1 { position: absolute; width: 100px; height: 100px; background-color: rgba(52, 211, 153, 0.3); border-radius: 50%; }
.kyc-success-icon .c2 { position: absolute; width: 76px; height: 76px; background-color: rgba(16, 185, 129, 0.5); border-radius: 50%; }
.kyc-success-icon .c3 { position: absolute; width: 52px; height: 52px; background-color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(9, 85, 72, 0.3); }
.kyc-success-icon i { color: white; font-size: 28px; z-index: 2; }