/* ==========================================================================
   WANGARAWA Wi-Fi — Premium Fintech & Digital Connectivity Design System
   Brand Palette:
   - Primary Blue:    #007BFF
   - Dark Navy:       #0B1F3A
   - Soft Background: #F5F8FC
   - Pure White:      #FFFFFF
   ========================================================================== */

:root {
    --wgr-primary: #0666F5;
    --wgr-primary-hover: #0552C8;
    --wgr-primary-soft: rgba(6, 102, 245, 0.10);
    --wgr-deep-blue: #063B9E;
    --wgr-dark: #101B3D;
    --wgr-dark-secondary: #132F54;
    --wgr-bg: #F4F8FD;
    --wgr-card-bg: #FFFFFF;
    --wgr-text-main: #101B3D;
    --wgr-text-muted: #5A6B82;
    --wgr-border: #E5EEF9;
    --wgr-success: #12B76A;
    --wgr-success-soft: rgba(18, 183, 106, 0.12);
    --wgr-orange: #FF7900;
    --wgr-orange-soft: rgba(255, 121, 0, 0.12);
    --wgr-purple: #7C3AED;
    --wgr-purple-soft: rgba(124, 58, 237, 0.12);
    --wgr-warning: #F59E0B;
    --wgr-warning-soft: rgba(245, 158, 11, 0.14);
    --wgr-danger: #EF4444;
    --wgr-danger-soft: rgba(239, 68, 68, 0.12);
    --wgr-info: #0EA5E9;
    --wgr-radius-sm: 10px;
    --wgr-radius-md: 16px;
    --wgr-radius-lg: 22px;
    --wgr-shadow-sm: 0 4px 14px rgba(16, 27, 61, 0.045);
    --wgr-shadow-md: 0 10px 28px rgba(16, 27, 61, 0.08);
    --wgr-shadow-lg: 0 20px 45px rgba(16, 27, 61, 0.12);
}

[data-theme="dark"] {
    --wgr-bg: #071324;
    --wgr-card-bg: #0E213B;
    --wgr-text-main: #F1F5F9;
    --wgr-text-muted: #94A3B8;
    --wgr-border: #1E3A5F;
    --wgr-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
    --wgr-shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--wgr-bg);
    color: var(--wgr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--wgr-text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--wgr-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--wgr-primary-hover);
}

/* ==========================================================================
   Navigation Bar (Public)
   ========================================================================== */
.wgr-navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--wgr-border);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

[data-theme="dark"] .wgr-navbar {
    background: rgba(14, 33, 59, 0.94);
}

.wgr-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--wgr-text-main) !important;
    letter-spacing: -0.02em;
}

.wgr-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007BFF 0%, #0B1F3A 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.30);
}

