/* ZIVO PAY Official Presentation Poster Theme Overrides - 100% Emerald Green & White (ZERO GOLD) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --color-zivo-dark: #021c10;
    --color-zivo-emerald: #053522;
    --color-zivo-accent-green: #10b981;
    --color-zivo-navy: #1e3a8a;
    --color-zivo-orange: #ea580c;
    --color-accent: #10b981 !important;
    --color-emerald-500: #10b981 !important;
    --color-teal-500: #00e676 !important;
    --color-border: rgba(16, 185, 129, 0.65) !important;
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Background - Original Card-Free Emerald Fintech Visual */
body, body#dashboard {
    background-color: #021c10 !important;
    color: #f1f5f9;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    overflow-x: hidden !important;
}

/* ========================================================
   LIVE ANIMATED BACKGROUND MOTION & AMBIENT AURORA ENGINE
   ======================================================== */

@keyframes liveBackgroundMotion {
    0% {
        transform: scale(1.02) translate(0, 0);
    }
    33% {
        transform: scale(1.07) translate(-14px, -10px);
    }
    66% {
        transform: scale(1.1) translate(12px, -18px);
    }
    100% {
        transform: scale(1.04) translate(0, 0);
    }
}

@keyframes dashboardLightSweep {
    0%, 100% { opacity: 0.25; transform: translate3d(-8%, -4%, 0) scale(1); }
    50% { opacity: 0.7; transform: translate3d(9%, 6%, 0) scale(1.14); }
}

@keyframes dashboardGridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 64px 64px, 64px 64px; }
}

.live-bg-container {
    position: fixed;
    inset: -40px;
    z-index: -2;
    background-color: #010d08 !important;
    background-image:
        radial-gradient(ellipse at 12% 8%, rgba(16, 185, 129, 0.22), transparent 32%),
        radial-gradient(ellipse at 88% 72%, rgba(5, 150, 105, 0.2), transparent 30%),
        radial-gradient(ellipse at 50% 118%, rgba(20, 83, 45, 0.45), transparent 45%),
        linear-gradient(125deg, #010d08 0%, #022016 46%, #010b07 100%) !important;
    background-size: 120% 120%, 130% 130%, 140% 140%, cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    animation: liveBackgroundMotion 28s ease-in-out infinite alternate;
    pointer-events: none;
    will-change: transform;
}

.live-bg-container::before,
.live-bg-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.live-bg-container::before {
    background:
        repeating-radial-gradient(ellipse at 88% 118%, transparent 0 6%, rgba(52, 211, 153, 0.12) 6.2%, transparent 6.6% 11%),
        repeating-radial-gradient(ellipse at -8% 10%, transparent 0 9%, rgba(16, 185, 129, 0.07) 9.2%, transparent 9.6% 15%),
        radial-gradient(circle at 18% 30%, rgba(52, 211, 153, 0.2), transparent 20%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    filter: blur(2px);
    animation: dashboardLightSweep 12s ease-in-out infinite alternate;
}

.live-bg-container::after {
    background-image:
        linear-gradient(rgba(52, 211, 153, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
    animation: dashboardGridDrift 20s linear infinite;
}

.live-auth-bg-container {
    position: fixed;
    inset: -40px;
    z-index: -2;
    background-color: #021c10 !important;
    background-image: 
        linear-gradient(to bottom, rgba(2, 28, 16, 0.90), rgba(1, 15, 9, 0.95)),
        url('../images/zivo_auth_bg.jpg?v=6') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    animation: liveBackgroundMotion 24s ease-in-out infinite alternate;
    pointer-events: none;
    will-change: transform;
}

@keyframes pulseAuroraGlow {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.18);
    }
}

.aurora-glow-orb-1 {
    position: fixed;
    top: 10%;
    left: 20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    animation: pulseAuroraGlow 8s ease-in-out infinite;
}

.aurora-glow-orb-2 {
    position: fixed;
    bottom: 15%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, transparent 70%);
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
    animation: pulseAuroraGlow 12s ease-in-out infinite reverse;
}

@media (max-width: 640px) {
    .live-bg-container {
        inset: -24px;
        background-position: 58% center !important;
    }

    .aurora-glow-orb-1, .aurora-glow-orb-2 {
        width: 280px;
        height: 280px;
        filter: blur(55px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-bg-container, .live-bg-container::before, .live-bg-container::after,
    .aurora-glow-orb-1, .aurora-glow-orb-2 {
        animation: none !important;
    }
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6, .font-heading, .logo-text, .nav-section-title {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    letter-spacing: -0.2px;
}

h1, h2, h3 {
    font-weight: 800;
}

/* ========================================================
   ANIMATIONS & MOTION GRAPHICS
   ======================================================== */

/* 1. Page Entrance Fade & Slide Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inner-content > * {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.inner-content > *:nth-child(1) { animation-delay: 0.04s; }
.inner-content > *:nth-child(2) { animation-delay: 0.08s; }
.inner-content > *:nth-child(3) { animation-delay: 0.12s; }
.inner-content > *:nth-child(4) { animation-delay: 0.16s; }
.inner-content > *:nth-child(5) { animation-delay: 0.20s; }

/* 2. Emerald Light Sweep Animation */
@keyframes lightSweep {
    0% {
        transform: translateX(-150%) rotate(25deg);
    }
    35%, 100% {
        transform: translateX(250%) rotate(25deg);
    }
}

.bg-panel:not(.absolute):not([class*="absolute"]), .pdf-package-card, .ng-pkg-card, .btn-emerald {
    position: relative;
    overflow: hidden;
}

.bg-panel::after, .pdf-package-card::after, .ng-pkg-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 48%,
        rgba(16, 185, 129, 0.35) 50%,
        rgba(255, 255, 255, 0.15) 52%,
        transparent 60%
    );
    pointer-events: none;
    animation: lightSweep 7s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Emerald Shimmer Text & Buttons */
@keyframes emeraldShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.text-emerald-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 35%, #34d399 70%, #10b981 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: emeraldShimmer 6s infinite linear;
}

/* 4. Ambient Pulsing Emerald Glow */
@keyframes pulseEmeraldGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 35px rgba(16, 185, 129, 0.6), inset 0 1px 3px rgba(255, 255, 255, 0.4);
    }
}

