/* Fonts */
@import url('https://fonts.maateen.me/solaiman-lipi/font.css');

@font-face {
    font-family: 'SolaimanLipi';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('SolaimanLipi'), local('Solaiman Lipi'),
         url('/assets/fonts/solaimanlipi/solaimanlipi-normal.woff2') format('woff2'),
         url('/assets/fonts/solaimanlipi/solaimanlipi.ttf') format('truetype'),
         url('https://fonts.maateen.me/solaiman-lipi/solaimanlipi.woff2') format('woff2');
}

@font-face {
    font-family: 'SolaimanLipi';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('SolaimanLipi Bold'), local('Solaiman Lipi Bold'),
         url('/assets/fonts/solaimanlipi/solaimanlipi-bold.woff2') format('woff2'),
         url('/assets/fonts/solaimanlipi/solaimanlipi.ttf') format('truetype'),
         url('https://fonts.maateen.me/solaiman-lipi/solaimanlipi-bold.woff2') format('woff2');
}

:root {
    --bs-body-font-family: 'SolaimanLipi', sans-serif !important;
    --bs-font-sans-serif: 'SolaimanLipi', sans-serif !important;
    --bs-font-monospace: 'SolaimanLipi', monospace !important;
    --bs-body-font-weight: 400;

    --primary: #059669;
    --primary-light: #10B981;
    --primary-dark: #064E3B;
    --primary-soft: #ECFDF5;
    --primary-glow: rgba(16, 185, 129, 0.35);
    
    --accent: #F59E0B;
    --accent-glow: rgba(245, 158, 11, 0.25);
    
    --bg-page: #F6F8F7;
    --bg-card: #FFFFFF;
    --bg-card-glass: rgba(255, 255, 255, 0.94);
    
    --text-main: #111827;
    --text-muted: #64748B;
    --text-subtle: #94A3B8;
    
    --border-light: #E5E7EB;
    --border-glass: rgba(255, 255, 255, 0.8);
    
    --danger: #EF4444;
    --danger-soft: #FEF2F2;
    --warning: #F59E0B;
    --warning-soft: #FFFBEB;
    --info: #0EA5E9;
    --info-soft: #F0F9FF;
    
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 30px -6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(5, 150, 105, 0.18);
    --shadow-glow: 0 0 35px -5px var(--primary-glow);
}

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

html, body, button, input, select, textarea, .form-control, .form-select, .btn, .nav-link, .badge, table, td, th, tr, thead, tbody, h1, h2, h3, h4, h5, h6, p, span:not([class*="fa-"]):not([class*="fas"]):not([class*="far"]):not([class*="fab"]), a:not([class*="fa-"]):not([class*="fas"]):not([class*="far"]):not([class*="fab"]), label, div, strong, b, small, .font-monospace, code, pre {
    font-family: 'SolaimanLipi', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, strong, b, .fw-bold, .btn {
    font-weight: 700 !important;
}

.fa, .fas, .far, .fal, .fad, .fab,
.fa::before, .fas::before, .far::before, .fal::before, .fad::before, .fab::before,
[class^="fa-"]::before, [class*=" fa-"]::before,
i[class*="fa-"]::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-style: normal !important;
    font-weight: 900 !important;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}
.fab, .fab::before {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
}

body {
    background-color: #F6F8F7 !important;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 0 !important;
}

/* Bottom padding ONLY for logged-in user app with fixed bottom navigation */
body.app-layout,
body:has(.mobile-bottom-nav) {
    padding-bottom: 74px !important;
}

@media (min-width: 992px) {
    body,
    body.app-layout,
    body:has(.mobile-bottom-nav) {
        padding-bottom: 0 !important;
    }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-card-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
}

/* Top App Header */
.app-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.6px;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.brand-logo:hover .brand-logo-img {
    transform: scale(1.06);
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 18px rgba(5, 150, 105, 0.35);
    position: relative;
    overflow: hidden;
}

.brand-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    animation: iconShimmer 3.5s infinite;
}

@keyframes iconShimmer {
    0% { transform: translateY(-100%) rotate(45deg); }
    30%, 100% { transform: translateY(100%) rotate(45deg); }
}

/* User Balance Pill - Clean White on #F6F8F7 */
.balance-pill {
    background: #FFFFFF !important;
    color: #1E293B !important;
    border: 1px solid #E2E8F0 !important;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.balance-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #059669 !important;
    border-color: #CBD5E1 !important;
}

