/* ============================================
   Bright Solar - Modern Dashboard UI
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bs-primary: #2A514C;
    --bs-primary-rgb: 42, 81, 76;
    --bs-secondary: #EBFA9E;
    --bs-success: #22c55e;
    --bs-danger: #dc3545;
    --bs-warning: #f59e0b;
    --bs-info: #0ea5e9;
    --accent: #EBFA9E;
    --accent-light: #f0fdb8;
    --bg-dark: #1a1a1a;
    --bg-card: #ffffff;
    --bg-body: #f4f7fa;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ============================================
   MEGA MENU HEADER
   ============================================ */
.bs-mega-header {
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: var(--shadow-md);
}

.bs-mega-header .container-fluid {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.bs-mega-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.bs-mega-header__logo img {
    height: 45px;
    width: auto;
    border-radius: 6px;
}

/* Desktop Nav */
.bs-mega-nav {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bs-mega-nav > li {
    position: relative;
}

.bs-mega-nav > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 24px 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.bs-mega-nav > li > a:hover,
.bs-mega-nav > li.active > a {
    color: var(--bs-secondary);
}

.bs-mega-nav > li > a .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.bs-mega-nav > li:hover > a .arrow {
    transform: rotate(180deg);
}

/* Mega Dropdown Panel */
.bs-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 24px 28px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid var(--border-color);
}

.bs-mega-nav > li:hover .bs-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Wide Mega Dropdown */
.bs-mega-dropdown--wide {
    min-width: 560px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 20px;
}

.bs-mega-dropdown--full {
    min-width: 780px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 20px;
    left: 50%;
}

/* Dropdown Items */
.bs-mega-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.bs-mega-dropdown a:hover {
    background: var(--bs-primary);
    color: var(--bs-secondary);
    transform: translateX(4px);
}

.bs-mega-dropdown a .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(42, 81, 76, 0.08);
    color: var(--bs-primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.bs-mega-dropdown a:hover .icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.bs-mega-dropdown a .text {
    display: flex;
    flex-direction: column;
}

.bs-mega-dropdown a .text small {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.bs-mega-dropdown a:hover .text small {
    color: rgba(235, 250, 158, 0.7);
}

/* Header Right */
.bs-mega-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bs-mega-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--accent);
    color: var(--bg-dark);
    font-size: 13px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.bs-mega-header__cta:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(235, 250, 158, 0.4);
}

.bs-mega-header__call {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.bs-mega-header__call-icon {
    width: 40px;
    height: 40px;
    background: rgba(235, 250, 158, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent);
}

.bs-mega-header__call-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.bs-mega-header__call-text small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.bs-mega-header__call-text strong {
    font-size: 14px;
    color: var(--text-light);
}

/* Mobile Menu Button */
.bs-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.bs-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    margin: 6px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.bs-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bs-mobile-nav.active {
    display: block;
    opacity: 1;
}

.bs-mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-dark);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
}

.bs-mobile-nav.active .bs-mobile-nav__panel {
    transform: translateX(0);
}

.bs-mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bs-mobile-nav__header img {
    height: 40px;
}

.bs-mobile-nav__close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.bs-mobile-nav__list {
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.bs-mobile-nav__list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bs-mobile-nav__list > li > a:hover,
.bs-mobile-nav__list > li > a.active {
    color: var(--accent);
    background: rgba(235, 250, 158, 0.05);
}

.bs-mobile-nav__list > li > a .arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.bs-mobile-nav__list > li.open > a .arrow {
    transform: rotate(180deg);
}

.bs-mobile-nav__sub {
    list-style: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(0, 0, 0, 0.2);
}

.bs-mobile-nav__list > li.open > .bs-mobile-nav__sub {
    max-height: 500px;
}

.bs-mobile-nav__sub li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 48px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 400;
}

.bs-mobile-nav__sub li a:hover {
    color: var(--accent);
}

