:root {
    --brand-navy: #001a72;
    /* As requested */
    --text-gold: #f8b500;
    --text-teal: #00af66;
    --white: #ffffff;
}

.wallet-dashboard {
    display: flex;
    background: var(--brand-navy);
    border-radius: 24px;
    color: var(--white);
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    /* Dotted background pattern */
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.wallet-main {
    flex: 3;
    padding: 30px 40px;
}

.wallet-header {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--text-teal);
    border-radius: 50%;
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 700;
}

.balance-row {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
}

.currency {
    font-size: 24px;
    margin-top: 10px;
    opacity: 0.7;
}

.balance-value {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.decimal {
    font-size: 24px;
    margin-top: 20px;
    opacity: 0.7;
}

.security-msg {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
}

.stat-box span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    opacity: 0.6;
    margin-bottom: 5px;
}

.stat-box strong {
    font-size: 18px;
}

.text-teal {
    color: var(--text-teal);
}

.text-gold {
    color: var(--text-gold);
}

/* Sidebar */
.wallet-sidebar {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn {
    width: 100%;
    border: none;
    background: transparent;
    padding: 25px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.bg-teal {
    background: rgba(0, 175, 102, 0.2);
    color: var(--text-teal);
}

.bg-blue {
    background: rgba(255, 255, 255, 0.1);
}

.bg-gold {
    background: rgba(248, 181, 0, 0.2);
    color: var(--text-gold);
}

.title {
    font-weight: 700;
    font-size: 15px;
}

.sub {
    font-size: 12px;
    opacity: 0.6;
}

/* Responsive rules */
@media (max-width: 900px) {
    .wallet-dashboard {
        flex-direction: column;
        border-radius: 16px;
    }

    .wallet-main {
        padding: 20px;
        order: 1;
    }

    .wallet-sidebar {
        order: 2;
        display: flex;
        gap: 10px;
        padding: 12px;
        background: rgba(0, 0, 0, 0.12);
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        overflow-x: auto;
    }

    .action-btn {
        flex: 1 0 auto;
        padding: 12px 14px;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        min-width: 120px;
        justify-content: center;
        text-align: center;
    }

    .action-btn .btn-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .icon-circle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .balance-value {
        font-size: 58px;
    }

    .currency,
    .decimal {
        font-size: 18px;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .wallet-dashboard {
        padding: 10px;
    }

    .wallet-main {
        padding: 16px;
    }

    .wallet-header {
        justify-content: center;
        font-size: 12px;
    }

    .balance-row {
        justify-content: center;
        align-items: baseline;
    }

    .balance-value {
        font-size: 58px;
    }

    .currency,
    .decimal {
        font-size: 16px;
    }

    .action-btn {
        min-width: 100px;
        padding: 10px 12px;
    }

    .stat-box strong {
        font-size: 16px;
    }
}


.how-it-works-wrapper {
    padding: 20px 20px;
    background: var(--bg-main);
    max-width: 1100px;
    margin: 20px auto;
    border-radius: 24px;
}

.works-header {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.1;
}

.works-header h2 {
    color: var(--brand-navy);
    font-size: 2rem;
    margin-bottom: 10px;
}

.works-header p {
    color: var(--text-muted);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.work-step {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.work-step:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 175, 102, 0.1);
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.work-step h3 {
    color: var(--brand-navy);
    margin-bottom: 10px;
    font-size: 1rem;
}

.work-step p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.85rem;
}

/* Badges */
.works-footer-badges {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.badge {
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--brand-navy);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive tweaks for How It Works */
@media (max-width: 900px) {
    .how-it-works-wrapper {
        padding: 18px 16px;
        border-radius: 16px;
        margin: 18px 12px;
    }

    .works-header h2 {
        font-size: 1.4rem;
    }

    .work-step {
        padding: 18px;
        border-radius: 14px;
    }

    .step-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .badge {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .how-it-works-wrapper {
        padding: 14px 12px;
        margin: 12px 8px;
    }

    .works-header h2 {
        font-size: 1.1rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .work-step {
        padding: 14px;
        border-radius: 12px;
    }

    .work-step h3 {
        font-size: 0.98rem;
    }

    .work-step p {
        font-size: 0.82rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .works-footer-badges {
        gap: 10px;
    }
}


.quick-add-container {
    width: 100%;
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.section-title {
    color: var(--brand-navy);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Grid for the 4 price tiles */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.amount-tile {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-main);
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.amount-tile.selected {
    border-color: var(--brand-navy);
    background: rgba(0, 26, 114, 0.05);
    color: var(--brand-navy);
}

/* Full-width action buttons */
.btn-primary {
    background: var(--brand-navy);
    color: var(--white);
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
}

.btn-secondary {
    background: var(--brand-teal);
    color: var(--white);
    padding: 15px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.balance-info-box {
    margin-top: 20px;
    background: var(--bg-main);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}




.wallet-history-container {
    background: var(--white);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    cursor: pointer;
}

.filter-btn.active {
    background: var(--brand-navy);
    color: var(--white);
}

.activity-row {
    display: grid;
    grid-template-columns: 50px 2fr 120px 120px 120px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    transition: 0.2s;
}

.activity-row:hover {
    background: #f8fafc;
}

.act-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-completed {
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.view-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: 0.2s;
}

.activity-row:hover .view-btn {
    opacity: 1;
}

/* Modal Styling */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    width: 92%;
    max-width: 520px;
    margin: 0 16px;
    padding: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.35);
}

.modal-content .modal-header {
    padding: 22px 24px;
    background: linear-gradient(135deg, var(--brand-navy), #002a8f);
    color: white;
    display: flex;
    gap: 16px;
    align-items: center;
}

.modal-content .modal-header .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.6rem;
}

.modal-content .modal-body {
    padding: 18px 20px;
    background: linear-gradient(to bottom, #ffffff, #fbfdff);
}

.modal-content .modal-footer {
    padding: 14px 18px;
    background: var(--white);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border);
}

.modal-content h3 {
    margin: 0;
    font-size: 1rem
}

.modal-content p {
    margin: 0;
    color: var(--text-muted)
}

/* Add Funds modal styles */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 8, 30, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.modal-card {
    background: var(--white);
    width: 100%;
    height: 86vh;
    overflow-y: auto;
    max-width: 480px;
    padding: 22px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.modal-card .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.modal-card .close-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.balance-sub {
    color: var(--text-muted);
    margin: 6px 0 12px;
}

.amount-display {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-navy);
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    text-align: center;
}

/* Custom numeric amount input inside Add Funds modal */
#add-amount-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    outline: none;
    box-sizing: border-box;
    color: var(--brand-navy);
    background: #fff;
    transition: box-shadow .12s ease, border-color .12s ease;
}

#add-amount-input:focus {
    border-color: var(--brand-navy);
    box-shadow: 0 6px 18px rgba(0,26,114,0.08);
}

/* Remove up/down arrows on numeric inputs for WebKit/Blink */
#add-amount-input::-webkit-outer-spin-button,
#add-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#add-amount-input::placeholder {
    color: var(--text-muted);
    font-weight: 700;
}

.quick-select {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.quick-select button {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
}

.quick-select button.active {
    border-color: var(--brand-navy);
    background: var(--brand-navy);
    color: var(--white);
}

.section-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 10px 0;
    font-weight: 700;
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .15s ease;
    margin-bottom: 10px;
}

.pay-option .pay-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(0, 0, 0, 0.03);
    color: var(--brand-navy);
}

.pay-option .pay-text p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.pay-option .pay-text strong {
    font-size: 0.85rem;
    color: var(--brand-navy);
    font-weight: 700;
}

.pay-option input {
    margin-left: auto;
}

.pay-option.active {
    border-color: var(--text-teal);
    background: rgba(0, 175, 102, 0.04);
    box-shadow: 0 6px 18px rgba(0, 175, 102, 0.06);
}

.pay-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.04);
}

.btn-submit {
    width: 100%;
    background: var(--brand-navy);
    color: var(--white);
    padding: 14px;
    border-radius: 10px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    margin-top: 12px;
}

.footer-note {
    margin: 8px auto;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* slightly tweak modal on small screens */
@media (max-width:480px) {
    .modal-card {
        padding: 16px;
        border-radius: 12px;
    }

    .quick-select {
        grid-template-columns: repeat(3, 1fr);
    }

    .amount-display {
        font-size: 2rem;
    }

    #add-amount-input {
        font-size: 1.1rem;
        padding: 10px 12px;
    }
}

/* Dynamic Icon Colors */
.bg-teal {
    background: rgba(0, 175, 102, 0.1);
    color: var(--brand-teal);
}

.badge-credited {
    background: rgba(59, 130, 246, 0.1);
    color: var(--sky-blue);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.badge-processing {
    background: rgba(248, 181, 0, 0.1);
    color: var(--text-gold);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.badge-completed {
    background: rgba(0, 175, 102, 0.1);
    color: var(--brand-teal);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.bg-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* Text success/danger */
.text-success {
    color: var(--brand-teal);
    font-weight: 700;
}

.text-danger {
    color: #dc2626;
    font-weight: 700;
}

/* Row alignment */
.activity-row {
    display: grid;
    grid-template-columns: 50px 2fr 120px 100px 100px;
    gap: 15px;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: 0.2s;
}

/* Make filter row horizontally scrollable on small screens and style pills */
.history-filters {
    overflow-x: auto;
    padding-bottom: 6px;
}

.history-filters::-webkit-scrollbar {
    height: 6px;
}

.history-filters::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 6px;
}

.filter-btn {
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
}

/* Mobile / small screens: stack activity rows like cards (Opay-like) */
@media (max-width: 700px) {
    .history-filters {
        gap: 8px;
    }

    .activity-table {
        display: grid;
        gap: 12px;
    }

    .activity-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: var(--white);
        box-shadow: 0 6px 20px rgba(2, 6, 23, 0.04);
    }

    .act-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
        flex: 0 0 52px;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .act-info {
        flex: 1 1 auto;
        min-width: 0;
    }

    .act-info .title {
        font-weight: 700;
        margin-bottom: 6px;
    }

    .act-info .sub {
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    .act-status {
        flex: 0 0 auto;
    }

    .act-amount {
        flex: 0 0 auto;
        font-weight: 800;
    }

    .view-btn {
        display: inline-flex;
        padding: 8px 10px;
        border-radius: 10px;
    }
}

@media (max-width: 420px) {
    .activity-row {
        flex-direction: column;
        align-items: stretch;
    }

    .act-info {
        margin-top: 6px;
    }

    .act-status {
        margin-top: 8px;
    }

    .act-amount {
        margin-top: 8px;
        font-size: 1rem;
    }

    .view-btn {
        width: 100%;
        margin-top: 10px;
    }
}