.pdf-package-card, .ng-banner-title {
    animation: pulseEmeraldGlow 4s infinite ease-in-out;
}

/* 5. Smooth Floating Motion for Icons */
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.pdf-num-badge, .floating-icon {
    animation: floatIcon 3.5s ease-in-out infinite;
}

/* Header Dropdown Menu Styling */
#adminProfileMenu, #userProfileMenu, #globalSearchSuggestions, .dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
}

.dropdown-menu:not(.hidden) {
    display: block !important;
    animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar styling - POSTER DEEP EMERALD THEME */
.sidebar {
    width: 270px !important;
    background: linear-gradient(180deg, #053522 0%, #031c12 50%, #010d08 100%) !important;
    border-right: 2px solid rgba(16, 185, 129, 0.6) !important;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.8), inset -1px 0 2px rgba(255, 255, 255, 0.15) !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}

@media (min-width: 1024px) {
    .main-content {
        margin-left: 270px !important;
    }
}

/* Sidebar Collapse / Expand Functionality */
body.sidebar-collapsed .sidebar {
    width: 80px !important;
}

body.sidebar-collapsed .main-content {
    margin-left: 80px !important;
}

body.sidebar-collapsed .sidebar .logo-text,
body.sidebar-collapsed .sidebar .nav-text,
body.sidebar-collapsed .sidebar .nav-section-title,
body.sidebar-collapsed .sidebar .user-info,
body.sidebar-collapsed .sidebar .full-logo,
.sidebar.collapsed .full-logo {
    display: none !important;
}

body.sidebar-collapsed .sidebar .mini-logo,
.sidebar.collapsed .mini-logo {
    display: block !important;
}

body.sidebar-collapsed .sidebar .logo-section,
.sidebar.collapsed .logo-section {
    justify-content: center !important;
    padding: 16px 8px !important;
}

body.sidebar-collapsed .sidebar .nav-item {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
}

body.sidebar-collapsed .sidebar .user-section {
    padding: 12px 8px !important;
    justify-content: center !important;
}

.sidebar, .main-content {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (max-width: 1023px) {
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        z-index: 50 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .sidebar.mobile-sidebar-open {
        transform: translateX(0) !important;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.9) !important;
    }
}

.logo-section {
    border-bottom: 2px solid rgba(16, 185, 129, 0.5) !important;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.2) 0%, rgba(2, 28, 16, 0.6) 100%) !important;
    padding: 16px 16px !important;
}