.bs-mobile-nav__sub li a i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.bs-mobile-nav__cta {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bs-mobile-nav__cta a {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.bs-mobile-nav__cta .btn-login {
    background: var(--accent);
    color: var(--bg-dark);
}

.bs-mobile-nav__cta .btn-register {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

/* ============================================
   PAGE HEADER (Hero Banner)
   ============================================ */
.bs-hero {
    background: var(--bs-primary);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.bs-hero::before,
.bs-hero::after {
    display: none;
}

.bs-hero__content {
    position: relative;
    z-index: 2;
}

.bs-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.bs-hero__breadcrumb a {
    color: var(--accent);
}

.bs-hero__breadcrumb a:hover {
    text-decoration: underline;
}

.bs-hero__title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-light);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.bs-hero__subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.bs-dashboard {
    padding: 30px 0 60px;
}

.bs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* ---------- Sidebar ---------- */
.bs-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 90px;
    border: 1px solid var(--border-color);
}

.bs-sidebar__user {
    padding: 24px 20px;
    text-align: center;
    background: var(--bs-primary);
    color: var(--text-light);
}

.bs-sidebar__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.bs-sidebar__name {
    color: var(--bs-secondary);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.bs-sidebar__email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    word-break: break-all;
}

.bs-sidebar__nav {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.bs-sidebar__nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.bs-sidebar__nav li a:hover {
    background: rgba(42, 81, 76, 0.04);
    color: var(--bs-primary);
}

.bs-sidebar__nav li a.active {
    background: rgba(42, 81, 76, 0.08);
    color: var(--bs-primary);
    border-left-color: var(--bs-primary);
    font-weight: 600;
}

.bs-sidebar__nav li a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    opacity: 0.7;
}

.bs-sidebar__nav li a.active i {
    opacity: 1;
    color: var(--bs-primary);
}

.bs-sidebar__nav .nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 20px;
}

/* ---------- Main Content ---------- */
.bs-main {
    min-width: 0;
}

/* ---------- Stats Grid ---------- */
.bs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.bs-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bs-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.bs-stat-card--wallet::before { background: var(--bs-primary); }
.bs-stat-card--agent::before { background: var(--accent); }
.bs-stat-card--pending::before { background: var(--bs-warning); }
.bs-stat-card--overdue::before { background: var(--bs-danger); }

.bs-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.bs-stat-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bs-stat-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.bs-stat-card--wallet .bs-stat-card__icon {
    background: rgba(42, 81, 76, 0.1);
    color: var(--bs-primary);
}

.bs-stat-card--agent .bs-stat-card__icon {
    background: rgba(42, 81, 76, 0.1);
    color: var(--bs-primary);
}

.bs-stat-card--pending .bs-stat-card__icon {
    background: rgba(255, 193, 7, 0.1);
    color: var(--bs-warning);
}

.bs-stat-card--overdue .bs-stat-card__icon {
    background: rgba(220, 53, 69, 0.1);
    color: var(--bs-danger);
}

.bs-stat-card__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.bs-stat-card__value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* ---------- Cards ---------- */
.bs-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow: hidden;
}

.bs-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
}

.bs-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bs-card__title i {
    color: var(--accent);
}

.bs-card__body {
    padding: 22px;
}

/* ---------- Wallet Card ---------- */
.bs-wallet {
    background: #2A514C;
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.bs-wallet::before,
.bs-wallet::after {
    display: none;
}

.bs-wallet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.bs-wallet__label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.bs-wallet__badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--bs-secondary);
    color: var(--bs-primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.bs-wallet__balance {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 20px;
    position: relative;
    z-index: 2;
}

.bs-wallet__balance .currency {
    font-size: 20px;
    font-weight: 600;
    opacity: 0.8;
    margin-right: 4px;
}

.bs-wallet__actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

/* ---------- Buttons ---------- */
.bs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bs-btn--primary {
    background: var(--bs-primary);
    color: var(--bs-secondary);
}

.bs-btn--primary:hover {
    background: #1e3d39;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(42, 81, 76, 0.4);
}

.bs-btn--outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.bs-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.bs-btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.bs-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bs-btn--success {
    background: var(--bs-success);
    color: var(--text-light);
}

.bs-btn--danger {
    background: var(--bs-danger);
    color: var(--text-light);
}

.bs-btn--warning {
    background: var(--bs-warning);
    color: var(--text-dark);
}

/* ---------- Forms ---------- */
.bs-form-group {
    margin-bottom: 16px;
}

.bs-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.bs-form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-card);
    transition: var(--transition);
    outline: none;
}

.bs-form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(235, 250, 158, 0.15);
}

select.bs-form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
}

select.bs-form-control option,
select.bs-form-control optgroup {
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-card);
}

