/* ==========================================================================
   EXPERT PEER TO PEER - CORE DESIGN SYSTEM
   STRICT BLACK AND WHITE / MONOCHROME FINTECH THEME
   Responsive Font Sizes: 12px (<768px) / 14px (>=768px)
   Strict Palette: #000000, #0A0A0A, #171717, #737373, #D4D4D4, #F5F5F5, #FFFFFF
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Pure Neutral Color Palette */
    --c-black: #000000;
    --c-near-black: #0a0a0a;
    --c-dark-grey: #171717;
    --c-charcoal: #262626;
    --c-border-dark: #333333;
    --c-grey-400: #404040;
    --c-medium-grey: #737373;
    --c-grey-muted: #a3a3a3;
    --c-light-grey: #d4d4d4;
    --c-border-light: #e5e5e5;
    --c-off-white: #f5f5f5;
    --c-pure-white: #ffffff;

    /* Typography */
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --base-font-size: 14px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition-fast: all 0.15s ease-in-out;
    --transition-base: all 0.25s ease-in-out;
}

/* ==========================================================================
   LIGHT THEME VARIABLES (STRICT B&W)
   ========================================================================== */
:root,
[data-theme="light"],
html[data-theme="light"] {
    --page-bg: #ffffff;
    --card-bg: #ffffff;
    --bg-body: #ffffff;
    --bg-dashboard: #f5f5f5;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f5f5f5;
    --bg-surface-elevated: #ffffff;
    --border-color: #d4d4d4;
    --border-subtle: #e5e5e5;
    --text-primary: #000000;
    --text-secondary: #737373;
    --text-muted: #737373;

    --dropdown-bg: #ffffff;
    --dropdown-border: #d4d4d4;
    --hover-bg: #f5f5f5;
    --menu-icon-color: #737373;

    --sidebar-bg: #ffffff;
    --sidebar-text: #171717;
    --sidebar-text-active: #ffffff;
    --sidebar-item-hover: #f5f5f5;
    --sidebar-item-active: #000000;
    --sidebar-item-active-text: #ffffff;
    --sidebar-border: #d4d4d4;

    --header-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);

    --input-bg: #ffffff;
    --input-text: #000000;
    --input-border: #d4d4d4;
    --input-focus-border: #000000;
    --input-focus-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);

    --btn-primary-bg: #000000;
    --btn-primary-text: #ffffff;
    --btn-primary-border: #000000;
    --btn-primary-hover: #262626;

    --btn-secondary-bg: #ffffff;
    --btn-secondary-text: #000000;
    --btn-secondary-border: #d4d4d4;
    --btn-secondary-hover: #f5f5f5;

    --modal-bg: #ffffff;
    --table-hover: #f5f5f5;
    --bottom-nav-bg: #ffffff;

    /* Hero Wallet Card */
    --wallet-card-bg: #ffffff;
    --wallet-card-text: #000000;
    --wallet-card-border: #d4d4d4;
    --wallet-substat-bg: #f5f5f5;
    --wallet-substat-border: #e5e5e5;

    /* Status Badges */
    --badge-pending-bg: #f5f5f5;
    --badge-pending-text: #171717;
    --badge-pending-border: #d4d4d4;

    --badge-approved-bg: #000000;
    --badge-approved-text: #ffffff;
    --badge-approved-border: #000000;

    --badge-rejected-bg: #e5e5e5;
    --badge-rejected-text: #000000;
    --badge-rejected-border: #d4d4d4;

    --badge-processing-bg: #737373;
    --badge-processing-text: #ffffff;
    --badge-processing-border: #737373;

    --badge-completed-bg: #000000;
    --badge-completed-text: #ffffff;
    --badge-completed-border: #000000;

    /* Bootstrap 5 Native Variable Mappings */
    --bs-body-bg: #ffffff;
    --bs-body-color: #000000;
    --bs-heading-color: #000000;
    --bs-border-color: #d4d4d4;
    --bs-dropdown-bg: #ffffff;
    --bs-dropdown-color: #000000;
    --bs-dropdown-border-color: #d4d4d4;
    --bs-dropdown-link-color: #000000;
    --bs-dropdown-link-hover-color: #000000;
    --bs-dropdown-link-hover-bg: #f5f5f5;
}