.wgr-nav-link {
    color: var(--wgr-text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.wgr-nav-link:hover,
.wgr-nav-link.active {
    color: var(--wgr-primary) !important;
    background-color: var(--wgr-primary-soft);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-wgr-primary {
    background: linear-gradient(135deg, #007BFF 0%, #0056B3 100%);
    color: #FFFFFF !important;
    border: none;
    border-radius: 10px;
    padding: 0.68rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn-wgr-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.35);
    color: #FFFFFF !important;
}

.btn-wgr-primary:active {
    transform: translateY(0);
}

.btn-wgr-dark {
    background: #0B1F3A;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.68rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-wgr-dark:hover {
    background: #14325C;
    transform: translateY(-2px);
    color: #FFFFFF !important;
}

.btn-wgr-outline {
    background: transparent;
    color: var(--wgr-text-main) !important;
    border: 1.5px solid var(--wgr-border);
    border-radius: 10px;
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-wgr-outline:hover {
    border-color: var(--wgr-primary);
    color: var(--wgr-primary) !important;
    background: var(--wgr-primary-soft);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.wgr-hero {
    background: radial-gradient(circle at 85% 20%, rgba(0, 123, 255, 0.28) 0%, transparent 45%),
                linear-gradient(135deg, #0B1F3A 0%, #071529 100%);
    color: #FFFFFF;
    padding: 5rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}

.wgr-hero h1 {
    color: #FFFFFF;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    line-height: 1.15;
    font-weight: 800;
}

.wgr-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 123, 255, 0.18);
    border: 1px solid rgba(0, 123, 255, 0.40);
    color: #60A5FA;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.wgr-hero-graphic-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Cards & Package Pricing Cards
   ========================================================================== */
.wgr-card {
    background: var(--wgr-card-bg);
    border: 1px solid var(--wgr-border);
    border-radius: var(--wgr-radius-md);
    box-shadow: var(--wgr-shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.wgr-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--wgr-shadow-md);
    border-color: rgba(0, 123, 255, 0.35);
}

.wgr-pkg-card {
    background: var(--wgr-card-bg);
    border: 1.5px solid var(--wgr-border);
    border-radius: 20px;
    padding: 1.85rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--wgr-shadow-sm);
    transition: all 0.25s ease;
}

.wgr-pkg-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wgr-shadow-lg);
    border-color: var(--wgr-primary);
}

.wgr-pkg-card.featured {
    border: 2px solid var(--wgr-primary);
    background: linear-gradient(180deg, rgba(0, 123, 255, 0.03) 0%, var(--wgr-card-bg) 35%);
}

.wgr-pkg-badge {
    position: absolute;
    top: -13px;
    right: 20px;
    background: linear-gradient(135deg, #007BFF 0%, #0B1F3A 100%);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.wgr-pkg-price {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--wgr-text-main);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.wgr-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--wgr-primary-soft);
    color: var(--wgr-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */
.badge-wgr {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-available,
.badge-completed,
.badge-active {
    background: var(--wgr-success-soft);
    color: #059669;
}

.badge-sold {
    background: var(--wgr-primary-soft);
    color: #0062CC;
}

.badge-pending,
.badge-used {
    background: var(--wgr-warning-soft);
    color: #B45309;
}

.badge-expired,
.badge-failed,
.badge-invalid,
.badge-suspended {
    background: var(--wgr-danger-soft);
    color: #DC2626;
}

/* ==========================================================================
   Voucher Ticket Display Box
   ========================================================================== */
.voucher-code-box {
    background: linear-gradient(135deg, #0B1F3A 0%, #15345E 100%);
    color: #FFFFFF;
    border: 2px dashed rgba(96, 165, 250, 0.55);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-align: center;
    position: relative;
    user-select: all;
}

/* ==========================================================================
   Dashboard Layout (User & Admin Sidebars)
   ========================================================================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--wgr-bg);
}

.dashboard-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0C152B 0%, #070D1C 100%);
    color: #E2E8F0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.14);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

/* Completely remove visible scrollbar when scrolling navigation */
.dashboard-sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

.dashboard-sidebar::-webkit-scrollbar-thumb,
.dashboard-sidebar::-webkit-scrollbar-track,
.dashboard-sidebar::-webkit-scrollbar-corner {
    display: none !important;
    background: transparent !important;
    border: none !important;
}

.dashboard-sidebar-header {
    padding: 1.15rem 1.15rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-sidebar-header .wgr-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0878F9 0%, #0056D2 100%);
    box-shadow: 0 4px 12px rgba(8, 120, 249, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-nav-group {
    padding: 0.75rem 0.65rem 2rem;
}

.sidebar-group-label {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #52667E;
    font-weight: 700;
    padding: 0.75rem 0.65rem 0.30rem;
    margin-bottom: 0.20rem;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.52rem 0.75rem;
    color: #8FA1B7 !important;
    border-radius: 9px;
    font-size: 0.83rem;
    font-weight: 500;
    margin-bottom: 0.20rem;
    text-decoration: none;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.sidebar-nav-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav-item i[data-lucide],
.sidebar-nav-item svg {
    width: 16px !important;
    height: 16px !important;
    opacity: 0.75;
    flex-shrink: 0;
    transition: all 0.16s ease;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF !important;
    transform: translateX(2px);
}

.sidebar-nav-item:hover i[data-lucide],
.sidebar-nav-item:hover svg {
    opacity: 1;
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, #0878F9 0%, #0056D2 100%);
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(8, 120, 249, 0.35);
}

.sidebar-nav-item.active i[data-lucide],
.sidebar-nav-item.active svg {
    opacity: 1;
}

.sidebar-nav-item .badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}

.sidebar-nav-item.text-danger {
    color: #F87171 !important;
}

.sidebar-nav-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.10);
    color: #FCA5A5 !important;
}

.dashboard-main {
    flex: 1;
    margin-left: 240px;
    width: calc(100% - 240px);
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-sizing: border-box;
}

.dashboard-topbar {
    background: var(--wgr-card-bg);
    border: none;
    border-bottom: none;
    padding: 0.9rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.dashboard-content {
    padding: 20px 24px 56px;
    flex: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991.98px) {
    .dashboard-content {
        padding: 16px 20px 48px;
    }
}

@media (max-width: 767.98px) {
    .dashboard-content {
        padding: 12px 14px 36px;
    }
}

/* ==========================================================================
   Universal Admin Dashboard Header Card (Unified across ALL Admin Pages)
   ========================================================================== */
.dashboard-header-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 14px rgba(17, 27, 70, 0.03);
}

.header-brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0878F9 0%, #0056D2 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(8, 120, 249, 0.25);
    flex-shrink: 0;
}

.header-brand-name {
    font-size: 1.10rem;
    font-weight: 800;
    color: #0A1435;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.header-brand-subtitle {
    font-size: 0.74rem;
    font-weight: 500;
    color: #64748B;
    margin: 2px 0 0 0;
    letter-spacing: 0.01em;
}

.header-search-wrapper {
    flex: 1;
    max-width: 400px;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.header-search-input {
    width: 100%;
    height: 40px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0 16px 0 38px;
    font-size: 0.86rem;
    color: #111B46;
    outline: none;
    transition: all 0.2s ease;
}

.header-search-input:focus {
    background: #FFFFFF;
    border-color: #0878F9;
    box-shadow: 0 0 0 3px rgba(8, 120, 249, 0.12);
}

.header-actions-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-date-pill {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #111B46;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.header-date-pill:hover {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: #0878F9;
}

.header-bell-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475467;
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.header-bell-btn:hover {
    background: #FFFFFF;
    color: #0878F9;
}

.header-bell-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFFFFF;
}

.header-admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 12px;
    transition: background 0.15s ease;
}

.header-admin-profile:hover {
    background: #F1F5F9;
}

.header-admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0866FF;
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(8, 102, 255, 0.35);
}

.header-admin-info {
    text-align: left;
    line-height: 1.2;
}

.header-admin-name {
    font-size: 0.90rem;
    font-weight: 700;
    color: #111B46;
    margin: 0;
}

.header-admin-role {
    font-size: 0.72rem;
    color: #687590;
    margin: 0;
}

@media (max-width: 991.98px) {
    .dashboard-header-card {
        flex-wrap: wrap;
        padding: 14px 18px;
    }
    .header-search-wrapper {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 8px;
    }
}

/* Stat Cards */
.stat-card {
    background: var(--wgr-card-bg);
    border: 1px solid var(--wgr-border);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: var(--wgr-shadow-sm);
    height: 100%;
}

.stat-card-wallet {
    background: linear-gradient(135deg, #0B1F3A 0%, #0056B3 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 18px;
    padding: 1.65rem;
    box-shadow: 0 14px 32px rgba(0, 86, 179, 0.25);
}

.stat-card-wallet h2,
.stat-card-wallet h3,
.stat-card-wallet p {
    color: #FFFFFF;
}

/* Forms & Tables */
.form-control, .form-select {
    background-color: var(--wgr-card-bg);
    color: var(--wgr-text-main);
    border: 1.5px solid var(--wgr-border);
    border-radius: 10px;
    padding: 0.65rem 0.95rem;
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--wgr-primary);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    background-color: var(--wgr-card-bg);
    color: var(--wgr-text-main);
}

.table-wgr {
    margin-bottom: 0;
    color: var(--wgr-text-main);
}

.table-wgr thead th {
    background: rgba(11, 31, 58, 0.03);
    color: var(--wgr-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--wgr-border);
    padding: 0.9rem 1rem;
}

.table-wgr tbody td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--wgr-border);
    font-size: 0.92rem;
}

/* Footer */
.wgr-footer {
    background: #0B1F3A;
    color: #CBD5E1;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.wgr-footer h5, .wgr-footer h6 {
    color: #FFFFFF;
}

.wgr-footer a {
    color: #94A3B8;
}

.wgr-footer a:hover {
    color: #60A5FA;
}

/* Responsive Mobile Drawer */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1035;
}

@media (max-width: 991.98px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        width: 250px;
    }
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    .sidebar-backdrop.show {
        display: block;
    }
    .dashboard-main {
        margin-left: 0 !important;
        width: 100% !important;
    }
    .dashboard-content {
        padding: 1.2rem;
    }
    .wgr-hero {
        padding: 3.5rem 0 4rem;
    }
}