select.bs-form-control optgroup {
    font-weight: 600;
    font-style: normal;
    color: var(--text-muted);
}

/* ---------- Tables ---------- */
.bs-table {
    width: 100%;
    border-collapse: collapse;
}

.bs-table thead th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-body);
    border-bottom: 2px solid var(--border-color);
}

.bs-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.bs-table tbody tr:hover {
    background: rgba(42, 81, 76, 0.02);
}

/* Status Badges */
.bs-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.bs-badge--success {
    background: rgba(40, 167, 69, 0.1);
    color: #1a7f37;
}

.bs-badge--warning {
    background: rgba(255, 193, 7, 0.15);
    color: #b5850a;
}

.bs-badge--danger {
    background: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

.bs-badge--info {
    background: rgba(23, 162, 184, 0.1);
    color: #0f766e;
}

/* ---------- Quick Links Grid ---------- */
.bs-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.bs-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    color: var(--text-dark);
}

.bs-quick-link:hover {
    background: var(--bs-primary);
    color: var(--bs-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.bs-quick-link__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(42, 81, 76, 0.08);
    color: var(--bs-primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.bs-quick-link:hover .bs-quick-link__icon {
    background: rgba(235, 250, 158, 0.2);
    color: var(--bs-secondary);
}

.bs-quick-link__text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.bs-quick-link__count {
    font-size: 18px;
    font-weight: 800;
}

/* ---------- Funding Section ---------- */
.bs-funding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.bs-funding-card {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.bs-funding-card:hover {
    border-color: var(--accent);
    background: rgba(235, 250, 158, 0.03);
}

.bs-funding-card.active {
    border-style: solid;
    border-color: var(--accent);
    background: rgba(235, 250, 158, 0.05);
}

.bs-funding-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px;
    background: rgba(42, 81, 76, 0.1);
    color: var(--bs-primary);
}

.bs-funding-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
}

.bs-funding-card__desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ---------- Bank Info Card ---------- */
.bs-bank-info {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
}

.bs-bank-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.bs-bank-info__row:last-child {
    border-bottom: none;
}

.bs-bank-info__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.bs-bank-info__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bs-copy-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    transition: var(--transition);
}

.bs-copy-btn:hover {
    color: var(--bs-primary);
    transform: scale(1.2);
}

/* ---------- Footer ---------- */
.bs-footer {
    background: var(--bg-dark);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 991px) {
    .bs-layout {
        grid-template-columns: 1fr;
    }

    .bs-sidebar {
        position: static;
        display: none;
    }

    .bs-sidebar.mobile-open {
        display: block;
    }

    .bs-mega-nav {
        display: none;
    }

    .bs-mobile-toggle {
        display: block;
    }

    .bs-mega-header__call {
        display: none;
    }

    .bs-mega-header__cta {
        display: inline-flex;
        padding: 7px 14px;
        font-size: 12px;
    }

    .bs-hero__title {
        font-size: 28px;
    }

    .bs-wallet__balance {
        font-size: 28px;
    }

    .bs-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile Sidebar Toggle */
    .bs-sidebar-toggle {
        display: flex !important;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .bs-hero {
        padding: 40px 0 30px;
    }

    .bs-hero__title {
        font-size: 24px;
    }

    .bs-hero__subtitle {
        font-size: 14px;
    }

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

    .bs-wallet {
        padding: 20px;
    }

    .bs-wallet__balance {
        font-size: 24px;
    }

    .bs-wallet__actions {
        flex-direction: column;
    }

    .bs-wallet__actions .bs-btn {
        width: 100%;
    }

    .bs-funding-grid {
        grid-template-columns: 1fr;
    }

    .bs-quick-links {
        grid-template-columns: 1fr;
    }

    .bs-card__header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .bs-table {
        font-size: 13px;
    }

    .bs-table thead th,
    .bs-table tbody td {
        padding: 10px 8px;
    }

    .bs-mega-header__inner {
        height: 60px;
    }

    .bs-mega-header__logo img {
        height: 38px;
    }
}

/* Sidebar Mobile Toggle Button */
.bs-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.bs-sidebar-toggle:hover {
    background: var(--bg-body);
}

/* Overdue Banner */
.bs-overdue-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.bs-overdue-banner__info {
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-danger);
}

.bs-overdue-banner__actions {
    display: flex;
    gap: 8px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ============================================
   LANDING PAGE - Hero Section
   ============================================ */
.bs-landing-hero {
    background: linear-gradient(135deg, #2A514C 0%, #1e3d39 50%, #162e2a 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0 100px;
}

.bs-landing-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -60px;
    width: 350px;
    height: 350px;
    background: rgba(235, 250, 158, 0.07);
    border-radius: 50%;
    display: block;
}

.bs-landing-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: 5%;
    width: 250px;
    height: 250px;
    background: rgba(235, 250, 158, 0.04);
    border-radius: 50%;
    display: block;
}

.bs-landing-hero__subtitle {
    color: var(--bs-secondary);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 12px;
}

.bs-landing-hero__title {
    color: #fff;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.bs-landing-hero__desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

.bs-landing-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.bs-landing-hero__actions .bs-btn--accent {
    background: var(--bs-secondary);
    color: var(--bs-primary);
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    border: 2px solid var(--bs-secondary);
}

.bs-landing-hero__actions .bs-btn--accent:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 250, 158, 0.3);
}