/* ==========================================================================
   DARK THEME VARIABLES (STRICT B&W)
   ========================================================================== */
[data-theme="dark"],
html[data-theme="dark"] {
    --page-bg: #000000;
    --card-bg: #171717;
    --bg-body: #000000;
    --bg-dashboard: #0a0a0a;
    --bg-surface: #171717;
    --bg-surface-alt: #0a0a0a;
    --bg-surface-elevated: #262626;
    --border-color: #333333;
    --border-subtle: #262626;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #a3a3a3;

    --dropdown-bg: #171717;
    --dropdown-border: #333333;
    --hover-bg: #262626;
    --menu-icon-color: #a3a3a3;

    --sidebar-bg: #0a0a0a;
    --sidebar-text: #a3a3a3;
    --sidebar-text-active: #000000;
    --sidebar-item-hover: #171717;
    --sidebar-item-active: #ffffff;
    --sidebar-item-active-text: #000000;
    --sidebar-border: #333333;

    --header-bg: #0a0a0a;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);

    --input-bg: #0a0a0a;
    --input-text: #ffffff;
    --input-border: #404040;
    --input-focus-border: #ffffff;
    --input-focus-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);

    --btn-primary-bg: #ffffff;
    --btn-primary-text: #000000;
    --btn-primary-border: #ffffff;
    --btn-primary-hover: #e5e5e5;

    --btn-secondary-bg: #171717;
    --btn-secondary-text: #ffffff;
    --btn-secondary-border: #333333;
    --btn-secondary-hover: #262626;

    --modal-bg: #171717;
    --table-hover: #262626;
    --bottom-nav-bg: #0a0a0a;

    /* Hero Wallet Card */
    --wallet-card-bg: #171717;
    --wallet-card-text: #ffffff;
    --wallet-card-border: #333333;
    --wallet-substat-bg: #0a0a0a;
    --wallet-substat-border: #262626;

    /* Status Badges */
    --badge-pending-bg: #262626;
    --badge-pending-text: #f5f5f5;
    --badge-pending-border: #404040;

    --badge-approved-bg: #ffffff;
    --badge-approved-text: #000000;
    --badge-approved-border: #ffffff;

    --badge-rejected-bg: #0a0a0a;
    --badge-rejected-text: #d4d4d4;
    --badge-rejected-border: #404040;

    --badge-processing-bg: #404040;
    --badge-processing-text: #ffffff;
    --badge-processing-border: #737373;

    --badge-completed-bg: #ffffff;
    --badge-completed-text: #000000;
    --badge-completed-border: #ffffff;

    /* Bootstrap 5 Native Variable Mappings */
    --bs-body-bg: #000000;
    --bs-body-color: #ffffff;
    --bs-heading-color: #ffffff;
    --bs-border-color: #333333;
    --bs-dropdown-bg: #171717;
    --bs-dropdown-color: #ffffff;
    --bs-dropdown-border-color: #333333;
    --bs-dropdown-link-color: #ffffff;
    --bs-dropdown-link-hover-color: #ffffff;
    --bs-dropdown-link-hover-bg: #262626;
}

/* ==========================================================================
   GLOBAL RESET & RESPONSIVE TYPOGRAPHY RULES
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px; /* Desktop default */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-dashboard);
    transition: background-color 0.2s ease, color 0.2s ease;
    overflow-x: hidden;
    min-height: 100vh;
}