/* ==========================================================================
   WANGARAWA Wi-Fi — Reference Fintech User Dashboard Design System
   Matches the provided mobile fintech reference design (OPay/Moniepoint/Kuda style)
   Palette:
   - Primary Blue:    #0666F5
   - Deep Blue:       #063B9E
   - Dark Navy:       #101B3D
   - Light Background:#F4F8FD
   - White Cards:     #FFFFFF
   - Success Green:   #12B76A
   - Accent Orange:   #FF7900
   - Purple Accent:   #7C3AED
   ========================================================================== */

body.fintech-user-body {
    background-color: #F4F8FD;
    color: #101B3D;
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    min-height: 100vh;
}

/* Top Blue Curved Header */
.fintech-top-header {
    background: linear-gradient(145deg, #063B9E 0%, #0666F5 62%, #0549C2 100%);
    padding: calc(16px + env(safe-area-inset-top, 0px)) 0 112px;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}

.fintech-top-header::before {
    content: "";
    position: absolute;
    top: -65px;
    left: -45px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.32) 0%, rgba(6, 59, 158, 0) 70%);
    pointer-events: none;
}

.fintech-top-header::after {
    content: "";
    position: absolute;
    top: -30px;
    right: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(3, 35, 108, 0.55) 0%, rgba(6, 59, 158, 0) 72%);
    pointer-events: none;
}

.fintech-shell {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .fintech-shell {
        max-width: 760px;
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .fintech-shell {
        max-width: 960px;
    }
}

/* Header Brand + Greeting Row */
.fintech-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fintech-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #FFFFFF !important;
}

.fintech-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.fintech-logo-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    text-transform: uppercase;
}

.fintech-logo-subtitle {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: #4CC3FF;
}

.fintech-user-trigger-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fintech-greeting-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #FFFFFF !important;
}

.fintech-greeting-text {
    text-align: right;
    line-height: 1.18;
}

.fintech-greeting-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
}

.fintech-greeting-name {
    display: block;
    font-size: 0.94rem;
    font-weight: 700;
    color: #FFFFFF;
    max-width: 145px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 576px) {
    .fintech-greeting-name {
        max-width: 220px;
    }
}

.fintech-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(6, 25, 77, 0.28);
    flex-shrink: 0;
}

.fintech-notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #063B9E;
    line-height: 1;
}

.fintech-header-chevron {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
}

/* Main Overlapping Content Stack */
.fintech-main-stack {
    margin-top: -92px;
    position: relative;
    z-index: 5;
    padding-bottom: 24px;
}

/* 4. Wallet Balance Card */
.fintech-wallet-card {
    background: linear-gradient(125deg, #2584FF 0%, #0666F5 52%, #063B9E 100%);
    border-radius: 22px;
    padding: 20px 20px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(6, 68, 181, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 16px;
}

.fintech-wallet-card::before {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -45px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 40, 122, 0.55) 0%, rgba(6, 59, 158, 0) 70%);
    pointer-events: none;
}

.fintech-wallet-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.fintech-wallet-info {
    flex: 1;
    min-width: 0;
}

.fintech-balance-label-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 4px;
}

.fintech-eye-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.90);
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: opacity 0.15s ease, background-color 0.15s ease;
}

.fintech-eye-btn:hover,
.fintech-eye-btn:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.fintech-balance-amount {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.65rem, 5.5vw, 2.25rem);
    line-height: 1.15;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    word-break: break-word;
}

.fintech-add-money-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF;
    color: #0648B3 !important;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 22px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(6, 35, 99, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fintech-add-money-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(6, 35, 99, 0.30);
    color: #063B9E !important;
}

.fintech-add-money-plus {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0666F5;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fintech-wallet-art {
    width: 128px;
    height: 108px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 359.98px) {
    .fintech-wallet-art {
        width: 96px;
        height: 86px;
    }
    .fintech-add-money-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}

@media (min-width: 768px) {
    .fintech-wallet-card {
        padding: 24px 28px;
    }
    .fintech-wallet-art {
        width: 156px;
        height: 124px;
    }
}

/* 5. Quick Actions Panel */
.fintech-quick-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 16px 10px;
    box-shadow: 0 6px 20px rgba(16, 27, 61, 0.05);
    border: 1px solid #EBF2FC;
    margin-bottom: 16px;
}

.fintech-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    text-align: center;
}

.fintech-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #101B3D !important;
    padding: 4px 2px;
    border-radius: 14px;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.fintech-quick-item:hover {
    transform: translateY(-2px);
    background-color: rgba(6, 102, 245, 0.04);
}

.fintech-quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    flex-shrink: 0;
}

.fintech-quick-icon.qa-buy {
    background: linear-gradient(145deg, #2B88FF 0%, #0666F5 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 14px rgba(6, 102, 245, 0.25);
}

.fintech-quick-icon.qa-vouchers {
    background: #DCFCE7;
    color: #12B76A;
}

.fintech-quick-icon.qa-tx {
    background: #EDE9FE;
    color: #7C3AED;
}

.fintech-quick-icon.qa-deposit {
    background: #FFEDD5;
    color: #FF7900;
}

.fintech-quick-icon.qa-airtime {
    background: #FFE4E6;
    color: #DC2626;
}

.fintech-quick-icon.qa-data {
    background: #E0F2FE;
    color: #0666F5;
}

.fintech-quick-icon.qa-electricity {
    background: #FEF3C7;
    color: #F59E0B;
}

.fintech-quick-icon.qa-support {
    background: #E0F2FE;
    color: #0666F5;
}

.fintech-quick-grid + .fintech-quick-grid {
    margin-top: 12px;
}

.fintech-quick-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #101B3D;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

@media (max-width: 359.98px) {
    .fintech-quick-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }
    .fintech-quick-label {
        font-size: 0.67rem;
    }
}