.bs-landing-hero__actions .bs-btn--ghost {
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.bs-landing-hero__actions .bs-btn--ghost:hover {
    border-color: var(--bs-secondary);
    color: var(--bs-secondary);
    transform: translateY(-2px);
}

.bs-landing-hero__image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* ============================================
   LANDING PAGE - Section Helpers
   ============================================ */
.bs-section {
    padding: 70px 0 80px;
}

.bs-section--light {
    background: var(--bg-body);
}

.bs-section--white {
    background: #fff;
}

.bs-section__header {
    text-align: center;
    margin-bottom: 40px;
}

.bs-section__label {
    color: var(--bs-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.bs-section__title {
    color: var(--text-dark);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin: 0;
}

/* ============================================
   LANDING PAGE - Feature Cards (3 up)
   ============================================ */
.bs-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bs-feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.bs-feature-card:hover {
    border-color: rgba(42, 81, 76, 0.15);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.bs-feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(42, 81, 76, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--bs-primary);
}

.bs-feature-card__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.bs-feature-card__desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ============================================
   LANDING PAGE - Products Swiper
   ============================================ */
.bs-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.bs-products-header .bs-btn--primary {
    background: var(--bs-primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.bs-products-header .bs-btn--primary:hover {
    background: #1e3d39;
    transform: translateY(-1px);
}

.bs-product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bs-product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.bs-product-card__img {
    max-height: 120px;
    width: auto;
    display: block;
    margin: 0 auto 16px;
    border-radius: 10px;
    object-fit: cover;
}

.bs-product-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.bs-product-card__title a {
    color: var(--text-dark);
    text-decoration: none;
}

.bs-product-card__title a:hover {
    color: var(--bs-primary);
}

.bs-product-card__desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.bs-product-card__link {
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    margin-top: 16px;
}

.bs-product-card__link:hover {
    color: #1e3d39;
    gap: 10px;
}

/* Swiper Overrides */
.bs-products-section .swiper-button-next,
.bs-products-section .swiper-button-prev {
    background: var(--bs-primary) !important;
    color: #fff !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(42, 81, 76, 0.3);
}

.bs-products-section .swiper-button-next::after,
.bs-products-section .swiper-button-prev::after {
    font-size: 16px !important;
    color: #fff;
}

.bs-products-section .swiper-button-next:hover,
.bs-products-section .swiper-button-prev:hover {
    background: #1e3d39 !important;
}

.bs-products-section .swiper-button-next {
    right: 5px !important;
}

.bs-products-section .swiper-button-prev {
    left: 5px !important;
}

.bs-products-section .swiper-slide {
    display: flex;
    justify-content: center;
}

/* ============================================
   LANDING PAGE - Why Choose Us
   ============================================ */
.bs-whyus__label {
    color: var(--bs-primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.bs-whyus__title {
    color: var(--text-dark);
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
    margin-bottom: 20px;
}

.bs-whyus__desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.bs-progress-item {
    margin-bottom: 16px;
}

.bs-progress-item:last-of-type {
    margin-bottom: 28px;
}

.bs-progress-item__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.bs-progress-item__label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bs-progress-item__value {
    font-size: 13px;
    font-weight: 700;
    color: var(--bs-primary);
}

.bs-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.bs-progress-bar__fill {
    height: 100%;
    background: var(--bs-primary);
    border-radius: 6px;
}

.bs-whyus__image-wrapper {
    position: relative;
    text-align: center;
    min-height: 420px;
}

.bs-whyus__image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.bs-whyus__image-wrapper img:first-child {
    position: relative;
    z-index: 1;
}

.bs-whyus__image-wrapper .bs-whyus__stat-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bs-primary);
    color: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    z-index: 4;
    box-shadow: 0 8px 24px rgba(42, 81, 76, 0.3);
}

.bs-whyus__stat-badge__number {
    color: var(--bs-secondary);
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.bs-whyus__stat-badge__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 4px 0 0;
}

.bs-whyus__secondary-img {
    max-width: 18%;
    height: auto;
    border-radius: 12px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 3;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

/* ============================================
   LANDING PAGE - Testimonials
   ============================================ */
.bs-testimonial-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.bs-testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.bs-testimonial-card__stars {
    margin-bottom: 14px;
}

.bs-testimonial-card__stars .fas.fa-star {
    color: var(--bs-warning);
    font-size: 14px;
}

.bs-testimonial-card__stars .far.fa-star {
    color: #d1d5db;
    font-size: 14px;
}

.bs-testimonial-card__text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    font-style: italic;
    flex: 1;
    margin: 0 0 20px;
}

.bs-testimonial-card__author {
    display: flex;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.bs-testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-right: 12px;
    flex-shrink: 0;
}

.bs-testimonial-card__name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
}

.bs-testimonial-card__location {
    font-size: 12px;
    color: #9ca3af;
}

/* ============================================
   LANDING PAGE - FAQ Accordion
   ============================================ */
.bs-faq-section .accordion {
    max-width: 800px;
    margin: 0 auto;
}

.bs-faq-section .accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.bs-faq-section .accordion-button {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.bs-faq-section .accordion-button:not(.collapsed) {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}

.bs-faq-section .accordion-button:hover {
    border-color: var(--bs-primary);
}

.bs-faq-section .accordion-body {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================
   LANDING PAGE - Footer (Enterprise 4-col)
   ============================================ */
.bs-site-footer {
    background: #111317;
    color: #a1a7b3;
    font-family: 'Inter', 'DM Sans', sans-serif;
    padding: 0;
    margin: 0;
}

.bs-site-footer a {
    transition: color 0.2s ease;
}

.bs-site-footer a:hover {
    color: var(--bs-primary) !important;
}

.bs-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding: 56px 0 40px;
}

.bs-footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.bs-footer-logo img {
    height: 42px;
    width: auto;
}

.bs-footer-brand p {
    font-size: 13.5px;
    line-height: 1.75;
    color: #8891a5;
    margin: 0 0 20px;
}

.bs-footer-social {
    display: flex;
    gap: 8px;
}

.bs-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8891a5;
    font-size: 14px;
    transition: all 0.25s ease;
}

.bs-footer-social a:hover {
    background: var(--bs-primary);
    color: #fff !important;
    transform: translateY(-2px);
}

.bs-footer-links h6,
.bs-footer-contact h6 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 20px;
    position: relative;
    padding-bottom: 12px;
}

.bs-footer-links h6::after,
.bs-footer-contact h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 3px;
    background: var(--bs-primary);
    border-radius: 2px;
}

.bs-footer-links ul,
.bs-footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bs-footer-links ul li {
    margin-bottom: 10px;
}

.bs-footer-links ul li a {
    color: #8891a5;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.bs-footer-links ul li a i {
    font-size: 9px;
    color: var(--bs-primary);
    transition: transform 0.2s ease;
}

.bs-footer-links ul li a:hover i {
    transform: translateX(3px);
}

.bs-footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.bs-contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: rgba(42, 81, 76, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    font-size: 14px;
}

.bs-footer-contact ul li div:last-child {
    display: flex;
    flex-direction: column;
}

.bs-contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5a6275;
    font-weight: 600;
    margin-bottom: 2px;
}

.bs-footer-contact ul li a,
.bs-footer-contact ul li span {
    color: #a1a7b3;
    font-size: 13.5px;
    line-height: 1.5;
}

.bs-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.bs-footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #5a6275;
}

