/* =========================================
   CSS Reset & Custom Properties (Tokens)
========================================= */
:root {
    /* Colors */
    --clr-bg: #030712;
    --clr-bg-card: rgba(17, 24, 39, 0.65);
    --clr-bg-nav: rgba(3, 7, 18, 0.8);

    --clr-text-main: #f9fafb;
    --clr-text-muted: #9ca3af;

    --clr-primary: #3b82f6;
    --clr-primary-hover: #2563eb;

    --clr-accent-1: #10b981;
    /* Emerald */
    --clr-accent-2: #8b5cf6;
    /* Purple */
    --clr-accent-3: #f59e0b;
    /* Amber */

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Border & Shadows */
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(3, 7, 18, 0) 70%);
}

.blob-2 {
    top: 40%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(3, 7, 18, 0) 70%);
}

/* =========================================
   Typography & Utilities
========================================= */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-hover));
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.btn-primary:hover::after {
    left: 150%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--clr-text-main) !important;
}

a.btn.btn-outline {
    color: var(--clr-text-main) !important;
}

.btn.btn-outline:hover,
a.btn.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: var(--clr-text-main) !important;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--clr-bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--border-glass);
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--clr-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--clr-text-muted);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--clr-text-main);
}

.nav-links .nav-btn {
    color: #fff;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--clr-text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    padding: 10rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
    color: var(--clr-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* =========================================
   Services Grid
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Specific Icon Colors */
.bvn-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--clr-primary);
}

.nin-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--clr-accent-1);
}

.agency-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--clr-accent-3);
}

.vtu-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--clr-accent-2);
}