@media (min-width: 768px) {
    .fintech-quick-card {
        padding: 20px 24px;
    }
    .fintech-quick-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }
    .fintech-quick-label {
        font-size: 0.84rem;
    }
}

/* 6. Wi-Fi Promotional Banner */
.fintech-promo-banner {
    background: linear-gradient(115deg, #E8F3FF 0%, #D6E9FF 55%, #C3E0FF 100%);
    border-radius: 20px;
    padding: 18px 18px;
    position: relative;
    overflow: hidden;
    border: 1px solid #C8E1FF;
    box-shadow: 0 6px 18px rgba(6, 102, 245, 0.07);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.fintech-promo-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.fintech-promo-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1E3A6D;
    margin-bottom: 2px;
}

.fintech-promo-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(1.22rem, 4.2vw, 1.55rem);
    font-weight: 800;
    color: #0652C5;
    line-height: 1.15;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

.fintech-promo-text {
    font-size: 0.76rem;
    color: #3B5278;
    line-height: 1.38;
    margin-bottom: 12px;
    max-width: 260px;
}

.fintech-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0666F5 0%, #0648B3 100%);
    color: #FFFFFF !important;
    font-size: 0.80rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(6, 102, 245, 0.28);
    transition: transform 0.18s ease;
}

.fintech-promo-btn:hover {
    transform: translateY(-1px);
    color: #FFFFFF !important;
}

.fintech-promo-art {
    width: 142px;
    height: 112px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 359.98px) {
    .fintech-promo-art {
        width: 106px;
        height: 92px;
    }
}

@media (min-width: 768px) {
    .fintech-promo-banner {
        padding: 22px 28px;
    }
    .fintech-promo-text {
        font-size: 0.86rem;
        max-width: 360px;
    }
    .fintech-promo-art {
        width: 185px;
        height: 130px;
    }
}

/* Section Headers ("Popular Packages", "Recent Activity") */
.fintech-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    padding: 0 2px;
}

.fintech-section-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #101B3D;
    margin: 0;
    letter-spacing: -0.02em;
}

.fintech-view-all {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.80rem;
    font-weight: 700;
    color: #0666F5 !important;
    text-decoration: none;
}

.fintech-view-all:hover {
    text-decoration: underline;
}

/* 7. Popular Packages 3-Column Grid */
.fintech-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.fintech-pkg-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 11px 9px;
    border: 1px solid #E6EFFA;
    box-shadow: 0 4px 14px rgba(16, 27, 61, 0.045);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.fintech-pkg-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(16, 27, 61, 0.09);
}

.fintech-pkg-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.fintech-pkg-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fintech-pkg-title-wrap {
    min-width: 0;
    flex: 1;
}

.fintech-pkg-name {
    font-size: 0.72rem;
    font-weight: 800;
    color: #101B3D;
    line-height: 1.15;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fintech-pkg-duration {
    font-size: 0.60rem;
    font-weight: 500;
    color: #64748B;
    line-height: 1.15;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fintech-pkg-price {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(0.95rem, 3.3vw, 1.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.fintech-pkg-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fintech-pkg-benefits li {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.61rem;
    color: #334155;
    line-height: 1.2;
}

.fintech-pkg-benefits li strong {
    color: #101B3D;
    font-weight: 700;
}

.fintech-benefit-check {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
}

.fintech-pkg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7px 6px;
    border-radius: 9px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFFFFF !important;
    text-decoration: none;
    border: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.fintech-pkg-btn:hover {
    opacity: 0.94;
    color: #FFFFFF !important;
}

/* Theme variants: Daily (Blue), Weekly (Green), Monthly (Orange) */
.fintech-pkg-card.theme-blue .fintech-pkg-icon {
    background: #DBEAFE;
    color: #0666F5;
}
.fintech-pkg-card.theme-blue .fintech-pkg-price {
    color: #063B9E;
}
.fintech-pkg-card.theme-blue .fintech-benefit-check {
    background: #0666F5;
}
.fintech-pkg-card.theme-blue .fintech-pkg-btn {
    background: #0666F5;
    box-shadow: 0 4px 10px rgba(6, 102, 245, 0.24);
}

.fintech-pkg-card.theme-green .fintech-pkg-icon {
    background: #DCFCE7;
    color: #12B76A;
}
.fintech-pkg-card.theme-green .fintech-pkg-price {
    color: #0F6E3F;
}
.fintech-pkg-card.theme-green .fintech-benefit-check {
    background: #12B76A;
}
.fintech-pkg-card.theme-green .fintech-pkg-btn {
    background: #12B76A;
    box-shadow: 0 4px 10px rgba(18, 183, 106, 0.24);
}

.fintech-pkg-card.theme-orange .fintech-pkg-icon {
    background: #FFEDD5;
    color: #FF7900;
}
.fintech-pkg-card.theme-orange .fintech-pkg-price {
    color: #C2410C;
}
.fintech-pkg-card.theme-orange .fintech-benefit-check {
    background: #0666F5;
}
.fintech-pkg-card.theme-orange .fintech-pkg-btn {
    background: #FF7900;
    box-shadow: 0 4px 10px rgba(255, 121, 0, 0.24);
}

/* Ultra-narrow screens (<= 350px): smooth horizontal carousel without page overflow */
@media (max-width: 350px) {
    .fintech-packages-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .fintech-pkg-card {
        flex: 0 0 155px;
        scroll-snap-align: start;
    }
}

@media (min-width: 768px) {
    .fintech-packages-grid {
        gap: 14px;
    }
    .fintech-pkg-card {
        padding: 16px 15px;
        border-radius: 18px;
    }
    .fintech-pkg-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }
    .fintech-pkg-name {
        font-size: 0.90rem;
    }
    .fintech-pkg-duration {
        font-size: 0.74rem;
    }
    .fintech-pkg-benefits {
        gap: 6px;
        margin-bottom: 14px;
    }
    .fintech-pkg-benefits li {
        font-size: 0.76rem;
        gap: 6px;
    }
    .fintech-benefit-check {
        width: 15px;
        height: 15px;
    }
    .fintech-pkg-btn {
        padding: 9px 12px;
        font-size: 0.82rem;
        border-radius: 10px;
    }
}

/* 8. Recent Activity List */
.fintech-activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.fintech-activity-row {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid #EBF2FC;
    box-shadow: 0 4px 12px rgba(16, 27, 61, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    color: #101B3D !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.fintech-activity-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(16, 27, 61, 0.07);
}

.fintech-activity-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.fintech-activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
}

.fintech-activity-icon.act-purchase {
    background: #12B76A;
}

.fintech-activity-icon.act-deposit {
    background: #0666F5;
}

.fintech-activity-meta {
    min-width: 0;
}

.fintech-activity-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #101B3D;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fintech-activity-sub {
    font-size: 0.72rem;
    color: #64748B;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fintech-activity-right {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
    flex-shrink: 0;
}

.fintech-activity-amount {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
}

.fintech-activity-amount.debit {
    color: #101B3D;
}

.fintech-activity-amount.credit {
    color: #12B76A;
}

.fintech-activity-date {
    font-size: 0.68rem;
    color: #64748B;
    line-height: 1.2;
}

/* 9. Floating Bottom Navigation Bar */
.fintech-bottom-nav-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: #FFFFFF;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    box-shadow: 0 -6px 24px rgba(16, 27, 61, 0.08);
    border-top: 1px solid #E6EFFA;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
}

.fintech-bottom-nav {
    max-width: 540px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .fintech-bottom-nav {
        max-width: 720px;
    }
}

.fintech-bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    text-decoration: none;
    color: #64748B !important;
    font-size: 0.69rem;
    font-weight: 600;
    transition: color 0.18s ease, transform 0.18s ease;
}

