* {
    box-sizing: border-box;
}

:root {
    --sidebar-bg: #002240;
    --page-bg: #d1d6dc;
    --text-dark: #34495e;
    --sidebar-w: 226px;
    --sidebar-collapsed-w: 76px;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    background:
        linear-gradient(rgba(9, 25, 43, 0.62), rgba(9, 25, 43, 0.62)),
        url('./assets/backend-background.jpg') center / cover no-repeat fixed;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    color: #92a9bf;
    padding: 10px 0 14px;
    z-index: 1100;
    overflow-y: auto;
    transition: transform 0.25s ease;
}

.brand {
    color: #1f2a58;
    font-size: 56px;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -2px;
    padding: 4px 16px 12px;
}

.menu-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #68839e;
    padding: 10px 18px 6px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.side-link {
    text-decoration: none;
    color: #8da6bf;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.side-link i {
    width: 16px;
    height: 16px;
    stroke-width: 2.1;
}

.side-link span {
    font-size: 14px;
}

.side-link:hover,
.side-link.active {
    color: #ffffff;
}

.pill {
    margin-left: auto;
    background: #19cf95;
    color: #fff;
    font-size: 10px !important;
    border-radius: 20px;
    padding: 1px 6px;
    font-weight: 700;
}

.side-link.logout {
    color: #ff6d6d;
    margin-top: 6px;
}

.page-wrap {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrap.sidebar-collapsed {
    margin-left: var(--sidebar-collapsed-w);
}

.admin-sidebar.collapsed {
    width: var(--sidebar-collapsed-w);
}

.admin-sidebar.collapsed .brand {
    font-size: 0;
    letter-spacing: 0;
    padding: 10px 0 14px;
    text-align: center;
}

.admin-sidebar.collapsed .brand::after {
    content: 'RM';
    font-size: 20px;
    font-weight: 800;
    color: #9cb3c8;
    letter-spacing: 0.02em;
}

.admin-sidebar.collapsed .menu-label,
.admin-sidebar.collapsed .side-link span,
.admin-sidebar.collapsed .pill {
    display: none !important;
}

.admin-sidebar.collapsed .side-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.admin-sidebar.collapsed .side-link i {
    width: 18px;
    height: 18px;
}

.topbar {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid #d7dde5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
}

.menu-toggle {
    border: none;
    background: transparent;
    color: #5f738a;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle .bi {
    font-size: 23px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #93a0ae;
    font-size: 12px;
}

.search-box input {
    height: 32px;
    width: 220px;
    border: 1px solid #e0e6ec;
    border-radius: 6px;
    background: #f1f4f7;
    padding: 0 10px 0 30px;
    color: #5a6f87;
    font-size: 13px;
    outline: none;
}

.content-area {
    flex: 1;
    padding: 14px 0;
}

.dashboard-page .content-area {
    background: #cbd2da;
    border-top: 1px solid #c1c9d2;
    min-height: calc(100vh - 64px - 42px);
}

.heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.heading-row h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: 34px;
    font-weight: 700;
}

.crumb {
    color: #5f7388;
    font-size: 14px;
}

.crumb span {
    color: #70859a;
}

.stat-card {
    border-radius: 6px;
    text-align: center;
    padding: 16px 10px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    min-height: 124px;
}

.stat-card h5 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.stat-card p {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
}

.stat-blue {
    background: #4b8fdf;
}

.stat-green {
    background: #2dbb96;
}

.stat-gold {
    background: #e9c449;
}

.stat-cyan {
    background: #45afd3;
}

.summary-card {
    background: #dce2e8;
    border: 1px solid #cfd7e0;
    border-radius: 6px;
    min-height: 110px;
    text-align: center;
    padding: 18px 10px;
}

.summary-card h5 {
    margin: 0 0 8px;
    color: #42586d;
    font-size: 16px;
}

.summary-card p {
    margin: 0;
    color: #374f67;
    font-size: 32px;
}

.footer {
    text-align: center;
    color: #667b91;
    font-size: 13px;
    padding: 10px;
}

.panel-card {
    background: #eef1f4;
    border: 1px solid #d6dde5;
    border-radius: 8px;
}

.panel-title {
    font-size: 24px;
    font-weight: 700;
    color: #3a5168;
}

.page-note {
    font-size: 14px;
    color: #667d93;
}

.shortcut-link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.shortcut-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}

.shortcut-link-btn i {
    width: 16px;
    height: 16px;
    stroke-width: 2.3;
}

