@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0a4dbf;
    --primary-light: #0056e0;
    --primary-dark: #083a91;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --border: #e2e8f0;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --sidebar-width: 280px;
}

/* PREMIUM BACKGROUND */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #f8fafc;
}

/* Animations removed for cleaner look */

/* ANIMATIONS */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

.animate-float {
    animation: float 4s infinite ease-in-out;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f5f9ff;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* LANDING PAGE HEADER */
header.landing-header {
    background: #ffffff;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

header.landing-header h1 {
    color: #0a4dbf;
    font-size: 22px;
    font-weight: 800;
}

.landing-nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.landing-nav .btn {
    padding: 10px 18px;
    background: #0a4dbf;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

/* HERO SECTION */
.hero-section {
    padding: 100px 8%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 60px;
    background: #ffffff;
    min-height: 70vh;
}

.hero-section h2 {
    font-size: 42px;
    color: #0a4dbf;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-section p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #4b5563;
}

.hero-section button,
.hero-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    background: #0a4dbf;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    margin-right: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.hero-section .outline {
    background: transparent;
    border: 2px solid #0a4dbf;
    color: #0a4dbf;
}

.video-mockup {
    background: transparent;
    border-radius: 40px;
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: auto;
    aspect-ratio: 9 / 19.5;
    background: #000;
    border: 12px solid #2d3748;
    border-radius: 36px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 18px;
    background: #2d3748;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-frame .fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SECTIONS */
section.landing-section {
    padding: 70px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 30px;
    color: #0a4dbf;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.landing-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.landing-card:hover {
    transform: translateY(-8px);
}

.landing-card h4 {
    margin: 15px 0;
    color: #0a4dbf;
    font-size: 1.1rem;
    font-weight: 700;
}

/* WHY CHOOSE US */
.why-grid {
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* PRICING TABLE ON HOME */
.home-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.price-card {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: 0.3s;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.network-logo {
    width: 45px;
    height: 45px;
    margin-bottom: 5px;
}

.network-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.price-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.price-card.mtn::after {
    background: #eab308;
}

.price-card.airtel::after {
    background: #ef4444;
}

.price-card.glo::after {
    background: #22c55e;
}

.price-card.mobile9::after {
    background: #84cc16;
}

.price-network {
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}

.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.price-value span {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 600;
}

/* PROFESSIONAL FOOTER */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 8% 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .site-footer {
        padding: 60px 5% 40px;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media(max-width: 900px) {
    .landing-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: none !important;
        /* Hide by default on mobile */
        border-bottom: 2px solid var(--primary);
    }

    .landing-nav.active {
        display: flex !important;
    }

    .landing-nav a {
        margin: 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 5%;
        min-height: auto;
    }

    .hero-section h2 {
        font-size: 2.2rem !important;
        margin-bottom: 1rem;
    }

    .hero-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    header.landing-header {
        padding: 15px 5%;
    }

    .mobile-toggle {
        display: block !important;
    }

    .video-mockup {
        max-width: 240px;
        margin: 0 auto;
    }

    .phone-frame {
        width: 100%;
        border-width: 8px;
    }
}


/* =========================================
   DASHBOARD STYLES (PRESERVED & INTEGRATED)
   ========================================= */

.dashboard-layout {
    min-height: 100vh;
    width: 100%;
    background: #f8fafc;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: 0.3s ease;
}

/* SIDEBAR NAVIGATION */
.sidebar .logo {
    display: block;
    margin: 2rem 1.5rem;
    font-weight: 800;
    color: var(--dark);
    font-size: 1.4rem;
}

.sidebar .logo span {
    color: var(--primary);
}

.nav-menu {
    list-style: none;
    padding: 0 1rem;
    margin-top: 1rem;
}

.nav-item {
    margin-bottom: 0.4rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: var(--gray);
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background: #eff6ff;
    color: var(--primary);
}

.nav-link ion-icon {
    font-size: 1.35rem;
    --ionicon-stroke-width: 40px;
}

.nav-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.main-content {
    margin-left: var(--sidebar-width);
    width: auto;
    padding: 2rem 1rem;
    min-height: 100vh;
}

.page-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* HEADER / GREETING */
.greeting-section {
    margin-bottom: 1rem;
}

.greeting-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-h1 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}

.welcome-p {
    color: var(--gray);
    font-size: 0.75rem;
    margin-top: -2px;
}

.profile-pill-desktop {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.profile-pill-info {
    text-align: right;
}

.profile-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.profile-role {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 800;
}

.profile-icon {
    font-size: 2.4rem;
    color: var(--primary);
}

/* WALLET CARD */
/* COMPACT WALLET CSS (BLUE THEME) */
.wallet-container-compact {
    margin-bottom: 2rem;
}

.wallet-card-blue {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    padding: 0.7rem 1rem;
    border-radius: 14px;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);
    margin-bottom: 1rem;
}

.wallet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.balance-label-group {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 500;
}

.balance-label-group ion-icon {
    font-size: 1.1rem;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: 0.2s;
}

.toggle-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.toggle-btn ion-icon {
    font-size: 1.2rem !important;
}

.wallet-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
}

.balance-amount-compact {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: white;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .balance-amount-compact {
        font-size: 1.15rem;
        /* Down from 1.25rem */
    }

    .wallet-card-blue {
        padding: 0.6rem 0.8rem;
        /* Tighter padding */
    }

    .account-pill-mini {
        padding: 4px 8px;
        border-radius: 8px;
        max-width: 140px;
        /* Force-limit width to prevent overlap */
    }

    .account-pill-mini .acc-num {
        font-size: 0.8rem;
    }

    .account-pill-mini .bank-label {
        font-size: 0.5rem;
    }
}

.wallet-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 0 5px;
}

.action-item {
    text-align: center;
    cursor: pointer;
}

.action-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.3rem;
    color: var(--primary);
    transition: 0.2s;
}

.action-item:hover .action-icon-circle {
    background: var(--primary);
    color: white;
}

.action-item span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark);
}