.fintech-bnav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.18s ease;
}

.fintech-bnav-item.active {
    color: #0666F5 !important;
    font-weight: 700;
}

.fintech-bnav-item:hover {
    color: #0666F5 !important;
}

/* Inner Page Back Bar inside Fintech Shell */
.fintech-subpage-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(16, 27, 61, 0.05);
    border: 1px solid #EBF2FC;
}

/* ==========================================================================
   WANGARAWA Wi-Fi — Add Money Page Reference Design System (`user/add-money.php`)
   Matches the provided Add Money mobile fintech reference specification:
   - Primary blue:        #0666F5
   - Deep blue:           #0645B5
   - Accent cyan:         #08B9F4
   - Page background:     #F5F8FD
   - Card background:     #FFFFFF
   - Main text:           #10152F
   - Secondary text:      #65718B
   - Light blue bg:       #EDF4FF
   - Border color:        #DCE7F7
   ========================================================================== */

body.fintech-addmoney-body {
    background-color: #F5F8FD;
    color: #10152F;
    min-height: 100vh;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.addmoney-top-header {
    background: linear-gradient(160deg, #05379C 0%, #0645B5 48%, #0666F5 100%);
    padding: calc(18px + env(safe-area-inset-top, 0px)) 0 124px;
    border-bottom-left-radius: 38px;
    border-bottom-right-radius: 38px;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}

.addmoney-top-header::before {
    content: "";
    position: absolute;
    top: -60px;
    left: -50px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 185, 244, 0.24) 0%, rgba(6, 69, 181, 0) 70%);
    pointer-events: none;
}

.addmoney-top-header::after {
    content: "";
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(4, 38, 112, 0.45) 0%, rgba(6, 69, 181, 0) 72%);
    pointer-events: none;
}

.addmoney-shell {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .addmoney-shell {
        max-width: 520px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.addmoney-header-top {
    display: grid;
    grid-template-columns: 92px 1fr 92px;
    align-items: start;
    gap: 6px;
}

@media (max-width: 374.98px) {
    .addmoney-header-top {
        grid-template-columns: 44px 1fr auto;
    }
}

.addmoney-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #10152F !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(5, 28, 84, 0.22);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    flex-shrink: 0;
}

.addmoney-back-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(5, 28, 84, 0.30);
    color: #0666F5 !important;
}

.addmoney-header-center {
    text-align: center;
    padding-top: 4px;
}

.addmoney-page-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.addmoney-page-subtitle {
    font-size: 0.80rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.90);
    margin: 0 auto;
    max-width: 245px;
    line-height: 1.38;
}

.addmoney-header-right {
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}

.addmoney-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF !important;
    font-size: 0.79rem;
    font-weight: 600;
    padding: 7px 13px;
    border-radius: 999px;
    text-decoration: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background-color 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
}

.addmoney-history-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
    color: #FFFFFF !important;
}

@media (max-width: 349.98px) {
    .addmoney-history-btn {
        padding: 6px 10px;
        font-size: 0.73rem;
    }
}

.addmoney-main-stack {
    margin-top: -102px;
    position: relative;
    z-index: 5;
}

/* 4. Wallet Balance Card on Add Money Page */
.addmoney-wallet-card {
    background: linear-gradient(125deg, #17A6F6 0%, #0666F5 46%, #0645B5 100%);
    border-radius: 24px;
    padding: 20px 18px 20px 20px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(6, 69, 181, 0.26);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    margin-bottom: 16px;
}

.addmoney-wallet-card::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 28%;
    width: 75%;
    height: 190%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(6, 52, 152, 0.42) 0%, rgba(6, 69, 181, 0) 70%);
    transform: rotate(-18deg);
    pointer-events: none;
}

.addmoney-wallet-card::after {
    content: "";
    position: absolute;
    bottom: -35px;
    left: -25px;
    width: 180px;
    height: 90px;
    border-radius: 50%;
    background: rgba(8, 185, 244, 0.22);
    filter: blur(8px);
    pointer-events: none;
}

.addmoney-wallet-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.addmoney-wallet-left {
    flex: 1;
    min-width: 0;
}

.addmoney-balance-label-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.90rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.94);
    margin-bottom: 5px;
}

.addmoney-balance-value {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.65rem, 6vw, 2.22rem);
    line-height: 1.14;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    word-break: break-word;
}