/* MANDATORY REQUIREMENT: Mobile Font Size below 768px = 12px */
@media (max-width: 767.98px) {
    html {
        font-size: 12px;
    }
    body,
    .form-label,
    .form-control,
    .form-select,
    .btn,
    .nav-link,
    .table,
    .badge,
    .dropdown-item,
    .card-text,
    .text-secondary,
    .alert,
    p, span, small {
        font-size: 12px !important;
    }

    h1, .h1 { font-size: 1.75rem !important; }
    h2, .h2 { font-size: 1.5rem !important; }
    h3, .h3 { font-size: 1.25rem !important; }
    h4, .h4 { font-size: 1.1rem !important; }
    h5, .h5 { font-size: 1rem !important; }
    h6, .h6 { font-size: 0.9rem !important; }

    /* Bottom padding for mobile bottom bar */
    .has-bottom-nav {
        padding-bottom: 75px !important;
    }
}

/* Laptop and Desktop: >= 768px = 14px */
@media (min-width: 768px) {
    body,
    .form-label,
    .form-control,
    .form-select,
    .btn,
    .nav-link,
    .table,
    .badge,
    .dropdown-item {
        font-size: 14px;
    }
}

/* ==========================================================================
   BOOTSTRAP UTILITY OVERRIDES (FORCE STRICT MONOCHROME)
   ========================================================================== */
.text-primary,
.text-info,
.text-success,
.text-warning,
.text-danger,
.text-dark,
.text-body,
.text-black {
    color: var(--text-primary) !important;
}

.text-secondary,
.text-muted {
    color: var(--text-secondary) !important;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text-primary);
}

label, .form-label, .col-form-label {
    color: var(--text-primary);
}

.form-text {
    color: var(--text-secondary);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.bg-primary, .bg-info, .bg-dark {
    background-color: var(--text-primary) !important;
    color: var(--bg-body) !important;
}

.bg-secondary, .bg-light {
    background-color: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
}

.bg-success, .bg-warning, .bg-danger {
    background-color: var(--bg-surface-elevated) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
}

.bg-opacity-10, .bg-opacity-20, .bg-opacity-25 {
    background-color: var(--bg-surface-alt) !important;
}

.border-primary, .border-success, .border-danger, .border-warning, .border-info, .border-dark {
    border-color: var(--border-color) !important;
}

/* ==========================================================================
   BRAND LOGO STYLING (B&W)
   ========================================================================== */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.brand-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--text-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-surface);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
}
.brand-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-logo-text .title {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.brand-logo-text .subtitle {
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* User Avatars */
.user-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   LAYOUT STRUCTURE: SIDEBAR & MAIN WRAPPER
   ========================================================================== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.app-sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-sidebar-header {
    height: 70px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--sidebar-border);
}

.app-sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.sidebar-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: 12px 14px 6px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    margin-bottom: 3px;
    border: 1px solid transparent;
}

.sidebar-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.sidebar-nav-link:hover {
    background-color: var(--sidebar-item-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.sidebar-nav-link:hover i {
    color: var(--text-primary);
}

.sidebar-nav-link.active {
    background-color: var(--sidebar-item-active);
    color: var(--sidebar-item-active-text);
    font-weight: 600;
    border-color: var(--sidebar-item-active);
}

.sidebar-nav-link.active i {
    color: var(--sidebar-item-active-text);
}

.sidebar-nav-link .badge {
    margin-left: auto;
}

.app-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg-dashboard);
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
    .app-main {
        margin-left: 0;
    }
}

/* ==========================================================================
   APP HEADER
   ========================================================================== */