.bs-footer-bottom p a {
    color: var(--bs-primary) !important;
    font-weight: 600;
    text-decoration: none;
}

.bs-footer-bottom-links {
    display: flex;
    gap: 20px;
}

.bs-footer-bottom-links a {
    color: #5a6275;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bs-footer-bottom-links a:hover {
    color: var(--bs-primary) !important;
}

/* ============================================
   LANDING PAGE - Responsive
   ============================================ */
@media (max-width: 991px) {
    .bs-features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bs-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .bs-footer-brand {
        grid-column: 1 / -1;
    }

    .bs-landing-hero__image {
        display: block;
        margin-top: 32px;
        text-align: center;
    }

    .bs-landing-hero__image img {
        max-width: 280px;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .bs-features-grid {
        grid-template-columns: 1fr;
    }

    .bs-section {
        padding: 50px 0 60px;
    }

    .bs-landing-hero {
        padding: 50px 0 60px;
    }

    .bs-landing-hero__title {
        font-size: 28px;
    }

    .bs-whyus__image-wrapper {
        position: relative;
        min-height: 280px;
        text-align: center;
        padding-bottom: 50px;
    }

    .bs-whyus__image-wrapper img:first-child {
        max-width: 85%;
        margin: 0 auto;
        display: block;
    }

    .bs-whyus__stat-badge {
        position: absolute !important;
        top: 10px;
        right: 10px;
        padding: 14px 18px;
        z-index: 4;
    }

    .bs-whyus__stat-badge__number {
        font-size: 22px;
    }

    .bs-whyus__secondary-img {
        max-width: 30%;
        position: absolute;
        bottom: 0;
        left: 10px;
        border-radius: 10px;
        z-index: 3;
    }

    .bs-products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .bs-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .bs-footer-brand {
        grid-column: 1 / -1;
        text-align: left;
    }

    .bs-footer-social {
        justify-content: flex-start;
    }

    .bs-footer-links h6::after,
    .bs-footer-contact h6::after {
        left: 0;
    }

    .bs-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .bs-footer-bottom-links {
        justify-content: flex-start;
        gap: 16px;
    }
}

@media (max-width: 575px) {
    .bs-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .bs-footer-brand {
        grid-column: auto;
        text-align: left;
    }

    .bs-footer-social {
        justify-content: flex-start;
    }

    .bs-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .bs-footer-bottom-links {
        justify-content: flex-start;
        gap: 16px;
    }
}

/* ============================================
   AUTH PAGES (Login, Register, Forgot, Reset)
   ============================================ */
.bs-auth {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: var(--bs-primary);
    position: relative;
}

.bs-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
}