.addmoney-view-wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(6, 48, 138, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF !important;
    font-size: 0.80rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.addmoney-view-wallet-btn:hover {
    background: rgba(6, 48, 138, 0.52);
    transform: translateY(-1px);
    color: #FFFFFF !important;
}

.addmoney-wallet-art {
    width: 138px;
    height: 118px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 359.98px) {
    .addmoney-wallet-card {
        padding: 16px 14px;
    }
    .addmoney-wallet-art {
        width: 102px;
        height: 92px;
    }
    .addmoney-view-wallet-btn {
        padding: 6px 13px;
        font-size: 0.75rem;
    }
}

/* 5. White Rounded Amount Input Container */
.addmoney-panel {
    background: #FFFFFF;
    border-radius: 26px;
    padding: 22px 18px 20px;
    box-shadow: 0 10px 30px rgba(16, 21, 47, 0.05);
    border: 1px solid #E9F0FA;
}

@media (min-width: 576px) {
    .addmoney-panel {
        padding: 26px 24px 24px;
    }
}

.addmoney-section-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    color: #10152F;
    margin: 0 0 3px 0;
    letter-spacing: -0.02em;
}

.addmoney-section-sub {
    font-size: 0.79rem;
    color: #65718B;
    margin: 0 0 15px 0;
    line-height: 1.38;
}

.addmoney-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    border: 1.5px solid #C8DCF6;
    border-radius: 16px;
    padding: 9px 14px;
    margin-bottom: 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.addmoney-input-wrap:focus-within {
    border-color: #0666F5;
    box-shadow: 0 0 0 3.5px rgba(6, 102, 245, 0.11);
}

.addmoney-input-wrap.is-invalid {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.addmoney-naira-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #EDF4FF;
    color: #10152F;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.14rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.addmoney-amount-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    min-width: 0;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(1.4rem, 5vw, 1.75rem);
    font-weight: 800;
    color: #10152F;
    letter-spacing: -0.02em;
    caret-color: #0666F5;
    padding: 2px 0;
}

.addmoney-amount-input::placeholder {
    color: #B0BDD0;
    font-weight: 600;
}

.addmoney-clear-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #8A96AC;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.addmoney-clear-btn:hover,
.addmoney-clear-btn:focus-visible {
    color: #10152F;
    background: #F1F5F9;
    outline: none;
}

.addmoney-error-msg {
    font-size: 0.78rem;
    font-weight: 600;
    color: #DC2626;
    margin: -8px 0 12px 4px;
    display: none;
}

.addmoney-error-msg.show {
    display: block;
}

/* 6. Quick Amount Selection Buttons (3-Column, 2-Row Grid) */
.addmoney-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.addmoney-preset-btn {
    background: #EDF4FF;
    color: #10152F;
    border: 1px solid transparent;
    border-radius: 13px;
    padding: 12px 6px;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 0.90rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
    user-select: none;
}

.addmoney-preset-btn:hover {
    background: #E0ECFF;
}

.addmoney-preset-btn:active {
    transform: scale(0.98);
}

.addmoney-preset-btn.active {
    background: linear-gradient(135deg, #1877FF 0%, #0666F5 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(6, 102, 245, 0.28);
}

@media (max-width: 349.98px) {
    .addmoney-preset-btn {
        font-size: 0.80rem;
        padding: 10px 4px;
    }
}

/* 7. Continue Button */
.addmoney-continue-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1474FF 0%, #0666F5 55%, #0645B5 100%);
    color: #FFFFFF !important;
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(6, 102, 245, 0.30);
    cursor: pointer;
    margin-bottom: 18px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.addmoney-continue-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(6, 102, 245, 0.38);
}

.addmoney-continue-btn:active:not(:disabled) {
    transform: translateY(0);
}

.addmoney-continue-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* 8. Safe & Secure Information Card */
.addmoney-safe-card {
    background: #F2F7FF;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #E3EEFF;
}

.addmoney-safe-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E2EEFF;
    color: #0666F5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.addmoney-safe-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #10152F;
    margin: 0 0 2px 0;
    line-height: 1.25;
}

.addmoney-safe-text {
    font-size: 0.77rem;
    color: #65718B;
    line-height: 1.38;
    margin: 0;
}

/* ==========================================================================
   WANGARAWA Wi-Fi — Buy Package Page Reference Design System (`user/buy-package.php`)
   ========================================================================== */

body.fintech-buypkg-body {
    background-color: #F5F8FD;
    color: #10152F;
    min-height: 100vh;
    padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
}

.buypkg-top-header {
    background: linear-gradient(155deg, #05389E 0%, #0645B5 48%, #0666F5 100%);
    padding: calc(16px + env(safe-area-inset-top, 0px)) 0 124px;
    border-bottom-left-radius: 38px;
    border-bottom-right-radius: 38px;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}

.buypkg-shell {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .buypkg-shell {
        max-width: 540px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.buypkg-header-row {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: start;
    gap: 8px;
}

.buypkg-back-btn {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: #FFFFFF;
    color: #10152F !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(5, 28, 84, 0.22);
}

.buypkg-header-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2px;
}

.buypkg-page-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.22rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px 0;
}

.buypkg-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-align: left;
}

.buypkg-brand-name {
    display: block;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.15;
}

.buypkg-brand-domain {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.2;
}