/* INFO CARDS */
.info-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 22px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    max-width: 100%;
    box-shadow: var(--shadow);
}

.reseller-tier-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.3);
}

.info-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-icon-box {
    background: #fff7ed;
    color: #f59e0b;
    padding: 0.85rem;
    border-radius: 14px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
}

.info-title-group h3 {
    font-size: 1.15rem;
    color: #92400e;
    margin: 0;
    font-weight: 800;
}

.info-title-group p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.info-stat {
    background: white;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
}

.tier-badge {
    color: #f59e0b;
}

.discount-percent {
    color: #10b981;
}

.commission-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
}

.commission-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 5px;
}

.btn-withdraw {
    background: var(--dark);
    color: white;
    border: none;
    padding: 0.8rem 1.4rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-withdraw:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.commission-stats {
    display: flex;
    gap: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.c-stat span {
    font-size: 0.75rem;
    color: var(--gray);
    font-weight: 600;
}

.c-stat div {
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark);
}

.v-up {
    color: #16a34a !important;
}

/* KYC ALERT */
.kyc-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 1.25rem;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.kyc-alert:hover {
    border-color: #f59e0b;
    background: #fff7ed;
}

.kyc-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kyc-icon {
    font-size: 2rem;
    color: #f59e0b;
}

.kyc-content h4 {
    margin: 0;
    color: #92400e;
    font-weight: 800;
}

.kyc-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #b45309;
}

.btn-verify {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

/* SERVICES GRID */
.services-section h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.service-item {
    background: transparent;
    padding: 0.75rem 0.25rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.service-item:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.03);
}

.service-item span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.s-power {
    background: #fff7ed;
    color: #f59e0b;
}

.s-cable {
    background: #f5f3ff;
    color: #8b5cf6;
}

.s-verify {
    background: #f0fdfa;
    color: #0d9488;
}

.s-data {
    background: #ecfdf5;
    color: #10b981;
}

.s-airtime {
    background: #eff6ff;
    color: #3b82f6;
}

/* TRANSACTIONS */
.recent-tx-section {
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 800;
}

.view-all {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.tx-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tx-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.9rem;
    background: #feffff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: 0.2s;
}

.tx-item:hover {
    background: #f8fafc;
    border-color: var(--border);
}

.tx-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tx-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.tx-info h5 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--dark);
}

.tx-info span {
    font-size: 0.7rem;
    color: var(--gray);
    font-weight: 600;
}

.tx-amount {
    font-weight: 800;
    font-size: 0.95rem;
}

.tx-success {
    color: #16a34a;
}

.tx-failed {
    color: #ef4444;
}

.tx-pending {
    color: #f59e0b;
}

/* Service-specific icon backgrounds */
.bg-airtime {
    background: #eff6ff;
    color: #2563eb;
}

.bg-data {
    background: #ecfdf5;
    color: #059669;
}

.bg-power {
    background: #fffbeb;
    color: #d97706;
}

.bg-cable {
    background: #fef2f2;
    color: #dc2626;
}

.bg-education {
    background: #f5f3ff;
    color: #7c3aed;
}

.bg-sms {
    background: #fdf2f8;
    color: #db2777;
}

.bg-funding {
    background: #f0fdf4;
    color: #16a34a;
}

.bg-transfer {
    background: #fdf4ff;
    color: #c026d3;
}

.empty-tx-msg {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.9rem;
}

/* SERVICE PAGES & FORMS */
.service-card {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 1.5rem auto;
}

/* Ensure back-link aligns with the centered card */
.page-container>.back-link {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .service-card {
        padding: 1.25rem;
        border-radius: 20px;
        margin: 0.5rem auto;
    }
}

.service-card h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

@media (max-width: 768px) {
    .service-card h1 {
        font-size: 1.25rem;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
}

.input-field,
.select-field {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    font-family: inherit;
    transition: 0.3s;
    background: #f8fafc;
}

.input-field:focus,
.select-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    background: white;
}