/* Header Area */
header.glass {
    background: #031c12 !important;
    border-bottom: 2px solid rgba(16, 185, 129, 0.5) !important;
    backdrop-filter: none !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
}

/* Sidebar Active Nav Item - VIBRANT EMERALD GREEN */
.nav-item.active, a.nav-item.active {
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 14px !important;
    border-right: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.nav-item.active *, a.nav-item.active * {
    color: #ffffff !important;
}

/* Sidebar Hover Item */
.nav-item:hover:not(.active) {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.35) 0%, #053522 100%) !important;
    color: #a7f3d0 !important;
    transform: translateX(6px) scale(1.02) !important;
    border-left: 3px solid #10b981 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.nav-item:hover:not(.active) * {
    color: #a7f3d0 !important;
}

/* Nav Section Titles */
.nav-section-title {
    color: #a7f3d0 !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

.nav-item {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Badges Override */
.bg-emerald-500\/20, .bg-emerald-500\/10, .bg-sky-500\/20, .bg-amber-500\/20, .bg-amber-500\/10 {
    background: #042e1d !important;
    border: 1px solid rgba(16, 185, 129, 0.55) !important;
    color: #6ee7b7 !important;
}

/* Cards & Panels - POSTER METALLIC EMERALD WITH CRISP BORDERS (NO NAVY/SLATE BLUE) */
.bg-panel, .gold-card-animated, .pdf-package-card, .ng-pkg-card,
.bg-slate-900, .bg-slate-950, .bg-slate-800,
[class*="bg-slate-900"], [class*="bg-slate-950"], [class*="bg-emerald-950"] {
    background: linear-gradient(180deg, #042718 0%, #021a10 50%, #01120b 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.8) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.95), 0 0 25px rgba(16, 185, 129, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bg-panel:hover, .gold-card-animated:hover, .pdf-package-card:hover, .ng-pkg-card:hover {
    transform: translateY(-4px) scale(1.015) !important;
    border-color: #34d399 !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.95), 0 0 40px rgba(16, 185, 129, 0.45), inset 0 1px 3px rgba(255, 255, 255, 0.3) !important;
}

.ng-gold-ribbon, .pdf-gold-ribbon, .zivo-emerald-pill {
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #047857 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ng-banner-title {
    background: linear-gradient(180deg, #042718 0%, #021a10 50%, #01120b 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.8) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(16, 185, 129, 0.35) !important;
}

/* Poster Green Pill Banner */
.zivo-pill-banner {
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #047857 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5) !important;
}

/* Poster Table Styling (ZIVO PAY Deep Emerald Solid Theme) */
.poster-clean-table {
    background: #02180f !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.95), inset 0 1px 2px rgba(255, 255, 255, 0.08) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.poster-clean-table th {
    background: #042718 !important;
    color: #a7f3d0 !important;
    font-weight: 800 !important;
    font-size: 11.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 14px 18px !important;
    border-bottom: 2px solid rgba(16, 185, 129, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

.poster-clean-table td {
    padding: 14px 18px !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15) !important;
    font-size: 13px !important;
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    background-color: #02180f !important;
}

.poster-clean-table tr:nth-child(even) td {
    background-color: #032014 !important;
}

.poster-clean-table tr:hover td {
    background-color: #053320 !important;
}

/* Reusable Poster Table Typography & Elements - ZIVO Metallic Card Dark Theme */
.poster-table-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.poster-table-sub {
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 11.5px !important;
}

.poster-table-code {
    color: #34d399 !important;
    font-weight: 700 !important;
    font-family: monospace !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.3) !important;
}

.poster-badge-active {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
    font-weight: 800 !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    font-size: 10.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25) !important;
    display: inline-block !important;
}

.poster-badge-inactive {
    background: rgba(244, 63, 94, 0.15) !important;
    color: #fb7185 !important;
    border: 1.5px solid rgba(244, 63, 94, 0.5) !important;
    font-weight: 800 !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    font-size: 10.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.25) !important;
    display: inline-block !important;
}

.poster-badge-branch-left {
    background: rgba(20, 184, 166, 0.15) !important;
    color: #2dd4bf !important;
    border: 1.5px solid rgba(20, 184, 166, 0.5) !important;
    font-weight: 800 !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    font-size: 10.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

.poster-badge-branch-right {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
    font-weight: 800 !important;
    padding: 4px 12px !important;
    border-radius: 9999px !important;
    font-size: 10.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
}

.poster-btn-action-view {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: 1px solid #38bdf8 !important;
    font-weight: 800 !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3) !important;
    transition: all 0.2s ease !important;
}

.poster-btn-action-view:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.poster-btn-action-edit {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-weight: 800 !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    transition: all 0.2s ease !important;
}

.poster-btn-action-edit:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.poster-btn-action-login {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.2s ease !important;
}

.poster-btn-action-login:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
    transform: translateY(-1px) !important;
}

/* Emerald Shimmer Button */
.bg-amber-500, .bg-emerald-500, .btn-gold, .pdf-gold-ribbon {
    background: linear-gradient(90deg, #059669 0%, #10b981 50%, #047857 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5) !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.bg-amber-500 *, .bg-emerald-500 *, .btn-gold *, .pdf-gold-ribbon * {
    color: #ffffff !important;
    font-weight: 900 !important;
}

.bg-amber-500:hover, .bg-emerald-500:hover, .btn-gold:hover, .pdf-gold-ribbon:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.7) !important;
}