.buypkg-history-btn {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.buypkg-main-stack {
    margin-top: -102px;
    position: relative;
    z-index: 5;
}

.buypkg-wallet-card {
    background: linear-gradient(125deg, #15A5F7 0%, #0666F5 48%, #0645B5 100%);
    border-radius: 24px;
    padding: 20px 18px 20px 20px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(6, 69, 181, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    margin-bottom: 18px;
}

.buypkg-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.buypkg-tab {
    background: #E9F1FC;
    color: #10152F;
    border: none;
    border-radius: 999px;
    padding: 10px 6px;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.buypkg-tab.active {
    background: linear-gradient(135deg, #1677FF 0%, #0666F5 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 14px rgba(6, 102, 245, 0.28);
}

.buypkg-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.buypkg-card {
    width: 100%;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 14px 16px;
    border: 1px solid #EBF2FC;
    box-shadow: 0 5px 18px rgba(16, 21, 47, 0.045);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    cursor: pointer;
}

.buypkg-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: #E8F3FF;
    color: #0666F5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.buypkg-card-duration {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 0.94rem;
    font-weight: 700;
    color: #10152F;
    margin: 0 0 2px 0;
}

.buypkg-card-price {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.32rem;
    font-weight: 800;
    color: #0666F5;
    margin: 0;
}

.buypkg-card-arrow {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #EDF4FF;
    color: #0666F5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   WANGARAWA Wi-Fi — Transactions Page Reference Design System (`user/transactions.php`)
   ========================================================================== */

body.fintech-tx-body {
    background-color: #F5F8FD;
    color: #10152F;
    min-height: 100vh;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.tx-top-header {
    background: linear-gradient(155deg, #05389E 0%, #0645B5 48%, #0666F5 100%);
    padding: calc(16px + env(safe-area-inset-top, 0px)) 0 124px;
    border-bottom-left-radius: 38px;
    border-bottom-right-radius: 38px;
    position: relative;
    overflow: hidden;
    color: #FFFFFF;
}

.tx-shell {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .tx-shell {
        max-width: 560px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

.tx-wallet-card {
    background: linear-gradient(125deg, #16A6F8 0%, #0666F5 48%, #0645B5 100%);
    border-radius: 24px;
    padding: 20px 16px 20px 20px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(6, 69, 181, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    margin-bottom: 16px;
}

.tx-tabs-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.tx-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #EAF2FF;
    color: #10152F;
    border: 1px solid #DCE8FA;
    border-radius: 999px;
    padding: 8px 11px;
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex: 1 1 auto;
}

.tx-tab.active {
    background: linear-gradient(135deg, #1677FF 0%, #0666F5 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 6px 14px rgba(6, 102, 245, 0.28);
}

.tx-card {
    width: 100%;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 13px 14px;
    border: 1px solid #EBF2FC;
    box-shadow: 0 4px 16px rgba(16, 21, 47, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    text-align: left;
    cursor: pointer;
}

.tx-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-card-icon.icon-deposit {
    background: #E2F8EC;
    color: #159447;
}

.tx-card-icon.icon-purchase {
    background: #E8F3FF;
    color: #0666F5;
}

.tx-amount.amount-credit {
    color: #159447;
}

.tx-amount.amount-debit {
    color: #F32135;
}

.tx-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 700;
}

.tx-status-badge.status-success {
    background: #E2F8EC;
    color: #159447;
}

.tx-status-badge.status-pending {
    background: #FEF3C7;
    color: #B45309;
}

.tx-status-badge.status-failed {
    background: #FEE2E2;
    color: #DC2626;
}

/* ==========================================================================
   Deposit History Page (`user/deposit-history.php`)
   ========================================================================== */
body.fintech-dephist-body {
    margin: 0;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F5F8FD !important;
    color: #10152F !important;
    min-height: 100vh;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.dephist-shell {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .dephist-shell {
        max-width: 600px;
        padding-left: 22px;
        padding-right: 22px;
    }
}

.dephist-hero {
    background:
        radial-gradient(circle at 82% 16%, rgba(8, 185, 244, 0.34) 0%, rgba(8, 185, 244, 0) 48%),
        radial-gradient(circle at 18% 28%, rgba(45, 145, 255, 0.32) 0%, rgba(45, 145, 255, 0) 52%),
        linear-gradient(165deg, #0645B5 0%, #0666F5 58%, #0C85F9 100%);
    padding: calc(18px + env(safe-area-inset-top, 0px)) 0 92px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(6, 69, 181, 0.18);
}

.dephist-wallet-card {
    background:
        radial-gradient(circle at 14% 20%, rgba(44, 212, 255, 0.55) 0%, rgba(44, 212, 255, 0) 48%),
        linear-gradient(125deg, #129DF9 0%, #0666F5 52%, #0545B6 100%);
    border-radius: 22px;
    padding: 16px 16px 16px 15px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 14px 30px rgba(6, 78, 204, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.42);
    border: 1.5px solid rgba(135, 212, 255, 0.48);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 132px;
}

.dephist-card {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 13px 13px 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    box-shadow: 0 4px 16px rgba(16, 21, 47, 0.045);
    border: 1px solid #EDF2FA;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

/* ==========================================================================
   Profile Page (`user/profile.php`)
   ========================================================================== */
body.fintech-profile-body {
    margin: 0;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F5F8FD !important;
    color: #10152F !important;
    min-height: 100vh;
    padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px));
}

.prof-shell {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    position: relative;
    z-index: 2;
}

.prof-hero {
    background:
        radial-gradient(circle at 86% 18%, rgba(8, 185, 244, 0.36) 0%, rgba(8, 185, 244, 0) 48%),
        radial-gradient(circle at 14% 25%, rgba(44, 142, 255, 0.32) 0%, rgba(44, 142, 255, 0) 52%),
        linear-gradient(165deg, #0645B5 0%, #0666F5 56%, #0B84F8 100%);
    padding: calc(16px + env(safe-area-inset-top, 0px)) 0 98px;
    border-bottom-left-radius: 38px;
    border-bottom-right-radius: 38px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(6, 69, 181, 0.16);
}

.prof-user-card,
.prof-shortcuts-card,
.prof-menu-card {
    background: #FFFFFF;
    border-radius: 22px;
    box-shadow: 0 6px 22px rgba(16, 21, 47, 0.05);
    border: 1px solid #ECF2FA;
}

/* ==========================================================================
   Admin Package Management Page (`admin/packages.php`)
   ========================================================================== */
.dashboard-main:has(.wgr-pkgmgmt-page) {
    background: #F4F8FD !important;
}

.pkgmgmt-card {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 22px 22px 20px;
    border: 1px solid #EBF1FA;
    box-shadow: 0 8px 26px rgba(16, 21, 47, 0.045);
}

/* ==========================================================================
   Admin Voucher Inventory Page (`admin/vouchers.php`)
   ========================================================================== */
.voucher-page-wrapper {
    width: 100%;
}

.voucher-hero-banner {
    background: linear-gradient(135deg, #E6F1FE 0%, #F0F6FF 52%, #E2EDFE 100%);
    border: 1px solid #D6E6FB;
    border-radius: 18px;
    padding: 22px 26px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.voucher-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.voucher-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #0066FF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.22);
    flex-shrink: 0;
}

.voucher-hero-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.15;
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

.voucher-hero-subtitle {
    font-size: 0.86rem;
    color: #64748B;
    margin: 0;
    font-weight: 400;
}

.voucher-hero-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.voucher-stat-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 10px 18px 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 3px 12px rgba(16, 27, 61, 0.04);
    min-width: 138px;
}

.voucher-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.voucher-stat-icon.icon-available {
    background: #DCFCE7;
    color: #16A34A;
}

.voucher-stat-icon.icon-sold {
    background: #FFE4E6;
    color: #E11D48;
}

.voucher-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748B;
    margin-bottom: 1px;
}

.voucher-stat-value {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.1;
}

.voucher-hero-watermark {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 120px;
    color: rgba(0, 102, 255, 0.05);
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
}

.voucher-content-card {
    background: #FFFFFF;
    border-radius: 18px;
    border: 1px solid #EBF1FA;
    box-shadow: 0 6px 22px rgba(16, 27, 61, 0.035);
    overflow: hidden;
    margin-bottom: 24px;
}

.voucher-toolbar {
    padding: 18px 22px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.voucher-toolbar-left {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 360px;
}

.voucher-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.voucher-search-input {
    width: 100%;
    height: 42px;
    padding-left: 40px;
    padding-right: 14px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    font-size: 0.88rem;
    color: #0F172A;
    background: #FFFFFF;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.voucher-search-input:focus {
    border-color: #0066FF;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
    outline: none;
}

.voucher-search-input::placeholder {
    color: #94A3B8;
}

.voucher-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.voucher-package-select {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    padding: 0 34px 0 14px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #1E293B;
    background-color: #FFFFFF;
    min-width: 175px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 13px 10px;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s ease;
}

.voucher-package-select:focus {
    border-color: #0066FF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.voucher-btn-refresh {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #0066FF;
    color: #FFFFFF !important;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.18s ease;
    flex-shrink: 0;
}

.voucher-btn-refresh:hover {
    background: #0052CC;
    color: #FFFFFF !important;
    transform: rotate(45deg);
}

.voucher-table-wrapper {
    overflow-x: auto;
}

.voucher-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.voucher-table th {
    background: #FAFBFD;
    color: #64748B;
    font-size: 0.80rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 14px 22px;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}

.voucher-table td {
    padding: 16px 22px;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    font-size: 0.90rem;
    color: #1E293B;
}

.voucher-table tbody tr:hover {
    background-color: #F8FAFD;
}

.voucher-table tbody tr:last-child td {
    border-bottom: none;
}

.voucher-sn-cell {
    font-weight: 600;
    color: #475569;
    font-variant-numeric: tabular-nums;
    width: 75px;
}

.voucher-code-cell {
    white-space: nowrap;
    width: 220px;
}

.voucher-code-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 9px;
    padding: 4px 10px;
    transition: all 0.15s ease;
}

.voucher-code-wrap:hover {
    background: #F0F6FF;
    border-color: #BFDBFE;
}

.voucher-code-text {
    font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: 0.04em;
    user-select: all;
    -webkit-user-select: all;
    cursor: text;
}

.voucher-btn-copy {
    background: transparent;
    border: none;
    color: #64748B;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.12s ease;
}

.voucher-btn-copy:hover {
    color: #0066FF;
    transform: scale(1.15);
}

.voucher-btn-select-all {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #BFDBFE;
    background: #EFF6FF;
    color: #0066FF !important;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.voucher-btn-select-all:hover {
    background: #DBEAFE;
    color: #0052CC !important;
    border-color: #93C5FD;
}

.voucher-package-cell {
    font-weight: 600;
    color: #0F172A;
}

.voucher-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}

.voucher-status-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.voucher-status-pill.status-available {
    background: #DCFCE7;
    color: #15803D;
}

.voucher-status-pill.status-available .dot {
    background: #16A34A;
}

.voucher-status-pill.status-sold {
    background: #FFE4E6;
    color: #BE123C;
}

.voucher-status-pill.status-sold .dot {
    background: #E11D48;
}

.voucher-status-pill.status-used {
    background: #F1F5F9;
    color: #475569;
}

.voucher-status-pill.status-used .dot {
    background: #64748B;
}

.voucher-status-pill.status-expired {
    background: #FEF3C7;
    color: #92400E;
}

.voucher-status-pill.status-expired .dot {
    background: #D97706;
}

.voucher-status-pill.status-invalid {
    background: #FEE2E2;
    color: #991B1B;
}

.voucher-status-pill.status-invalid .dot {
    background: #DC2626;
}

.voucher-actions-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-voucher-action-edit {
    background: #0066FF;
    color: #FFFFFF !important;
    border: none;
    border-radius: 9px;
    padding: 7px 15px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease;
    text-decoration: none;
}

.btn-voucher-action-edit:hover {
    background: #0052CC;
    transform: translateY(-1px);
}

.btn-voucher-action-delete {
    background: #EF4444;
    color: #FFFFFF !important;
    border: none;
    border-radius: 9px;
    padding: 7px 15px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.12s ease;
    text-decoration: none;
}

.btn-voucher-action-delete:hover {
    background: #DC2626;
    transform: translateY(-1px);
}

.voucher-pagination-footer {
    padding: 16px 22px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    background: #FFFFFF;
}

.voucher-pagination-info {
    font-size: 0.86rem;
    color: #64748B;
}

.voucher-pagination-info strong {
    color: #0F172A;
    font-weight: 600;
}

.voucher-pagination-list {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.voucher-pagination-item {
    display: inline-block;
}

.voucher-pagination-link {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748B;
    background: transparent;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    transition: all 0.15s ease;
}

.voucher-pagination-link:hover {
    background: #F8FAFD;
    color: #0066FF;
    border-color: #0066FF;
}

.voucher-pagination-link.active {
    background: #0066FF;
    color: #FFFFFF !important;
    border-color: #0066FF;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.22);
}

.voucher-pagination-link.disabled {
    color: #CBD5E1;
    border-color: #E2E8F0;
    pointer-events: none;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .voucher-hero-banner {
        padding: 18px 18px;
        flex-direction: column;
        align-items: flex-start;
    }
    .voucher-hero-stats {
        width: 100%;
    }
    .voucher-stat-card {
        flex: 1;
        min-width: 120px;
    }
    .voucher-toolbar {
        padding: 14px 16px;
    }
    .voucher-toolbar-left {
        max-width: 100%;
    }
    .voucher-toolbar-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    .voucher-package-select {
        flex: 1 1 160px;
    }
    .voucher-btn-select-all {
        flex: 1 1 auto;
        justify-content: center;
    }
    .voucher-table th,
    .voucher-table td {
        padding: 12px 14px;
    }
    .voucher-pagination-footer {
        padding: 14px 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}







