/* ====================================
   NEXUS PREMIUM FINTECH THEME
   A completely unique bank app design
   ==================================== */

:root {
    /* Primary Colors - Deep Blue Fintech */
    --nx-primary: #0052CC;
    --nx-primary-dark: #003d99;
    --nx-primary-light: #4C9AFF;
    --nx-secondary: #00C7B7;
    --nx-accent: #6554C0;
    
    /* Dark Mode Colors */
    --nx-dark-bg: #0D1117;
    --nx-dark-card: #161B22;
    --nx-dark-border: #30363D;
    --nx-dark-hover: #21262D;
    
    /* Light Mode Colors */
    --nx-light-bg: #F6F8FA;
    --nx-light-card: #FFFFFF;
    --nx-light-border: #E1E4E8;
    
    /* Text Colors */
    --nx-text-primary: #C9D1D9;
    --nx-text-secondary: #8B949E;
    --nx-text-dark: #1F2328;
    --nx-text-muted: #656D76;
    
    /* Status Colors */
    --nx-success: #2DA44E;
    --nx-warning: #D29922;
    --nx-danger: #CF222E;
    --nx-info: #0969DA;
    
    /* Gradients */
    --nx-gradient-primary: linear-gradient(135deg, #0052CC 0%, #00C7B7 100%);
    --nx-gradient-dark: linear-gradient(180deg, #161B22 0%, #0D1117 100%);
    --nx-gradient-accent: linear-gradient(135deg, #6554C0 0%, #0052CC 100%);
    --nx-gradient-success: linear-gradient(135deg, #2DA44E 0%, #00C7B7 100%);
    
    /* Shadows */
    --nx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --nx-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --nx-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --nx-shadow-glow: 0 0 20px rgba(0, 82, 204, 0.3);
    
    /* Transitions */
    --nx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nx-transition-fast: all 0.15s ease;
    
    /* Border Radius */
    --nx-radius-sm: 6px;
    --nx-radius-md: 12px;
    --nx-radius-lg: 16px;
    --nx-radius-xl: 24px;
    --nx-radius-full: 9999px;
}

/* ====================================
   BASE STYLES
   ==================================== */

body {
    background: var(--nx-dark-bg);
    color: var(--nx-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.scroll-hide-sm {
    overflow: hidden;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--nx-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--nx-shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
}

.scroll-top:hover {
    color: #fff;
    transform: translateY(-3px);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* ====================================
   SIDEBAR - DARK SLEEK DESIGN
   ==================================== */

.sidebar-menu {
    background: var(--nx-dark-card);
    border-right: 1px solid var(--nx-dark-border);
    width: 280px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-menu__inner {
    padding: 24px 0;
    flex: 1;
}

.sidebar-logo {
    padding: 0 20px 24px;
    border-bottom: 1px solid var(--nx-dark-border);
}

.sidebar-logo__link img {
    max-height: 45px;
    transition: var(--nx-transition);
}

.sidebar-logo__link:hover img {
    transform: scale(1.05);
}

/* Menu Sections */
.menu-title {
    padding: 20px 20px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--nx-text-secondary);
}

.sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-list__item {
    margin: 2px 8px;
}

.sidebar-menu-list__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--nx-text-secondary);
    text-decoration: none;
    border-radius: var(--nx-radius-md);
    transition: var(--nx-transition);
    font-size: 14px;
    font-weight: 500;
}

.sidebar-menu-list__link .icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nx-dark-hover);
    border-radius: var(--nx-radius-sm);
    font-size: 18px;
    transition: var(--nx-transition);
}

.sidebar-menu-list__link:hover {
    background: var(--nx-dark-hover);
    color: var(--nx-text-primary);
}

.sidebar-menu-list__link:hover .icon {
    background: var(--nx-primary);
    color: #fff;
}

.sidebar-menu-list__item.active > .sidebar-menu-list__link,
.sidebar-menu-list__link.active {
    background: rgba(0, 82, 204, 0.15);
    color: var(--nx-primary-light);
}

.sidebar-menu-list__item.active > .sidebar-menu-list__link .icon,
.sidebar-menu-list__link.active .icon {
    background: var(--nx-gradient-primary);
    color: #fff;
}

/* Submenu */
.submenu-list {
    list-style: none;
    padding: 4px 0 4px 56px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu-list.show {
    max-height: 300px;
}

.submenu-link {
    display: block;
    padding: 8px 16px;
    color: var(--nx-text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: var(--nx-radius-sm);
    transition: var(--nx-transition);
    position: relative;
}

.submenu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--nx-dark-border);
    border-radius: 50%;
    transition: var(--nx-transition);
}

.submenu-link:hover {
    color: var(--nx-primary-light);
}

.submenu-link:hover::before {
    background: var(--nx-primary);
}

/* Logout */
.user-logout {
    padding: 16px;
    border-top: 1px solid var(--nx-dark-border);
}

.sidebar-menu-list__link.logout {
    background: rgba(207, 34, 46, 0.1);
    color: var(--nx-danger);
}

.sidebar-menu-list__link.logout .icon {
    background: rgba(207, 34, 46, 0.2);
    color: var(--nx-danger);
}

.sidebar-menu-list__link.logout:hover {
    background: var(--nx-danger);
    color: #fff;
}

.sidebar-menu-list__link.logout:hover .icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* ====================================
   MAIN CONTENT AREA
   ==================================== */

.dashboard__right {
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--nx-dark-bg);
}

/* ====================================
   DASHBOARD HEADER
   ==================================== */

.dashboard-header {
    background: var(--nx-dark-card);
    border-bottom: 1px solid var(--nx-dark-border);
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-header__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--nx-text-primary);
    margin: 0;
}

.account-no {
    font-size: 13px;
    color: var(--nx-text-secondary);
    margin: 4px 0 0;
}

.profile-image {
    width: 48px !important;
    height: 48px !important;
    border-radius: var(--nx-radius-full);
    border: 2px solid var(--nx-dark-border);
    object-fit: cover;
    transition: var(--nx-transition);
}

.profile-image:hover {
    border-color: var(--nx-primary);
    box-shadow: var(--nx-shadow-glow);
}

.dashboard-body__bar-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nx-dark-hover);
    border: 1px solid var(--nx-dark-border);
    border-radius: var(--nx-radius-md);
    color: var(--nx-text-primary);
    cursor: pointer;
    transition: var(--nx-transition);
}