/* Card Titles & Headings */
.text-amber-400, .text-amber-300, .text-emerald-400, .text-teal-400, .text-sky-400 {
    color: #34d399 !important;
}

.pdf-gold-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 2px solid #a7f3d0 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6) !important;
    color: #ffffff !important;
}

.pdf-gold-badge * {
    color: #ffffff !important;
}

/* Number Circle Badges like Poster */
.pdf-num-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    font-weight: 900;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
    border: 2px solid #a7f3d0;
}

/* Tables */
.bg-bg {
    background-color: rgba(1, 15, 9, 0.95) !important;
}

thead th {
    color: #34d399 !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid rgba(16, 185, 129, 0.4) !important;
}

tbody tr {
    transition: all 0.2s ease !important;
}

tbody tr:hover {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

/* Inputs & Form Controls */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
    background-color: rgba(1, 15, 9, 0.92) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
    color: #ffffff !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    transition: all 0.25s ease !important;
}

input:focus, select:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
}

input.is-invalid, select.is-invalid {
    border-color: #ff5252 !important;
    box-shadow: 0 0 14px rgba(255, 82, 82, 0.4) !important;
}

input.is-valid, select.is-valid {
    border-color: #00e676 !important;
    box-shadow: 0 0 14px rgba(0, 230, 118, 0.4) !important;
}