/* Layout Elements */
.app-wrapper {
    display: flex;
    min-height: calc(100vh - 65px);
}

.app-sidebar {
    width: 260px;
    background: #FFFFFF;
    border-right: 1px solid var(--border-light);
    flex-shrink: 0 !important;
    display: none;
    flex-direction: column;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 1020;
    transition: width 0.3s ease, margin 0.3s ease;
}

@media (min-width: 768px) {
    .app-sidebar {
        display: flex;
    }
}

.sidebar-menu {
    list-style: none;
    padding: 20px 14px;
}

.sidebar-menu li {
    margin-bottom: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 18px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.98rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.sidebar-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
    transform: translateX(3px);
}

.sidebar-link:hover i {
    transform: scale(1.15);
}

.sidebar-link.active {
    background: #FFFFFF !important;
    color: #059669 !important;
    border: 1.5px solid #E2E8F0 !important;
    border-left: 4px solid #059669 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    font-weight: 700;
}

.app-content {
    flex-grow: 1;
    min-width: 0;
    padding: 28px;
    max-width: 1320px;
    background-color: #F6F8F7 !important;
}

@media (max-width: 768px) {
    .app-content {
        padding: 18px 14px;
    }
}

/* Custom Cards - Crisp Pure White #FFFFFF on #F6F8F7 */
.card-custom {
    background: #FFFFFF !important;
    border-radius: 20px !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04) !important;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-custom:hover {
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.07) !important;
    border-color: #D1D5DB !important;
}

/* Wizard Pipeline */
.wizard-pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin-bottom: 28px;
    padding: 6px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wizard-pipeline::-webkit-scrollbar {
    height: 4px;
}

.wizard-pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    min-width: 75px;
    flex-shrink: 0;
}

.wizard-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

.wizard-circle.completed {
    background: #FFFFFF;
    border: 2px solid #059669;
    color: #059669;
}

.wizard-circle.active {
    background: #059669;
    border: 2px solid #059669;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.wizard-circle.upcoming {
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    color: #94A3B8;
}

.wizard-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.25;
    max-width: 100px;
}

.wizard-label.completed {
    color: #059669;
}

.wizard-label.active {
    color: #111827;
    font-weight: 700;
}

.wizard-label.upcoming {
    color: #94A3B8;
}

.wizard-line {
    flex-grow: 1;
    height: 3px;
    background: #E2E8F0;
    margin: 20px 4px 0 4px;
    min-width: 25px;
    border-radius: 2px;
    z-index: 1;
}

.wizard-line.completed {
    background: #059669;
}

/* Sidebar Steps */
.sidebar-step-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 10px;
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    transition: all 0.2s ease;
}

.sidebar-step-row.active {
    background: #F0FDF4;
    border-color: #A7F3D0;
}

.sidebar-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-step-icon.completed {
    background: #DCFCE7;
    color: #059669;
}

.sidebar-step-icon.active {
    background: #059669;
    color: #FFFFFF;
}

.sidebar-step-icon.upcoming {
    background: #F1F5F9;
    color: #94A3B8;
}

.card-header-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.card-title-clean {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Wallet Card */
.fintech-wallet-card {
    background: #FFFFFF !important;
    color: #111827 !important;
    border-radius: 20px !important;
    padding: 24px 26px !important;
    position: relative;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 24px;
}

.fintech-wallet-card::before,
.fintech-wallet-card::after {
    display: none !important;
}

.wallet-chip {
    width: 38px;
    height: 28px;
    background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);
    border-radius: 6px;
    display: inline-block;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    margin-bottom: 12px;
}

.wallet-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.3);
}

.balance-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #64748B !important;
    letter-spacing: 0.3px;
}

.balance-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827 !important;
    letter-spacing: -1px;
    margin: 4px 0 16px 0;
    text-shadow: none;
}