.dashboard-body__bar-icon:hover {
    background: var(--nx-primary);
    border-color: var(--nx-primary);
}

/* ====================================
   DASHBOARD BODY
   ==================================== */

.dashboard-body {
    flex: 1;
    padding: 24px;
}

/* ====================================
   CARDS - NEXUS STYLE
   ==================================== */

.nx-card,
.card {
    background: var(--nx-dark-card);
    border: 1px solid var(--nx-dark-border);
    border-radius: var(--nx-radius-lg);
    overflow: hidden;
    transition: var(--nx-transition);
}

.nx-card:hover,
.card:hover {
    border-color: var(--nx-primary);
    box-shadow: var(--nx-shadow-md);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--nx-dark-border);
    padding: 16px 20px;
}

.card-header .card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--nx-text-primary);
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* Stat Cards */
.nx-stat-card {
    background: var(--nx-dark-card);
    border: 1px solid var(--nx-dark-border);
    border-radius: var(--nx-radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.nx-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--nx-gradient-primary);
}

.nx-stat-card.success::before {
    background: var(--nx-gradient-success);
}

.nx-stat-card.warning::before {
    background: var(--nx-warning);
}

.nx-stat-card.danger::before {
    background: var(--nx-danger);
}

.nx-stat-card .stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 82, 204, 0.15);
    border-radius: var(--nx-radius-md);
    font-size: 24px;
    color: var(--nx-primary-light);
    margin-bottom: 16px;
}

.nx-stat-card.success .stat-icon {
    background: rgba(45, 164, 78, 0.15);
    color: var(--nx-success);
}

.nx-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--nx-text-primary);
    line-height: 1.2;
}

.nx-stat-card .stat-label {
    font-size: 13px;
    color: var(--nx-text-secondary);
    margin-top: 4px;
}

/* ====================================
   BUTTONS
   ==================================== */

.btn {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--nx-radius-md);
    transition: var(--nx-transition);
    border: none;
    cursor: pointer;
}

.btn--base,
.btn-primary {
    background: var(--nx-gradient-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.btn--base:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--nx-primary);
    color: var(--nx-primary-light);
}

.btn-outline-primary:hover {
    background: var(--nx-primary);
    color: #fff;
}

.btn-success {
    background: var(--nx-gradient-success);
    color: #fff;
}

