﻿/* Custom Animations and Styles for AKServices */

/* ===== PREVENT WHITE SCREEN - INSTANT VISIBILITY ===== */
html {
    scroll-behavior: smooth;
    font-size: 12.5px;
}

html.admin-size-reduced {
    font-size: 13.125px; /* ~5% bump vs public layout for subtle clarity */
}

html.admin-size-reduced body {
    font-size: 0.93rem;
    line-height: 1.48;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html.admin-size-reduced .table th,
html.admin-size-reduced .table td,
html.admin-size-reduced .card-title,
html.admin-size-reduced .card-text,
html.admin-size-reduced .form-label,
html.admin-size-reduced .form-control,
html.admin-size-reduced .list-group-item {
    font-size: 0.89rem;
    letter-spacing: 0.01rem;
}

html.admin-size-reduced .table-responsive {
    overflow-x: visible;
}

html.admin-size-reduced .table th,
html.admin-size-reduced .table td {
    white-space: normal;
    word-break: break-word;
    padding: 0.65rem 0.75rem;
}

:root {
    --layout-sidebar-width: 220px;
    --layout-header-height: 68px;
    --table-header-blue: #0b1f4a;
}

:root[data-theme="dark"] {
    color-scheme: dark;
}

/* Remove initial opacity - page shows immediately */
body {
    opacity: 1 !important;
    transition: none;
    font-family: 'Poppins', sans-serif;
    background: var(--page-bg, #f8f9fa);
    color: var(--text-primary, #0f172a);
    overflow-x: hidden;
    transition: background 0.35s ease, color 0.35s ease;
    font-size: 0.88rem;
    line-height: 1.38;
}

body,
body p,
body li,
body label,
body .card-text,
body .form-label,
body .form-control,
body .list-group-item {
    color: var(--text-primary, #050816);
}

body small,
body .text-muted,
body .text-secondary,
body .card small,
body .table small {
    color: var(--text-muted, #1e283a) !important;
    opacity: 0.96;
}

/* ===== FORCE DESKTOP LAYOUT (Disable responsive behaviour) ===== */
body.force-desktop {
    --layout-sidebar-width: 220px;
    min-width: 1280px;
    overflow-x: auto;
}

body.force-desktop .sidebar {
    transform: none !important;
    position: fixed !important;
    width: var(--layout-sidebar-width);
    z-index: 1000;
}

body.force-desktop .sidebar-overlay {
    display: none !important;
}

body.force-desktop .main-content {
    margin-left: var(--layout-sidebar-width) !important;
    width: calc(100% - var(--layout-sidebar-width)) !important;
    max-width: calc(100% - var(--layout-sidebar-width)) !important;
    padding: calc(var(--layout-header-height) + 12px) 32px 48px !important;
}

body.force-desktop .top-navbar {
    left: var(--layout-sidebar-width) !important;
    width: calc(100vw - var(--layout-sidebar-width)) !important;
    padding: 12px 26px !important;
    flex-direction: row !important;
    align-items: center !important;
}

body.force-desktop .mobile-toggle {
    display: none !important;
}

body.force-desktop .navbar-right {
    width: auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 16px !important;
}

body.force-desktop .navbar-right > *,
body.force-desktop .header-chip,
body.force-desktop .notification-icon,
body.force-desktop .wallet-chip-refresh {
    flex: initial !important;
    width: auto !important;
    min-width: 0 !important;
}

body.force-desktop .header-wallet-group {
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* ===== SMOOTH PAGE TRANSITIONS ===== */
.page-content {
    animation: fadeInContent 0.3s ease-in;
}

@keyframes fadeInContent {
    from {
        opacity: 0.9;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SIDEBAR & HEADER - GPU ACCELERATED ===== */
.sidebar {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-navbar {
    position: fixed;
    top: 0;
    left: var(--layout-sidebar-width, 0px);
    width: calc(100vw - var(--layout-sidebar-width, 0px));
    z-index: 1200;
    background: var(--header-bg, #fff);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid var(--header-border, rgba(15, 23, 42, 0.08));
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SMOOTH ANIMATIONS ===== */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-bg {
    background: linear-gradient(270deg, #667eea, #764ba2, #f093fb, #4facfe);
    background-size: 800% 800%;
    animation: gradient 15s ease infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

/* ===== CARD ANIMATIONS ===== */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    background: var(--surface-card, #fff);
    border: 1px solid var(--surface-card-border, rgba(15, 23, 42, 0.08));
    box-shadow: var(--surface-card-shadow, 0 14px 30px rgba(23, 43, 77, 0.1));
    color: var(--text-primary, #0f172a);
}

/* ===== CONTENT SURFACE THEMING ===== */
.card-header,
.card-footer {
    background: var(--surface-card, #fff);
    color: var(--text-primary, #0f172a);
    border-color: var(--surface-card-border, rgba(15, 23, 42, 0.08));
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.modal-content {
    background: var(--surface-card, #fff);
    color: var(--text-primary, #0f172a);
    border: 1px solid var(--surface-card-border, rgba(15, 23, 42, 0.08));
    box-shadow: var(--surface-card-shadow, 0 25px 55px rgba(15, 23, 42, 0.18));
}

.list-group-item {
    background: var(--surface-card, #fff);
    color: var(--text-primary, #0f172a);
    border-color: var(--surface-card-border, rgba(15, 23, 42, 0.12));
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.table {
    --bs-table-bg: var(--surface-table, #fff);
    --bs-table-striped-bg: var(--surface-table-striped, rgba(15, 23, 42, 0.03));
    --bs-table-hover-bg: var(--surface-table-hover, rgba(14, 165, 233, 0.08));
    --bs-table-color: var(--text-primary, #0f172a);
    --bs-table-striped-color: var(--text-primary, #0f172a);
    --bs-table-hover-color: var(--text-primary, #0f172a);
    --bs-table-border-color: var(--surface-table-border, rgba(15, 23, 42, 0.08));
    background: var(--surface-table, #fff);
    color: var(--text-primary, #0f172a);
    border-color: var(--surface-table-border, rgba(15, 23, 42, 0.08));
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.table thead th {
    background: var(--table-header-blue, #0b1f4a);
    color: #fff;
    border: none;
    box-shadow: var(--table-hover-shadow, 0 12px 30px rgba(10, 60, 120, 0.25));
}

.table tfoot th,
.table tfoot td {
    background: var(--table-header-blue, #0b1f4a);
    color: #fff;
    border: none;
    font-weight: 600;
}

.table tfoot td {
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table > :not(caption) > * > * {
    border-color: var(--surface-table-border, rgba(15, 23, 42, 0.12));
}

.table-hover > tbody > tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-hover > tbody > tr:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 0.02);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.06);
}

.table-hover > tbody > tr:hover > *,
.table tbody tr:hover > * {
    background: transparent;
    color: inherit;
}

.form-control,
.form-select,
.input-group-text {
    background: var(--surface-input, #fff);
    color: var(--text-primary, #0f172a);
    border: 1px solid var(--surface-input-border, rgba(15, 23, 42, 0.08));
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--surface-input, #fff);
    color: var(--text-primary, #0f172a);
    border-color: var(--surface-input-focus, #6366f1);
    box-shadow: 0 0 0 4px var(--surface-input-focus-ring, rgba(99, 102, 241, 0.2));
}

.form-control::placeholder {
    color: var(--text-muted, #94a3b8);
    opacity: 0.75;
}

.input-group-text {
    color: var(--text-muted, #94a3b8);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== BUTTON SYSTEM (Neo gradients) ===== */
.btn {
    --btn-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
    --btn-shadow-hover: 0 18px 30px rgba(15, 23, 42, 0.28);
    border-radius: 40px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.48rem 1.15rem;
    font-size: 0.88rem;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.25s ease,
                background 0.25s ease,
                color 0.25s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--btn-shadow);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--btn-shadow-hover);
}

.btn:hover::after {
    opacity: 1;
}

.btn:focus-visible {
    outline: 3px solid rgba(99,102,241,0.35);
    outline-offset: 3px;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(120deg, #00c6ff 0%, #0072ff 52%, #6a11cb 100%);
    color: #fff;
    box-shadow: 0 20px 40px rgba(84, 105, 212, 0.35);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(120deg, #3dd8ff 0%, #3a86ff 52%, #7b2ff7 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, #1f2937 0%, #475569 100%);
    color: #e2e8f0;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.35);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #334155 0%, #64748b 100%);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    color: #fff;
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #4ade80 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #fb7185 0%, #fb923c 100%);
}

.btn-outline-light,
.btn-outline-white {
    border: 1px solid rgba(255,255,255,0.7);
    color: #fff;
    background: rgba(255,255,255,0.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-outline-light:hover,
.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-light,
.btn-soft {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary, #0f172a);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
}

.btn-light:hover,
.btn-soft:hover {
    background: #fff;
    border-color: rgba(99, 102, 241, 0.35);
}

:root[data-theme="dark"] .btn-soft,
:root[data-theme="dark"] .btn-light {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(99, 102, 241, 0.45);
    color: #e2e8f0;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: #e2e8f0;
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-icon i,
.btn-icon svg {
    font-size: 1rem;
}

/* ===== LINK SMOOTH TRANSITIONS ===== */
a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

/* ===== LOADING SPINNER ===== */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

/* ===== MENU ANIMATIONS ===== */
.menu-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}

/* ===== IMAGE OPTIMIZATION ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== FONT RENDERING ===== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== TRANSACTIONS PAGE ===== */
.transactions-shell {
    min-height: calc(100vh - 120px);
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.05), transparent 55%),
        var(--page-bg, #f4f6fb);
}

.transactions-card {
    border-radius: 18px;
    overflow: hidden;
}

.transactions-filters .form-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.transactions-filters .form-control,
.transactions-filters .form-select,
.transactions-filters .btn {
    min-height: 48px;
    border-radius: 12px;
}

.transactions-filters .form-control,
.transactions-filters .form-select {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.transactions-filters .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 600;
}

.transactions-filters .filter-tags .badge {
    font-size: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.transactions-filters form {
    row-gap: 1rem;
}

.transactions-table thead th {
    background: var(--table-header-blue, #0b1f4a);
    color: #fff;
    border-bottom: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.transactions-table tbody td {
    font-size: 0.9rem;
    vertical-align: middle;
}

.transactions-table tbody td small {
    font-size: 0.75rem;
}

.transactions-table .badge {
    border-radius: 10px;
}

.transaction-row-detail-toggle {
    cursor: pointer;
}

.transaction-detail-row {
    display: none;
    background: rgba(99, 102, 241, 0.03);
}

.transaction-detail-row.show {
    display: table-row;
}

.transaction-detail-row td {
    border-top: 1px dashed rgba(15, 23, 42, 0.1);
    background: rgba(99, 102, 241, 0.05);
}

.detail-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.detail-item .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.6);
    letter-spacing: 0.05em;
}

.detail-item .value {
    font-weight: 600;
    color: var(--text-primary, #0f172a);
}

.detail-item-full {
    grid-column: 1 / -1;
}

.receipt-shell {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
    font-size: 0.92rem;
    border: 2px solid rgba(8, 43, 87, 0.15);
    max-width: 780px;
    margin: 0 auto;
}

.receipt-header {
    border-bottom: none;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #0a3c78, #0f5fb5);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.receipt-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
}

.receipt-subtitle {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.75);
}

.receipt-issued,
.receipt-number {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.receipt-retailer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px dashed rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: rgba(248, 250, 255, 0.9);
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .receipt-retailer-info {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.receipt-table-block {
    border: 1px solid rgba(8, 43, 87, 0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%); /* very light finish */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(8,43,87,0.02);
}

.receipt-table-block + .receipt-table-block {
    margin-top: 1.25rem;
}

.receipt-table-caption {
    background: #0b2c57;
    color: #fff;
    text-transform: lowercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    padding: 0.55rem 1rem;
    text-align: center;
}

.receipt-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.receipt-data-table td,
.receipt-data-table th {
    border: 1px solid rgba(8, 43, 87, 0.04);
    padding: 0.85rem 1rem;
    vertical-align: top;
    background: rgba(11, 44, 87, 0.01); /* very faint cell background */
}

.receipt-data-table--beneficiary td {
    width: 33.3333%;
    background: rgba(11, 44, 87, 0.007); /* extremely faint for beneficiary rows */
}

.receipt-status-inline {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    border-radius: 6px;
    background: rgba(11, 44, 87, 0.03);
    color: #0b2c57;
    font-weight: 700;
    vertical-align: middle;
}

.receipt-table-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(8, 43, 87, 0.7);
    margin-bottom: 0.2rem;
}

.receipt-table-value {
    font-weight: 700;
    color: #0b1f3a;
    word-break: break-word;
    font-size: 0.95rem;
}

.receipt-data-table--transaction thead th {
    background: var(--table-header-blue, #0b1f4a);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: 600;
}

.receipt-data-table--transaction tbody td {
    font-weight: 700;
    color: #0b1f3a;
    background: rgba(11, 44, 87, 0.007); /* extremely faint for transaction body */
}


.detail-meta-sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .detail-meta-sections {
        flex-direction: row;
    }
}

.detail-meta-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.detail-meta-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.receipt-table-grid {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.03);
}

.receipt-table-row {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.receipt-table-row:first-child {
    border-top: none;
}

.receipt-table-cell {
    flex: 1 1 50%;
    padding: 0.85rem 1rem;
    min-width: 220px;
    border-left: 1px solid rgba(15, 23, 42, 0.05);
}

.receipt-table-row .receipt-table-cell:first-child {
    border-left: none;
}

.receipt-table-cell--empty {
    background: rgba(248, 250, 255, 0.6);
    min-height: 55px;
}

.receipt-table-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(15, 23, 42, 0.55);
    margin-bottom: 0.2rem;
}

.receipt-table-value {
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    word-break: break-word;
}

.receipt-table-empty {
    padding: 1rem;
    text-align: center;
    color: rgba(15, 23, 42, 0.55);
    font-style: italic;
}

.detail-meta-item {
    border: 1px dashed rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    background: rgba(248, 250, 255, 0.8);
}

.detail-meta-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(15, 23, 42, 0.55);
    margin-bottom: 0.25rem;
}

.detail-meta-value {
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    word-break: break-word;
}

.detail-meta-empty {
    font-style: italic;
    color: rgba(15, 23, 42, 0.55);
}

.detail-meta-raw {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.8rem;
    overflow-x: auto;
}

@page {
    size: A4 portrait;
    margin: 10mm;
}

@media print {
    body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    body > :not(#transactionDetailModal) {
        display: none !important;
    }
    #transactionDetailModal {
        visibility: visible !important;
    }
    /* Ensure modal occupies full printable area and isn't centered/scaled */
    #transactionDetailModal {
        position: static !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        display: block !important;
        overflow: visible !important;
        transform: none !important;
    }
    #transactionDetailModal .modal-dialog {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
        position: static !important;
        padding: 0 8mm !important;
        box-sizing: border-box !important;
    }
    #transactionDetailModal .modal-content {
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        display: block !important;
        transform: none !important;
        background: transparent !important;
        padding: 0 !important;
    }
    #transactionDetailModal .modal-footer,
    #transactionDetailModal .btn-close {
        display: none !important;
    }
    #transactionDetailModal .detail-meta-card {
        box-shadow: none;
        background: #fff;
    }
    .receipt-shell {
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
        border: 2px solid rgba(8, 43, 87, 0.15) !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 12mm !important;
        border-radius: 18px !important;
        transform: none !important;
        background: #fff !important;
        box-sizing: border-box !important;
    }

    /* Ensure the modal sits at the top of the printable area */
    #transactionDetailModal .modal-dialog,
    #transactionDetailModal .modal-content,
    #transactionDetailModal .modal-body,
    #transactionDetailModal {
        height: auto !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    /* Keep original typography for fidelity */
    .receipt-shell * {
        font-size: inherit !important;
    }
    html, body {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }
    /* Try to fit the whole receipt on one A4 page by reducing scale and avoiding page breaks */
    .receipt-shell {
        transform: scale(0.92);
        transform-origin: top left;
        -webkit-transform: scale(0.92);
        width: 100% !important;
    }

    /* Avoid breaking tables/blocks across pages */
    .receipt-table-block,
    .receipt-data-table,
    .receipt-header,
    .receipt-retailer-info {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    .receipt-retailer-info {
        flex-direction: row !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 1rem !important;
    }
    .receipt-retailer-info > div {
        flex: 1 1 0;
    }

    /* Reduce spacing between blocks so they fit vertically */
    .receipt-table-block + .receipt-table-block {
        margin-top: 0.25rem !important;
    }
    .receipt-header { padding-bottom: 0.25rem !important; margin-bottom: 0.25rem !important; }
    .receipt-retailer-info { padding: 0.5rem 0.6rem !important; }
    .receipt-table-caption { padding: 0.35rem 0.45rem !important; }
    .receipt-data-table td, .receipt-data-table th { padding: 0.35rem 0.45rem !important; }

    /* Ensure minimal page margins inside print preview */
    @page { margin: 8mm; }

    .receipt-shell {
        transform: none !important;
        -webkit-transform: none !important;
    }

    /* Pull receipt closer to top */
    #transactionDetailModal .modal-body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    .receipt-table-caption {
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
    }
    .receipt-data-table td, .receipt-data-table th {
        padding: 0.45rem 0.6rem;
    }
}

.transactions-table .btn-group .btn {
    min-width: 36px;
}

@media (max-width: 991.98px) {
    .transactions-table td,
    .transactions-table th {
        white-space: nowrap;
    }

    .transaction-detail-row {
        background: rgba(15, 23, 42, 0.02);
    }
}

:root[data-theme="dark"] .transactions-shell {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.95));
}

:root[data-theme="dark"] .transactions-table thead th {
    background: var(--table-header-blue, #0b1f4a);
    color: #fff;
}

:root[data-theme="dark"] .transactions-filters .form-control,
:root[data-theme="dark"] .transactions-filters .form-select {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(226, 232, 240, 0.15);
    color: #e2e8f0;
}

:root[data-theme="dark"] .transactions-filters .btn-outline-secondary {
    color: #cbd5f5;
    border-color: rgba(226, 232, 240, 0.2);
}

:root[data-theme="dark"] .transaction-detail-row td {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(226, 232, 240, 0.08);
}

:root[data-theme="dark"] .detail-item {
    background: rgba(15, 23, 42, 0.4);
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.06);
}

:root[data-theme="dark"] .analytics-chip {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.25);
}

/* ===== SMOOTH FOCUS STATES ===== */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    transition: outline 0.2s ease;
}

/* ===== RESPONSIVE IMAGES ===== */
img, iframe, video {
    max-width: 100%;
    height: auto;
}

/* ===== PERFORMANCE BOOST ===== */
.sidebar, .content-wrapper, .card {
    contain: layout style;
}

/* ===== GLOBAL RESPONSIVE ADJUSTMENTS FOR LAYOUT ===== */
/* These rules improve how the sidebar + main content + card grid behave
   across common breakpoints. They are intentionally conservative to
   avoid breaking page-specific inline styles; tweak further as needed. */

@media (min-width: 1200px) {
    :root { --layout-sidebar-width: 270px; }
    /* Desktop - keep sidebar full width and give container a nice left gap */
    .sidebar { width: 270px; }
    .main-content { margin-left: 270px; width: calc(100% - 270px); }
    .container-fluid { padding-left: 24px; padding-right: 24px; }
    .row.g-3 { --bs-gutter-x: 0rem; }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    :root { --layout-sidebar-width: 220px; }
    /* Large tablets / small desktops */
    .sidebar { width: 220px; }
    .main-content { margin-left: 220px; width: calc(100% - 220px); }
    .container-fluid { padding-left: 20px; padding-right: 20px; }
    .row.g-3 { --bs-gutter-x: 0rem; }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    :root { --layout-sidebar-width: 88px; }
    /* Tablets - use collapsed sidebar width and slightly tighter spacing */
    .sidebar { width: 88px; }
    .main-content { margin-left: 88px; width: calc(100% - 88px); }
    .container-fluid { padding-left: 16px; padding-right: 16px; }
    .row.g-3 { --bs-gutter-x: 0.5rem; }
    .security-option-card { padding: 18px; min-height: 160px; }
}

@media (max-width: 767.98px) {
    :root { --layout-sidebar-width: 0px; }
    /* Mobile - sidebar overlays, content full width */
    .sidebar { transform: translateX(-100%); position: fixed; z-index:1000; }
    .sidebar-overlay { display: block; }
    .main-content { margin-left: 0 !important; width: 100% !important; padding: calc(var(--layout-header-height) + 10px) 16px 24px; }
    .top-navbar {
        padding: 10px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .page-title-box {
        width: 100%;
    }
    .page-title-box h4 {
        font-size: 1.2rem;
    }
    .page-breadcrumb {
        flex-wrap: wrap;
        font-size: 0.78rem;
    }
    .navbar-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }
    .navbar-right > * {
        flex: 1 1 calc(50% - 10px);
    }
    .header-wallet-group,
    .header-chip,
    .notification-container,
    .wallet-chip-refresh {
        width: 100%;
    }
    .header-chip,
    .notification-icon,
    .wallet-chip-refresh {
        justify-content: center;
    }
    .header-wallet-group {
        justify-content: center;
        flex-wrap: wrap;
    }
    .notification-icon,
    .wallet-chip-refresh {
        height: 42px;
    }
    .container-fluid { padding-left: 12px; padding-right: 12px; }
    .row.g-3 { --bs-gutter-x: 0.75rem; }
    .col-sm-6, .col-md-6 { flex: 0 0 50%; max-width:50%; }
    .security-option-card { padding: 16px; min-height: 140px; }
    h2.fw-bold.mb-4 { text-align: center; }

    .quick-actions,
    .stat-grid,
    .ops-panels,
    .dashboard-grid,
    .user-stat-grid,
    .analytics-grid,
    .control-grid,
    .detail-row-grid {
        grid-template-columns: 1fr;
    }

    .ops-card,
    .control-panel,
    .control-feed,
    .quick-services-card,
    .user-quick-card,
    .user-table-card,
    .payout-breakdown,
    .payout-steps-card {
        padding: 18px;
    }

    .control-hero-card,
    .dashboard-hero,
    .user-hero-card {
        padding: 24px;
    }

    .control-hero-card {
        grid-template-columns: 1fr;
    }

    .transactions-filters form {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .transactions-filters .btn,
    .transactions-filters .form-control,
    .transactions-filters .form-select {
        width: 100%;
    }

    .transactions-table-wrapper,
    .transactions-card,
    .card:has(.transactions-table) {
        overflow-x: auto;
    }

    @supports selector(:has(*)) {
        .card:has(.table),
        .card:has(.table-responsive),
        .card-body:has(> .table) {
            overflow-x: auto;
        }
    }
}

@media (max-width: 575.98px) {
    .col-sm-6, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .quick-actions,
    .quick-service-grid,
    .user-quick-grid,
    .analytics-grid,
    .detail-row-grid {
        grid-template-columns: 1fr;
    }

    .transactions-table td,
    .transactions-table th {
        white-space: nowrap;
        font-size: 0.78rem;
    }

    .top-navbar {
        padding: 10px 14px;
    }

    .navbar-right > * {
        flex: 1 1 100%;
    }

    .header-wallet-group {
        flex-direction: column;
        align-items: stretch;
    }

    .header-chip,
    .notification-icon,
    .wallet-chip-refresh {
        min-height: 42px;
    }
}

@media (min-width: 768px) {
    /* When sidebar is collapsed via a class elsewhere, ensure content + header shift */
    .main-content.expanded { margin-left: 88px !important; width: calc(100% - 88px) !important; }
    .main-content.expanded .top-navbar { left: 88px; width: calc(100vw - 88px); }
}

/* Responsive page title sizing */
h2.fw-bold.mb-4 {
    font-size: clamp(1.25rem, 1.6vw + 0.6rem, 1.9rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* Fallback for header page-title elements elsewhere */
.page-title-box h4, .page-title-box h3 {
    font-size: clamp(1rem, 1.2vw + 0.4rem, 1.25rem);
    margin: 0;
}

/* Improve toggle button hit area on small screens */
.sidebar-toggle {
    padding: 8px 10px;
}

/* ===== Admin Dashboard Experience ===== */
.admin-dashboard {
    padding: 30px;
    min-height: calc(100vh - 80px);
}

.admin-dashboard .tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.success { background: rgba(46, 213, 115, 0.15); color: #2ed573; }
.tag.warning { background: rgba(255, 170, 0, 0.15); color: #ffa502; }
.tag.danger { background: rgba(255, 71, 87, 0.15); color: #ff4757; }

.news-marquee {
    background: linear-gradient(135deg, var(--sidebar-bg-bottom, #232526), var(--sidebar-accent, #414345));
    color: var(--text-primary, #fff);
    border-radius: 16px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.news-marquee .ticker {
    flex: 1;
    overflow: hidden;
}

.news-marquee .ticker-text {
    white-space: nowrap;
    animation: marquee 18s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.quick-action-btn {
    text-decoration: none;
    background: var(--surface-card, #fff);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--surface-card-shadow, 0 12px 25px rgba(15, 82, 186, 0.08));
    color: var(--text-primary, #1f2041);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-action-btn i {
    font-size: 1.4rem;
}

.quick-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(15, 82, 186, 0.2);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--surface-card, #fff);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--surface-card-shadow, 0 14px 30px rgba(23, 43, 77, 0.1));
}

.stat-card .label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9aa0b4;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2041;
}

.stat-card .delta {
    margin-top: 8px;
    color: #57606f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ops-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.ops-card {
    background: var(--surface-card, #fff);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--surface-card-shadow, 0 16px 34px rgba(15, 23, 42, 0.08));
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title i {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.empty {
    background: var(--surface-muted, rgba(15, 23, 42, 0.02));
    border: 1px dashed rgba(99, 110, 114, 0.35);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: var(--text-muted, #636e72);
}

.ops-card .table {
    margin-bottom: 0;
}

.ops-card .table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--table-header-blue, #0b1f4a);
    color: #fff;
    border: none;
    box-shadow: 0 10px 22px rgba(10, 60, 120, 0.25);
}

.ops-card .table td {
    border-color: var(--surface-table-border, rgba(15, 23, 42, 0.08));
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .admin-dashboard { padding: 20px 15px; }
    .news-marquee { flex-direction: column; align-items: flex-start; }
    .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-card .value { font-size: 1.6rem; }
}

/* ===== Admin Dashboard 2.0 (Hero + Hover enhancements) ===== */
.dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background: linear-gradient(135deg, #5f72ff, #9d4de6);
    border-radius: 28px;
    padding: 32px;
    color: #fff;
    gap: 24px;
    box-shadow: 0 25px 60px rgba(95, 114, 255, 0.3);
}

.dashboard-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.8rem;
    opacity: 0.75;
    margin-bottom: 8px;
}

.dashboard-hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 10px;
}

.dashboard-hero p {
    color: rgba(255,255,255,0.85);
    max-width: 520px;
}

.hero-actions .btn {
    margin-right: 12px;
    border-radius: 999px;
    padding: 12px 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.hero-indicators {
    display: flex;
    gap: 18px;
}

.hero-indicators .indicator {
    background: rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 16px 20px;
    min-width: 180px;
}

.hero-indicators .indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    opacity: 0.8;
}

.hero-indicators .indicator strong {
    display: block;
    font-size: 1.4rem;
    margin-top: 6px;
}

.stats-row {
    margin: 28px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.stats-row .stat-card {
    border-radius: 22px;
    padding: 18px;
    color: #fff;
    box-shadow: 0 18px 40px rgba(20, 27, 45, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stats-row .stat-card:hover { transform: translateY(-6px); box-shadow: 0 22px 45px rgba(20,27,45,0.25); }
.stats-row .stat-card p { text-transform: uppercase; letter-spacing: 0.08rem; font-size: 0.8rem; opacity: 0.85; }
.stats-row .stat-card h3 { font-size: 2rem; margin: 10px 0; }
.stats-row .stat-card small { opacity: 0.9; }
.stat-card.primary { background: linear-gradient(135deg, #5f72ff, #9921e8); }
.stat-card.pink { background: linear-gradient(135deg, #ff6fb7, #ff8f70); }
.stat-card.cyan { background: linear-gradient(135deg, #5ee7df, #b490ca); color: #10243d; }
.stat-card.gold { background: linear-gradient(135deg, #f6d365, #fda085); color: #432c09; }

.quick-services-card {
    background: var(--surface-card, #fff);
    border-radius: 26px;
    padding: 22px 26px;
    box-shadow: var(--surface-card-shadow, 0 14px 40px rgba(20, 27, 45, 0.08));
    border: 1px solid var(--surface-card-border, rgba(15, 23, 42, 0.08));
    margin-bottom: 28px;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.quick-services-card .card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.quick-services-card .card-head p {
    margin: 0;
    color: var(--text-muted, #626776);
}

.quick-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.quick-service-item {
    text-decoration: none;
    background: var(--surface-tile, #f8f9ff);
    border-radius: 18px;
    padding: 18px 14px;
    text-align: center;
    color: var(--text-primary, #1a1a2e);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.quick-service-item i {
    font-size: 1.4rem;
    color: var(--sidebar-accent, #5f72ff);
}

.quick-service-item:hover {
    transform: translateY(-6px);
    background: var(--surface-tile-hover, rgba(95, 114, 255, 0.12));
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 18px 30px rgba(95, 114, 255, 0.2);
}

/* ===== Financial Payout Components ===== */
.payout-breakdown {
    background: var(--surface-card, #fff);
    border: 1px solid var(--surface-card-border, rgba(15, 23, 42, 0.08));
    box-shadow: var(--surface-card-shadow, 0 18px 35px rgba(15, 23, 42, 0.12));
    color: var(--text-primary, #0f172a);
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.payout-breakdown hr {
    border-color: var(--surface-card-border, rgba(15, 23, 42, 0.12));
    opacity: 0.6;
}

.payout-steps-card {
    background: var(--surface-card, #fff);
    border: 1px solid var(--surface-card-border, rgba(15, 23, 42, 0.08));
    box-shadow: var(--surface-card-shadow, 0 18px 35px rgba(15, 23, 42, 0.1));
    border-radius: 20px;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.payout-step {
    background: var(--surface-tile, rgba(99, 102, 241, 0.08));
    border-radius: 20px;
    border: 1px solid transparent;
    padding: 16px 18px;
    color: var(--text-primary, #0f172a);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    min-height: 100%;
}

.payout-step:hover {
    background: var(--surface-tile-hover, rgba(99, 102, 241, 0.18));
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
}

.payout-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}

.payout-step-icon.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.payout-step-icon.success {
    background: linear-gradient(135deg, #10b981, #22d3ee);
}

.payout-step-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.payout-step-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payout-step-copy small {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    color: var(--text-muted, #94a3b8);
}

.payout-step-copy strong {
    font-size: 0.95rem;
    color: var(--text-primary, #0f172a);
}

.payout-step-copy span {
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

@media (max-width: 767.98px) {
    .payout-step {
        flex-direction: column;
        align-items: flex-start;
    }

    .payout-step-icon {
        margin-bottom: 8px;
    }
}

/* ===== Table Theme Helpers ===== */
.table-theme thead th {
    background: var(--table-header-blue, #0b1f4a);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
    font-weight: 600;
    border: none;
    padding: 14px 12px;
    white-space: nowrap;
}

.table-theme tbody tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-bottom: 1px solid var(--surface-table-border, rgba(15, 23, 42, 0.08));
    background-color: var(--surface-table, #fff);
}

.table-theme tbody tr:hover {
    background-color: var(--surface-table-hover, rgba(14, 165, 233, 0.08));
    transform: translateX(2px);
    box-shadow: var(--table-hover-shadow, 0 8px 20px rgba(15, 23, 42, 0.12));
}

.table-theme tbody td {
    padding: 14px 12px;
    vertical-align: middle;
    border-color: var(--surface-table-border, rgba(15, 23, 42, 0.08));
    color: var(--text-primary, #0f172a);
}

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

.recent-card table thead th {
    border-top: none;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    background: var(--table-header-blue, #0b1f4a);
    color: #fff;
}

.recent-card table td {
    border-color: var(--surface-table-border, rgba(15, 23, 42, 0.08));
}

@media (max-width: 991.98px) {
    .dashboard-hero { padding: 24px; }
    .hero-indicators { flex-direction: column; width: 100%; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .dashboard-hero { border-radius: 20px; }
    .stats-row { grid-template-columns: 1fr; }
    .quick-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

    /* ===== User Dashboard Experience ===== */
    .user-dashboard {
        padding: 32px 22px 40px;
        min-height: calc(100vh - 90px);
    }

    .user-hero-card {
        display: flex;
        justify-content: space-between;
        gap: 24px;
        flex-wrap: wrap;
        background: linear-gradient(135deg, #5f2eea, #30cfd0);
        border-radius: 28px;
        padding: 32px;
        color: #fff;
        box-shadow: 0 25px 60px rgba(59, 76, 202, 0.25);
        margin-bottom: 30px;
    }


    .user-hero-card .eyebrow {
        text-transform: uppercase;
        letter-spacing: 0.18rem;
        font-size: 0.78rem;
        opacity: 0.78;
        margin-bottom: 6px;
    }

    .user-hero-card h2 {
        margin: 0 0 10px;
        font-size: clamp(1.8rem, 3vw, 2.4rem);
    }

    .user-hero-card p { max-width: 520px; color: rgba(255,255,255,0.85); }

    .wallet-chip {
        background: rgba(255,255,255,0.15);
        border-radius: 18px;
        padding: 18px 24px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 220px;
    }

    .wallet-chip span {
        letter-spacing: 0.08rem;
        font-size: 0.78rem;
        text-transform: uppercase;
        opacity: 0.8;
    }

    .wallet-chip strong { font-size: 1.8rem; }

    .user-stat-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
        margin-bottom: 30px;
    }

    .user-stat {
        border-radius: 22px;
        padding: 22px;
        color: #fff;
        box-shadow: 0 18px 40px rgba(20, 27, 45, 0.12);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .user-stat p {
        text-transform: uppercase;
        letter-spacing: 0.09rem;
        font-size: 0.74rem;
        opacity: 0.9;
    }

    .user-stat h3 { margin: 12px 0; font-size: 1.9rem; }
    .user-stat small { opacity: 0.9; display: flex; align-items: center; gap: 8px; }
    .user-stat.primary { background: linear-gradient(135deg, #5f72ff, #9921e8); }
    .user-stat.pink { background: linear-gradient(135deg, #ff6fb7, #ff8f70); }
    .user-stat.cyan { background: linear-gradient(135deg, #5ee7df, #b490ca); color: #10243d; }
    .user-stat.gold { background: linear-gradient(135deg, #f6d365, #fda085); color: #432c09; }

    .user-stat:hover { transform: translateY(-6px); box-shadow: 0 26px 45px rgba(20,27,45,0.18); }

    .user-quick-card,
    .user-table-card {
        background: var(--surface-card, #fff);
        border-radius: 26px;
        padding: 24px 26px;
        box-shadow: var(--surface-card-shadow, 0 14px 40px rgba(20, 27, 45, 0.08));
        border: 1px solid var(--surface-card-border, rgba(15, 23, 42, 0.08));
        margin-bottom: 30px;
        transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    }

    .card-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 18px;
        margin-bottom: 18px;
    }

    .card-head h5 { margin: 0; font-weight: 600; }
    .card-head p { margin: 0; color: var(--text-muted, #626776); }

    .user-quick-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }

    .user-quick-item {
        text-decoration: none;
        background: var(--surface-tile, #f3f5ff);
        border-radius: 20px;
        padding: 18px 14px;
        text-align: center;
        color: var(--text-primary, #1f1f2b);
        font-weight: 600;
        display: flex;
        flex-direction: column;
        gap: 10px;
        border: 1px solid transparent;
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

    .user-quick-item i {
        font-size: 1.5rem;
        color: var(--sidebar-accent, #5f72ff);
    }

    .user-quick-item:hover {
        transform: translateY(-6px);
        background: var(--surface-tile-hover, rgba(95, 114, 255, 0.15));
        border-color: rgba(99, 102, 241, 0.45);
        box-shadow: 0 18px 30px rgba(95, 114, 255, 0.2);
    }

    .user-quick-item:hover i { color: #fff; }

    .analytics-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }

    .analytics-chip {
        border-radius: 20px;
        padding: 18px;
        background: var(--surface-tile, #f7f7fb);
        border: 1px dashed rgba(95, 114, 255, 0.3);
    }

    .analytics-chip span {
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 0.08em;
        color: var(--text-muted, #6b7280);
    }

    .analytics-chip strong {
        display: block;
        font-size: 1.4rem;
        margin: 8px 0 6px;
        color: var(--text-primary, #0f172a);
    }

    .analytics-chip small {
        color: var(--text-muted, #94a3b8);
        font-weight: 500;
    }

    .user-table-card table thead th {
        border-top: none;
        text-transform: uppercase;
        font-size: 0.74rem;
        letter-spacing: 0.05em;
        background: var(--table-header-blue, #0b1f4a);
        color: #fff;
    }

    .user-table-card table td { border-color: rgba(0,0,0,0.05); }

    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 60px 20px;
        color: #a0a3b1;
    }

    .empty-state i {
        font-size: 2.2rem;
        margin-bottom: 12px;
        color: #c7cad8;
    }

    @media (max-width: 767.98px) {
        .user-dashboard { padding: 24px 14px 30px; }
        .user-hero-card { padding: 24px; border-radius: 22px; }
        .wallet-chip { width: 100%; }
        .card-head { flex-direction: column; align-items: flex-start; }
        .user-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

/* ===== Admin Control Center ===== */
.control-page-shell {
    padding: 2.5rem;
    min-height: calc(100vh - 60px);
    background: var(--admin-dashboard-bg, #0b1120);
    color: var(--text-primary, #0f172a);
}

.control-hero-card {
    border-radius: 28px;
    padding: 2.25rem;
    background: var(--admin-surface, rgba(10, 16, 45, 0.75));
    border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08));
    box-shadow: var(--admin-card-shadow, 0 32px 70px rgba(2, 6, 23, 0.9));
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 2.25rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.control-hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, var(--admin-glow, rgba(79, 70, 229, 0.25)), transparent 55%);
    pointer-events: none;
}

.control-hero-card .eyebrow {
    letter-spacing: 0.35em;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 0.5rem;
}

.control-hero-card h1 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.control-hero-card p {
    color: var(--text-muted, #94a3b8);
    max-width: 520px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.hero-pill {
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    background: var(--admin-ghost-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--admin-ghost-border, rgba(255, 255, 255, 0.12));
    font-size: 0.85rem;
    color: var(--text-primary, #0f172a);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.control-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.control-hero-stats .stat-card {
    border-radius: 20px;
    padding: 1.3rem;
    background: var(--admin-ghost-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--admin-ghost-border, rgba(255, 255, 255, 0.12));
}

.control-hero-stats span {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 0.4rem;
}

.control-hero-stats strong {
    font-size: 1.8rem;
}

.control-grid {
    margin-top: 2.25rem;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
    gap: 1.8rem;
}

.control-panel,
.control-feed {
    border-radius: 26px;
    background: var(--admin-surface, rgba(10, 16, 45, 0.75));
    border: 1px solid var(--admin-border, rgba(255, 255, 255, 0.08));
    box-shadow: var(--admin-card-shadow, 0 32px 70px rgba(2, 6, 23, 0.9));
    padding: 2rem;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.panel-head h3 {
    margin: 0;
    font-size: 1.35rem;
}

.panel-head small {
    display: block;
    color: var(--text-muted, #94a3b8);
}

.status-alert {
    border-radius: 18px;
    padding: 0.95rem 1.2rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.status-alert.success {
    background: rgba(16, 185, 129, 0.14);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-alert.danger {
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.control-form .form-label {
    font-weight: 600;
    color: var(--text-primary, #0f172a);
}

.control-form .form-control,
.control-form textarea,
.control-form .form-select {
    border-radius: 16px;
    padding: 0.85rem 1rem;
}

.channel-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.channel-option {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--admin-ghost-border, rgba(255, 255, 255, 0.12));
    overflow: hidden;
}

.channel-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.channel-option span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    color: var(--text-primary, #0f172a);
}

.channel-option input:checked + span {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.3);
}

.reach-chip {
    border-radius: 18px;
    padding: 0.6rem 1rem;
    background: var(--surface-muted, rgba(255, 255, 255, 0.04));
    color: var(--text-muted, #94a3b8);
}

.control-feed h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.recent-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.recent-card {
    padding: 1.1rem;
    border-radius: 18px;
    background: var(--admin-ghost-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--admin-ghost-border, rgba(255, 255, 255, 0.12));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.recent-card:hover {
    transform: translateX(4px);
    border-color: rgba(14, 165, 233, 0.45);
}

.recent-card h6 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.recent-card p {
    margin: 0 0 0.4rem;
    color: var(--text-muted, #94a3b8);
}

.recent-card .meta-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted, #94a3b8);
}

.recent-card .pill {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
    font-size: 0.75rem;
}

.control-feed .empty-state {
    padding: 2rem;
    border-radius: 18px;
    background: var(--admin-ghost-bg, rgba(255, 255, 255, 0.04));
}

@media (max-width: 991.98px) {
    .control-hero-card {
        grid-template-columns: 1fr;
    }

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

:root[data-theme="light"] .control-page-shell {
    background: linear-gradient(135deg, #eef2ff 0%, #fff5f7 55%, #ecfeff 100%);
}

:root[data-theme="light"] .control-hero-card,
:root[data-theme="light"] .control-panel,
:root[data-theme="light"] .control-feed {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 35px 85px rgba(79, 70, 229, 0.15);
}

:root[data-theme="light"] .control-hero-card::after {
    background: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.25), transparent 55%);
}

:root[data-theme="light"] .control-hero-stats .stat-card,
:root[data-theme="light"] .recent-card {
    background: linear-gradient(135deg, rgba(236, 254, 255, 0.95), rgba(224, 231, 255, 0.95));
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.12);
}

:root[data-theme="light"] .hero-pill {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.25);
}

:root[data-theme="light"] .channel-option {
    border-color: rgba(99, 102, 241, 0.15);
}

:root[data-theme="light"] .control-feed .empty-state {
    background: rgba(255, 255, 255, 0.9);
    border: 1px dashed rgba(148, 163, 184, 0.6);
}

/* ===== PROFILE PAGE ENHANCEMENTS ===== */
.profile-page {
    background: radial-gradient(circle at top, rgba(99, 102, 241, 0.25), transparent 45%),
                radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.2), transparent 55%),
                #040a18;
    min-height: calc(100vh - 80px);
}

.profile-page .card {
    border-radius: 20px;
    background: rgba(8, 12, 28, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.18);
    color: #f8fafc;
}

.profile-page .card h4,
.profile-page .card h5,
.profile-page .card h6,
.profile-page .card p,
.profile-page .card label {
    color: #e2e8f0;
}

.profile-hero {
    background: linear-gradient(135deg, #172554 0%, #312e81 40%, #6d28d9 100%);
    color: #f8fafc;
    overflow: hidden;
}

.profile-hero.sticky-profile-header {
    position: sticky;
    top: clamp(72px, 5vw, 110px);
    z-index: 12;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

@media (max-width: 767.98px) {
    .profile-hero.sticky-profile-header {
        position: relative;
        top: auto;
        z-index: auto;
    }
}

.profile-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 45%);
    pointer-events: none;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
}

.badge-pill-soft {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
    color: #f8fafc;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-page .stat-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    color: rgba(248, 250, 252, 0.8);
    font-weight: 600;
}

.profile-page .form-control,
.profile-page .form-select,
.profile-page textarea {
    border-radius: 16px;
    background: rgba(3, 7, 20, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #f8fafc;
    box-shadow: none;
    padding: 0.85rem 1rem;
}

.profile-page .form-control:focus,
.profile-page .form-select:focus,
.profile-page textarea:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
    background: rgba(5, 10, 26, 0.98);
}

.profile-page .form-control::placeholder,
.profile-page textarea::placeholder {
    color: rgba(226, 232, 240, 0.75);
    opacity: 1;
}

.profile-page .form-label {
    color: #e0e7ff;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.profile-page .helper-text {
    font-size: 0.78rem;
    color: rgba(226, 232, 240, 0.9);
    margin-top: 4px;
}

.profile-page .text-muted {
    color: rgba(226, 232, 240, 0.88) !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.gradient-card {
    background: linear-gradient(135deg, #1f2937 0%, #4c1d95 100%);
    border: none;
}

.instructions-card {
    background: rgba(5, 13, 35, 0.95);
    border: 1px dashed rgba(148, 163, 184, 0.5);
}

.instruction-list li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
    color: rgba(226, 232, 240, 0.9);
}

.instruction-list i {
    font-size: 0.5rem;
    margin-top: 0.35rem;
    color: #38bdf8;
}

.requested-documents .border {
    border-color: rgba(99, 102, 241, 0.35) !important;
    background: rgba(8, 12, 28, 0.85);
}

.requested-documents .btn-outline-primary {
    border-color: rgba(59, 130, 246, 0.6);
    color: #bfdbfe;
}

.requested-documents .btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
}

:root[data-theme="light"] .profile-page {
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 40%, #fdf2ff 100%);
}

:root[data-theme="light"] .profile-page .card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.12);
    color: var(--text-primary, #0f172a);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .profile-page .card h4,
:root[data-theme="light"] .profile-page .card h5,
:root[data-theme="light"] .profile-page .card h6,
:root[data-theme="light"] .profile-page .card p,
:root[data-theme="light"] .profile-page .card label {
    color: var(--text-primary, #0f172a);
}

:root[data-theme="light"] .profile-page .stat-label {
    color: rgba(15, 23, 42, 0.75);
}

:root[data-theme="light"] .profile-page .helper-text {
    color: rgba(15, 23, 42, 0.7);
}

:root[data-theme="light"] .profile-page .text-muted {
    color: rgba(15, 23, 42, 0.7) !important;
}

:root[data-theme="light"] .profile-hero {
    background: linear-gradient(135deg, #c7d2fe 0%, #f5d0fe 40%, #ffd6e8 100%);
    color: var(--text-primary, #0f172a);
}

:root[data-theme="light"] .profile-hero::after {
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.55), transparent 50%);
}

:root[data-theme="light"] .profile-avatar {
    background: rgba(99, 102, 241, 0.15);
    color: #1e1b4b;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}

:root[data-theme="light"] .badge-pill-soft {
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
}

:root[data-theme="light"] .profile-page .stat-label {
    color: rgba(15, 23, 42, 0.65);
}

:root[data-theme="light"] .profile-page .form-control,
:root[data-theme="light"] .profile-page .form-select,
:root[data-theme="light"] .profile-page textarea {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--text-primary, #0f172a);
}

:root[data-theme="light"] .profile-page .form-control:focus,
:root[data-theme="light"] .profile-page .form-select:focus,
:root[data-theme="light"] .profile-page textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: #fff;
}

:root[data-theme="light"] .profile-page .form-control::placeholder,
:root[data-theme="light"] .profile-page textarea::placeholder {
    color: rgba(71, 85, 105, 0.75);
}

:root[data-theme="light"] .profile-page .form-label {
    color: var(--text-primary, #0f172a);
}

:root[data-theme="light"] .profile-page .helper-text {
    color: rgba(71, 85, 105, 0.95);
}

:root[data-theme="light"] .gradient-card {
    background: linear-gradient(135deg, #e0e7ff 0%, #f5d0fe 100%);
    color: var(--text-primary, #0f172a);
}

:root[data-theme="light"] .instructions-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px dashed rgba(148, 163, 184, 0.6);
    color: var(--text-primary, #0f172a);
}

:root[data-theme="light"] .instruction-list li {
    color: var(--text-primary, #0f172a);
}

:root[data-theme="light"] .instruction-list i {
    color: #7c3aed;
}

:root[data-theme="light"] .requested-documents .border {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.2) !important;
}

:root[data-theme="light"] .requested-documents .btn-outline-primary {
    border-color: rgba(99, 102, 241, 0.6);
    color: #4338ca;
}

:root[data-theme="light"] .requested-documents .btn-outline-primary:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #1e1b4b;
}

:root[data-theme="light"] .profile-page .text-white {
    color: var(--text-primary, #0f172a) !important;
}

:root[data-theme="light"] .profile-page .text-white-50 {
    color: rgba(15, 23, 42, 0.6) !important;
}

@media (max-width: 767.98px) {
    .profile-avatar {
        width: 72px;
        height: 72px;
    }

    .profile-page .card {
        padding: 1.5rem;
    }
}

/* Utility transactions table */
.utility-transactions-card {
    border-radius: 18px;
}

.utility-transactions-scroll {
    max-height: 560px;
    overflow-y: auto;
}

.utility-transactions-scroll table {
    min-width: 720px;
}

.utility-transactions-scroll::-webkit-scrollbar {
    width: 6px;
}

.utility-transactions-scroll::-webkit-scrollbar-thumb {
    background: rgba(11, 110, 220, 0.35);
    border-radius: 999px;
}

/* Admin compact typography and tables */
body.admin-ui-compact .card,
body.admin-ui-compact .glass-card,
body.admin-ui-compact .metric-card,
body.admin-ui-compact .launchpad-item,
body.admin-ui-compact .table,
body.admin-ui-compact table,
body.admin-ui-compact p,
body.admin-ui-compact li,
body.admin-ui-compact label,
body.admin-ui-compact small,
body.admin-ui-compact span,
body.admin-ui-compact a,
body.admin-ui-compact input,
body.admin-ui-compact select,
body.admin-ui-compact textarea,
body.admin-ui-compact button {
    font-size: 1.05rem;
}

body.admin-ui-compact .table th,
body.admin-ui-compact .table td,
body.admin-ui-compact table th,
body.admin-ui-compact table td {
    font-size: 1rem;
    padding: 0.45rem 0.65rem;
}