.bs-auth-card {
    width: 100%;
    max-width: 960px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.bs-auth-card__hero {
    background: var(--bs-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bs-auth-card__hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(235, 250, 158, 0.05);
    border-radius: 50%;
}

.bs-auth-card__hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: rgba(235, 250, 158, 0.03);
    border-radius: 50%;
}

.bs-auth-card__hero img {
    max-width: 200px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    border-radius: 12px;
}

.bs-auth-card__hero h3 {
    color: var(--bs-secondary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.bs-auth-card__hero p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
    position: relative;
    z-index: 1;
}

.bs-auth-card__body {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bs-auth-card__logo {
    text-align: center;
    margin-bottom: 24px;
}

.bs-auth-card__logo img {
    height: 48px;
    border-radius: 8px;
}

.bs-auth-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    text-align: center;
}

.bs-auth-card__subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.bs-auth-card__form .bs-form-group {
    margin-bottom: 18px;
}

.bs-auth-card__form .bs-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.bs-auth-card__form .bs-form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    background: #f8fafb;
    transition: all 0.2s ease;
    outline: none;
}

.bs-auth-card__form .bs-form-control:focus {
    border-color: var(--bs-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 81, 76, 0.1);
}

.bs-auth-card__form .bs-form-control::placeholder {
    color: #94a3b8;
}

.bs-auth-card__form select.bs-form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
    color: var(--text-dark);
    background-color: #f8fafb;
}

.bs-auth-card__form select.bs-form-control option,
.bs-auth-card__form select.bs-form-control optgroup {
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    background: #fff;
}

.bs-auth-card__form select.bs-form-control optgroup {
    font-weight: 600;
    font-style: normal;
    color: var(--text-muted);
}

.bs-auth-card__form .bs-input-icon-wrap {
    position: relative;
}

.bs-auth-card__form .bs-input-icon-wrap .bs-form-control {
    padding-right: 44px;
}