.app-header {
    height: 70px;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.app-content {
    flex: 1;
    padding: 24px;
}

@media (max-width: 767.98px) {
    .app-header {
        height: 60px;
        padding: 0 16px;
    }
    .app-content {
        padding: 16px 12px;
    }
}

/* ==========================================================================
   CUSTOM CARDS & WIDGETS
   ========================================================================== */
.custom-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.custom-card:hover {
    border-color: var(--text-primary);
}

.custom-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.custom-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Rate Pill in Header/Dashboard */
.badge-rate-pill {
    background-color: var(--bg-surface-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* ==========================================================================
   MAIN WALLET HERO CARD (STRICT B&W - SECTION 4 REQUIREMENT)
   ========================================================================== */
.wallet-hero-card {
    background-color: var(--wallet-card-bg);
    border: 1px solid var(--wallet-card-border);
    border-radius: var(--radius-lg);
    color: var(--wallet-card-text);
    padding: 24px;
    position: relative;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.wallet-hero-card::after {
    display: none; /* Removed colored radial gradient */
}

.wallet-hero-header {
    margin-bottom: 16px;
}

.wallet-asset-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0;
}

.wallet-balance-section {
    margin-bottom: 18px;
}

.wallet-balance-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.wallet-balance-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
}

.wallet-balance-amount {
    font-size: 2.3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    color: var(--text-primary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.wallet-balance-currency {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.wallet-substats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    background: var(--wallet-substat-bg);
    border: 1px solid var(--wallet-substat-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.wallet-substat-item {
    display: flex;
    flex-direction: column;
}

.wallet-substat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wallet-substat-val {
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

/* ==========================================================================
   QUICK ACTION BUTTONS (STRICT B&W - SECTION 4 REQUIREMENT)
   ========================================================================== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.quick-action-btn i {
    font-size: 1.4rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.quick-action-btn span {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.quick-action-btn:hover {
    background-color: var(--bg-surface-alt);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.quick-action-btn:hover i {
    transform: scale(1.08);
}

/* ==========================================================================
   ADMIN STAT CARDS (B&W)
   ========================================================================== */
.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    transition: var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-info {
    display: flex;
    flex-direction: column;
}

.stat-card-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.stat-card-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.stat-card-icon.blue,
.stat-card-icon.green,
.stat-card-icon.amber,
.stat-card-icon.red {
    background-color: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

/* ==========================================================================
   BUTTONS (STRICT B&W - SECTION 5 REQUIREMENT)
   ========================================================================== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 8px 18px;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--btn-primary-bg) !important;
    border: 1px solid var(--btn-primary-border) !important;
    color: var(--btn-primary-text) !important;
    box-shadow: none !important;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--btn-primary-hover) !important;
    border-color: var(--btn-primary-hover) !important;
    color: var(--btn-primary-text) !important;
    transform: translateY(-1px);
}

.btn-outline-primary, .btn-outline-secondary, .btn-secondary, .btn-outline-dark, .btn-outline-light {
    background-color: var(--btn-secondary-bg) !important;
    border: 1px solid var(--btn-secondary-border) !important;
    color: var(--btn-secondary-text) !important;
    box-shadow: none !important;
}

.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-secondary:hover, .btn-outline-dark:hover, .btn-outline-light:hover {
    background-color: var(--btn-secondary-hover) !important;
    border-color: var(--text-primary) !important;
    color: var(--btn-secondary-text) !important;
}

.btn-success, .btn-danger, .btn-warning, .btn-info {
    background-color: var(--btn-primary-bg) !important;
    border: 1px solid var(--btn-primary-border) !important;
    color: var(--btn-primary-text) !important;
}

.btn-outline-success, .btn-outline-danger, .btn-outline-warning, .btn-outline-info {
    background-color: var(--btn-secondary-bg) !important;
    border: 1px solid var(--btn-secondary-border) !important;
    color: var(--btn-secondary-text) !important;
}

/* ==========================================================================
   FORMS & INPUTS (STRICT B&W)
   ========================================================================== */
.form-control, .form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--input-text);
    border-radius: var(--radius-sm);
    padding: 9px 13px;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--input-focus-border);
    color: var(--input-text);
    box-shadow: var(--input-focus-shadow);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.input-group-text {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--input-border);
    color: var(--text-secondary);
}

/* ==========================================================================
   STATUS BADGES (STRICT B&W - SECTION 6 REQUIREMENT)
   ========================================================================== */
.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid transparent;
}

.badge-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

/* Approved / Completed / Active */
.badge-status.status-approved,
.badge-status.status-completed,
.badge-status.status-active,
.badge-status.status-success {
    background-color: var(--badge-approved-bg);
    color: var(--badge-approved-text);
    border-color: var(--badge-approved-border);
}
.badge-status.status-approved::before,
.badge-status.status-completed::before,
.badge-status.status-active::before,
.badge-status.status-success::before {
    background-color: var(--badge-approved-text);
}

/* Pending / Under Review */
.badge-status.status-pending,
.badge-status.status-under_review {
    background-color: var(--badge-pending-bg);
    color: var(--badge-pending-text);
    border-color: var(--badge-pending-border);
}
.badge-status.status-pending::before,
.badge-status.status-under_review::before {
    background-color: var(--badge-pending-text);
}

/* Processing */
.badge-status.status-processing {
    background-color: var(--badge-processing-bg);
    color: var(--badge-processing-text);
    border-color: var(--badge-processing-border);
}
.badge-status.status-processing::before {
    background-color: var(--badge-processing-text);
}

/* Rejected / Cancelled / Suspended */
.badge-status.status-rejected,
.badge-status.status-cancelled,
.badge-status.status-suspended,
.badge-status.status-danger {
    background-color: var(--badge-rejected-bg);
    color: var(--badge-rejected-text);
    border-color: var(--badge-rejected-border);
}
.badge-status.status-rejected::before,
.badge-status.status-cancelled::before,
.badge-status.status-suspended::before,
.badge-status.status-danger::before {
    background-color: var(--badge-rejected-text);
}

/* General badges */
.badge {
    background-color: var(--bg-surface-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    font-weight: 600;
}

/* ==========================================================================
   TABLES & RESPONSIVE TRANSACTION CARDS
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-primary);
}

.custom-table th {
    background-color: var(--bg-surface-alt);
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.custom-table tr:hover td {
    background-color: var(--table-hover);
}

/* Card view on small mobile */
@media (max-width: 575.98px) {
    .table-mobile-cards thead {
        display: none;
    }
    .table-mobile-cards, .table-mobile-cards tbody, .table-mobile-cards tr, .table-mobile-cards td {
        display: block;
        width: 100%;
    }
    .table-mobile-cards tr {
        background-color: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        margin-bottom: 12px;
        padding: 10px 14px;
        box-shadow: var(--shadow-sm);
    }
    .table-mobile-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: 1px solid var(--border-subtle);
    }
    .table-mobile-cards td:last-child {
        border-bottom: none;
        padding-top: 8px;
    }
    .table-mobile-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION (STRICT B&W - SECTION 7 REQUIREMENT)
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--bottom-nav-bg);
    border-top: 1px solid var(--border-color);
    z-index: 1030;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767.98px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    gap: 3px;
    flex: 1;
    height: 100%;
    transition: var(--transition-fast);
}

.bottom-nav-item i {
    font-size: 1.15rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--text-primary);
}

.bottom-nav-item.active i, .bottom-nav-item:hover i {
    color: var(--text-primary);
}

/* ==========================================================================
   HEADER ICON BUTTONS (THEME TOGGLE, NOTIFICATIONS)
   ========================================================================== */
.header-icon-btn,
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
    padding: 0;
}

.header-icon-btn:hover,
.theme-toggle-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-surface);
}