.btn-danger {
    background: var(--nx-danger);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* ====================================
   FORMS
   ==================================== */

.form-control,
.form-select {
    background: var(--nx-dark-hover);
    border: 1px solid var(--nx-dark-border);
    color: var(--nx-text-primary);
    padding: 12px 16px;
    border-radius: var(--nx-radius-md);
    font-size: 14px;
    transition: var(--nx-transition);
}

.form-control:focus,
.form-select:focus {
    background: var(--nx-dark-card);
    border-color: var(--nx-primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.2);
    color: var(--nx-text-primary);
    outline: none;
}

.form-control::placeholder {
    color: var(--nx-text-secondary);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--nx-text-secondary);
    margin-bottom: 8px;
    display: block;
}

.input-group-text {
    background: var(--nx-dark-hover);
    border: 1px solid var(--nx-dark-border);
    color: var(--nx-text-secondary);
    border-radius: var(--nx-radius-md);
}

/* ====================================
   TABLES
   ==================================== */

.table {
    color: var(--nx-text-primary);
    margin: 0;
}

.table thead th {
    background: var(--nx-dark-hover);
    color: var(--nx-text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    border: none;
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--nx-dark-border);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--nx-dark-hover);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ====================================
   BADGES
   ==================================== */

.badge {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--nx-radius-full);
}

.badge--success,
.badge-success,
.bg-success {
    background: rgba(45, 164, 78, 0.15) !important;
    color: var(--nx-success) !important;
}

.badge--warning,
.badge-warning,
.bg-warning {
    background: rgba(210, 153, 34, 0.15) !important;
    color: var(--nx-warning) !important;
}

.badge--danger,
.badge-danger,
.bg-danger {
    background: rgba(207, 34, 46, 0.15) !important;
    color: var(--nx-danger) !important;
}

.badge--primary,
.badge-primary,
.bg-primary {
    background: rgba(0, 82, 204, 0.15) !important;
    color: var(--nx-primary-light) !important;
}

.badge--info,
.badge-info,
.bg-info {
    background: rgba(9, 105, 218, 0.15) !important;
    color: var(--nx-info) !important;
}

/* ====================================
   ALERTS
   ==================================== */

.alert {
    border: none;
    border-radius: var(--nx-radius-md);
    padding: 16px 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(45, 164, 78, 0.15);
    color: var(--nx-success);
    border-left: 4px solid var(--nx-success);
}

.alert-warning {
    background: rgba(210, 153, 34, 0.15);
    color: var(--nx-warning);
    border-left: 4px solid var(--nx-warning);
}

.alert-danger {
    background: rgba(207, 34, 46, 0.15);
    color: var(--nx-danger);
    border-left: 4px solid var(--nx-danger);
}

.alert-info {
    background: rgba(9, 105, 218, 0.15);
    color: var(--nx-info);
    border-left: 4px solid var(--nx-info);
}

/* ====================================
   PAGINATION
   ==================================== */

.pagination {
    gap: 4px;
}

.page-link {
    background: var(--nx-dark-card);
    border: 1px solid var(--nx-dark-border);
    color: var(--nx-text-secondary);
    padding: 10px 16px;
    border-radius: var(--nx-radius-md) !important;
    transition: var(--nx-transition);
}

.page-link:hover {
    background: var(--nx-dark-hover);
    border-color: var(--nx-primary);
    color: var(--nx-primary-light);
}

.page-item.active .page-link {
    background: var(--nx-primary);
    border-color: var(--nx-primary);
    color: #fff;
}

/* ====================================
   MODALS
   ==================================== */

.modal-content {
    background: var(--nx-dark-card);
    border: 1px solid var(--nx-dark-border);
    border-radius: var(--nx-radius-lg);
}

.modal-header {
    border-bottom: 1px solid var(--nx-dark-border);
    padding: 20px 24px;
}

.modal-title {
    color: var(--nx-text-primary);
    font-weight: 600;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--nx-dark-border);
    padding: 16px 24px;
}

.btn-close {
    filter: invert(1);
}

/* ====================================
   QUICK ACTION BUTTONS
   ==================================== */

.nx-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--nx-dark-card);
    border: 1px solid var(--nx-dark-border);
    border-radius: var(--nx-radius-lg);
    text-decoration: none;
    transition: var(--nx-transition);
}