.shortcut-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.14);
}

.shortcut-link-btn-deposit-requests {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.shortcut-link-btn-withdrawal-requests {
    background: #fce7f3;
    color: #be185d;
    border-color: #fbcfe8;
}

.shortcut-link-btn-deposits {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.shortcut-link-btn-withdrawals {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.shortcut-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 16px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.shortcut-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.shortcut-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.shortcut-card:hover::before {
    opacity: 1;
}

.shortcut-card.shortcut-deposit-requests {
    border-color: #e0f2fe;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.shortcut-card.shortcut-deposit-requests:hover {
    border-color: #0ea5e9;
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
}

.shortcut-card.shortcut-deposit-requests .shortcut-icon {
    color: #0284c7;
    background: linear-gradient(135deg, #e0f2fe, #cffafe);
}

.shortcut-card.shortcut-withdrawal-requests {
    border-color: #fce7f3;
    background: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%);
}

.shortcut-card.shortcut-withdrawal-requests:hover {
    border-color: #ec4899;
    background: linear-gradient(135deg, #fce7f3 0%, #ffffff 100%);
}

.shortcut-card.shortcut-withdrawal-requests .shortcut-icon {
    color: #db2777;
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}

.shortcut-card.shortcut-deposits {
    border-color: #dcfce7;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.shortcut-card.shortcut-deposits:hover {
    border-color: #16a34a;
    background: linear-gradient(135deg, #dcfce7 0%, #ffffff 100%);
}

.shortcut-card.shortcut-deposits .shortcut-icon {
    color: #15803d;
    background: linear-gradient(135deg, #dcfce7, #bfef45);
}

.shortcut-card.shortcut-withdrawals {
    border-color: #fef3c7;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.shortcut-card.shortcut-withdrawals:hover {
    border-color: #d97706;
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
}

.shortcut-card.shortcut-withdrawals .shortcut-icon {
    color: #b45309;
    background: linear-gradient(135deg, #fef3c7, #fcd34d);
}

.shortcut-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
    font-size: 24px;
}

.shortcut-card:hover .shortcut-icon {
    transform: scale(1.1) rotate(5deg);
}

.shortcut-content {
    flex: 1;
    min-width: 0;
}

.shortcut-content h5 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.shortcut-content p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.shortcut-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    color: #64748b;
    transition: all 0.3s ease;
    font-size: 16px;
}

.shortcut-card:hover .shortcut-arrow {
    background: rgba(0, 0, 0, 0.08);
    color: #0f172a;
    transform: translateX(4px);
}

.users-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #d4dbe3;
}

.users-toolbar h2 {
    margin: 0;
    font-size: 28px;
    color: #3a5168;
}

.users-search {
    width: min(100%, 280px);
    height: 38px;
    border-radius: 6px;
    border: 1px solid #cfd7e0;
    background: #fff;
    padding: 0 12px;
    font-size: 14px;
    color: #5a6f87;
}

.password-field-wrap {
    position: relative;
}

.password-field-wrap .users-search {
    width: 100%;
    padding-right: 42px;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6f8296;
    padding: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-btn:hover {
    color: #324b63;
}

.password-toggle-btn:focus {
    outline: none;
    color: #324b63;
}

.users-table-wrap {
    padding: 14px 16px 16px;
}

.agent-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.agent-create-btn {
    width: 100%;
    margin: 0;
    height: 38px;
    border-radius: 6px;
    font-weight: 700;
}

.support-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.support-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.support-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #465b70;
}

.support-actions-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.support-save-btn {
    padding: 8px 12px;
    min-width: 190px;
    margin: 0;
}

.locations-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.locations-head-row h3 {
    color: #30475d;
    font-weight: 700;
}

.locations-card {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.locations-card-body {
    padding: 0;
}

.locations-table {
    background: #fff;
}

.locations-table th,
.locations-table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.locations-table td:last-child {
    min-width: 145px;
}

.location-thumb {
    object-fit: cover;
}

.locations-foot-note {
    font-size: 13px;
    color: #5f7489;
}

.panel-hint {
    font-size: 13px;
    color: #60748a;
}

.panel-hint.success {
    color: #0f8a61;
    font-weight: 600;
}

.panel-hint.error {
    color: #b53f52;
    font-weight: 600;
}

.wallet-api-health-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    border: 1px solid transparent;
}

.wallet-api-health-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.wallet-api-health-online {
    color: #0f8a61;
    background: #e8f8f1;
    border-color: #b7ead4;
}

.wallet-api-health-offline {
    color: #b53f52;
    background: #fdecef;
    border-color: #f3c2cb;
}

.wallet-api-health-checking {
    color: #5e7186;
    background: #eef3f8;
    border-color: #d7e1ea;
}

.history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.history-total {
    color: #6a7e93;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.transactions-card {
    overflow: hidden;
}

.transactions-card-head {
    padding: 14px 16px;
    border-bottom: 1px solid #d7dee6;
    font-size: 15px;
    font-weight: 700;
    color: #3d546a;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.transactions-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    background: #fff;
}

.transactions-table th,
.transactions-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e3e8ee;
    vertical-align: middle;
    font-size: 13px;
    color: #3d5368;
    text-align: left;
}

.transactions-table th {
    background: #f7f9fb;
    color: #30465b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.transactions-table tbody tr:nth-child(even) {
    background: #fcfdff;
}

.transactions-table tbody tr:hover {
    background: #f5f9ff;
}

.transaction-user {
    min-width: 180px;
}

.transaction-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #263d53;
}

.transaction-email,
.transaction-time,
.transaction-note {
    font-size: 12px;
    color: #73879b;
}

.transaction-wallet {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-amount {
    font-weight: 700;
    color: #2d465c;
    white-space: nowrap;
}

.history-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.4em 0.7em;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.history-badge.type {
    background: #7a8696;
}

.history-badge.status-approved {
    background: #1fb57f;
}

.history-badge.status-pending {
    background: #e1b641;
    color: #2e3136;
}

.history-badge.status-rejected {
    background: #e45f6f;
}

.transactions-empty {
    text-align: center !important;
    color: #76889c !important;
    padding: 28px 16px !important;
}

.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 18px 16px 20px;
}

.history-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 18px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    border: none;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
}

.history-page-link:hover:not(:disabled) {
    background: #6366f1;
    color: #fff;
    transform: translateY(-1px);
}

.history-page-link:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.history-page-info {
    font-size: 13px;
    color: #5d7287;
    font-weight: 600;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #d6dde5;
}

.users-table th,
.users-table td {
    border: 1px solid #d6dde5;
    padding: 9px 8px;
    font-size: 13px;
    vertical-align: top;
}

.users-table th {
    background: #e6ebf0;
    color: #2e4358;
    font-weight: 700;
    text-align: left;
}

.users-table .name {
    font-size: 14px;
    font-weight: 700;
    color: #1f3348;
}

.users-table .email {
    font-size: 12px;
    color: #70869d;
}

.manage-users-page .users-table-card {
    padding: 10px 12px 12px;
    border-radius: 10px;
}

.manage-users-page .users-table--compact {
    table-layout: fixed;
    border: 1px solid #d2dae3;
}

.manage-users-page .users-table--compact th,
.manage-users-page .users-table--compact td {
    padding: 6px 5px;
    font-size: 12px;
    vertical-align: middle;
}

.manage-users-page .users-table--compact th {
    font-size: 11px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.manage-users-page .users-table--compact .name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.manage-users-page .users-table--compact .email {
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.manage-users-page .users-table--compact td:nth-child(1),
.manage-users-page .users-table--compact th:nth-child(1) {
    width: 34px;
    text-align: center;
}

.manage-users-page .users-table--compact td:nth-child(2),
.manage-users-page .users-table--compact th:nth-child(2) {
    width: 164px;
}

.manage-users-page .users-table--compact td:nth-child(3),
.manage-users-page .users-table--compact th:nth-child(3) {
    width: 80px;
    text-align: left;
}

.manage-users-page .users-table--compact td:nth-child(4),
.manage-users-page .users-table--compact th:nth-child(4) {
    width: 56px;
}

.manage-users-page .users-table--compact td:nth-child(5),
.manage-users-page .users-table--compact th:nth-child(5) {
    width: 66px;
    text-align: right;
}

.manage-users-page .users-table--compact td:nth-child(6),
.manage-users-page .users-table--compact th:nth-child(6),
.manage-users-page .users-table--compact td:nth-child(7),
.manage-users-page .users-table--compact th:nth-child(7),
.manage-users-page .users-table--compact td:nth-child(8),
.manage-users-page .users-table--compact th:nth-child(8) {
    width: 42px;
}

.manage-users-page .users-table--compact td:nth-child(9),
.manage-users-page .users-table--compact th:nth-child(9) {
    width: 96px;
    text-align: center;
}

.manage-users-page .users-table--compact td:nth-child(10),
.manage-users-page .users-table--compact th:nth-child(10) {
    width: 140px;
    text-align: center;
}

.manage-users-page .users-table--compact .invite-cell {
    text-align: left;
}

.manage-users-page .users-table--compact .invite-cell .tag {
    margin-right: auto;
}

.manage-users-page .users-table--compact .tag {
    padding: 2px 7px;
    font-size: 10px;
}

.manage-users-page .users-table--compact .tag-info {
    padding: 2px 6px;
    font-size: 10px;
}

.manage-users-page .users-table--compact .action-buttons {
    display: grid;
    grid-template-columns: repeat(5, 24px);
    grid-auto-rows: 24px;
    justify-content: center;
    gap: 4px;
}

.manage-users-page .users-table--compact .action-btn.btn-sm {
    min-width: 24px !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    border-radius: 4px;
}

.manage-users-page .users-table--compact .created-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    white-space: normal;
    line-height: 1.2;
}

.manage-users-page .users-table--compact .created-date {
    font-weight: 700;
    color: #30465b;
}

.manage-users-page .users-table--compact .created-time {
    font-size: 11px;
    color: #70869d;
}

.manage-users-page .users-table--compact .actions-cell {
    vertical-align: middle;
}

.manage-users-page .users-table--compact td:nth-child(7) small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manage-users-page .users-table--compact .action-btn.btn-danger {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #b91c1c;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.22);
}

.manage-users-page .users-table--compact .action-btn.btn-danger:hover {
    background: #b91c1c !important;
}

.tag {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.tag-green {
    background: #23b583;
}

.tag-cyan {
    background: #3fb7db;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.tag-yellow {
    background: #d5aa33;
}

.tag-red {
    background: #ef6c6c;
}

.tag-purple {
    background: #7e86f1;
}

.tag-blue {
    background: #4a8de0;
}

.tag-info {
    background: #6b7cff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.action-btn {
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: #fff;
    margin: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.action-btn.btn-sm {
    padding: 5px 6px;
    font-size: 11px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 32px;
    height: 32px;
}

.users-toggle-btn {
    background: #dfe7f1;
    color: #36506a;
    border: 1px solid #c8d4e2;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
}

.users-toggle-btn:hover {
    background: #d3deeb;
    color: #274158;
}

.users-toggle-btn.is-active {
    background: #4a8de0;
    color: #fff;
    border-color: #3d7ccb;
    box-shadow: 0 4px 10px rgba(74, 141, 224, 0.22);
}

.users-toggle-status {
    font-size: 13px;
    color: #5f7489;
    font-weight: 600;
    margin-top: 2px;
}

.action-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.btn-view {
    background: #e8e8fe;
    color: #5762d1;
    border: 1px solid #cfd5f7;
}

.btn-view:hover {
    background: #d4d4fc;
}

.btn-freeze {
    background: #f1c84a;
    color: #fff;
}

.btn-freeze:hover {
    background: #dab535;
}

.btn-unlock {
    background: #5ec2e0;
    color: #fff;
}

.btn-unlock:hover {
    background: #4aafcd;
}

.btn-credit {
    background: #23b583;
    color: #fff;
}

.btn-credit:hover {
    background: #1a9970;
}

.btn-debit {
    background: #ef8080;
    color: #fff;
}

.btn-debit:hover {
    background: #db6b6b;
}

.btn-edit {
    background: #4f8ee3;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.account-profile-card,
.account-section-card {
    overflow: hidden;
}

.account-profile-card {
    padding: 18px;
    position: sticky;
    top: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
}

.account-profile-top {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.account-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.account-avatar {
    width: 122px;
    height: 122px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.14);
}

.account-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: #375271;
    border: 1px solid #d7e1eb;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.account-profile-meta h2 {
    margin: 8px 0 4px;
    font-size: 28px;
    color: #243b53;
}

.account-profile-meta p {
    margin: 0 0 12px;
    color: #61778d;
    font-size: 14px;
}

.account-chip {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e0ecff;
    color: #365d9f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #547087;
    font-size: 13px;
}

.account-meta-list span {
    display: flex;
    gap: 8px;
    align-items: center;
}

.account-stats-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.account-stat-box {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #d8e2ec;
}

.account-stat-box .label {
    display: block;
    color: #73869b;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.account-stat-box strong {
    color: #29435b;
    font-size: 14px;
}

.account-summary-note {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #dae4ee;
}

.account-summary-note h3 {
    font-size: 15px;
    color: #2f4a63;
    margin-bottom: 8px;
}

.account-summary-note p {
    margin: 0;
    color: #60758b;
    font-size: 13px;
    line-height: 1.6;
}

.account-section-card {
    background: #f8fafc;
}

.account-card-head {
    padding: 16px 18px;
    border-bottom: 1px solid #d7e0e8;
    font-size: 18px;
    font-weight: 700;
    color: #314b63;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.account-card-body {
    padding: 18px;
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-field.full {
    grid-column: 1 / -1;
}

.account-field label {
    color: #466077;
    font-size: 13px;
    font-weight: 700;
}

.account-field input,
.account-field select,
.account-field textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #fff;
    color: #3f566d;
    font-size: 14px;
    padding: 11px 13px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-field textarea {
    min-height: 110px;
    resize: vertical;
}

.account-field input:focus,
.account-field select:focus,
.account-field textarea:focus {
    border-color: #7aa6de;
    box-shadow: 0 0 0 0.2rem rgba(74, 141, 224, 0.15);
}

.account-switch-grid {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.account-switch-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d9e2eb;
    background: #fff;
    cursor: pointer;
}

.account-switch-card strong {
    display: block;
    color: #314c64;
    margin-bottom: 2px;
    font-size: 14px;
}

.account-switch-card span {
    color: #6e8196;
    font-size: 12px;
}

.account-switch-card input {
    width: 18px;
    height: 18px;
    accent-color: #4a8de0;
    flex-shrink: 0;
}

.account-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.danger-card {
    border-color: #f1c5c7;
    background: #fff8f8;
}

.danger-head {
    background: linear-gradient(135deg, #fff2f2 0%, #ffe1e1 100%);
    color: #b14a55;
    border-bottom-color: #f1c5c7;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .page-wrap {
        margin-left: 0;
    }

    .page-wrap.sidebar-collapsed {
        margin-left: 0;
    }

    .heading-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .users-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .locations-head-row {
        flex-direction: column;
        align-items: stretch;
    }

    .history-head {
        flex-direction: column;
        align-items: stretch;
    }

    .users-search {
        width: 100%;
    }

    .users-table-wrap {
        overflow-x: auto;
    }

    .agent-form-grid {
        grid-template-columns: 1fr;
    }

    .shortcuts-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
    }

    .shortcut-link-buttons {
        gap: 10px;
    }

    .shortcut-link-btn {
        padding: 9px 12px;
        font-size: 12px;
    }

    .shortcut-card {
        padding: 14px 12px;
        gap: 12px;
    }

    .shortcut-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .shortcut-content h5 {
        font-size: 14px;
    }

    .shortcut-content p {
        font-size: 12px;
    }

    .shortcut-arrow {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .support-form-grid {
        grid-template-columns: 1fr;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-profile-card {
        position: static;
    }

    .account-form-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page .content-area {
        padding: 14px 16px;
    }

    .heading-row h1 {
        font-size: 28px;
    }

    .stat-card h5 {
        font-size: 15px;
    }

    .stat-card p {
        font-size: 24px;
    }

    .summary-card h5 {
        font-size: 15px;
    }

    .summary-card p {
        font-size: 24px;
    }

    .crumb {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .dashboard-page .content-area {
        padding: 12px;
    }

    .heading-row h1 {
        font-size: 24px;
    }

    .stat-card {
        min-height: 110px;
    }

    .stat-card h5 {
        font-size: 14px;
    }

    .stat-card p {
        font-size: 21px;
    }

    .summary-card h5 {
        font-size: 14px;
    }

    .summary-card p {
        font-size: 21px;
    }

    .shortcuts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .shortcut-link-buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .shortcut-link-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 12px;
    }

    .shortcut-card {
        padding: 12px 14px;
    }

    .shortcut-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .shortcut-content h5 {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .shortcut-content p {
        font-size: 11px;
    }

    .shortcut-arrow {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .account-card-body,
    .account-profile-card {
        padding: 14px;
    }

    .account-actions-row .btn {
        width: 100%;
    }

    .support-save-btn {
        width: 100%;
        min-width: 0;
    }
}

/* Final override: compact table action sizing for Manage Users */
.manage-users-page .users-table--compact .action-btn.btn-sm {
    min-width: 24px !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    border-radius: 4px !important;
}