.notary-icon {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.ticket-icon {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.auction-icon {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.post-icon {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: var(--clr-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    position: relative;
    z-index: 2;
    transition: var(--transition-fast);
}

.card-link i {
    transition: transform 0.2s ease;
}

.card-link:hover {
    color: var(--clr-text-main);
}

.card-link:hover i {
    transform: translateX(4px);
}

/* =========================================
   Footer
========================================= */
.footer {
    border-top: var(--border-glass);
    padding: 4rem 0 2rem;
    background: rgba(3, 7, 18, 0.6);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--clr-text-muted);
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links h4 {
    color: var(--clr-text-main);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--clr-primary);
}

.footer-bottom {
    text-align: center;
    border-top: var(--border-glass);
    padding-top: 2rem;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

/* =========================================
   Animations & Responsive
========================================= */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

@media (max-width: 992px) {
    /* Revert back to Sidebar for Mobile */
    .dashboard-body {
        flex-direction: row;
    }
    .sidebar {
        flex-direction: column;
        width: 280px;
        height: 100vh;
        position: fixed;
        left: -280px;
        top: 0;
        transition: left var(--transition-normal);
        z-index: 1050;
    }
    .sidebar.open {
        left: 0;
    }
    .sidebar-header {
        flex-direction: column;
        border-right: none;
        border-bottom: var(--border-glass);
        padding: 1.5rem;
        height: auto;
    }
    .sidebar-nav {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1.5rem 1rem;
        height: auto;
        align-items: stretch;
    }
    .nav-section {
        display: block;
        margin: 1.5rem 0 0.5rem 0.5rem;
    }
    .nav-item {
        margin-bottom: 0.25rem;
        height: auto;
    }
    .nav-item.has-submenu .submenu {
        position: static;
        display: none;
        background: transparent;
        box-shadow: none;
        border: none;
        margin: 6px 0 10px 2.75rem;
        padding: 0;
        min-width: auto;
    }
    .nav-item.has-submenu.open .submenu {
        display: flex;
    }
    .sidebar-footer {
        border-left: none;
        border-top: var(--border-glass);
        padding: 1.5rem;
        height: auto;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Dashboard Layouts (Shared) - Vertical Sidebar
========================================= */
.dashboard-body {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
}

/* Vertical Left Navigation (Desktop) */
.sidebar {
    width: var(--sidebar-w, 260px);
    background: #030712;
    border-right: var(--border-glass);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    height: 100vh;
    flex-shrink: 0;
    z-index: 100;
    transition: width var(--transition-normal);
}

.sidebar.minimized {
    width: 70px;
}

.sidebar-header {
    padding: 0 1.5rem;
    border-bottom: var(--border-glass);
    border-right: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    flex-shrink: 0;
}

.sidebar.minimized .sidebar-header {
    padding: 0;
    justify-content: center;
}

.sidebar.minimized .sidebar-logo span {
    display: none;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0.75rem;
    gap: 0.25rem;
}

.nav-section {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin: 1.5rem 0 0.5rem 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.sidebar.minimized .nav-section {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.nav-item {
    margin-bottom: 0.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.nav-item > a, .nav-item > button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--clr-text-muted);
    transition: var(--transition-fast);
    white-space: nowrap;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9375rem;
    text-decoration: none;
}

.nav-item > a:hover, .nav-item > button:hover {
    color: var(--clr-text-main);
    background: rgba(255,255,255,0.05);
}

.nav-item.active > a, .nav-item.active > button {
    background: rgba(59, 130, 246, 0.1);
    color: var(--clr-primary);
    font-weight: 600;
}

.nav-item > a i:first-child, .nav-item > button i:first-child {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar.minimized .nav-text, 
.sidebar.minimized .submenu-arrow {
    display: none;
}

.sidebar.minimized .nav-item > a, 
.sidebar.minimized .nav-item > button {
    justify-content: center;
    padding: 0.75rem 0;
}

/* Submenu Dropdown logic for Vertical */
.nav-item.has-submenu .submenu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    background: rgba(0,0,0,0.15);
    border-radius: 0.5rem;
    margin-top: 0.25rem;
}

.nav-item.has-submenu.open .submenu {
    max-height: 500px; /* arbitrary large value for transition */
}

.nav-item .submenu a {
    padding: 0.6rem 1rem 0.6rem 2.75rem;
    color: var(--clr-text-muted);
    background: transparent;
    border: none;
    font-size: 0.875rem;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-item .submenu a:hover, .nav-item .submenu a.active {
    color: var(--clr-text-main);
    background: rgba(255,255,255,0.03);
}

.sidebar.minimized .nav-item.has-submenu .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 200px;
    background: var(--clr-bg-nav);
    border: var(--border-glass);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    margin-top: 0;
    margin-left: 0.5rem;
    border-radius: 0.5rem;
    z-index: 105;
    max-height: none;
    display: none;
}

.sidebar.minimized .nav-item.has-submenu:hover .submenu {
    display: flex;
}

.sidebar.minimized .nav-item .submenu a {
    padding: 0.75rem 1.25rem;
}

.submenu-arrow {
    transition: transform 0.3s ease;
}

.nav-item.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

.sidebar-footer {
    padding: 1rem;
    border-top: var(--border-glass);
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar.minimized .sidebar-footer {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.sidebar.minimized .sidebar-user-info {
    display: none;
}

.sidebar.minimized .sidebar-user {
    margin-right: 0 !important;
}

.sidebar-user-link {
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    transition: var(--transition-fast);
}

.sidebar-user-link:hover .sidebar-user,
.sidebar-user-link:focus-visible .sidebar-user {
    background: rgba(255,255,255,0.05);
}

.sidebar-user-link:focus-visible {
    outline: none;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-hover));
    color: #fff;
    font-weight: 700;
}

.sidebar-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-user-avatar-fallback {
    line-height: 1;
}

.sidebar-user-info {
    min-width: 0;
}

.su-name,
.su-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
    background: var(--clr-bg);
}

.top-header {
    height: 70px;
    border-bottom: var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    background: var(--clr-bg-nav);
    z-index: 10;
    backdrop-filter: blur(12px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.action-btn:hover {
    color: var(--clr-text-main);
}

.wallet-balance {
    text-align: right;
    margin-right: 1rem;
}

.wallet-balance span {
    display: block;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

/* RTL Support */
[dir="rtl"] .sidebar {
    border-right: none;
    border-left: var(--border-glass);
}
[dir="rtl"] .nav-item .submenu a {
    padding: 0.6rem 2.75rem 0.6rem 1rem;
}
[dir="rtl"] .sidebar.minimized .nav-item.has-submenu .submenu {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Dashboard Content Grid */
.dashboard-content {
    padding: 2rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--clr-bg-card);
    border: var(--border-glass);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.income {
    background: rgba(59, 130, 246, 0.1);
    color: var(--clr-primary);
}

.stat-icon.users {
    background: rgba(139, 92, 246, 0.1);
    color: var(--clr-accent-2);
}

.stat-icon.endpoints {
    background: rgba(16, 185, 129, 0.1);
    color: var(--clr-accent-1);
}

.stat-icon.alerts {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.stat-icon.tickets {
    background: rgba(245, 158, 11, 0.1);
    color: var(--clr-accent-3);
}

.stat-details h3 {
    font-size: 1.5rem;
    margin: 0.25rem 0;
}

.trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trend.up {
    color: var(--clr-accent-1);
}

.trend.down {
    color: #f43f5e;
}

.trend.stable {
    color: var(--clr-text-muted);
}

.trend.waiting {
    color: var(--clr-accent-3);
}

/* Quick Actions (User Dashboard) */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.action-card {
    background: var(--clr-bg-card);
    border: var(--border-glass);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition-fast);
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.action-card .icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.action-card .icon.vtu {
    color: var(--clr-accent-2);
}

.action-card .icon.nin {
    color: var(--clr-accent-1);
}

/* Data Panels & Tables */
.dashboard-panels {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.w-full {
    grid-column: 1 / -1;
}

.panel {
    background: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 1rem;
    overflow: hidden;
}

.panel-header {
    padding: 1.5rem;
    border-bottom: var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header a {
    color: var(--clr-primary);
    font-size: 0.875rem;
}

.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
    font-weight: 500;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.failed {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.badge-service {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Alert List */
.alert-list {
    padding: 1rem;
}

.alert-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.alert-item.high i {
    color: #f43f5e;
}

.alert-item.medium i {
    color: var(--clr-accent-3);
}

.alert-text p {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.alert-text span {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

/* =========================================
   Auth Pages (login, register, forgot)
========================================= */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.auth-container.centered {
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-brand {
    flex: 1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.1));
    border-right: var(--border-glass);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.auth-brand h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.auth-brand p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    max-width: 420px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.brand-feat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--clr-text-muted);
}

.brand-feat i {
    color: var(--clr-primary);
    font-size: 1.1rem;
}

.auth-form-side {
    width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    background: var(--clr-bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 1.5rem;
}

.auth-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-sub {
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label-link {
    color: var(--clr-primary);
    font-size: 0.875rem;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: var(--border-glass);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    transition: border-color 0.2s;
}

.input-wrap:focus-within {
    border-color: var(--clr-primary);
    background: rgba(59, 130, 246, 0.04);
}

.input-wrap.resolved {
    border-color: var(--clr-accent-1);
    background: rgba(16, 185, 129, 0.04);
}

.input-wrap.resolved i {
    color: var(--clr-accent-1);
}

.input-wrap i {
    color: var(--clr-text-muted);
    font-size: 1rem;
    width: 16px;
    flex-shrink: 0;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--clr-text-main);
    font-family: inherit;
    font-size: 0.9375rem;
}

.input-wrap select option {
    background: #111827;
}

.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: var(--border-glass);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--clr-text-main);
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}

.form-textarea:focus {
    border-color: var(--clr-primary);
}

.toggle-pw {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    cursor: pointer;
    padding: 0;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

.form-check a {
    color: var(--clr-primary);
}

.btn-full {
    width: 100%;
    border-radius: 0.75rem;
    padding: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--clr-text-muted);
    font-size: 0.9375rem;
}

.auth-switch a {
    color: var(--clr-primary);
    font-weight: 500;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.oauth-buttons {
    display: flex;
    gap: 1rem;
}

.oauth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: var(--border-glass);
    color: var(--clr-text-main);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-fast);
}

.oauth-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Password strength */
.pw-strength {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.pw-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.pw-label {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Centered card (forgot-password) */
.centered-card {
    max-width: 420px;
    background: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    text-align: center;
}

.auth-icon-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--clr-primary);
}

.success-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    color: var(--clr-accent-1);
    font-size: 1rem;
}

.success-msg i {
    font-size: 3rem;
}

.hidden {
    display: none !important;
}

/* =========================================
   Service Pages (nin, bvn, notary, etc.)
========================================= */
.service-hero {
    padding: 10rem 0 5rem;
    text-align: center;
    position: relative;
}

.service-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.service-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* service hero icon colors */
.service-hero-icon.nin {
    background: rgba(16, 185, 129, 0.1);
    color: var(--clr-accent-1);
}

.service-hero-icon.bvn {
    background: rgba(59, 130, 246, 0.1);
    color: var(--clr-primary);
}

.service-hero-icon.vtu {
    background: rgba(139, 92, 246, 0.1);
    color: var(--clr-accent-2);
}

.service-hero-icon.notary {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.service-hero-icon.ticket {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.service-hero-icon.auction {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
}

.service-hero-icon.agency {
    background: rgba(245, 158, 11, 0.1);
    color: var(--clr-accent-3);
}

.service-hero-icon.post {
    background: rgba(234, 88, 12, 0.1);
    color: #ea580c;
}

.service-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.service-hero p {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-form-section {
    padding-top: 0;
}

.service-form-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.service-form-card {
    background: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.service-form-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-card-sub {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.service-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Service Info Panel */
.service-info {
    padding: 2rem;
    background: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 1.5rem;
}

.service-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--clr-text-muted);
    font-size: 0.9375rem;
}

.info-list li i {
    color: var(--clr-accent-1);
    flex-shrink: 0;
}

.pricing-mini {
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    border-radius: 1rem;
    padding: 1.25rem;
}

.pricing-mini h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-text-muted);
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

.price-row:last-child {
    border-bottom: none;
}

.price-row strong {
    color: var(--clr-text-main);
}

/* Result Card */
.result-card {
    margin-top: 2rem;
    border: var(--border-glass);
    border-radius: 1rem;
    overflow: hidden;
}

.result-header {
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-header.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--clr-accent-1);
}

.result-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.result-row span {
    color: var(--clr-text-muted);
}

.text-success {
    color: var(--clr-accent-1);
}

/* =========================================
   VTU Tabs (shared: vtu, ticketing, etc.)
========================================= */
.vtu-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 1rem;
    padding: 0.5rem;
    width: fit-content;
    margin: 0 auto 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.vtu-tab {
    padding: 0.6rem 1.25rem;
    border-radius: 0.6rem;
    border: none;
    background: transparent;
    color: var(--clr-text-muted);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.vtu-tab:hover {
    color: var(--clr-text-main);
}

.vtu-tab.active {
    background: rgba(59, 130, 246, 0.12);
    color: var(--clr-primary);
}

.vtu-panel {
    display: none;
}

.vtu-panel.active {
    display: block;
}

/* Network Pills */
.network-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.network-opt {
    cursor: pointer;
}

.network-opt input {
    display: none;
}

.network-opt span {
    display: block;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: var(--border-glass);
    font-size: 0.875rem;
    transition: var(--transition-fast);
    background: rgba(255, 255, 255, 0.03);
}

.network-opt input:checked+span {
    background: rgba(59, 130, 246, 0.12);
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    font-weight: 600;
}

.amount-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    border: var(--border-glass);
    background: rgba(255, 255, 255, 0.03);
    color: var(--clr-text-muted);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.pill:hover,
.pill.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

/* =========================================
   Auction Cards
========================================= */
.auction-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.auction-card {
    background: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.auction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auction-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.auction-badge.live {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.auction-badge.upcoming {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.auction-img {
    height: 150px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--clr-text-muted);
    border-bottom: var(--border-glass);
}

.auction-img.land {
    color: var(--clr-accent-1);
}

.auction-img.electronics {
    color: var(--clr-primary);
}

.auction-body {
    padding: 1.5rem;
}

.auction-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auction-body>p {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.auction-bid-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.auction-bid-row div span {
    display: block;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.1rem;
}

.auction-bid-row div strong {
    font-size: 1rem;
    font-weight: 700;
}

.countdown {
    color: #f43f5e;
}

/* =========================================
   Tracking Timeline (Post Office)
========================================= */
.tracking-timeline {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    width: 2px;
    height: calc(100% - 8px);
    background: rgba(255, 255, 255, 0.08);
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step i {
    font-size: 1.25rem;
    flex-shrink: 0;
    color: var(--clr-text-muted);
    z-index: 1;
}

.timeline-step.done i {
    color: var(--clr-accent-1);
}

.timeline-step.active i {
    color: var(--clr-primary);
}

.timeline-step div {
    display: flex;
    flex-direction: column;
}

.timeline-step div strong {
    font-size: 0.9375rem;
}

.timeline-step div span {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

/* nav-badge */
.nav-badge {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 9999px;
    font-weight: 700;
    margin-left: auto;
}

/* notification dot */
.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #f43f5e;
    border-radius: 50%;
}

@media (max-width: 1100px) {
    .dashboard-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 299;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        background: #030712;
        z-index: 300;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Mobile drawer must always be full-width even if desktop collapsed state was saved. */
    .sidebar.minimized {
        width: var(--sidebar-w, 260px);
    }
    .sidebar.minimized .nav-text,
    .sidebar.minimized .submenu-arrow,
    .sidebar.minimized .nav-section,
    .sidebar.minimized .sidebar-user-info {
        display: initial;
        opacity: 1;
    }

    .main-content {
        width: 100%;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .top-header {
        padding: 0 1rem;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 14px;
        left: 14px;
        z-index: 2000;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: var(--clr-primary, #3b82f6);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        border: none;
        color: #fff;
        font-size: 1.25rem;
        cursor: pointer;
    }
}

/* =========================================
   Mobile App (Native Feel) Optimizations
========================================= */
@media (max-width: 768px) {

    /* Enforce Strict Viewport Logic */
    html,
    body {
        overflow-x: hidden;
        width: 100vw;
        max-width: 100%;
        -webkit-text-size-adjust: 100%;
    }

    /* Native Touch Targets (min 44px) */
    .btn,
    .input-wrap,
    .form-textarea,
    .action-btn,
    .vtu-tab,
    select,
    input {
        min-height: 48px !important;
    }

    .input-wrap input,
    .input-wrap select {
        font-size: 16px;
        /* Prevents iOS Safari Zoom on focus */
    }

    /* Dashboard Spacing Compression */
    .dashboard-content {
        padding: 1.25rem 1rem !important;
    }

    .top-header {
        padding: 0 1rem;
        height: 60px;
    }

    /* Collapse Top Header Search into an Icon or hide entirely on mobile */
    .header-search input {
        display: none;
    }

    .header-search {
        background: transparent;
        border: none;
        width: auto;
        padding: 0;
    }

    .header-search i {
        font-size: 1.25rem;
        color: var(--clr-text-main);
    }

    /* Stats & Panels to Single Column Layout */
    .dashboard-panels,
    .service-form-container,
    .data-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.25rem;
    }

    /* Ensure tables can scroll horizontally without breaking screen width */
    .panel {
        width: 100% !important;
        max-width: 100vw;
    }

    .table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* smooth momentum scrolling */
    }

    /* Reduce Auth Splitting Layouts to Stack */
    .auth-brand {
        display: none;
        /* Hide heavy graphics on small auth screens */
    }

    .auth-form-side {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    /* Refine Bottom Info Sections */
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
}

/* =========================================
   Admin Panel & Table Enhancements
========================================= */
.admin-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    color: #fff;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.admin-table thead th {
    background: rgba(255, 255, 255, 0.05);
    border: none !important;
    padding: 1.25rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

.admin-table thead th:first-child {
    border-radius: 12px 0 0 12px;
}

.admin-table thead th:last-child {
    border-radius: 0 12px 12px 0;
}

.admin-table tbody tr {
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.002);
}

.admin-table tbody td {
    padding: 1.25rem 1.5rem;
    border: none !important;
    vertical-align: middle;
}

.admin-table tbody td:first-child {
    border-radius: 12px 0 0 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.admin-table tbody td:last-child {
    border-radius: 0 12px 12px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.admin-table tbody tr td {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Glass Card Overrides for Dashboard */
.glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--clr-primary) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* Form Control Nexus Style */
.form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 14px !important;
    padding: 0.75rem 1.25rem !important;
    height: auto !important;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--clr-primary) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}

/* Badge Styles */
.badge-pill {
    border-radius: 50rem !important;
    padding: 0.5em 1rem !important;
    font-weight: 600 !important;
}

.badge-success { background: rgba(16, 185, 129, 0.15) !important; color: #10b981 !important; border: 1px solid rgba(16, 185, 129, 0.2) !important; }
.badge-warning { background: rgba(245, 158, 11, 0.15) !important; color: #f59e0b !important; border: 1px solid rgba(245, 158, 11, 0.2) !important; }
.badge-danger { background: rgba(239, 68, 68, 0.15) !important; color: #ef4444 !important; border: 1px solid rgba(239, 68, 68, 0.2) !important; }
.badge-primary { background: rgba(59, 130, 246, 0.15) !important; color: #3b82f6 !important; border: 1px solid rgba(59, 130, 246, 0.2) !important; }

/* Base Fix for table overflow globally */
.table-container {
    max-width: 100%;
    overflow-x: auto;
}

body .card,
body .list-group-item,
body .dropdown-menu {
    background: var(--clr-bg-card);
    border: var(--border-glass);
    color: var(--clr-text-main);
}

body .card-header,
body .card-footer {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--clr-text-main);
}

body .table {
    color: var(--clr-text-main);
}

body .table thead th {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
}

body .table td,
body .table th {
    border-color: rgba(255, 255, 255, 0.08);
}

body .text-muted {
    color: var(--clr-text-muted) !important;
}

body .text-dark,
body .text-body {
    color: var(--clr-text-main) !important;
}

body .bg-white,
body .bg-light {
    background-color: var(--clr-bg-card) !important;
}

.ai-fab {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-hover));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 1050;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}

.ai-fab:hover {
    transform: translateY(-2px);
}

.ai-fab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 0 8px rgba(59, 130, 246, 0.25), 0 14px 30px rgba(0, 0, 0, 0.45);
}

.ai-chat-card {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: min(390px, calc(100vw - 60px));
    height: 520px;
    display: flex;
    flex-direction: column;
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    z-index: 1050;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    color: #ffffff;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ai-chat-card.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    background: rgba(3, 7, 18, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.22);
    color: #ffffff;
}

.ai-status {
    color: #d0d0d0;
}

.ai-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.ai-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.ai-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.ai-chat-body {
    flex: 1;
    padding: 14px 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-msg {
    display: flex;
    width: 100%;
}

.ai-msg-user {
    justify-content: flex-end;
}

.ai-msg-bot {
    justify-content: flex-start;
}

.ai-msg-content {
    max-width: 85%;
    padding: 12px 12px;
    border-radius: 14px;
    line-height: 1.45;
    font-size: 0.95rem;
    color: #ffffff;
    word-break: break-word;
}

.ai-msg-user .ai-msg-content {
    background: rgba(55, 65, 81, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-right-radius: 8px;
}

.ai-msg-bot .ai-msg-content {
    background: rgba(29, 78, 216, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 8px;
}

.ai-msg-bot .ai-msg-content a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.ai-chat-footer {
    padding: 12px 12px;
    background: rgba(3, 7, 18, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-input {
    flex: 1;
    border-radius: 14px;
    padding: 12px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(3, 7, 18, 0.55);
    color: #ffffff;
    outline: none;
}

.ai-input::placeholder {
    color: #e8e8e8;
    opacity: 0.8;
}

.ai-input:focus {
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.ai-send {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.ai-send:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.ai-send:disabled,
.ai-input:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.ai-send:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.ai-msg-loading {
    background: rgba(29, 78, 216, 0.75) !important;
}

.ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ai-dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    animation: aiDotBlink 1.2s infinite ease-in-out;
}

.ai-dot:nth-child(2) {
    animation-delay: 0.12s;
}

.ai-dot:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes aiDotBlink {
    0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 576px) {
    .ai-fab {
        right: 16px;
        bottom: 16px;
    }

    .ai-chat-card {
        right: 16px;
        left: 16px;
        width: auto;
        bottom: 86px;
        height: min(70vh, 560px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-chat-card,
    .ai-fab,
    .ai-close,
    .ai-send,
    .ai-dot {
        transition: none !important;
        animation: none !important;
    }
}

.panel-card {
    background: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 1rem;
}

.panel-card .h1,
.panel-card .h2,
.panel-card .h3,
.panel-card .h4,
.panel-card .h5,
.panel-card .h6,
.panel-card h1,
.panel-card h2,
.panel-card h3,
.panel-card h4,
.panel-card h5,
.panel-card h6 {
    color: #fff;
}

.service-header-card {
    background: var(--clr-bg-card);
    border: var(--border-glass);
    border-radius: 1.25rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sh-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    flex: 0 0 auto;
}

.sh-text h1 {
    margin: 0;
    color: #fff;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.sh-text p {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.65);
    max-width: 52rem;
}

.sh-badges {
    gap: 0.5rem;
}

.sh-badges .badge-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .service-header-card {
        padding: 1.25rem;
    }

    .sh-text h1 {
        font-size: 1.75rem;
    }
}