.nx-quick-action:hover {
    border-color: var(--nx-primary);
    transform: translateY(-4px);
    box-shadow: var(--nx-shadow-lg);
}

.nx-quick-action .action-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nx-gradient-primary);
    border-radius: var(--nx-radius-md);
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
}

.nx-quick-action .action-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--nx-text-primary);
}

/* ====================================
   ACCOUNT BALANCE WIDGET
   ==================================== */

.nx-balance-widget {
    background: var(--nx-gradient-primary);
    border-radius: var(--nx-radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.nx-balance-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.nx-balance-widget::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.nx-balance-widget .balance-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.nx-balance-widget .balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.nx-balance-widget .balance-info {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.nx-balance-widget .balance-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-balance-widget .balance-info-item i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.nx-balance-widget .balance-info-item span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* ====================================
   TRANSACTION LIST
   ==================================== */

.nx-transaction-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--nx-dark-border);
    transition: var(--nx-transition);
}

.nx-transaction-item:last-child {
    border-bottom: none;
}

.nx-transaction-item:hover {
    background: var(--nx-dark-hover);
}

.nx-transaction-item .tx-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--nx-radius-md);
    font-size: 18px;
}

.nx-transaction-item .tx-icon.credit {
    background: rgba(45, 164, 78, 0.15);
    color: var(--nx-success);
}

.nx-transaction-item .tx-icon.debit {
    background: rgba(207, 34, 46, 0.15);
    color: var(--nx-danger);
}

.nx-transaction-item .tx-details {
    flex: 1;
}

.nx-transaction-item .tx-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--nx-text-primary);
}

.nx-transaction-item .tx-date {
    font-size: 12px;
    color: var(--nx-text-secondary);
}

.nx-transaction-item .tx-amount {
    font-size: 14px;
    font-weight: 600;
}

.nx-transaction-item .tx-amount.credit {
    color: var(--nx-success);
}

.nx-transaction-item .tx-amount.debit {
    color: var(--nx-danger);
}

/* ====================================
   PROGRESS BARS
   ==================================== */

.progress {
    height: 8px;
    background: var(--nx-dark-hover);
    border-radius: var(--nx-radius-full);
    overflow: hidden;
}

.progress-bar {
    background: var(--nx-gradient-primary);
    border-radius: var(--nx-radius-full);
}

/* ====================================
   EMPTY STATE
   ==================================== */

.nx-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.nx-empty-state .empty-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nx-dark-hover);
    border-radius: var(--nx-radius-full);
    font-size: 32px;
    color: var(--nx-text-secondary);
    margin: 0 auto 20px;
}

.nx-empty-state .empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--nx-text-primary);
    margin-bottom: 8px;
}

.nx-empty-state .empty-text {
    font-size: 14px;
    color: var(--nx-text-secondary);
    max-width: 300px;
    margin: 0 auto;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 991px) {
    .sidebar-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--nx-shadow-lg);
        z-index: 1050;
    }

    .sidebar-menu.active,
    .sidebar-menu.show-sidebar {
        transform: translateX(0);
    }

    .dashboard__right {
        margin-left: 0;
    }

    .sidebar-menu__close {
        display: flex;
        justify-content: flex-end;
        padding: 16px 20px;
        cursor: pointer;
        color: var(--nx-text-primary);
        font-size: 24px;
    }

    .dashboard-body__bar-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: var(--nx-dark-card);
        border: 1px solid var(--nx-dark-border);
        border-radius: var(--nx-radius-md);
        padding: 10px 14px;
        color: var(--nx-text-primary);
        font-size: 20px;
        transition: var(--nx-transition);
    }

    .dashboard-body__bar-icon:hover {
        background: var(--nx-dark-hover);
        border-color: var(--nx-primary);
        color: var(--nx-primary);
    }
}

@media (max-width: 767px) {
    .dashboard-header {
        padding: 16px;
    }

    .dashboard-body {
        padding: 16px;
    }

    .nx-balance-widget {
        padding: 24px;
    }

    .nx-balance-widget .balance-amount {
        font-size: 28px;
    }
}

/* ====================================
   SCROLLBAR
   ==================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--nx-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--nx-dark-border);
    border-radius: var(--nx-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nx-text-secondary);
}

/* ====================================
   OVERLAY
   ==================================== */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active,
.sidebar-overlay.show {
    display: block;
}

/* ====================================
   PRELOADER
   ==================================== */