.header-icon-btn i,
.theme-toggle-btn i {
    font-size: 1rem;
    color: inherit;
}

/* Notification badge */
.notification-btn-wrapper {
    position: relative;
    display: inline-block;
}

.notification-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--text-primary);
    color: var(--bg-surface);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    border: 2px solid var(--header-bg);
    line-height: 1;
}

/* ==========================================================================
   ALERTS & NOTIFICATIONS (STRICT B&W)
   ========================================================================== */
.alert {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.alert-success, .alert-danger, .alert-warning, .alert-info {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.alert i {
    color: var(--text-primary);
}

/* ==========================================================================
   DROPDOWNS & PROFILE DROPDOWN (STRICT B&W THEME)
   ========================================================================== */
.profile-btn-name {
    color: var(--text-primary) !important;
}

.profile-dropdown,
.dropdown-menu {
    background-color: var(--dropdown-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    color: var(--text-primary) !important;
    padding: 0.5rem 0;
}

.profile-dropdown-header {
    border-color: var(--border-subtle) !important;
    background-color: transparent !important;
}

.profile-name {
    color: var(--text-primary) !important;
}

.profile-username {
    color: var(--text-secondary) !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    transition: var(--transition-fast);
}

.dropdown-item i {
    color: var(--menu-icon-color) !important;
    transition: var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--hover-bg) !important;
    color: var(--text-primary) !important;
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: var(--text-primary) !important;
}

.dropdown-divider {
    border-color: var(--border-subtle) !important;
    opacity: 1;
}

.modal-content {
    background-color: var(--modal-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.modal-header, .modal-footer {
    border-color: var(--border-subtle);
}

/* Pagination */
.pagination .page-link {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--bg-surface);
}

.pagination .page-link:hover {
    background-color: var(--bg-surface-alt);
    color: var(--text-primary);
}

/* Code & monospace */
code {
    background-color: var(--bg-surface-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
}

/* ==========================================================================
   TRANSACTION & PAYMENT BRAND LOGOS (USDT & GOOGLE PAY)
   ========================================================================== */
.asset-icon-usdt {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.asset-icon-usdt-sm {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.asset-icon-usdt-lg {
    width: 36px;
    height: 36px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.payment-icon-gpay {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.payment-icon-gpay-lg {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    /* Brand logo scaling */
    .asset-icon-usdt {
        width: 20px;
        height: 20px;
    }
    .asset-icon-usdt-lg {
        width: 24px;
        height: 24px;
    }
    .payment-icon-gpay {
        width: 22px;
        height: 22px;
    }

    /* Mobile Wallet Hero Card Layout & Spacing */
    .wallet-hero-card {
        padding: 14px 16px;
        margin-bottom: 16px;
    }

    .wallet-hero-header {
        margin-bottom: 10px;
    }

    .wallet-asset-tag {
        padding: 3px 8px;
        font-size: 11px;
        gap: 5px;
    }

    .wallet-escrow-badge {
        font-size: 10px;
        padding: 3px 8px !important;
    }

    .wallet-balance-section {
        margin-bottom: 12px;
    }

    /* 1. Mobile Wallet Balance Typography */
    .wallet-balance-label {
        font-size: 11px;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        line-height: 1.2;
        margin-bottom: 4px;
        white-space: nowrap;
    }

    .wallet-balance-row {
        display: flex;
        align-items: baseline;
        gap: 6px;
        white-space: nowrap;
        overflow: hidden;
    }

    .wallet-balance-amount {
        font-size: clamp(20px, 6.8vw, 26px);
        font-weight: 800;
        line-height: 1.2;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
        font-family: var(--font-mono);
        color: var(--text-primary);
        letter-spacing: -0.01em;
        margin-bottom: 0;
    }

    .wallet-balance-currency {
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
        color: var(--text-secondary);
        line-height: 1.2;
        align-self: baseline;
    }

    /* 4. Compact Summary Substats */
    .wallet-substats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
        padding: 9px 12px;
    }

    .wallet-substat-item {
        min-width: 0;
    }

    .wallet-substat-label {
        font-size: 10.5px;
        font-weight: 500;
        color: var(--text-secondary);
        margin-bottom: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        gap: 4px;
    }

    .wallet-substat-label i {
        font-size: 9px;
    }

    .wallet-substat-val {
        font-size: 11.5px;
        font-weight: 700;
        font-family: var(--font-mono);
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