.input-error-msg {
    color: #ff5252;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

/* Reusable Table Pagination Buttons */
.pagination-btn {
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(1, 15, 9, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-weight: 700;
    font-size: 12px;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #10b981;
    color: #ffffff;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn.active-page {
    background: #10b981;
    color: #ffffff;
}

/* Global Toast Notification System */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-msg {
    pointer-events: auto;
    min-width: 290px;
    max-width: 400px;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #053522 0%, #031c12 100%);
    border: 1.5px solid #10b981;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.4);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-msg.toast-success {
    border-color: #00e676;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 230, 118, 0.4);
}

.toast-msg.toast-error {
    border-color: #ff5252;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 82, 82, 0.4);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ========================================================
   GLOBAL ZIVO EMERALD PRELOADER & PULL-TO-REFRESH ANIMATIONS
   ======================================================== */

/* 1. Fullscreen Global Page Loader Overlay */
#globalPageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(5, 53, 34, 0.98) 0%, rgba(2, 28, 16, 0.98) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

#globalPageLoader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Dual Emerald Spinning Rings */
.zivo-spinner-container {
    position: relative;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zivo-spinner-outer {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(16, 185, 129, 0.15);
    border-top: 3px solid #10b981;
    border-right: 3px solid #34d399;
    border-radius: 50%;
    animation: spinOuter 1s linear infinite;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.zivo-spinner-inner {
    position: absolute;
    inset: 12px;
    border: 3px solid rgba(16, 185, 129, 0.1);
    border-bottom: 3px solid #059669;
    border-left: 3px solid #a7f3d0;
    border-radius: 50%;
    animation: spinInner 0.75s linear infinite reverse;
}

.zivo-loader-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    animation: pulseLogo 1.5s ease-in-out infinite alternate;
}

@keyframes spinOuter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinInner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseLogo {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.8)); }
}

.zivo-loader-text {
    margin-top: 18px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.zivo-loader-sub {
    margin-top: 4px;
    font-size: 11px;
    color: #6ee7b7;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 2. Pull-To-Refresh Indicator Pill */
#pullToRefreshIndicator {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: linear-gradient(135deg, #053522 0%, #031c12 100%);
    border: 1.5px solid #10b981;
    border-radius: 9999px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(16, 185, 129, 0.4);
    transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

#pullToRefreshIndicator.pull-visible {
    top: 24px;
    opacity: 1;
}

.pull-icon-container {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.pull-spinner-ring {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-top: 2px solid #34d399;
    border-radius: 50%;
    animation: spinOuter 0.8s linear infinite;
}

.pull-text {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-weight: 800;
    font-size: 12px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Smooth Body Elastic Pull Effect */
body.is-pulling {
    touch-action: pan-x pan-y;
}

/* 3. Form & Card Glass Blur Effect on Action */
.form-blur-loading, form.is-loading, .card-blur-loading {
    filter: blur(5px) brightness(0.85) !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
    transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease !important;
    user-select: none !important;
}

.relative-blur-container {
    position: relative !important;
}

/* Localized Card/Form Spinner Overlay */
.form-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 28, 16, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 4. Button Action Loader Spinner & Ripple Animations */
button:not(.absolute):not([class*="absolute"]), .btn:not(.absolute):not([class*="absolute"]), .poster-btn-action-view, .poster-btn-action-edit, .poster-btn-action-login, input[type="submit"] {
    position: relative;
    overflow: hidden;
}

/* Password Eye Toggle Buttons & Absolute Positioned Buttons Fix */
button.absolute, button[class*="absolute"], .absolute-btn {
    position: absolute !important;
}

.btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpinnerRotate 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes btnSpinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Ripple Wave Effect */
.btn-ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transform: scale(0);
    animation: rippleEffect 0.55s cubic-bezier(0, 0, 0.2, 1);
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Dashboard 2-Column Side-by-Side Grid Layout Overrides (col-sm-6) */
.grid-cols-2, .md\:grid-cols-2, .lg\:grid-cols-2, .grid-2-col {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
}

@media (max-width: 768px) {
    .grid-cols-2, .md\:grid-cols-2, .lg\:grid-cols-2, .grid-2-col {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

/* User Dashboard Glow & Animated Card Utility Overrides */
.user-card-glow {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(3, 28, 18, 0.95) 100%) !important;
    border: 2px solid rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.user-card-glow:hover {
    border-color: rgba(16, 185, 129, 0.85) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(16, 185, 129, 0.35) !important;
    transform: translateY(-3px);
}

@keyframes pulseGlowBorder {
    0%, 100% {
        border-color: rgba(16, 185, 129, 0.4);
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
    }
    50% {
        border-color: rgba(16, 185, 129, 0.85);
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    }
}

.pulse-border-glow {
    animation: pulseGlowBorder 4s ease-in-out infinite;
}

/* Enhanced Interactive Animations & Card Hover Effects */
.card-hover-scale {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
}
.card-hover-scale:hover {
    transform: translateY(-4px) scale(1.01) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(16, 185, 129, 0.35) !important;
    border-color: rgba(52, 211, 153, 0.8) !important;
}

.btn-hover-lift {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-hover-lift:hover {
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5) !important;
}
.btn-hover-lift:active {
    transform: translateY(0) scale(0.98) !important;
}

/* Modal Entrance Scale Animation */
@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#addFundModal > div, #approveModal > div, #rejectModal > div, .modal-animated {
    animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Smooth Table Row Transition */
table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease !important;
}

/* Responsive Table Wrapper Scrollbar Styling */
.overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.4) rgba(2, 28, 16, 0.8);
}
.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}
.overflow-x-auto::-webkit-scrollbar-track {
    background: rgba(2, 28, 16, 0.8);
    border-radius: 9999px;
}
.overflow-x-auto::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.4);
    border-radius: 9999px;
}

/* ZIVO Filter Bar Official 1-Row Layout Rules */
.zivo-filter-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

.zivo-filter-field-date {
    flex: 0 0 145px !important;
    width: 145px !important;
    max-width: 100% !important;
}

.zivo-filter-field-select {
    flex: 0 0 165px !important;
    width: 165px !important;
    max-width: 100% !important;
}

.zivo-filter-field-search {
    flex: 1 1 200px !important;
    min-width: 180px !important;
}

.zivo-filter-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

@media (max-width: 640px) {
    .zivo-filter-field-date,
    .zivo-filter-field-select,
    .zivo-filter-field-search,
    .zivo-filter-actions {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}