.wallet-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.wallet-badge-item {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Modern Metric Cards */
.metric-card-modern {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.metric-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.metric-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.metric-icon-box.green {
    background: #ECFDF5;
    color: #059669;
}
.metric-icon-box.blue {
    background: #EFF6FF;
    color: #2563EB;
}
.metric-icon-box.amber {
    background: #FFFBEB;
    color: #D97706;
}
.metric-icon-box.purple {
    background: #FAF5FF;
    color: #7C3AED;
}

.metric-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.metric-lbl {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* Quick Action Tiles */
.quick-action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-action-tile .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: all 0.25s ease;
}

.quick-action-tile:hover {
    background: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(5, 150, 105, 0.18);
    color: var(--primary-dark);
}

.quick-action-tile:hover .icon-wrap {
    background: var(--primary);
    color: #FFFFFF;
    transform: scale(1.1);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1030;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px;
    flex: 1;
    text-align: center;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

.mobile-nav-item.active {
    color: var(--primary);
    font-weight: 800;
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
}

/* Premium Clean Buttons */
.btn-primary-custom {
    background: #059669 !important;
    color: #FFFFFF !important;
    border: 1px solid #047857 !important;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background: #047857 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.btn-outline-custom {
    background: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    color: #334155 !important;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-outline-custom:hover {
    background: #F8FAFC !important;
    color: #059669 !important;
    border-color: #059669 !important;
    transform: translateY(-1px);
}

/* Form Controls */
.form-control, .form-select {
    background-color: #FFFFFF !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 12px !important;
    padding: 11px 16px !important;
    font-size: 0.95rem !important;
    color: #1E293B !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
    background-color: #FFFFFF !important;
    border-color: #059669 !important;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12) !important;
    outline: none !important;
}

.form-control:disabled, .form-control[readonly] {
    background-color: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    color: #64748B !important;
    cursor: not-allowed;
}

/* Live Payout Ticker */
.payout-ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    background: #FFFFFF;
    color: #334155;
    border-bottom: 1px solid #E2E8F0;
    padding: 10px 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.ticker-content {
    display: inline-block;
    animation: tickerMove 28s linear infinite;
}

@keyframes tickerMove {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
}

/* Interactive Calculator Box */
.calc-box {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 32px 28px;
}

.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #E2E8F0;
    outline: none;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
    border: 3px solid #FFFFFF;
}

/* Status Badges */
.badge-status {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge-status.success { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.badge-status.warning { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.badge-status.danger  { background: #FEE2E2; color: #B91C1C; border: 1px solid #FECACA; }
.badge-status.info    { background: #E0F2FE; color: #0369A1; border: 1px solid #BAE6FD; }

/* Interactive Ad Watcher */
.ad-player-box {
    background: #0F172A;
    color: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 290px;
}

.countdown-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 4px solid #10B981;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #10B981;
    margin: 18px auto;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
    animation: pulseGlow 1.4s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
    50% { transform: scale(1.06); box-shadow: 0 0 30px rgba(16, 185, 129, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    max-width: 380px;
}
.custom-toast {
    background: #FFFFFF;
    border-left: 5px solid var(--primary);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    font-size: 0.96rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-toast.error { border-left-color: var(--danger); }
.custom-toast.warning { border-left-color: var(--warning); }

@keyframes toastSlide {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* KPI Overview Cards for Admin & Referrals */
.kpi-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(16, 185, 129, 0.4);
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.kpi-icon.blue   { background: #EFF6FF; color: #2563EB; }
.kpi-icon.green  { background: #ECFDF5; color: #059669; }
.kpi-icon.amber  { background: #FFFBEB; color: #D97706; }
.kpi-icon.purple { background: #FAF5FF; color: #7C3AED; }
.kpi-icon.red    { background: #FEF2F2; color: #DC2626; }

.kpi-val {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.kpi-lbl {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.3;
}
/* =========================================================
   NATIVE MOBILE APP EXPERIENCE & PWA RESPONSIVENESS
========================================================= */

/* Mobile Bottom Navigation (Floating App Tab Bar) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    box-shadow: 0 -4px 25px rgba(15, 23, 42, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748B;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-item:active {
    transform: scale(0.92);
}

.mobile-nav-item.active {
    color: #059669 !important;
    font-weight: 700;
}

.mobile-nav-item.active i {
    transform: translateY(-2px);
    color: #059669;
}

.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 3px;
    background: #059669;
    border-radius: 3px;
}

/* Center Action Pill for Ads on Mobile */
.mobile-nav-item.center-action {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF !important;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-top: -18px;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-item.center-action i {
    font-size: 1.35rem;
    color: #FFFFFF;
}

.mobile-nav-item.center-action span {
    display: none;
}

.mobile-nav-item.center-action:active {
    transform: scale(0.94);
}

/* Native App-like Content Spacing on Phones (Logged-in app only) */
@media (max-width: 768px) {
    body.app-layout,
    body:has(.mobile-bottom-nav) {
        padding-bottom: 84px !important;
        background-color: #F8FAFC;
    }

    body.public-layout,
    body.auth-layout,
    body.admin-layout,
    body:not(.app-layout):not(:has(.mobile-bottom-nav)) {
        padding-bottom: 0 !important;
    }

    .app-content {
        padding: 14px 12px !important;
    }

    .app-header {
        padding: 8px 12px;
    }

    .brand-logo {
        font-size: 1.25rem;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .balance-pill {
        padding: 5px 12px;
        font-size: 0.85rem;
    }

    .card-custom {
        padding: 18px 14px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .fintech-wallet-card {
        padding: 22px 18px !important;
        border-radius: 20px !important;
        margin-bottom: 18px !important;
    }

    .fintech-wallet-card .balance-number {
        font-size: 2rem !important;
    }

    .wallet-badge-item {
        padding: 5px 12px !important;
        font-size: 0.8rem !important;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.92rem;
        border-radius: 12px;
    }

    .kpi-card {
        padding: 14px 12px;
        gap: 12px;
        border-radius: 14px;
    }

    .kpi-icon {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
        border-radius: 10px;
    }

    .kpi-val {
        font-size: 1.3rem;
    }
}

/* Smooth Touch Feedbacks for Mobile */
button, .btn, .card-custom, .list-group-item {
    -webkit-tap-highlight-color: transparent;
}

button:active, .btn:active {
    transform: scale(0.98);
}

/* ============================================================
   Enhanced Home Page UI & FinTech Micro-Interactions
   ============================================================ */

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.3); }
    50% { box-shadow: 0 15px 35px 0 rgba(16, 185, 129, 0.5); }
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-float {
    animation: floatSlow 5s ease-in-out infinite;
}

.animate-float-reverse {
    animation: floatReverse 6s ease-in-out infinite;
}

.pulse-glow-btn {
    animation: pulseGlow 3s infinite;
}

/* Glassmorphism Public Navbar */
.public-nav-glass {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
    transition: all 0.3s ease;
}

/* Mobile Navbar: Left Menu Button, Centered Brand Logo */
@media (max-width: 991.98px) {
    .public-nav-glass .container {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .public-nav-glass .public-mobile-brand {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        text-align: center !important;
        z-index: 1 !important;
        white-space: nowrap !important;
    }
    .public-nav-glass .navbar-toggler {
        position: relative !important;
        z-index: 2 !important;
        margin-right: auto !important;
    }
}

.nav-link-pill {
    padding: 8px 16px !important;
    border-radius: 50px;
    color: #334155 !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

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

/* Hero Section Mesh */
.hero-mesh-bg {
    background: radial-gradient(circle at 10% 20%, rgba(236, 253, 245, 0.9) 0%, rgba(255, 255, 255, 0.95) 45%, #F8FAFC 100%);
    position: relative;
}

.hero-mesh-bg::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Top Ticker Bar */
.top-announcement-bar {
    background: linear-gradient(90deg, #022C22 0%, #064E3B 50%, #047857 100%);
    color: #FFFFFF;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Custom Styled Range Slider */
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: #E2E8F0;
    outline: none;
    transition: background 0.2s;
    cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45);
    border: 3px solid #FFFFFF;
    transition: transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45);
    border: 3px solid #FFFFFF;
}

/* Preset Chips for Calculator */
.preset-chip {
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-chip:hover, .preset-chip.active {
    background: #059669;
    color: #FFFFFF;
    border-color: #059669;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

/* Stat Box Cards */
.stat-box-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-box-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px -4px rgba(5, 150, 105, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
}

.stat-icon-bubble {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Feature 3D Cards */
.feature-card-pro {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 22px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}

.feature-card-pro:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 16px 36px -4px rgba(5, 150, 105, 0.12);
}

.feature-card-pro .feature-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Step Flow Cards */
.step-card-flow {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 22px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.step-card-flow:hover {
    transform: translateY(-5px);
    border-color: #10B981;
    box-shadow: 0 16px 32px -4px rgba(5, 150, 105, 0.12);
}

.step-num-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF;
    font-size: 1.5rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}

/* Live Cashout Proof Chips */
.proof-chip {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 50px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
}

/* Modern FAQ Accordion */
.faq-accordion .accordion-item {
    border: 1px solid #E2E8F0;
    border-radius: 16px !important;
    margin-bottom: 14px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
}

.faq-accordion .accordion-item:hover {
    border-color: #CBD5E1;
}

.faq-accordion .accordion-button {
    font-weight: 700;
    color: #1E293B;
    background: #FFFFFF;
    padding: 18px 22px;
    border-radius: 16px !important;
    font-size: 1.02rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: #059669;
    background: #F0FDF4;
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.faq-accordion .accordion-body {
    padding: 16px 22px 22px 22px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Select2 & Toastr */
.select2-container--default .select2-selection--single {
    height: 44px !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    background-color: #FFFFFF !important;
    font-family: inherit !important;
    transition: all 0.2s ease-in-out;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px !important;
    color: #1E293B !important;
    font-family: inherit !important;
    padding-left: 0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    right: 8px !important;
}
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}
.select2-dropdown {
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
    font-family: inherit !important;
    overflow: hidden !important;
}
.select2-results__option {
    padding: 8px 14px !important;
    font-size: 0.95rem !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #10B981 !important;
    color: #FFFFFF !important;
}

/* Toastr Notification Styling */
#toast-container > div {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15) !important;
    font-family: inherit !important;
    padding: 15px 15px 15px 50px !important;
    opacity: 0.98 !important;
}
#toast-container > .toast-success {
    background-color: #059669 !important;
}
#toast-container > .toast-error {
    background-color: #DC2626 !important;
}
#toast-container > .toast-info {
    background-color: #2563EB !important;
}
#toast-container > .toast-warning {
    background-color: #D97706 !important;
}

/* Mobile Drawer */
.luxury-mobile-drawer {
    width: 310px !important;
    max-width: 84vw !important;
    border-top-right-radius: 28px !important;
    border-bottom-right-radius: 28px !important;
    background: #FFFFFF !important;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.12) !important;
    border: none !important;
    z-index: 1060 !important;
}

.luxury-mobile-drawer .offcanvas-header {
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 16px;
}

.drawer-avatar img,
.drawer-avatar div {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.drawer-user-name {
    font-size: 1.05rem;
    color: #0F172A;
    line-height: 1.2;
}

.drawer-user-sub {
    font-size: 0.8rem;
    color: #64748B;
    margin-top: 2px;
}

.drawer-menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
}

.drawer-item {
    transition: all 0.2s ease;
    border-radius: 12px;
}

.drawer-item:hover {
    background: #F0FDF4;
    transform: translateX(4px);
}

.drawer-item .drawer-icon {
    font-size: 1.25rem;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.drawer-item:hover .drawer-icon {
    transform: scale(1.15);
}

.drawer-item.active {
    background: #F0FDF4;
    color: #059669;
    font-weight: 700;
}

.drawer-item.active .drawer-icon {
    color: #059669;
    transform: scale(1.1);
}

.drawer-footer {
    border-top: 1px solid #F1F5F9;
}

.drawer-sublink {
    font-size: 0.86rem;
    color: #64748B !important;
    transition: color 0.2s ease;
}

.drawer-sublink:hover {
    color: #0F172A !important;
}

.drawer-version {
    font-size: 0.75rem;
    color: #94A3B8;
    letter-spacing: 0.05em;
    font-family: inherit;
}

/* Modern Blog & Magazine Enhancements */
.card-img-zoom {
    transition: transform 0.4s ease;
}
.group-card:hover .card-img-zoom,
.group-hover-zoom:hover img {
    transform: scale(1.05);
}
.group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1) !important;
}
.hover-success {
    transition: color 0.2s ease;
}
.hover-success:hover {
    color: #059669 !important;
}
.hover-warning {
    transition: color 0.2s ease;
}
.hover-warning:hover {
    color: #FBBF24 !important;
}
.hover-bg-light:hover {
    background-color: #F8FAFC !important;
}
.hover-underline:hover {
    text-decoration: underline !important;
}
.transition-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.transition-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.06);
}
.rounded-pill-start {
    border-top-left-radius: 50rem !important;
    border-bottom-left-radius: 50rem !important;
}
.rounded-pill-end {
    border-top-right-radius: 50rem !important;
    border-bottom-right-radius: 50rem !important;
}
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.scrollbar-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}
.shadow-2xs {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

/* Responsive 970x90 Ad Container */
.ad-unit-970x90 {
    max-width: 970px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.ad-unit-970x90 iframe,
.ad-unit-970x90 ins.adsbygoogle,
.ad-unit-970x90 img,
.ad-unit-970x90 svg {
    max-width: 100% !important;
    height: auto !important;
}
@media (max-width: 991.98px) {
    .ad-unit-970x90 {
        max-width: 728px;
    }
}
@media (max-width: 767.98px) {
    .ad-unit-970x90 {
        max-width: 100%;
        min-height: 60px;
    }
}