.preloader {
    position: fixed;
    inset: 0;
    background: var(--nx-dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-p {
    width: 48px;
    height: 48px;
    border: 3px solid var(--nx-dark-border);
    border-top-color: var(--nx-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================================
   FRONTEND STYLES
   ==================================== */

/* Header */
.header,
.nx-header {
    background: var(--nx-dark-card);
    border-bottom: 1px solid var(--nx-dark-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .navbar-brand img,
.nx-header .navbar-brand img {
    max-height: 45px;
}

.header .nav-link,
.nx-header .nav-link {
    color: var(--nx-text-secondary) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: var(--nx-transition);
}

.header .nav-link:hover,
.header .nav-link.active,
.nx-header .nav-link:hover,
.nx-header .nav-link.active {
    color: var(--nx-text-primary) !important;
}

.nx-header .navbar-toggler {
    border: none;
    padding: 8px;
}

.nx-header .navbar-toggler:focus {
    box-shadow: none;
}

/* Header button / hamburger menu */
.header-button,
.header .header-button,
.nx-header .header-button,
.navbar-toggler.header-button {
    cursor: pointer;
    padding: 8px 12px;
    border: none !important;
    background: transparent !important;
    z-index: 1001;
    position: relative;
    color: #fff;
    font-size: 24px;
}

.header-button:focus,
.navbar-toggler.header-button:focus {
    box-shadow: none !important;
    outline: none !important;
}

.header-button i,
.header .header-button i,
.nx-header .header-button i {
    pointer-events: none;
    color: #fff;
    font-size: 28px;
}

#hiddenNav {
    color: #fff;
}

#hiddenNav i {
    font-size: 28px;
    color: #fff;
}

/* Mobile Menu Button */
.nx-mobile-menu-btn {
    display: none;
    background: none !important;
    border: none !important;
    padding: 10px;
    cursor: pointer;
    z-index: 1051;
    position: relative;
}

.nx-mobile-menu-btn i {
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .nx-mobile-menu-btn {
        display: block !important;
    }
}

/* ====================================
   MOBILE MENU FIXES
   ==================================== */

@media (max-width: 991.98px) {
    .navbar-collapse,
    .header .navbar-collapse,
    .nx-header .navbar-collapse {
        position: fixed;
        top: 0;
        left: -280px; /* Start off-screen */
        width: 280px;
        height: 100vh;
        background: var(--nx-dark-card);
        padding: 20px;
        z-index: 1050;
        overflow-y: auto;
        border-right: 1px solid var(--nx-dark-border);
        transition: left 0.3s ease;
        display: block !important; /* Override Bootstrap */
        visibility: visible !important;
    }

    .navbar-collapse.show,
    .header .navbar-collapse.show,
    .nx-header .navbar-collapse.show {
        left: 0 !important;
    }

    .header .navbar-nav,
    .nx-header .navbar-nav {
        flex-direction: column;
        margin-top: 20px;
    }

    .header .nav-item,
    .nx-header .nav-item {
        border-bottom: 1px solid var(--nx-dark-border);
    }

    .header .nav-link,
    .nx-header .nav-link {
        padding: 12px 0 !important;
        display: block;
        color: var(--nx-text-primary) !important;
    }

    .header .nav-right,
    .nx-header .nav-right {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px !important;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--nx-dark-border);
    }

    .header .lang-select,
    .nx-header .lang-select {
        width: 100%;
    }

    .header .lang-select select,
    .nx-header .lang-select select {
        width: 100%;
    }

    .header .signin-btn,
    .nx-header .signin-btn {
        width: 100%;
    }

    .header .signin-btn .btn,
    .nx-header .signin-btn .btn {
        width: 100%;
    }

    /* Ensure header button is visible */
    .header-button,
    .navbar-toggler.header-button,
    #hiddenNav {
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 24px;
        padding: 8px 12px;
        z-index: 1060;
    }

    .header-button i,
    #hiddenNav i {
        font-size: 28px;
        color: #fff;
    }
}

/* Body Overlay - for mobile menu */
.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.body-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu is open */
body.overflow-hidden {
    overflow: hidden !important;
}

body.scroll-hide-sm {
    overflow: hidden !important;
}

/* Banner Section */
.banner-section {
    background: var(--nx-gradient-dark);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 82, 204, 0.2) 0%, transparent 70%);
}

.banner-section .banner-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--nx-text-primary);
    line-height: 1.2;
}