.bs-auth-card__form .bs-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
}

.bs-auth-card__form .bs-input-icon:hover {
    color: var(--bs-primary);
}

.bs-auth-card__form .bs-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bs-auth-card__form .bs-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bs-auth-card__form .bs-form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--bs-primary);
    cursor: pointer;
}

.bs-auth-card__form .bs-form-check label {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    margin: 0;
}

.bs-auth-card__form .bs-form-link {
    font-size: 13px;
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
}

.bs-auth-card__form .bs-form-link:hover {
    text-decoration: underline;
}

.bs-auth-card__form .bs-btn--auth {
    width: 100%;
    padding: 13px;
    background: var(--bs-primary);
    color: var(--bs-secondary);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.bs-auth-card__form .bs-btn--auth:hover {
    background: #1e3d39;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 81, 76, 0.3);
}

.bs-auth-card__form .bs-btn--auth:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bs-auth-card__footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.bs-auth-card__footer a {
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
}

.bs-auth-card__footer a:hover {
    text-decoration: underline;
}

.bs-auth-card__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: #cbd5e1;
    font-size: 12px;
}

.bs-auth-card__divider::before,
.bs-auth-card__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.bs-auth-status {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bs-auth-status--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.bs-auth-status--warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.bs-auth-status--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.bs-auth-status i {
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

.bs-auth-disclaimer {
    font-size: 13px;
    font-weight: 500;
    background: #fef3c7;
    padding: 12px 16px;
    border-left: 4px solid var(--bs-danger, #ef4444);
    color: #92400e;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.bs-auth-disclaimer strong {
    color: #dc2626;
}

@media (max-width: 767px) {
    .bs-auth {
        padding: 20px 12px;
        min-height: auto;
    }

    .bs-auth-card {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .bs-auth-card__hero {
        display: none;
    }

    .bs-auth-card__body {
        padding: 32px 24px;
    }

    .bs-auth-card__title {
        font-size: 20px;
    }
}

/* ============================================
   Override Bootstrap / old-theme blue on header buttons & breadcrumb
   ============================================ */

/* LOGIN button (outline) — must stay transparent, not blue */
.bs-mega-header .bs-mega-header__cta[style*="transparent"],
body .bs-mega-header .bs-mega-header__cta[style*="transparent"] {
    background: transparent !important;
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
}

.bs-mega-header .bs-mega-header__cta[style*="transparent"]:hover,
body .bs-mega-header .bs-mega-header__cta[style*="transparent"]:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
}

/* SIGN UP / Dashboard CTA button — must stay secondary color, not blue */
body .bs-mega-header__cta:not([style*="transparent"]) {
    background: var(--bs-secondary) !important;
    color: var(--bg-dark) !important;
    border: none !important;
}

body .bs-mega-header__cta:not([style*="transparent"]):hover {
    background: var(--accent-light) !important;
    color: var(--bg-dark) !important;
}

/* Breadcrumb link — must stay secondary/accent color, not blue */
body .bs-hero__breadcrumb a {
    color: var(--bs-secondary) !important;
}

body .bs-hero__breadcrumb a:hover {
    color: var(--accent-light) !important;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-bottom-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow: 0 4px 16px rgba(42, 81, 76, 0.35);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.scroll-bottom-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-bottom-top:hover {
    background: var(--bs-secondary);
    box-shadow: 0 6px 24px rgba(235, 250, 158, 0.4);
    transform: translateY(-3px);
}

.scroll-bottom-top.show:hover {
    transform: translateY(-3px);
}

.scroll-bottom-top svg {
    width: 26px;
    height: 26px;
}

.scroll-bottom-top svg path:first-child {
    fill: var(--bs-secondary);
    stroke: none;
    transition: fill 0.3s ease;
}

.scroll-bottom-top:hover svg path:first-child {
    fill: var(--bs-primary);
}

.scroll-bottom-top svg path:last-child {
    fill: var(--bs-primary);
    stroke: none;
    transition: fill 0.3s ease;
}

.scroll-bottom-top:hover svg path:last-child {
    fill: var(--bs-secondary);
}

/* Ensure Bootstrap modals appear above the sticky mega-header (z-index: 9999) */
.modal {
    z-index: 10001 !important;
}
.modal-backdrop {
    z-index: 10000 !important;
}