.info-box {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

.back-link ion-icon {
    font-size: 1.2rem;
}

/* NETWORK GRID COMPONENTS */
.network-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.network-option {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.85rem;
}

.network-option:hover {
    border-color: var(--primary);
    background: var(--white);
}

/* Network Selections */
input[type="radio"]:checked+.network-option {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Brand specific overlays can be added in page styles if needed */

/* ALERTS & MODALS */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    backdrop-filter: blur(8px);
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 28px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-modal-btn:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.modal-input {
    width: 100%;
    padding: 1.1rem;
    border-radius: 14px;
    border: 2px solid var(--border);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.modal-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.modal-submit {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.1rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.modal-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(30, 64, 175, 0.3);
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.25rem;
        padding-top: 90px;
        padding-bottom: 90px;
        /* Space for bottom nav */
    }

    .mobile-header {
        display: flex;
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        background: var(--white);
        padding: 0.8rem 1.25rem;
        border-bottom: 3px solid var(--primary);
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }

    .mobile-header .logo {
        flex: 1;
        font-size: 1.1rem;
        font-weight: 800;
        color: var(--primary);
        text-transform: uppercase;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
        background: var(--light);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .logout-mobile-btn {
        width: 44px;
        height: 44px;
        background: #fee2e2;
        color: #ef4444;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .page-container {
        padding: 0;
    }

    /* Sidebar Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        animation: fadeIn 0.3s;
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Wallet Card Mobile Fix */
    .wallet-card {
        padding: 1.5rem !important;
    }

    .wallet-top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .balance-info {
        width: 100%;
    }

    .account-badge-wrapper {
        width: 100%;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.2);
    }
}

/* BOTTOM NAVIGATION */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border);
    padding: 0 1rem;
    z-index: 2000;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
    .bottom-nav {
        display: flex;
    }
}

.bottom-item {
    text-decoration: none;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: 0.3s;
    flex: 1;
}

.bottom-item ion-icon {
    font-size: 1.6rem;
}

.bottom-item span {
    font-size: 0.75rem;
    font-weight: 700;
}

.bottom-item.active {
    color: var(--primary);
}

.bottom-item.active ion-icon {
    transform: translateY(-2px);
}

/* CUSTOM TABLES */
.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
}

.custom-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border);
}

.custom-table td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.custom-table tr:hover td {
    background-color: #f9fafb;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.table-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

@media (max-width: 768px) {
    .custom-table thead {
        display: none;
    }

    .custom-table tr {
        display: block;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
    }

    .custom-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
    }

    .custom-table td::before {
        content: attr(data-label);
        font-weight: 800;
        color: var(--gray);
        font-size: 0.8rem;
        text-transform: uppercase;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* DASHBOARD FOOTER (Luxury Blue White Redesign) */
.dashboard-footer {
    margin-top: 4rem;
    padding: 2.5rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #ffffff;
    color: var(--dark);
}

.footer-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--dark);
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.footer-col p {
    color: var(--gray);
    font-size: 0.72rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-links-list {
    list-style: none;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 0.6rem;
}

.footer-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    transition: 0.2s;
    display: flex;
    align-items: center;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.72rem;
    margin-bottom: 0.6rem;
    text-decoration: none;
    font-weight: 600;
}

.footer-contact-item ion-icon {
    font-size: 1.1rem;
    color: var(--primary);
}

.footer-bottom-bar {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.65rem;
    color: var(--gray);
    font-weight: 600;
}

.footer-brand-mini {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark);
}

.footer-brand-mini span {
    color: var(--primary);
}

@media (max-width: 991px) {
    .footer-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .dashboard-footer {
        margin-top: 3rem;
        padding: 2rem 1rem 1.5rem;
    }

    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-contact-item,
    .footer-link {
        justify-content: center;
    }

    .footer-col p {
        max-width: 300px;
        margin: 0.5rem auto 1rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

/* LANDING PAGE STATS */
.stats-banner {
    background: var(--primary);
    padding: 4rem 10%;
    color: white;
}

.stats-item {
    text-align: center;
}

.stats-item h4 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.stats-item p {
    opacity: 0.9;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-banner {
        padding: 3rem 1.5rem;
    }

    .stats-item h4 {
        font-size: 2rem;
    }
}

.dashboard-footer .footer-brand span {
    color: var(--primary);
}

/* --- Premium Global Loader --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Light glass effect */
    backdrop-filter: blur(8px);
    /* Glassmorphism */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(226, 232, 240, 0.4);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

.loader-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.5px;
    animation: pulseText 1.5s infinite ease-in-out;
    text-transform: uppercase;
    font-size: 0.85rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Unified Mini Account Card (Screenshot Style) --- */
.account-pill-mini {
    background: #0d1b3e;
    /* Darker navy to match blue card */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Align right as per screenshot */
    gap: 1px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    color: white;
    max-width: fit-content;
    text-align: right;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.account-pill-mini:hover {
    background: #000000;
}

.account-pill-mini .bank-label {
    font-size: 0.55rem;
    /* Tiny secondary label */
    font-weight: 800;
    color: #fbbf24;
    /* Amber yellow for bank name */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-pill-mini .acc-num {
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}

.account-pill-mini .acc-name {
    display: none;
    /* Hide name inside mini-pill to save space, shown in modal */
}