.banner-section .banner-title span {
    background: var(--nx-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--nx-text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--nx-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.nx-feature-card {
    background: var(--nx-dark-card);
    border: 1px solid var(--nx-dark-border);
    border-radius: var(--nx-radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--nx-transition);
}

.nx-feature-card:hover {
    border-color: var(--nx-primary);
    transform: translateY(-8px);
}

.nx-feature-card .feature-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nx-gradient-primary);
    border-radius: var(--nx-radius-lg);
    font-size: 32px;
    color: #fff;
    margin: 0 auto 20px;
}

.nx-feature-card .feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--nx-text-primary);
    margin-bottom: 12px;
}

.nx-feature-card .feature-text {
    font-size: 14px;
    color: var(--nx-text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--nx-dark-card);
    border-top: 1px solid var(--nx-dark-border);
    padding: 60px 0 20px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--nx-text-primary);
    margin-bottom: 20px;
}

.footer-link {
    display: block;
    color: var(--nx-text-secondary);
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
    transition: var(--nx-transition);
}

.footer-link:hover {
    color: var(--nx-primary-light);
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--nx-dark-border);
    padding-top: 20px;
    margin-top: 40px;
}

.footer-bottom p {
    color: var(--nx-text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Video Play Button */
.video-btn {
    width: 40px;
    height: 40px;
    background: var(--nx-gradient-primary);
    color: #fff;
    box-shadow: var(--nx-shadow-glow);
}

.video-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Floating Card */
.nx-floating-card {
    background: var(--nx-dark-card);
    border: 1px solid var(--nx-dark-border);
    box-shadow: var(--nx-shadow-lg);
}

.nx-floating-card h5 {
    color: var(--nx-text-primary);
}

/* Cookie Consent Card */
.cookies-card {
    background: var(--nx-dark-card) !important;
    border: 1px solid var(--nx-dark-border);
    color: var(--nx-text-primary);
}

.cookies-card p {
    color: var(--nx-text-secondary) !important;
}

/* Subscribe Section */
.subscribe-section {
    background: var(--nx-gradient-primary);
    padding: 60px 0;
    border-radius: var(--nx-radius-lg);
    margin: 0 20px;
}

.subscribe-section h3 {
    color: #fff;
    font-weight: 700;
}

.subscribe-section .form-control {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 14px 20px;
}

.subscribe-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Card Hover Effects */
.nx-card-hover {
    transition: var(--nx-transition);
}

.nx-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--nx-shadow-lg);
    border-color: var(--nx-primary);
}

/* Contact Page */
.contact-section {
    background: var(--nx-dark-bg);
    padding: 60px 0;
}

.contact-card {
    background: var(--nx-dark-card);
    border: 1px solid var(--nx-dark-border);
    border-radius: var(--nx-radius-lg);
    padding: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--nx-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
}

/* Page Title / Breadcrumb */
.breadcrumb-section {
    background: var(--nx-gradient-dark);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 82, 204, 0.2) 0%, transparent 50%);
}

.breadcrumb-title {
    color: var(--nx-text-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-nav a,
.breadcrumb-nav span {
    color: var(--nx-text-secondary);
    font-size: 14px;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: var(--nx-primary-light);
}

.breadcrumb-nav .separator {
    color: var(--nx-text-muted);
}

/* Utility Classes */
.text-gradient {
    background: var(--nx-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-nx-dark {
    background: var(--nx-dark-bg) !important;
}

.bg-nx-card {
    background: var(--nx-dark-card) !important;
}

.border-nx {
    border-color: var(--nx-dark-border) !important;
}

.text-nx-primary {
    color: var(--nx-text-primary) !important;
}

.text-nx-secondary {
    color: var(--nx-text-secondary) !important;
}

/* Authentication Pages */
.auth-section {
    min-height: 100vh;
    background: var(--nx-dark-bg);
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.auth-card {
    background: var(--nx-dark-card);
    border: 1px solid var(--nx-dark-border);
    border-radius: var(--nx-radius-lg);
    padding: 40px;
    max-width: 450px;
    margin: 0 auto;
}

.auth-card .logo {
    max-height: 50px;
    margin-bottom: 30px;
}

.auth-card h3 {
    color: var(--nx-text-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-card p {
    color: var(--nx-text-secondary);
    margin-bottom: 30px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--nx-primary-light);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}
