/* ==========================================================================
   GreatBank Design System
   Premium modern digital banking UI
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
    --gb-primary: #0E9B7A;
    --gb-primary-dark: #0A7A5F;
    --gb-primary-deep: #085E4B;
    --gb-primary-light: #E6F7F1;
    --gb-primary-lighter: #F0FBF7;
    --gb-accent: #17C3A6;
    --gb-accent-soft: #D9F5EE;

    --gb-navy: #081A2E;
    --gb-navy-2: #0E2540;
    --gb-navy-3: #16365C;

    --gb-ink: #102A43;
    --gb-ink-2: #243B53;
    --gb-body: #486581;
    --gb-muted: #829AB1;
    --gb-bg: #F4F7FA;
    --gb-bg-2: #EAF0F5;
    --gb-border: #E2EAF1;
    --gb-border-2: #D4DEE8;
    --gb-white: #FFFFFF;

    --gb-success: #12B76A;
    --gb-success-light: #E6F7EE;
    --gb-danger: #E5484D;
    --gb-danger-light: #FDEBEC;
    --gb-warning: #E5A400;
    --gb-warning-light: #FCF3D9;
    --gb-info: #2E90FA;
    --gb-info-light: #EAF4FE;

    --gb-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gb-radius: 16px;
    --gb-radius-sm: 10px;
    --gb-radius-lg: 22px;
    --gb-radius-pill: 999px;

    --gb-shadow-sm: 0 1px 2px rgba(16, 42, 67, .06), 0 1px 3px rgba(16, 42, 67, .08);
    --gb-shadow: 0 4px 14px rgba(16, 42, 67, .08), 0 8px 32px rgba(16, 42, 67, .05);
    --gb-shadow-lg: 0 12px 40px rgba(8, 26, 46, .14);
    --gb-shadow-primary: 0 10px 26px rgba(14, 155, 122, .32);

    --gb-gradient: linear-gradient(135deg, #0E9B7A 0%, #17C3A6 100%);
    --gb-gradient-dark: linear-gradient(150deg, #081A2E 0%, #0E2540 60%, #16365C 100%);
    --gb-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23102A43'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    --gb-transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. Base / Typography
   -------------------------------------------------------------------------- */
body {
    font-family: var(--gb-font);
    color: var(--gb-body);
    background-color: var(--gb-bg);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--gb-font);
    color: var(--gb-ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--gb-primary);
    text-decoration: none;
    transition: var(--gb-transition);
}
a:hover { color: var(--gb-primary-dark); }

.text--base, .text-primary { color: var(--gb-primary) !important; }
.text--secondary { color: var(--gb-ink) !important; }
.text--success, .text-success { color: var(--gb-success) !important; }
.text--danger, .text-danger { color: var(--gb-danger) !important; }
.text--warning, .text-warning { color: var(--gb-warning) !important; }
.text--info, .text-info { color: var(--gb-info) !important; }
.text--muted, .text-muted { color: var(--gb-muted) !important; }
.text-white { color: #fff !important; }

.fs--13px { font-size: 13px; }
.fs--14px { font-size: 14px; }
.fs--16px { font-size: 16px; }
.fs--20px { font-size: 20px; }
.fs--24px { font-size: 24px; }
.fs--30px { font-size: 30px; }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.btn {
    font-family: var(--gb-font);
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.2;
    border-radius: var(--gb-radius-pill);
    padding: .72rem 1.4rem;
    border: 1px solid transparent;
    transition: var(--gb-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    letter-spacing: -0.01em;
}
.btn:hover, .btn:focus { transform: translateY(-1px); box-shadow: var(--gb-shadow); }

.btn--base, .btn-primary {
    background: var(--gb-gradient);
    color: #fff;
    box-shadow: var(--gb-shadow-primary);
}
.btn--base:hover, .btn-primary:hover,
.btn--base:focus, .btn-primary:focus {
    background: var(--gb-gradient);
    color: #fff;
    box-shadow: 0 14px 32px rgba(14, 155, 122, .4);
}

.btn--success {
    background: var(--gb-success);
    color: #fff;
    box-shadow: 0 8px 20px rgba(18, 183, 106, .3);
}
.btn--success:hover { background: #0E9F5C; color: #fff; }

.btn--danger {
    background: var(--gb-danger);
    color: #fff;
    box-shadow: 0 8px 20px rgba(229, 72, 77, .28);
}
.btn--danger:hover { background: #D93A3F; color: #fff; }

.btn--warning {
    background: var(--gb-warning);
    color: #fff;
}
.btn--warning:hover { background: #CF9300; color: #fff; }

.btn--info {
    background: var(--gb-info);
    color: #fff;
}
.btn--info:hover { background: #1F7FE0; color: #fff; }

.btn--dark { background: var(--gb-navy); color: #fff; }
.btn--dark:hover { background: var(--gb-navy-2); color: #fff; }

.btn--light, .btn-light {
    background: #fff;
    color: var(--gb-ink);
    border-color: var(--gb-border-2);
}
.btn--light:hover, .btn-light:hover { background: var(--gb-bg); color: var(--gb-ink); }

.btn-outline, .btn-outline-primary {
    background: transparent;
    color: var(--gb-primary);
    border: 1.5px solid var(--gb-primary);
}
.btn-outline:hover, .btn-outline-primary:hover { background: var(--gb-primary-light); color: var(--gb-primary-dark); }

.btn--smd { padding: .5rem 1rem; font-size: 13.5px; }
.btn-sm { padding: .45rem .9rem; font-size: 13px; }
.btn-lg { padding: .95rem 1.8rem; font-size: 15.5px; }
.btn-block, .btn--block, .w-100 { width: 100%; }

.btn[disabled], .btn.disabled {
    opacity: .6;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Cards
   -------------------------------------------------------------------------- */
.card {
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    background: var(--gb-white);
    box-shadow: var(--gb-shadow-sm);
}
.card-body { padding: 1.5rem; }
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--gb-border);
    padding: 1.1rem 1.5rem;
    font-weight: 700;
    color: var(--gb-ink);
}
.card-footer {
    background: transparent;
    border-top: 1px solid var(--gb-border);
}

.custom--card {
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    box-shadow: var(--gb-shadow-sm);
    overflow: hidden;
}
.custom--card .card-body { padding: 1.5rem; }

/* Dashboard widgets */
.dashboard-widget {
    background: #fff;
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    padding: 1.5rem;
    box-shadow: var(--gb-shadow-sm);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--gb-transition);
}
.dashboard-widget:hover { box-shadow: var(--gb-shadow); transform: translateY(-2px); }
.dashboard-widget h5 { font-size: 14px; color: var(--gb-muted); font-weight: 600; letter-spacing: .01em; }
.dashboard-widget h3 { font-size: 26px; font-weight: 800; color: var(--gb-ink); margin: .9rem 0 0; }
.dashboard-widget hr {
    border-top: 1px dashed var(--gb-border-2);
    opacity: 1;
    margin: .9rem 0;
}

/* --------------------------------------------------------------------------
   5. Forms
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 1.1rem; }

.form-label, .form-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gb-ink-2);
    margin-bottom: .45rem;
}
.form-group label.required::after,
.form-label.required::after {
    content: ' *';
    color: var(--gb-danger);
}

.form-control, .form--control,
.form-select {
    border: 1.5px solid var(--gb-border-2);
    border-radius: var(--gb-radius-sm);
    padding: .65rem .9rem;
    font-size: 14.5px;
    color: var(--gb-ink);
    background-color: #fff;
    transition: var(--gb-transition);
    min-height: 46px;
}
.form-control:focus, .form--control:focus,
.form-select:focus {
    border-color: var(--gb-primary);
    box-shadow: 0 0 0 4px rgba(14, 155, 122, .14);
    outline: none;
    background-color: #fff;
    color: var(--gb-ink);
}
.form-control::placeholder, .form--control::placeholder { color: var(--gb-muted); }

select.form--control, .form-select {
    appearance: auto;
    background-image: none;
}
.input-group-text {
    border: 1.5px solid var(--gb-border-2);
    border-radius: 0 var(--gb-radius-sm) var(--gb-radius-sm) 0;
    background: var(--gb-bg);
    color: var(--gb-ink-2);
    font-weight: 600;
    font-size: 13.5px;
}
.input-group .form-control { border-radius: var(--gb-radius-sm) 0 0 var(--gb-radius-sm); }

textarea.form--control, textarea.form-control { min-height: 110px; resize: vertical; }

/* --------------------------------------------------------------------------
   6. Tables
   -------------------------------------------------------------------------- */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #F7FAFC;
    color: var(--gb-ink);
    vertical-align: middle;
}
.table thead th {
    background: var(--gb-bg-2);
    color: var(--gb-ink-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--gb-border);
    white-space: nowrap;
}
.table tbody td {
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--gb-border);
    font-size: 14px;
    color: var(--gb-body);
    vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: var(--gb-transition); }
.table tbody tr:hover { background: var(--gb-primary-lighter); }

.table thead th:first-child { border-radius: var(--gb-radius-sm) 0 0 var(--gb-radius-sm); }
.table thead th:last-child { border-radius: 0 var(--gb-radius-sm) var(--gb-radius-sm) 0; }

.table-responsive {
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    background: #fff;
    box-shadow: var(--gb-shadow-sm);
    overflow: hidden;
}
.table-responsive .table { margin-bottom: 0; }

.table--base { border: 1px solid var(--gb-border); border-radius: var(--gb-radius); overflow: hidden; }

/* List groups */
.list-group-item {
    border: 1px solid var(--gb-border);
    background: #fff;
    color: var(--gb-body);
    padding: .9rem 1.1rem;
    font-size: 14px;
}
.list-group-flush .list-group-item { border-left: 0; border-right: 0; }
.list-group-flush .list-group-item:first-child { border-top: 0; }
.list-group-flush .list-group-item:last-child { border-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Badges & Alerts
   -------------------------------------------------------------------------- */
.badge {
    font-weight: 600;
    font-size: 12px;
    padding: .4em .75em;
    border-radius: var(--gb-radius-pill);
    letter-spacing: .01em;
}
.badge-soft-success, .badge.bg-success, .badge-success { background: var(--gb-success-light) !important; color: var(--gb-success) !important; }
.badge-soft-danger, .badge.bg-danger, .badge-danger { background: var(--gb-danger-light) !important; color: var(--gb-danger) !important; }
.badge-soft-warning, .badge.bg-warning, .badge-warning { background: var(--gb-warning-light) !important; color: #9C6E00 !important; }
.badge-soft-info, .badge.bg-info, .badge-info { background: var(--gb-info-light) !important; color: var(--gb-info) !important; }
.badge-soft-primary, .badge.bg-primary, .badge-primary { background: var(--gb-primary-light) !important; color: var(--gb-primary-dark) !important; }
.badge-soft-secondary { background: var(--gb-bg-2) !important; color: var(--gb-ink-2) !important; }
.badge.bg-dark { background: var(--gb-navy) !important; color: #fff; }

.alert {
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    background: #fff;
    box-shadow: var(--gb-shadow-sm);
}
.alert__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.alert__message { margin: 0; font-size: 14px; line-height: 1.55; }
.alert__message .fw-bold { color: var(--gb-ink); display: block; margin-bottom: 2px; }
.alert.border--info { border-color: #BFDFFB; background: #F2F9FF; }
.alert.border--info .alert__icon { background: var(--gb-info-light); color: var(--gb-info); }
.alert.border--warning { border-color: #F5E2B0; background: #FFFBF0; }
.alert.border--warning .alert__icon { background: var(--gb-warning-light); color: var(--gb-warning); }
.alert.border--success { border-color: #BDEAD3; background: #F4FCF8; }
.alert.border--success .alert__icon { background: var(--gb-success-light); color: var(--gb-success); }
.alert.border--danger { border-color: #F6C3C5; background: #FEF7F7; }
.alert.border--danger .alert__icon { background: var(--gb-danger-light); color: var(--gb-danger); }

/* --------------------------------------------------------------------------
   8. Dashboard layout (user)
   -------------------------------------------------------------------------- */
.dashboard-container {
    padding: 1.75rem;
    background: var(--gb-bg);
    min-height: calc(100vh - 76px);
}
.dashboard-inner { max-width: 1280px; margin: 0 auto; }

/* Sidebar */
.dashboard-sidebar {
    width: 290px;
    min-height: 100vh;
    background: var(--gb-gradient-dark);
    color: #fff;
    padding: 1.5rem 1.15rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: var(--gb-transition);
    z-index: 1045;
}
.dashboard-sidebar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .25rem .5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 1.25rem;
}
.dashboard-sidebar .logo img { max-height: 46px; max-width: 100%; }

.dashboard-sidebar .bg--lights {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--gb-radius);
    padding: 1.15rem;
    margin-bottom: 1.4rem;
    backdrop-filter: blur(8px);
}
.dashboard-sidebar .profile-info p { color: rgba(255, 255, 255, .75); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.dashboard-sidebar .usd-balance { color: #fff !important; font-size: 24px !important; font-weight: 800; }
.dashboard-sidebar .usd-balance sub { color: var(--gb-accent); }
.dashboard-sidebar .profile-info .btn { width: 100%; }
.dashboard-sidebar .profile-info .gap-2 { gap: .5rem !important; }

/* Sidebar menu */
.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li { margin-bottom: .3rem; }
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem .9rem;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--gb-radius-sm);
    transition: var(--gb-transition);
}
.sidebar-menu li a img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    opacity: .7;
}
.sidebar-menu li a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transform: translateX(3px);
}
.sidebar-menu li a.active {
    background: var(--gb-gradient);
    color: #fff;
    box-shadow: var(--gb-shadow-primary);
}
.sidebar-menu li a.active img { opacity: 1; }

.dash-sidebar-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, .15);
    border-radius: 50%;
    color: #fff;
    opacity: 1;
}

/* Dashboard wrapper + topbar */
.dashboard-wrapper { flex: 1 1 0%; min-width: 0; }

.dashboard-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gb-border);
    padding: .65rem 1.75rem;
    min-height: 68px;
}
.dash-sidebar-toggler {
    width: 40px;
    height: 40px;
    border-radius: var(--gb-radius-sm);
    border: 1px solid var(--gb-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gb-ink);
    cursor: pointer;
    background: #fff;
}
.dash-sidebar-toggler:hover { background: var(--gb-bg); }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-right h6 { margin: 0; font-size: 13px; font-weight: 700; }
.nav-header-link { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; }
.nav-header-link li { position: relative; }
.nav-header-link > li > a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gb-border);
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    transition: var(--gb-transition);
}
.nav-header-link > li > a:hover { border-color: var(--gb-primary); box-shadow: var(--gb-shadow-sm); }
.nav-header-link > li > a img { width: 100%; height: 100%; object-fit: cover; }

.nav-header-link .dropdown-wrapper {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 230px;
    background: #fff;
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    box-shadow: var(--gb-shadow-lg);
    padding: .6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--gb-transition);
    z-index: 1040;
}
.nav-header-link li:hover .dropdown-wrapper,
.nav-header-link li:focus-within .dropdown-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-header { padding: .6rem .8rem; border-bottom: 1px solid var(--gb-border); margin-bottom: .4rem; }
.dropdown-header h6 { margin: 0; font-size: 15px; }
.dropdown-header p { margin: 2px 0 0; font-size: 13px; color: var(--gb-muted); }
.dropdown-wrapper .links { list-style: none; padding: 0; margin: 0; }
.dropdown-wrapper .links li a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .55rem .8rem;
    color: var(--gb-ink-2);
    font-size: 14px;
    border-radius: var(--gb-radius-sm);
}
.dropdown-wrapper .links li a:hover { background: var(--gb-primary-light); color: var(--gb-primary-dark); }
.dropdown-wrapper .links li a i { width: 18px; color: var(--gb-primary); }

/* Main wrapper */
.main-wrapper { display: flex; min-height: 100vh; }
.d-flex.flex-wrap { min-height: 100vh; }

@media (max-width: 1199.98px) {
    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-105%);
        height: 100vh;
    }
    .dashboard-sidebar.show { transform: translateX(0); box-shadow: var(--gb-shadow-lg); }
    .body-overlay.show {
        position: fixed;
        inset: 0;
        background: rgba(8, 26, 46, .5);
        z-index: 1044;
        backdrop-filter: blur(2px);
    }
    .dashboard-container { padding: 1.25rem; }
}

@media (max-width: 575.98px) {
    .dashboard-container { padding: 1rem; }
    .dashboard-nav { padding: .6rem 1rem; }
}

/* --------------------------------------------------------------------------
   9. Admin (Velzon) overrides
   -------------------------------------------------------------------------- */
body[data-layout="vertical"] .app-menu.navbar-menu {
    background: var(--gb-gradient-dark) !important;
    width: 250px;
    border-right: 0;
    box-shadow: var(--gb-shadow-lg);
}
.app-menu.navbar-menu .navbar-brand-box { padding: 1.1rem 1rem; }
.app-menu.navbar-menu .navbar-brand-box img { max-height: 40px; }
.app-menu.navbar-menu .menu-title {
    color: rgba(255, 255, 255, .45);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .12em;
    font-weight: 700;
    padding: 1.2rem 1.25rem .6rem;
}
.app-menu.navbar-menu .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 500;
    padding: .68rem 1.25rem;
    margin: .15rem .7rem;
    border-radius: var(--gb-radius-sm);
    display: flex;
    align-items: center;
    gap: .7rem;
    transition: var(--gb-transition);
}
.app-menu.navbar-menu .navbar-nav .nav-link i { font-size: 18px; width: 20px; text-align: center; }
.app-menu.navbar-menu .navbar-nav .nav-link:hover,
.app-menu.navbar-menu .navbar-nav .nav-link.active {
    background: var(--gb-gradient);
    color: #fff;
    box-shadow: var(--gb-shadow-primary);
}
.app-menu.navbar-menu .navbar-nav .menu-dropdown { background: rgba(0, 0, 0, .18); margin: .2rem .7rem; border-radius: var(--gb-radius-sm); }
.app-menu.navbar-menu .navbar-nav .menu-dropdown .nav-link { margin: 0; border-radius: 0; font-size: 13.5px; padding: .55rem 1rem .55rem 2.6rem; }
.app-menu.navbar-menu .navbar-nav .menu-dropdown .nav-link:hover { background: var(--gb-primary); }
.app-menu.navbar-menu .navbar-nav .menu-dropdown .nav-link.active { background: var(--gb-primary); color: #fff; }
.app-menu.navbar-menu .navbar-nav .nav-link[aria-expanded="true"] { background: rgba(255, 255, 255, .1); color: #fff; }

#page-topbar {
    background: rgba(255, 255, 255, .92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gb-border);
    box-shadow: var(--gb-shadow-sm);
    min-height: 70px;
}
#page-topbar .navbar-header { min-height: 70px; }
#page-topbar .header-item { color: var(--gb-ink); }

.main-content { margin-left: 250px; }
.page-content { padding: 1.75rem 1.5rem 3.5rem; background: var(--gb-bg); min-height: calc(100vh - 70px); }

@media (max-width: 991.98px) {
    .main-content { margin-left: 0; }
}

/* Admin stat cards */
.card-animate { transition: var(--gb-transition); border-radius: var(--gb-radius); }
.card-animate:hover { transform: translateY(-3px); box-shadow: var(--gb-shadow); }
.avatar-sm { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.avatar-title { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.bg-soft-info { background: var(--gb-info-light) !important; color: var(--gb-info) !important; }
.bg-soft-success { background: var(--gb-success-light) !important; color: var(--gb-success) !important; }
.bg-soft-warning { background: var(--gb-warning-light) !important; color: var(--gb-warning) !important; }
.bg-soft-danger { background: var(--gb-danger-light) !important; color: var(--gb-danger) !important; }
.bg-soft-primary { background: var(--gb-primary-light) !important; color: var(--gb-primary) !important; }

.ff-secondary { font-family: var(--gb-font); }

/* Footer */
.footer { border-top: 1px solid var(--gb-border); background: #fff; color: var(--gb-muted); font-size: 13px; }
.footer .container-fluid { padding: 1rem 1.5rem; }

/* Back to top */
#back-to-top {
    background: var(--gb-gradient);
    border: none;
    box-shadow: var(--gb-shadow-primary);
    border-radius: 12px !important;
}
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* --------------------------------------------------------------------------
   10. Preloader
   -------------------------------------------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader .animated-preloader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid var(--gb-primary-light);
    border-top-color: var(--gb-primary);
    animation: gb-spin .8s linear infinite;
}
@keyframes gb-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   11. Modals
   -------------------------------------------------------------------------- */
.modal-content {
    border: none;
    border-radius: var(--gb-radius);
    box-shadow: var(--gb-shadow-lg);
    overflow: hidden;
}
.modal-header {
    border-bottom: 1px solid var(--gb-border);
    padding: 1.1rem 1.4rem;
}
.modal-body { padding: 1.4rem; }
.modal-footer { border-top: 1px solid var(--gb-border); padding: 1rem 1.4rem; }

/* --------------------------------------------------------------------------
   12. Utility helpers
   -------------------------------------------------------------------------- */
.bg--lights { background: var(--gb-primary-lighter); }
.link-color { color: var(--gb-primary); }
.link-color:hover { color: var(--gb-primary-dark); }
.border--info { border-color: #BFDFFB; }
.border--warning { border-color: #F5E2B0; }
.border--danger { border-color: #F6C3C5; }
.border--success { border-color: #BDEAD3; }

.proifle-image-preview img,
.profile-image-preview img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gb-primary-light);
    box-shadow: var(--gb-shadow-sm);
}

.page-title h3 { margin: 0 0 .25rem; font-size: 22px; }
.page-title p { margin: 0; color: var(--gb-muted); font-size: 14px; }

.section-title h2 { font-size: 24px; font-weight: 800; }
.section-title p { color: var(--gb-muted); }

/* Responsive tables fallback (mobile label columns) */
@media (max-width: 575.98px) {
    .table-responsive {
        border: none;
        box-shadow: none;
        background: transparent;
    }
    .table-responsive .table { font-size: 13px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C4D2DE; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--gb-primary); }

/* Izitoast brand */
.iziToast { border-radius: var(--gb-radius-sm) !important; box-shadow: var(--gb-shadow) !important; font-family: var(--gb-font) !important; }

/* --------------------------------------------------------------------------
   13. Legacy UI compatibility (user/admin inner pages)
   -------------------------------------------------------------------------- */

/* Badge variants */
.badge--success { background: var(--gb-success-light); color: var(--gb-success); }
.badge--warning { background: var(--gb-warning-light); color: #9C6E00; }
.badge--danger { background: var(--gb-danger-light); color: var(--gb-danger); }
.badge--info { background: var(--gb-info-light); color: var(--gb-info); }
.badge--primary { background: var(--gb-primary-light); color: var(--gb-primary-dark); }
.badge--dark { background: var(--gb-navy); color: #fff; }

/* Card header with background */
.card-header-bg {
    background: linear-gradient(135deg, var(--gb-primary-lighter), #fff);
    border-bottom: 1px solid var(--gb-border);
}

/* Table card (Velzon style) */
.table-card { background: #fff; border-radius: var(--gb-radius); box-shadow: var(--gb-shadow-sm); }
.table-card .table { margin: 0; }

/* Transaction history accordion */
.table--acordion .accordion-item {
    border: 1px solid var(--gb-border);
    border-radius: var(--gb-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--gb-shadow-sm);
    transition: var(--gb-transition);
}
.table--acordion .accordion-item:hover { box-shadow: var(--gb-shadow); }
.table--acordion .accordion-button {
    padding: 1rem 1.25rem;
    background: #fff;
    color: var(--gb-ink);
    font-weight: 600;
    box-shadow: none;
    border-radius: 0;
}
.table--acordion .accordion-button:not(.collapsed) {
    background: var(--gb-primary-lighter);
    color: var(--gb-primary-dark);
}
.table--acordion .accordion-button::after {
    background-image: var(--gb-chevron);
    opacity: .6;
}
.table--acordion .accordion-button:focus { box-shadow: none; }
.transaction-item .left { display: flex; align-items: center; gap: .9rem; }
.transaction-item .left .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.icon-success { background: var(--gb-success-light); color: var(--gb-success); }
.icon-warning { background: var(--gb-warning-light); color: #9C6E00; }
.icon-danger { background: var(--gb-danger-light); color: var(--gb-danger); }
.trans-title { font-weight: 700; color: var(--gb-ink); font-size: 15px; margin: 0; }
.font-size--14px { font-size: 14px; }
.amount-wrapper p { font-weight: 700; color: var(--gb-ink); margin: 0; font-size: 15px; }
.caption-list { list-style: none; margin: 0; padding: 0; }
.caption-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px dashed var(--gb-border-2);
    font-size: 14px;
}
.caption-list li:last-child { border-bottom: none; }
.caption { color: var(--gb-muted); font-weight: 600; font-size: 13px; flex-shrink: 0; }
.caption-list .value { color: var(--gb-ink); text-align: right; word-break: break-word; }
.detailBtn { color: var(--gb-primary); }

/* Responsive table (stacked on mobile via data-label) */
.table--responsive--md thead { display: none; }
@media (min-width: 768px) {
    .table--responsive--md thead { display: table-header-group; }
}
@media (max-width: 767.98px) {
    .table--responsive--md,
    .table--responsive--md tbody,
    .table--responsive--md tr,
    .table--responsive--md td { display: block; width: 100%; }
    .table--responsive--md tr {
        border: 1px solid var(--gb-border);
        border-radius: var(--gb-radius-sm);
        margin-bottom: .75rem;
        background: #fff;
    }
    .table--responsive--md td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: .7rem 1rem;
        text-align: right;
        border-bottom: 1px dashed var(--gb-border-2);
    }
    .table--responsive--md td:last-child { border-bottom: none; }
    .table--responsive--md td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--gb-muted);
        flex-shrink: 0;
    }
}

/* Custom nav tabs (admin forms) */
.nav-tabs-custom { border-bottom: 0; }
.nav-tabs-custom .nav-link {
    color: var(--gb-ink-2);
    font-weight: 600;
    font-size: 13.5px;
    border: 0;
    border-radius: var(--gb-radius-sm);
    padding: .6rem 1.15rem;
    transition: var(--gb-transition);
    background: var(--gb-bg);
    margin-right: .5rem;
}
.nav-tabs-custom .nav-link:hover { color: var(--gb-primary); }
.nav-tabs-custom .nav-link.active,
.nav-tabs-custom .nav-link.active:hover {
    background: var(--gb-gradient);
    color: #fff;
    box-shadow: var(--gb-shadow-primary);
}

/* File upload helper */
.file-upload .ticket-attachments-message { font-size: 12.5px; margin-top: .5rem; }

/* 2FA / referral copy helpers */
.referralURL { font-weight: 600; letter-spacing: .03em; }
.copytext { cursor: pointer; border-radius: 0 var(--gb-radius-sm) var(--gb-radius-sm) 0; }
.copytext:hover { background: var(--gb-primary-light); color: var(--gb-primary-dark); }

/* Generic helpers */
.border-radius-3 { border-radius: .375rem; }
.secure-password { letter-spacing: .08em; }
.ml-2 { margin-left: .5rem; }
