﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ui-primary: #6d4bff;
    --ui-primary-2: #8b5cf6;
    --ui-secondary: #33c7ff;
    --ui-accent: #ff8a3d;
    --ui-info: #38bdf8;
    --ui-success: #22c55e;
    --ui-warning: #f59e0b;
    --ui-danger: #ef4444;

    /* Radius ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â wallet-tight */
    --ui-radius-xl: 16px;
    --ui-radius-lg: 12px;
    --ui-radius-md: 10px;
    --ui-radius-sm: 8px;

    /* Shared spacing scale */
    --ui-space-1: 0.25rem;
    --ui-space-2: 0.5rem;
    --ui-space-3: 0.75rem;
    --ui-space-4: 1rem;
    --ui-space-5: 1.25rem;
    --ui-space-6: 1.5rem;
    --ui-space-7: 2rem;
    --ui-space-8: 2.5rem;

    /* Shadows */
    --ui-shadow: 0 8px 32px rgba(15, 23, 42, 0.10);
    --ui-shadow-soft: 0 4px 16px rgba(15, 23, 42, 0.07);
    --ui-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.16);
    --ui-shadow-rail:   4px 0 24px rgba(15, 23, 42, 0.14);
    --ui-shadow-topbar: 0 1px 12px rgba(15, 23, 42, 0.08);
    --ui-shadow-tabbar: 0 -4px 20px rgba(15, 23, 42, 0.10);

    /* Wallet shell layout */
    --ui-rail-w: 64px;
    --ui-desktop-nav-w: 248px;
    --ui-shell-offset: calc(var(--ui-rail-w) + var(--ui-desktop-nav-w));
    --ui-topbar-h: 68px;
    --ui-tabbar-h: 62px;

    /* Animation */
    --ui-duration-fast: 120ms;
    --ui-duration-base: 200ms;
    --ui-ease: cubic-bezier(0.2, 0, 0, 1);

    /* Semantic transaction colours */
    --ui-debit:  #ef4444;
    --ui-credit: #16a34a;
}

body[data-theme='light'] {
    --ui-bg: #eef2f8;
    --ui-bg-alt: #f8fafc;
    --ui-surface: rgba(255, 255, 255, 0.88);
    --ui-surface-strong: #ffffff;
    --ui-surface-elevated: #ffffff;
    --ui-surface-soft: #ffffff;
    --ui-surface-subtle: rgba(255, 255, 255, 0.94);
    --ui-text: #0f172a;
    --ui-text-soft: #334155;
    --ui-muted: #64748b;
    --ui-border: rgba(15, 23, 42, 0.08);
    --ui-nav-bg: #0f172a;
    --ui-nav-bg-soft: rgba(15, 23, 42, 0.72);
    --ui-nav-text: rgba(226, 232, 240, 0.84);
    --ui-nav-active-bg: rgba(109, 75, 255, 0.16);
    --ui-nav-active-text: #ffffff;
    --ui-field-bg: #ffffff;
    --ui-field-text: #0f172a;
    --ui-select-bg: rgba(255, 255, 255, 0.96);
    --ui-select-border: rgba(15, 23, 42, 0.1);
    --ui-select-hover-border: rgba(109, 75, 255, 0.28);
    --ui-select-focus-ring: 0 0 0 4px rgba(109, 75, 255, 0.12);
    --ui-select-dropdown-bg: #ffffff;
    --ui-select-option-hover: rgba(109, 75, 255, 0.08);
    --ui-select-option-active: rgba(109, 75, 255, 0.14);
    --ui-select-chip-bg: rgba(109, 75, 255, 0.12);
    --ui-select-chip-text: #4338ca;
    --ui-chip-bg: rgba(109, 75, 255, 0.1);
    --ui-chip-text: #4338ca;
    --ui-page-gradient: linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
    --ui-hero-gradient: linear-gradient(135deg, #f8fafc 0%, #ede9fe 42%, #eef2f8 100%);
    --ui-card-gradient: linear-gradient(135deg, #ffffff 0%, #f6f7ff 100%);
    --ui-primary-text: #ffffff;
    --ui-primary-shadow: 0 16px 32px rgba(109, 75, 255, 0.24);
    --ui-primary-shadow-strong: 0 20px 36px rgba(109, 75, 255, 0.3);
    --ui-primary-soft-bg: rgba(109, 75, 255, 0.08);
    --ui-primary-soft-bg-hover: rgba(109, 75, 255, 0.12);
    --ui-focus-outline: rgba(109, 75, 255, 0.72);
    --ui-selection-bg: rgba(109, 75, 255, 0.18);
    --ui-selection-text: #0f172a;
    --ui-scrollbar-track: rgba(15, 23, 42, 0.04);
    --ui-scrollbar-thumb: rgba(15, 23, 42, 0.22);
    --ui-scrollbar-thumb-hover: rgba(109, 75, 255, 0.32);
    --ui-tabbar-bg: rgba(255, 255, 255, 0.84);
    --ui-hero-text: #ffffff;
    --ui-hero-text-soft: rgba(255, 255, 255, 0.9);
    --ui-wallet-hero-gradient: linear-gradient(135deg, rgba(30, 35, 64, 0.98) 0%, rgba(52, 44, 109, 0.96) 48%, rgba(90, 48, 145, 0.94) 100%);
    --ui-wallet-hero-glow-top: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.11), transparent 38%);
    --ui-wallet-hero-glow-bottom: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
    --ui-wallet-hero-chip-bg: rgba(255, 255, 255, 0.16);
    --ui-wallet-hero-chip-border: rgba(255, 255, 255, 0.16);
    --ui-wallet-hero-chip-dot: rgba(255, 255, 255, 0.8);
    --ui-wallet-hero-chip-dot-ring: rgba(255, 255, 255, 0.1);
    --ui-wallet-hero-card-bg: rgba(255, 255, 255, 0.18);
    --ui-wallet-hero-card-border: rgba(255, 255, 255, 0.18);
    --ui-wallet-hero-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 30px rgba(15, 23, 42, 0.16);
    --ui-wallet-hero-button-bg: rgba(255, 255, 255, 0.14);
    --ui-wallet-hero-button-border: rgba(255, 255, 255, 0.18);
    --ui-wallet-hero-button-hover-bg: rgba(255, 255, 255, 0.26);
    --ui-wallet-hero-button-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
    --ui-flow-hero-border: rgba(109, 75, 255, 0.18);
    --ui-flow-hero-gradient:
        radial-gradient(circle at 12% 0%, rgba(109, 75, 255, 0.26), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(183, 165, 255, 0.26), transparent 22%),
        radial-gradient(circle at 100% 100%, rgba(109, 75, 255, 0.11), transparent 26%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 238, 255, 0.92) 100%);
    --ui-flow-hero-shadow: 0 24px 52px rgba(86, 63, 170, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.58);
    --ui-flow-hero-sheen:
        linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, rgba(109, 75, 255, 0.06), rgba(109, 75, 255, 0) 56%);
    --ui-flow-hero-glow: radial-gradient(circle, rgba(109, 75, 255, 0.18), rgba(109, 75, 255, 0));
    --ui-flow-kpi-bg: rgba(255, 255, 255, 0.16);
    --ui-flow-kpi-border: rgba(255, 255, 255, 0.15);
    --ui-flow-kpi-shadow: 0 14px 30px rgba(86, 63, 170, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    --ui-flow-kpi-icon-bg: rgba(255, 255, 255, 0.18);
    --ui-flow-kpi-icon-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    --ui-panel-sheen-primary: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 22%);
    --ui-panel-sheen-secondary: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 18%);
    --ui-note-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 24%);
    --ui-note-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    --ui-progress-bg: rgba(15, 23, 42, 0.05);
    --ui-modal-backdrop: rgba(15, 23, 42, 0.42);
    --ui-modal-surface:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 252, 0.96) 100%);
    --ui-modal-sheen:
        linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0) 30%);
    --ui-modal-header-bg: rgba(255, 255, 255, 0.74);
    --ui-modal-footer-bg: rgba(248, 250, 252, 0.94);
    --ui-modal-close-bg: rgba(15, 23, 42, 0.05);
    --ui-modal-close-border: rgba(15, 23, 42, 0.08);
}

body[data-theme='dark'] {
    --ui-primary: #8a63ff;
    --ui-primary-2: #6f49f6;
    --ui-secondary: #8fe7ff;
    --ui-accent: #b59cff;
    --ui-info: #8fe7ff;
    --ui-success: #62d39a;
    --ui-bg: #0b0c0f;
    --ui-bg-alt: #101114;
    --ui-surface: rgba(21, 22, 26, 0.94);
    --ui-surface-strong: #1b1d22;
    --ui-surface-elevated: #1f2127;
    --ui-surface-soft: #15181d;
    --ui-surface-subtle: rgba(255, 255, 255, 0.06);
    --ui-text: #f3f4f6;
    --ui-text-soft: #d2d4db;
    --ui-muted: #9b9faa;
    --ui-border: rgba(255, 255, 255, 0.08);
    --ui-nav-bg: #121316;
    --ui-nav-bg-soft: rgba(18, 19, 22, 0.94);
    --ui-nav-text: rgba(226, 232, 240, 0.82);
    --ui-nav-active-bg: rgba(138, 99, 255, 0.18);
    --ui-nav-active-text: #ffffff;
    --ui-field-bg: #14171b;
    --ui-field-text: #f3f4f6;
    --ui-select-bg: rgba(25, 27, 32, 0.98);
    --ui-select-border: rgba(255, 255, 255, 0.1);
    --ui-select-hover-border: rgba(138, 99, 255, 0.34);
    --ui-select-focus-ring: 0 0 0 4px rgba(138, 99, 255, 0.2);
    --ui-select-dropdown-bg: #17191f;
    --ui-select-option-hover: rgba(138, 99, 255, 0.12);
    --ui-select-option-active: rgba(138, 99, 255, 0.2);
    --ui-select-chip-bg: rgba(138, 99, 255, 0.16);
    --ui-select-chip-text: #d6c7ff;
    --ui-chip-bg: rgba(138, 99, 255, 0.16);
    --ui-chip-text: #c9b7ff;
    --ui-page-gradient: linear-gradient(180deg, #101114 0%, #090a0d 100%);
    --ui-hero-gradient: linear-gradient(180deg, #101114 0%, #090a0d 46%, #f8fafc 46%, #eef2f8 100%);
    --ui-card-gradient: linear-gradient(135deg, #1b1d22 0%, #131418 100%);
    --ui-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
    --ui-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.26);
    --ui-shadow-lg: 0 34px 86px rgba(0, 0, 0, 0.48);
    --ui-shadow-rail: 4px 0 24px rgba(0, 0, 0, 0.28);
    --ui-shadow-topbar: 0 8px 24px rgba(0, 0, 0, 0.24);
    --ui-modal-backdrop: rgba(2, 6, 14, 0.74);
    --ui-modal-surface:
        linear-gradient(180deg, rgba(31, 34, 42, 0.98) 0%, rgba(18, 20, 26, 0.99) 100%);
    --ui-modal-sheen:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 28%);
    --ui-modal-header-bg: rgba(255, 255, 255, 0.03);
    --ui-modal-footer-bg: rgba(255, 255, 255, 0.025);
    --ui-modal-close-bg: rgba(255, 255, 255, 0.06);
    --ui-modal-close-border: rgba(255, 255, 255, 0.08);
    --ui-shadow-tabbar: 0 -8px 24px rgba(0, 0, 0, 0.22);
    --ui-primary-text: #ffffff;
    --ui-primary-shadow: 0 16px 32px rgba(111, 73, 246, 0.26);
    --ui-primary-shadow-strong: 0 20px 36px rgba(111, 73, 246, 0.32);
    --ui-primary-soft-bg: rgba(138, 99, 255, 0.12);
    --ui-primary-soft-bg-hover: rgba(138, 99, 255, 0.18);
    --ui-focus-outline: rgba(138, 99, 255, 0.72);
    --ui-selection-bg: rgba(138, 99, 255, 0.26);
    --ui-selection-text: #f3f4f6;
    --ui-scrollbar-track: rgba(255, 255, 255, 0.03);
    --ui-scrollbar-thumb: rgba(255, 255, 255, 0.16);
    --ui-scrollbar-thumb-hover: rgba(138, 99, 255, 0.34);
    --ui-tabbar-bg: rgba(10, 14, 20, 0.92);
    --ui-hero-text: #ffffff;
    --ui-hero-text-soft: rgba(255, 255, 255, 0.92);
    --ui-wallet-hero-gradient: linear-gradient(135deg, rgba(8, 10, 16, 0.98) 0%, rgba(19, 22, 36, 0.96) 44%, rgba(40, 22, 78, 0.92) 100%);
    --ui-wallet-hero-glow-top: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08), transparent 38%);
    --ui-wallet-hero-glow-bottom: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 68%);
    --ui-wallet-hero-chip-bg: rgba(255, 255, 255, 0.16);
    --ui-wallet-hero-chip-border: rgba(255, 255, 255, 0.16);
    --ui-wallet-hero-chip-dot: rgba(255, 255, 255, 0.8);
    --ui-wallet-hero-chip-dot-ring: rgba(255, 255, 255, 0.1);
    --ui-wallet-hero-card-bg: rgba(11, 13, 18, 0.42);
    --ui-wallet-hero-card-border: rgba(255, 255, 255, 0.1);
    --ui-wallet-hero-card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --ui-wallet-hero-button-bg: rgba(255, 255, 255, 0.14);
    --ui-wallet-hero-button-border: rgba(255, 255, 255, 0.18);
    --ui-wallet-hero-button-hover-bg: rgba(255, 255, 255, 0.26);
    --ui-wallet-hero-button-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
    --ui-flow-hero-border: rgba(138, 99, 255, 0.22);
    --ui-flow-hero-gradient:
        radial-gradient(circle at 10% 0%, rgba(138, 99, 255, 0.26), transparent 32%),
        radial-gradient(circle at 88% 12%, rgba(143, 231, 255, 0.10), transparent 20%),
        radial-gradient(circle at 100% 100%, rgba(111, 73, 246, 0.12), transparent 24%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 38%),
        linear-gradient(180deg, rgba(29, 31, 35, 0.99) 0%, rgba(20, 22, 27, 0.97) 100%);
    --ui-flow-hero-shadow: 0 28px 62px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --ui-flow-hero-sheen:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 36%),
        linear-gradient(180deg, rgba(138, 99, 255, 0.08), rgba(138, 99, 255, 0) 56%);
    --ui-flow-hero-glow: radial-gradient(circle, rgba(138, 99, 255, 0.18), rgba(138, 99, 255, 0));
    --ui-flow-kpi-bg: rgba(255, 255, 255, 0.16);
    --ui-flow-kpi-border: rgba(255, 255, 255, 0.15);
    --ui-flow-kpi-shadow: 0 14px 32px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --ui-flow-kpi-icon-bg: rgba(255, 255, 255, 0.18);
    --ui-flow-kpi-icon-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --ui-panel-sheen-primary: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 24%);
    --ui-panel-sheen-secondary: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 24%);
    --ui-note-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 24%);
    --ui-note-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --ui-progress-bg: rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--ui-scrollbar-thumb) var(--ui-scrollbar-track);
    scrollbar-width: thin;
    background: var(--ui-bg);
}

body {
    background: var(--ui-bg);
}

body.app-shell,
body[data-theme='dark'] {
    background: var(--ui-page-gradient);
}

::selection {
    background: var(--ui-selection-bg);
    color: var(--ui-selection-text);
}

body.app-shell-mobile-webview {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    overscroll-behavior-y: contain;
    background: var(--ui-page-gradient);
}

body.app-shell-mobile-webview,
body.app-shell-mobile-webview input,
body.app-shell-mobile-webview select,
body.app-shell-mobile-webview textarea {
    -webkit-text-size-adjust: 100%;
}

body.app-shell-mobile-webview input,
body.app-shell-mobile-webview select,
body.app-shell-mobile-webview textarea {
    font-size: 16px;
}

body.app-shell-mobile-webview .app-topbar,
body.app-shell-mobile-webview .app-admin-navbar,
body.app-shell-mobile-webview .auth-page-header {
    padding-top: env(safe-area-inset-top, 0px);
}

body.app-shell-mobile-webview .content,
body.app-shell-mobile-webview .content-wrapper,
body.app-shell-mobile-webview .dashboard-home,
body.app-shell-mobile-webview .auth-stage,
body.app-shell-mobile-webview .auth-page-footer,
body.app-shell-mobile-webview .app-tabbar,
body.app-shell-mobile-webview .user-mobile-dock {
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

body.app-shell-mobile-webview .app-rail {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--ui-scrollbar-track);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: var(--ui-scrollbar-thumb);
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ui-scrollbar-thumb-hover);
    border: 1px solid transparent;
    background-clip: padding-box;
}

:where(a, button, [role='button'], summary, [tabindex]:not([tabindex='-1'])):focus-visible {
    outline: 2px solid var(--ui-focus-outline);
    outline-offset: 2px;
}

.ui-focus-ring:focus-visible {
    outline: 2px solid var(--ui-focus-outline);
    outline-offset: 2px;
}

.ui-surface {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    color: var(--ui-text);
}

.ui-surface--soft {
    background: var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
    color: var(--ui-text);
}

.ui-surface--raised {
    background:
        var(--ui-panel-sheen-secondary),
        linear-gradient(135deg, var(--ui-surface-elevated) 0%, var(--ui-surface-strong) 100%);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft), var(--ui-note-highlight);
    color: var(--ui-text);
}

.ui-surface--glass {
    background: var(--ui-surface-subtle);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--ui-text);
}

.ui-measure-sm { max-width: 32ch; }
.ui-measure-md { max-width: 48ch; }
.ui-measure-lg { max-width: 64ch; }

.ui-divider {
    width: 100%;
    height: 1px;
    background: var(--ui-border);
    opacity: 0.9;
}

.ui-divider--soft {
    opacity: 0.55;
}

.ui-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ui-space-2);
    min-height: 24px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.ui-badge--neutral {
    background: var(--ui-surface-soft);
    color: var(--ui-text-soft);
}

.ui-badge--success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--ui-success);
}

.ui-badge--warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--ui-warning);
}

.ui-badge--info {
    background: rgba(56, 189, 248, 0.12);
    color: var(--ui-info);
}

.ui-badge--danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--ui-danger);
}

body.app-shell-user .badge,
body.app-shell-admin .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ui-space-2);
    min-height: 24px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    color: var(--ui-text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
}

body.app-shell-user .badge.badge-pill,
body.app-shell-admin .badge.badge-pill {
    border-radius: 999px;
}

body.app-shell-user .badge.badge-primary,
body.app-shell-admin .badge.badge-primary {
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
}

body.app-shell-user .badge.badge-secondary,
body.app-shell-admin .badge.badge-secondary {
    background: var(--ui-surface-soft);
    color: var(--ui-text-soft);
}

body.app-shell-user .badge.badge-success,
body.app-shell-admin .badge.badge-success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--ui-success);
}

body.app-shell-user .badge.badge-warning,
body.app-shell-admin .badge.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--ui-warning);
}

body.app-shell-user .badge.badge-danger,
body.app-shell-admin .badge.badge-danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--ui-danger);
}

body.app-shell-user .badge.badge-info,
body.app-shell-admin .badge.badge-info {
    background: rgba(56, 189, 248, 0.12);
    color: var(--ui-info);
}

body.app-shell-user .badge.badge-light,
body.app-shell-admin .badge.badge-light {
    background: var(--ui-surface);
    color: var(--ui-text-soft);
    border-color: var(--ui-border);
}

body.app-shell-user .badge.badge-dark,
body.app-shell-admin .badge.badge-dark {
    background: var(--ui-nav-bg);
    color: var(--ui-nav-active-text);
    border-color: rgba(255, 255, 255, 0.08);
}

.ui-note {
    display: grid;
    gap: var(--ui-space-2);
    padding: var(--ui-space-4);
    border-radius: var(--ui-radius-lg);
    border: 1px solid var(--ui-border);
    background:
        var(--ui-note-sheen),
        var(--ui-surface-soft);
    box-shadow: var(--ui-shadow-soft), var(--ui-note-highlight);
    color: var(--ui-text-soft);
}

.ui-note--compact {
    padding: var(--ui-space-3);
    gap: calc(var(--ui-space-2) - 0.125rem);
}

.ui-note--success {
    border-color: rgba(34, 197, 94, 0.24);
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, var(--ui-surface-soft) 100%);
    color: var(--ui-text);
}

.ui-note--warning {
    border-color: rgba(245, 158, 11, 0.22);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--ui-surface-soft) 100%);
    color: var(--ui-text);
}

.ui-note--info {
    border-color: rgba(56, 189, 248, 0.22);
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, var(--ui-surface-soft) 100%);
    color: var(--ui-text);
}

.ui-note--danger {
    border-color: rgba(239, 68, 68, 0.22);
    background:
        linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, var(--ui-surface-soft) 100%);
    color: var(--ui-text);
}

.ui-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--ui-radius-md);
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    color: var(--ui-text-soft);
    box-shadow: var(--ui-shadow-soft);
    transition:
        color var(--ui-duration-base) var(--ui-ease),
        background var(--ui-duration-base) var(--ui-ease),
        border-color var(--ui-duration-base) var(--ui-ease),
        transform var(--ui-duration-base) var(--ui-ease),
        box-shadow var(--ui-duration-base) var(--ui-ease);
}

.ui-icon-button:hover {
    color: var(--ui-text);
    border-color: var(--ui-select-hover-border);
    transform: translateY(-1px);
    box-shadow: var(--ui-shadow);
}

.ui-skeleton {
    position: relative;
    overflow: hidden;
    background: var(--ui-surface-soft);
    border-radius: inherit;
    color: transparent !important;
}

.ui-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    animation: uiSkeletonShift 1.35s ease-in-out infinite;
}

.ui-skeleton--line {
    height: 0.9rem;
    border-radius: 999px;
}

.ui-skeleton--title {
    height: 1.25rem;
    border-radius: 999px;
}

.ui-skeleton--block {
    min-height: 5rem;
}

.ui-safe-bottom {
    padding-bottom: max(var(--ui-space-4), env(safe-area-inset-bottom));
}

@keyframes uiSkeletonShift {
    100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ui-icon-button,
    .ui-skeleton::after {
        transition: none !important;
        animation: none !important;
    }
}

body.auth-shell,
body.app-shell-user,
body.app-shell-admin {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ui-text);
    background: var(--ui-bg);
}

body.auth-shell,
body.marketing-shell,
body.app-shell-user,
body.app-shell-admin {
    margin: 0;
}

body.auth-shell::before,
body.app-shell-user::before,
body.app-shell-admin::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body.auth-shell {
    min-height: 100vh;
    background: var(--ui-page-gradient);
}

body.auth-shell::before {
    background:
        radial-gradient(circle at 12% 16%, rgba(109, 75, 255, 0.12), transparent 18%),
        radial-gradient(circle at 88% 20%, rgba(51, 199, 255, 0.08), transparent 18%);
}

body.auth-shell .navbar-header,
body.auth-shell .return-to-top,
body.auth-shell .site-info {
    display: none !important;
}

body.auth-shell .backg.backg-one {
    min-height: 100vh;
    padding: 18px 0 28px;
    display: flex;
    align-items: flex-start;
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

body.auth-shell .backg.backg-one::after {
    content: '';
    position: absolute;
    inset: 8% auto auto 54%;
    width: 32rem;
    height: 32rem;
    background: radial-gradient(circle, rgba(109, 75, 255, 0.2), rgba(109, 75, 255, 0));
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
}

body.auth-shell .circle-shape {
    opacity: 0.28;
    filter: blur(1px);
}

body.auth-shell .backg-content-wrap {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 1rem));
    padding: 1rem;
    border-radius: 24px;
    max-width: 1180px;
    margin: 0 auto;
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow);
    backdrop-filter: blur(22px);
}

body.auth-shell .auth-shell-frame {
    overflow: hidden;
}

body.auth-shell .auth-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

body.auth-shell .auth-pane {
    min-width: 0;
}

body.auth-shell .auth-pane--card {
    order: 1;
}

body.auth-shell .auth-pane--brand {
    order: 2;
}

body.auth-shell .auth-card-panel {
    min-width: 0;
}

body.auth-shell .auth-stage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 0.95rem;
    position: relative;
    overflow: hidden;
}

body.auth-shell .auth-stage__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 12%, rgba(109, 75, 255, 0.10), transparent 24%),
        radial-gradient(circle at 88% 82%, rgba(56, 189, 248, 0.06), transparent 20%);
    z-index: 0;
}

body.auth-shell .auth-frame {
    width: 100%;
    max-width: 1120px;
    position: relative;
    z-index: 1;
}

body.auth-shell .auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.95rem;
    align-items: stretch;
}

body.auth-shell .auth-main,
body.auth-shell .auth-aside {
    min-width: 0;
}

body.auth-shell .auth-main {
    width: 100%;
}

body.auth-shell .auth-layout-split .auth-layout {
    grid-template-columns: minmax(280px, 0.94fr) minmax(0, 1.06fr);
    gap: 1.1rem;
}

body.auth-shell .auth-layout-centered .auth-frame,
body.auth-shell .auth-layout-compact .auth-frame {
    max-width: 640px;
}

body.auth-shell .auth-layout-wide .auth-frame {
    max-width: 1240px;
}

body.auth-shell .auth-brand-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
    backdrop-filter: blur(16px);
}

body.auth-shell .auth-brand-strip__mark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

body.auth-shell .auth-brand-strip__logo {
    width: auto;
    height: 40px;
    max-width: min(100%, 180px);
    display: block;
    flex-shrink: 0;
}

body.auth-shell .auth-brand-strip__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
    box-shadow: 0 8px 20px rgba(138, 99, 255, 0.24);
}

body.auth-shell .auth-brand-strip__copy {
    min-width: 0;
}

body.auth-shell .auth-brand-strip__name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ui-text);
}

body.auth-shell .auth-brand-strip__meta {
    display: block;
    margin-top: 0.08rem;
    font-size: 0.78rem;
    color: var(--ui-muted);
}

body.auth-shell .auth-brand-summary {
    display: grid;
    gap: 0.3rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
}

body.auth-shell .auth-brand-summary__title {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--ui-text);
}

body.auth-shell .auth-brand-summary__text {
    margin: 0;
    max-width: 24rem;
    font-size: 0.84rem;
    color: var(--ui-muted);
    line-height: 1.45;
}

body.auth-shell .auth-panel-card {
    padding: 0.92rem;
    border-radius: 22px;
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-lg);
    backdrop-filter: blur(16px);
    display: grid;
    gap: 0.8rem;
}

body.auth-shell .auth-panel-card--compact {
    gap: 0.78rem;
}

body.auth-shell .auth-panel-card__head {
    display: grid;
    gap: 0.2rem;
}

body.auth-shell .auth-panel-stack {
    display: grid;
    gap: 0.78rem;
}

body.auth-shell .auth-page-head {
    display: grid;
    gap: 0.24rem;
}

body.auth-shell .auth-page-title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.03;
    color: var(--ui-text);
}

body.auth-shell .auth-page-subtitle {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.48;
    color: var(--ui-muted);
}

body.auth-shell .auth-panel-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    width: fit-content;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
    color: var(--ui-text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.auth-shell .auth-panel-title {
    margin: 0;
    font-size: 1.34rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ui-text);
}

body.auth-shell .auth-panel-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--ui-muted);
}

body.auth-shell .auth-panel-form {
    display: grid;
    gap: 0.7rem;
}

body.auth-shell .auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 0.05rem;
}

body.auth-shell .auth-form-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ui-text-soft);
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease;
}

body.auth-shell .auth-form-link:hover {
    color: var(--ui-text);
}

body.auth-shell .auth-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}

body.auth-shell .auth-form-stack {
    display: grid;
    gap: 0.48rem;
}

body.auth-shell .auth-field {
    position: relative;
}

body.auth-shell .auth-field .field-state-icon {
    position: absolute;
    right: 0.85rem;
    top: 2.8rem;
    bottom: auto;
    width: 18px;
    height: 18px;
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
    pointer-events: none;
}

body.auth-shell .auth-field--password .field-state-icon {
    right: 3rem;
}

body.auth-shell .auth-field.is-field-valid .field-state-icon--ok {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    color: var(--ui-success);
}

body.auth-shell .auth-field.is-field-invalid .field-state-icon--err {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    color: var(--ui-danger);
}

body.auth-shell .auth-field--password.is-field-invalid .field-state-icon--err {
    pointer-events: auto;
    cursor: pointer;
}

body.auth-shell .auth-panel-actions {
    display: grid;
    gap: 0.65rem;
}

body.auth-shell .auth-submit {
    width: 100%;
    min-height: 46px;
    padding: 0.72rem 1.1rem;
    border: none;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
    box-shadow: var(--ui-primary-shadow);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

body.auth-shell .auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--ui-primary-shadow-strong);
}

body.auth-shell .auth-submit:disabled {
    opacity: 0.68;
    cursor: not-allowed;
}

body.auth-shell .auth-submit__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSubmitSpin 0.65s linear infinite;
}

body.auth-shell .auth-submit.is-loading .auth-submit__label {
    display: none;
}

body.auth-shell .auth-submit.is-loading .auth-submit__spinner,
body.auth-shell .auth-submit.is-loading .auth-submit__loading-text {
    display: inline-flex;
}

body.auth-shell .auth-submit__loading-text {
    display: none;
}

body.auth-shell .ui-btn--auth {
    min-height: 46px;
    padding: 0.72rem 1.1rem;
    font-size: 0.92rem;
}

@keyframes authSubmitSpin {
    to { transform: rotate(360deg); }
}

body.auth-shell .ui-input-control::placeholder,
body.auth-shell .contact-form input::placeholder,
body.auth-shell .contact-form textarea::placeholder {
    color: rgba(155, 159, 170, 0.72);
    opacity: 1;
}

body.auth-shell .auth-inline-banner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    padding: 0.82rem 0.9rem;
    border-radius: 14px;
}

body.auth-shell .auth-inline-banner--enter {
    animation: authBannerSlideDown 0.28s cubic-bezier(0.2, 0, 0, 1);
}

body.auth-shell .auth-inline-banner--stack {
    grid-template-columns: 1fr;
    gap: 0.2rem;
}

@keyframes authBannerSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

body.auth-shell .auth-inline-banner--error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
}

body.auth-shell .auth-inline-banner--success {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.18);
}

body.auth-shell .auth-inline-banner__icon {
    margin-top: 1px;
    flex-shrink: 0;
}

body.auth-shell .auth-inline-banner--error .auth-inline-banner__icon {
    color: var(--ui-danger);
}

body.auth-shell .auth-inline-banner--success .auth-inline-banner__icon {
    color: var(--ui-success);
}

body.auth-shell .auth-inline-banner__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ui-text);
    margin-bottom: 0.12rem;
}

body.auth-shell .auth-inline-banner__text {
    font-size: 0.8rem;
    color: var(--ui-text-soft);
    line-height: 1.45;
}

body.auth-shell .auth-panel-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--ui-muted);
    font-size: 0.76rem;
    text-align: center;
}

body.auth-shell .auth-panel-note--compact {
    padding-top: 0.2rem;
    gap: 0.45rem;
}

body.auth-shell .auth-panel-footer {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding-top: 0.1rem;
    font-size: 0.84rem;
    color: var(--ui-muted);
    text-align: center;
    flex-wrap: wrap;
}

body.auth-shell .auth-panel-footer--sm {
    font-size: 0.86rem;
}

body.auth-shell .auth-panel-footer a {
    color: var(--ui-text);
    font-weight: 700;
    text-decoration: none;
}

body.auth-shell .auth-panel-footer a:hover {
    color: var(--ui-primary);
}

body.auth-shell .auth-panel-footer a:focus-visible {
    outline: 2px solid rgba(138, 99, 255, 0.7);
    outline-offset: 3px;
}

body.auth-shell .auth-panel-footer__cta {
    text-align: center;
}

body.auth-shell .auth-panel-footer__text {
    font-size: 0.84rem;
    color: var(--ui-muted);
}

body.auth-shell .auth-panel-footer__link {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--ui-text);
    text-decoration: none;
    margin-left: 0.28rem;
    transition: color 160ms ease;
}

body.auth-shell .auth-panel-footer__link:hover {
    color: var(--ui-primary);
}

body.auth-shell .field-state-icon {
    transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
    will-change: opacity, transform;
}

body.auth-shell [aria-busy="true"] {
    cursor: progress;
}

@media (max-width: 480px) {
    body.auth-shell .auth-stage {
        padding: 0.9rem 0.8rem;
    }

    body.auth-shell .auth-panel-card {
        padding: 0.8rem;
        border-radius: 18px;
    }

    body.auth-shell .auth-brand-strip__meta {
        display: none;
    }
}

@media (min-width: 640px) {
    body.auth-shell .auth-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    body.auth-shell .auth-stage {
        box-sizing: border-box;
        min-height: 100svh;
        align-items: center;
        justify-content: center;
        padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    }

    body.auth-shell .auth-frame {
        margin-top: 0;
    }

    body.auth-shell .auth-layout {
        gap: 0.7rem;
    }

    body.auth-shell .auth-layout-split .auth-layout {
        grid-template-columns: 1fr;
    }

    body.auth-shell .auth-aside {
        display: block;
    }

    body.auth-shell .auth-brand-strip {
        padding: 0.78rem 0.92rem;
        border-radius: 16px;
    }

    body.auth-shell .auth-brand-strip__icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    body.auth-shell .auth-stage.auth-layout-split {
        align-items: flex-start;
        justify-content: flex-start;
    }

    body.auth-shell .auth-brand-summary {
        display: none;
    }

    body.auth-shell .auth-form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    body.auth-shell .auth-stage {
        padding-top: calc(0.7rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    }

    body.auth-shell .auth-layout {
        gap: 0.55rem;
    }

    body.auth-shell .auth-page-head {
        gap: 0.18rem;
    }

    body.auth-shell .auth-panel-card {
        gap: 0.72rem;
    }
}

body.auth-shell .auth-secondary-panel {
    display: grid;
    gap: 0.55rem;
    padding: 0.78rem 0.86rem;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    box-shadow: var(--ui-note-highlight);
}

body.auth-shell .auth-secondary-panel__head {
    display: grid;
    gap: 0.16rem;
}

body.auth-shell .auth-secondary-panel__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ui-text);
}

body.auth-shell .auth-secondary-panel__text {
    margin: 0;
    font-size: 0.79rem;
    line-height: 1.45;
    color: var(--ui-muted);
}

body.auth-shell .auth-secondary-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

body.auth-shell .auth-secondary-panel__link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
    color: var(--ui-text-soft);
    text-decoration: none;
    font-size: 0.77rem;
    font-weight: 600;
}

body.auth-shell .auth-secondary-panel__link:hover {
    color: var(--ui-text);
    border-color: var(--ui-select-hover-border);
}

body.auth-shell .auth-secondary-panel__list {
    display: grid;
    gap: 0.34rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.auth-shell .auth-secondary-panel__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.44rem;
    font-size: 0.79rem;
    line-height: 1.45;
    color: var(--ui-text-soft);
}

body.auth-shell .auth-secondary-panel__list li::before {
    content: '';
    width: 5px;
    height: 5px;
    margin-top: 0.38rem;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.78);
    flex-shrink: 0;
}

body.auth-shell .backg-content {
    color: var(--ui-text);
}

body.auth-shell .backg-title {
    color: var(--ui-text) !important;
    letter-spacing: -0.04em;
    line-height: 0.95;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    text-shadow: none;
}

body.auth-shell .discount {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--ui-chip-bg);
    border: 1px solid var(--ui-border);
    color: var(--ui-chip-text);
}

body.auth-shell .text-medium,
body.auth-shell .text-medium a {
    color: var(--ui-text-soft) !important;
}

body.auth-shell .contact-form {
    padding: 24px;
    border-radius: 28px;
    background: var(--ui-card-gradient);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
    backdrop-filter: blur(18px);
}

body.auth-shell .contact-form input,
body.auth-shell .contact-form textarea {
    width: 100%;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--ui-border);
    background: var(--ui-field-bg);
    color: var(--ui-field-text);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.auth-shell .contact-form input::placeholder,
body.auth-shell .contact-form textarea::placeholder {
    color: var(--ui-muted);
}

body.auth-shell .contact-form input:focus,
body.auth-shell .contact-form textarea:focus {
    outline: none;
    border-color: rgba(109, 75, 255, 0.58);
    box-shadow: 0 0 0 4px rgba(109, 75, 255, 0.16);
    transform: translateY(-1px);
}

body.auth-shell .sone-btn,
body.auth-shell .contact-form button,
body.auth-shell .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.4rem;
    font-weight: 700;
    color: var(--ui-primary-text);
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
    box-shadow: var(--ui-primary-shadow);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

body.auth-shell .secondary-action {
    background: var(--ui-primary-soft-bg) !important;
    color: var(--ui-text) !important;
    border: 1px solid var(--ui-border) !important;
    box-shadow: none !important;
}

body.auth-shell .secondary-action:hover {
    background: var(--ui-primary-soft-bg-hover) !important;
}

body.auth-shell .sone-btn:hover,
body.auth-shell .contact-form button:not(.secondary-action):hover,
body.auth-shell .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--ui-primary-shadow-strong);
    opacity: 0.98;
}

body.auth-shell .alert {
    border-radius: 14px;
    border: none;
    box-shadow: var(--ui-shadow-soft);
}

body.auth-shell .auth-login-layout {
    max-width: 1120px;
}

body.auth-shell .auth-login-brand {
    padding-right: 0;
    display: grid;
    gap: 1rem;
    align-content: start;
}

body.auth-shell .auth-login-kicker {
    margin-bottom: 1rem;
}

body.auth-shell .auth-login-title {
    margin-bottom: 1rem;
}

body.auth-shell .auth-login-copy {
    max-width: 34rem;
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--ui-text-soft);
}

body.auth-shell .auth-login-benefits {
    display: grid;
    gap: 0.9rem;
    margin-top: 2rem;
}

body.auth-shell .auth-login-benefit {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.92rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.04);
}

body.auth-shell .auth-login-benefit__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 1.1rem;
}

body.auth-shell .auth-login-benefit__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.auth-shell .auth-login-benefit__text {
    margin-top: 0.22rem;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--ui-text-soft);
}

body.auth-shell .auth-login-benefit__text a {
    color: var(--ui-text);
    text-decoration: underline;
}

body.auth-shell .auth-login-form {
    padding: 1.05rem;
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

body.auth-shell .auth-login-form__header {
    margin-bottom: 1rem;
}

body.auth-shell .auth-login-form__header--card {
    display: grid;
    gap: 0.35rem;
    text-align: left;
}

body.auth-shell .auth-login-form::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
    opacity: 0.7;
    pointer-events: none;
}

body.auth-shell .auth-login-form__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    background: var(--ui-primary-soft-bg);
    color: var(--ui-text);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.auth-shell .auth-login-form__title {
    margin: 0.35rem 0 0;
    font-size: clamp(1.45rem, 5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ui-text);
}

body.auth-shell .auth-login-form__text,
body.auth-shell .auth-login-form__footer-text {
    color: var(--ui-text-soft);
}

body.auth-shell .auth-login-quick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.95rem;
}

body.auth-shell .auth-login-quick-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 32px;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ui-text-soft);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
}

body.auth-shell .auth-login-quick-item i {
    color: var(--ui-chip-text);
    font-size: 0.95rem;
}

body.auth-shell .auth-login-alert {
    margin-bottom: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.18);
    background: rgba(239, 68, 68, 0.08);
    color: var(--ui-text);
}

body.auth-shell .auth-login-field {
    margin-bottom: 1rem;
}

body.auth-shell .auth-login-field.is-invalid input {
    border-color: rgba(239, 68, 68, 0.42);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

body.auth-shell .auth-login-field__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

body.auth-shell .auth-login-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

body.auth-shell .auth-login-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ui-text-soft);
    text-decoration: none;
}

body.auth-shell .auth-login-link:hover {
    color: var(--ui-text) !important;
}

body.auth-shell .auth-login-link--strong {
    color: var(--ui-text);
}

body.auth-shell .auth-login-password {
    position: relative;
}

body.auth-shell .auth-login-password input {
    margin-bottom: 0;
    padding-right: 3.6rem;
}

body.auth-shell .auth-login-password__toggle {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ui-muted);
    display: grid;
    place-items: center;
    box-shadow: none;
    padding: 0;
}

body.auth-shell .auth-login-password__toggle:hover,
body.auth-shell .auth-login-password__toggle:focus {
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.06);
}

body.auth-shell .auth-login-submit {
    width: 100%;
    margin-top: 0.35rem;
}

body.auth-shell .auth-login-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: flex-start;
    margin-top: 0.95rem;
    padding: 0.78rem 0.82rem;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.04);
}

body.auth-shell .auth-login-note__icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 0.96rem;
}

body.auth-shell .auth-login-note__text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ui-text-soft);
}

@media (prefers-reduced-motion: reduce) {
    body.auth-shell .auth-inline-banner,
    body.auth-shell .ui-input-wrapper,
    body.auth-shell .ui-btn,
    body.auth-shell .field-state-icon,
    body.auth-shell .auth-submit,
    body.auth-shell .login-submit,
    body.auth-shell .reg-submit,
    body.auth-shell .verify-submit {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    body.auth-shell .ui-loader-svg,
    body.auth-shell .auth-submit__spinner,
    body.auth-shell .login-submit__spinner,
    body.auth-shell .reg-submit__spinner,
    body.auth-shell .verify-submit__spinner {
        animation: none !important;
    }
}

body.auth-shell .auth-login-support__title {
    margin-bottom: 0.2rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.auth-shell .auth-login-support__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.55rem;
}

body.auth-shell .auth-login-form__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
    text-align: center;
}

body.auth-shell .auth-login-form__footer-text {
    font-size: 0.9rem;
}

/* Auth view utility compatibility for legacy Blade markup */
body.auth-shell .mt-2 { margin-top: 0.5rem; }
body.auth-shell .mt-4 { margin-top: 1rem; }
body.auth-shell .mt-5 { margin-top: 1.25rem; }
body.auth-shell .mb-4 { margin-bottom: 1rem; }
body.auth-shell .mb-6 { margin-bottom: 1.5rem; }
body.auth-shell .pt-2 { padding-top: 0.5rem; }

body.auth-shell .auth-register-layout {
    max-width: 1160px;
}

body.auth-shell .auth-register-brand .auth-login-copy {
    max-width: 36rem;
}

body.auth-shell .auth-register-form {
    padding-bottom: 1.1rem;
}

body.auth-shell .auth-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.95rem;
}

body.auth-shell .auth-register-section {
    grid-column: 1 / -1;
    margin: 0.1rem 0 0.05rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

body.auth-shell .auth-register-field {
    margin-bottom: 0.95rem;
}

body.auth-shell .auth-register-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

body.auth-shell .auth-register-step {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 34px;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ui-text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.auth-shell .auth-register-step.is-active {
    color: var(--ui-text);
    background: var(--ui-primary-soft-bg);
}

body.auth-shell .auth-register-step__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.78;
}

body.auth-shell .auth-register-hint {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--ui-muted);
}

body.auth-shell .auth-register-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--ui-danger);
}

body.auth-shell .auth-password-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

body.auth-shell .auth-password-checklist__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 30px;
    padding: 0.32rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ui-text-soft);
    font-size: 0.74rem;
    font-weight: 600;
}

body.auth-shell .auth-password-checklist__item::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ui-success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

body.auth-shell .auth-register-next__title {
    margin-bottom: 0.2rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.auth-shell .auth-register-next__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.7rem;
}

body.auth-shell .auth-register-next__item {
    min-height: 100%;
    padding: 0.62rem 0.72rem;
    border-radius: 14px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--ui-text-soft);
    font-size: 0.76rem;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    body.auth-shell .backg-content-wrap {
        width: min(960px, calc(100vw - 1.25rem));
        padding: 1rem;
    }

    body.auth-shell .auth-login-brand {
        margin-bottom: 0;
    }

    body.auth-shell .auth-login-benefits {
        margin-top: 1.5rem;
    }

    body.auth-shell .auth-register-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body.auth-shell .auth-register-next__grid {
        grid-template-columns: 1fr;
    }

    body.auth-shell .auth-register-steps {
        margin-bottom: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    body.auth-shell .auth-login-brand {
        gap: 0.85rem;
    }

    body.auth-shell .brand-eyebrow,
    body.auth-shell .auth-login-form__eyebrow,
    body.auth-shell .auth-register-step,
    body.auth-shell .auth-password-checklist__item {
        font-size: 0.7rem;
    }

    body.auth-shell .brand-title,
    body.auth-shell .auth-login-title {
        font-size: clamp(1.95rem, 9vw, 2.5rem);
        line-height: 1.02;
    }

    body.auth-shell .brand-text,
    body.auth-shell .auth-login-copy {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    body.auth-shell .brand-chips,
    body.auth-shell .auth-register-steps {
        gap: 0.45rem;
    }

    body.auth-shell .auth-login-benefits {
        display: none;
    }

    body.auth-shell .auth-login-benefit {
        padding: 0.82rem 0.88rem;
        border-radius: 18px;
    }

    body.auth-shell .auth-login-form {
        padding: 1rem;
        border-radius: 22px;
    }

    body.auth-shell .auth-login-form__header {
        margin-bottom: 1rem;
    }

    body.auth-shell .auth-login-form__title {
        font-size: 1.45rem;
    }

    body.auth-shell .auth-login-form__text {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    body.auth-shell .auth-login-quick-list {
        margin-top: 0.8rem;
        gap: 0.45rem;
    }

    body.auth-shell .auth-login-quick-item {
        width: 100%;
        justify-content: flex-start;
        font-size: 0.73rem;
    }

    body.auth-shell .auth-login-note {
        padding: 0.72rem 0.76rem;
        margin-top: 0.8rem;
    }

    body.auth-shell .auth-login-support__actions {
        gap: 0.55rem 0.8rem;
    }

    body.auth-shell .auth-register-field {
        margin-bottom: 0.78rem;
    }

    body.auth-shell .auth-login-field {
        margin-bottom: 0.8rem;
    }

    body.auth-shell .auth-register-section {
        margin-top: 0.15rem;
    }

    body.auth-shell .auth-password-checklist {
        gap: 0.38rem;
    }

    body.auth-shell .auth-password-checklist__item,
    body.auth-shell .auth-register-next__item {
        font-size: 0.72rem;
    }

    body.auth-shell .contact-form input {
        padding: 0;
        margin-bottom: 0;
    }

    body.auth-shell .auth-login-field__top,
    body.auth-shell .auth-login-form__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    body.auth-shell .auth-login-form__footer {
        gap: 0.2rem;
    }
}

@media (max-width: 575.98px) {
    body.auth-shell .backg.backg-one {
        padding: 12px 0 18px;
    }

    body.auth-shell .backg.backg-one::after,
    body.auth-shell .circle-shape {
        display: none;
    }

    body.auth-shell .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    body.auth-shell .backg-content-wrap {
        width: min(1180px, calc(100vw - 0.2rem));
        padding: 0.25rem 0.15rem;
        border-radius: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    body.auth-shell .auth-split-grid {
        gap: 0.7rem;
    }

    body.auth-shell .auth-pane--card,
    body.auth-shell .auth-pane--brand {
        width: 100%;
    }

    body.auth-shell .auth-pane--brand {
        order: 1;
        padding: 0;
        border: 0;
        background: transparent;
        overflow: visible;
    }

    body.auth-shell .auth-pane--brand::before {
        display: none;
    }

    body.auth-shell .auth-pane--card {
        order: 2;
    }

    body.auth-shell .auth-login-brand {
        padding: 0;
        gap: 0.55rem;
    }

    body.auth-shell .auth-pane--brand .brand-panel-content {
        gap: 0.55rem;
        padding: 1rem 0.95rem;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background:
            radial-gradient(circle at top right, rgba(138, 99, 255, 0.22), transparent 40%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
            rgba(14, 16, 20, 0.9);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
        position: relative;
        overflow: hidden;
    }

    body.auth-shell .auth-pane--brand .brand-panel-content::before {
        content: '';
        position: absolute;
        inset: 0 0 auto;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
        opacity: 0.7;
        pointer-events: none;
    }

    body.auth-shell .brand-eyebrow,
    body.auth-shell .auth-login-form__eyebrow {
        margin-bottom: 0;
        width: fit-content;
        padding: 0.34rem 0.68rem;
        font-size: 0.64rem;
        letter-spacing: 0.12em;
    }

    body.auth-shell .brand-title {
        max-width: 10ch;
        margin-bottom: 0;
        font-size: clamp(1.85rem, 10vw, 2.35rem);
        line-height: 0.98;
    }

    body.auth-shell .brand-text {
        margin-bottom: 0;
        max-width: none;
        font-size: 0.84rem;
        line-height: 1.48;
        max-width: 30ch;
    }

    body.auth-shell .brand-chips,
    body.auth-shell .auth-register-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
        width: 100%;
    }

    body.auth-shell .brand-chip,
    body.auth-shell .auth-register-step {
        width: auto;
        min-height: 52px;
        padding: 0.48rem 0.38rem;
        border-radius: 13px;
        justify-content: center;
        align-items: center;
        text-align: center;
        line-height: 1.3;
        font-size: 0.6rem;
        letter-spacing: 0.02em;
        background: rgba(255, 255, 255, 0.045);
    }

    body.auth-shell .brand-chip svg {
        display: none;
    }

    body.auth-shell .auth-register-step {
        flex-direction: column;
        gap: 0.3rem;
    }

    body.auth-shell .auth-register-step__dot {
        margin: 0;
    }

    body.auth-shell .auth-password-checklist {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    body.auth-shell .auth-password-checklist__item {
        width: 100%;
        justify-content: flex-start;
        min-height: 36px;
        padding: 0.45rem 0.7rem;
        border-radius: 14px;
        font-size: 0.72rem;
    }

    body.auth-shell .auth-login-form {
        padding: 1rem 1rem 1.05rem;
        border-radius: 20px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
            var(--ui-card-gradient);
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
    }

    body.auth-shell .auth-login-field__top,
    body.auth-shell .auth-login-form__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    body.auth-shell .auth-login-form__footer {
        margin-top: 1rem;
        padding-top: 0.9rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        gap: 0.2rem;
    }

    body.auth-shell .auth-login-form__footer-text {
        font-size: 0.82rem;
    }

    body.auth-shell .auth-login-form__title {
        font-size: 1.4rem;
        line-height: 1.02;
    }

    body.auth-shell .auth-login-form__text {
        font-size: 0.84rem;
        line-height: 1.45;
    }

    body.auth-shell .auth-login-field {
        margin-bottom: 0.9rem;
    }

    body.auth-shell .auth-login-label {
        font-size: 0.74rem;
        letter-spacing: 0.08em;
    }

    body.auth-shell .auth-error-banner,
    body.auth-shell .auth-login-note,
    body.auth-shell .auth-support-note,
    body.auth-shell .auth-next-steps-note {
        padding: 0.85rem;
        border-radius: 16px;
    }

    body.auth-shell .auth-card-note {
        justify-content: flex-start;
        text-align: left;
        gap: 0.35rem;
        font-size: 0.74rem;
        line-height: 1.45;
    }

    body.auth-shell .auth-login-support__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    body.auth-shell .auth-support-icon,
    body.auth-shell .auth-next-steps-icon {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

    body.auth-shell .auth-support-title,
    body.auth-shell .auth-next-steps-title {
        font-size: 0.84rem;
    }

    body.auth-shell .auth-support-text,
    body.auth-shell .next-steps-item {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    body.auth-shell .auth-register-section {
        margin: 0.25rem 0 0.1rem;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    body.auth-shell .auth-register-error,
    body.auth-shell .auth-register-hint,
    body.auth-shell .auth-terms-note {
        font-size: 0.74rem;
        line-height: 1.45;
    }
}

@media (min-width: 768px) {
    body.auth-shell .backg.backg-one {
        padding: 40px 0 48px;
        align-items: center;
    }

    body.auth-shell .backg-content-wrap {
        width: min(1180px, calc(100vw - 2rem));
        padding: clamp(24px, 4vw, 48px);
        border-radius: 32px;
    }

    body.auth-shell .auth-login-form {
        padding: clamp(24px, 3vw, 32px);
        border-radius: 28px;
    }
}

@media (min-width: 992px) {
    body.auth-shell .auth-split-grid {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
        gap: clamp(2rem, 4vw, 4rem);
        align-items: center;
    }

    body.auth-shell .auth-pane--brand,
    body.auth-shell .auth-pane--card {
        order: initial;
    }

    body.auth-shell .auth-login-brand {
        padding-right: clamp(0rem, 2vw, 1.8rem);
    }
}

body.app-shell-admin .email-template-token-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

body.app-shell-admin .email-template-token {
    width: 100%;
    text-align: left;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-elevated);
    color: var(--ui-text);
    box-shadow: var(--ui-shadow-soft);
    transition: transform var(--ui-duration-base) var(--ui-ease), border-color var(--ui-duration-base) var(--ui-ease);
}

body.app-shell-admin .email-template-token:hover {
    transform: translateY(-2px);
    border-color: rgba(109, 75, 255, 0.28);
}

body.app-shell-admin .email-template-token__code {
    display: inline-flex;
    margin-bottom: 0.45rem;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

body.app-shell-admin .email-template-token__text {
    display: block;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--ui-text-soft);
}

body.app-shell-admin .email-template-workspace > [class*='col-'] {
    display: flex;
}

body.app-shell-admin .email-template-editor-panel,
body.app-shell-admin .email-template-preview-panel {
    width: 100%;
    margin-bottom: 0;
}

body.app-shell-admin .email-template-editor-note {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    color: var(--ui-text-soft);
    font-size: 0.88rem;
    line-height: 1.6;
}

body.app-shell-admin .email-template-preview-shell {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-strong);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-admin .email-template-preview-hero {
    padding: 1.35rem 1.35rem 1.1rem;
    background: linear-gradient(135deg, #172554 0%, #312e81 58%, #6d4bff 100%);
    color: #ffffff;
}

body.app-shell-admin .email-template-preview-kicker {
    display: inline-flex;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-shell-admin .email-template-preview-title {
    margin-top: 0.95rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.app-shell-admin .email-template-preview-subtitle {
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.55;
}

body.app-shell-admin .email-template-preview-body {
    padding: 1.2rem;
    background: var(--ui-surface-strong);
}

body.app-shell-admin .email-template-preview-content {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-elevated);
    color: var(--ui-text-soft);
    font-size: 0.9rem;
    line-height: 1.7;
}

body.app-shell-admin .email-template-preview-content p:last-child {
    margin-bottom: 0;
}

body.app-shell-admin .email-template-preview-content a {
    color: var(--ui-primary);
    font-weight: 700;
}

body.app-shell-admin .email-template-preview-cta {
    margin-top: 0.95rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
}

body.app-shell-admin .email-template-preview-cta__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell-admin .email-template-preview-cta__text {
    margin-top: 0.32rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--ui-text-soft);
}

body.app-shell-admin .email-template-preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.85rem;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: var(--ui-primary-shadow);
}

@media (max-width: 991.98px) {
    body.app-shell-admin .email-template-token-grid {
        grid-template-columns: 1fr;
    }

    body.app-shell-admin .email-template-workspace > [class*='col-'] {
        display: block;
    }
}

body.app-shell-admin .upgrade-management-map {
    overflow: hidden;
}

body.app-shell-admin .upgrade-management-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.9rem;
}

body.app-shell-admin .upgrade-management-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-elevated);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-admin .upgrade-management-step.is-active {
    border-color: rgba(109, 75, 255, 0.3);
    background: linear-gradient(180deg, var(--ui-surface-elevated) 0%, var(--ui-primary-soft-bg) 100%);
}

body.app-shell-admin .upgrade-management-step__index {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 0.84rem;
    font-weight: 800;
}

body.app-shell-admin .upgrade-management-step__label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell-admin .upgrade-management-step__label a {
    color: inherit;
}

body.app-shell-admin .upgrade-management-step__label a:hover {
    color: var(--ui-primary);
}

body.app-shell-admin .upgrade-management-step__text {
    margin-top: 0.22rem;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--ui-text-soft);
}

@media (max-width: 1199.98px) {
    body.app-shell-admin .upgrade-management-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    body.app-shell-admin .upgrade-management-flow {
        grid-template-columns: 1fr;
    }

    body.app-shell-admin .upgrade-management-step {
        padding: 0.9rem;
        border-radius: 18px;
    }
}

body.app-shell-user,
body.app-shell-admin {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body.app-shell-user::before,
body.app-shell-admin::before {
    background:
        radial-gradient(circle at top right, rgba(109, 75, 255, 0.16), transparent 24%),
        radial-gradient(circle at bottom left, rgba(51, 199, 255, 0.12), transparent 28%);
}

body.app-shell-user .sidenav,
body.app-shell-admin .sidebar {
    background: linear-gradient(180deg, var(--ui-nav-bg) 0%, var(--ui-nav-bg-soft) 100%) !important;
    color: var(--ui-nav-text) !important;
    border: none !important;
    box-shadow: 24px 0 60px rgba(15, 23, 42, 0.18);
}

body.app-shell-user .sidenav .navbar-brand,
body.app-shell-admin .sidebar .navbar-brand {
    padding: 1.4rem 1.4rem 0.9rem;
}

body.app-shell-user .sidenav-header,
body.app-shell-admin .sidebar-user-material-body {
    border-bottom: 1px solid var(--ui-border);
}

body.app-shell-admin .admin-brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

body.app-shell-admin .admin-brand-mark img {
    width: 44px;
    height: 44px;
    display: block;
    border-radius: 14px;
    object-fit: cover;
}

body.app-shell-user .sidenav .navbar-brand-img,
body.app-shell-admin .sidebar .navbar-brand-img {
    max-height: 42px;
    object-fit: contain;
}

body.app-shell-user .sidenav .nav-link,
body.app-shell-admin .sidebar .nav-link {
    margin: 0.2rem 0.55rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    color: var(--ui-nav-text) !important;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

body.app-shell-user .sidenav .nav-link:hover,
body.app-shell-user .sidenav .nav-link.active,
body.app-shell-admin .sidebar .nav-link:hover,
body.app-shell-admin .sidebar .nav-link.active {
    color: var(--ui-nav-active-text) !important;
    background: var(--ui-nav-active-bg);
    transform: translateX(2px);
}

body.app-shell-user .sidenav .nav-link span,
body.app-shell-admin .sidebar .nav-link span {
    color: inherit !important;
}

body.app-shell-user .sidenav .nav-link > .ph,
body.app-shell-admin .sidebar .nav-link > .ph {
    font-size: 1.15rem;
    margin-right: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 160ms ease, color 160ms ease;
}

body.app-shell-admin .nav-sidebar .nav-item-header {
    margin-top: 0.9rem;
    padding: 0.95rem 1.15rem 0.35rem;
}

body.app-shell-admin .nav-sidebar .nav-item-header:first-child {
    margin-top: 0.15rem;
}

body.app-shell-admin .nav-sidebar .nav-item-header > div {
    font-weight: 800;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.46);
}

body[data-theme='light'].app-shell-admin .nav-sidebar .nav-item-header > div {
    color: rgba(15, 23, 42, 0.42);
}

body.app-shell-admin .sidebar .nav-link {
    align-items: center;
    gap: 0.65rem;
}

body.app-shell-admin .sidebar .nav-link > i {
    margin-right: 0.2rem;
}

body.app-shell-admin .sidebar .nav-link .app-admin-sidebar-badge {
    margin-left: auto;
    min-width: 1.55rem;
    height: 1.55rem;
    padding: 0 0.42rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(138, 99, 255, 0.18);
    color: #efe9ff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-theme='light'].app-shell-admin .sidebar .nav-link .app-admin-sidebar-badge {
    background: rgba(109, 75, 255, 0.12);
    color: #4c33b8;
}

body.app-shell-admin .sidebar .nav-group-sub .nav-link .app-admin-sidebar-badge {
    min-width: 1.42rem;
    height: 1.42rem;
    font-size: 0.64rem;
}

body.app-shell-user .main-content {
    background: var(--ui-page-gradient);
}

body.app-shell-user .navbar-top,
body.app-shell-admin .navbar {
    background: var(--ui-surface) !important;
    border-bottom: 1px solid var(--ui-border) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .navbar-top {
    min-height: 52px;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

body.app-shell-user .navbar-top .navbar-text,
body.app-shell-admin .navbar .navbar-text {
    color: var(--ui-text-soft);
}

body.app-shell-admin .navbar {
    min-height: 56px;
    padding: 0.35rem 1rem;
}

body.app-shell-admin .navbar .navbar-nav {
    align-items: center;
    gap: 0.35rem;
}

body.app-shell-admin .navbar .navbar-nav-link,
body.app-shell-admin .navbar .dropdown-toggle {
    color: var(--ui-text) !important;
}

body.app-shell-admin .navbar .navbar-nav-link:hover,
body.app-shell-admin .navbar .dropdown-toggle:hover {
    color: var(--ui-text) !important;
}

body.app-shell-admin .navbar .dropdown-user > .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0.35rem 0.25rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ui-border);
}

body[data-theme='light'].app-shell-admin .navbar .dropdown-user > .dropdown-toggle {
    background: rgba(15, 23, 42, 0.04);
}

body.app-shell-admin .navbar .dropdown-user img {
    width: 32px;
    height: 32px;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

body.app-shell-admin .admin-user-record-page__avatar-image {
    width: clamp(96px, 24vw, 120px);
    height: clamp(96px, 24vw, 120px);
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

body.app-shell-user .navbar-top .navbar-nav {
    gap: 0.35rem;
}

body.app-shell-user .user-menu-toggle {
    padding: 0.42rem 0.7rem;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

body.app-shell-user .user-menu-toggle .ni {
    font-size: 0.9rem;
}

body.app-shell-user .user-language-pill {
    display: inline-flex;
    align-items: center;
    max-width: 90px;
    min-width: 90px;
}

body.app-shell-user .user-language-pill .goog-te-gadget {
    font-size: 0 !important;
    line-height: 1;
}

body.app-shell-user .user-language-pill .goog-te-combo {
    width: 90px;
    max-width: 90px;
    height: 26px;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-strong);
    color: var(--ui-text);
    font-size: 0.68rem;
    line-height: 1.1;
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .page-content,
body.app-shell-admin .page-content {
    position: relative;
    z-index: 1;
}

body.app-shell-user .main-content,
body.app-shell-admin .page-content {
    background: var(--ui-page-gradient);
}

body.app-shell-user .content,
body.app-shell-admin .content,
body.app-shell-user .container-fluid,
body.app-shell-admin .container-fluid {
    position: relative;
    z-index: 1;
}

body.app-shell-user .page-header-content,
body.app-shell-admin .page-header-content {
    padding: 0.65rem 0.95rem;
}

body.app-shell-user .page-title h4,
body.app-shell-admin .page-title h4 {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.app-shell-user .container-fluid.mt--6,
body.app-shell-user .container-fluid.mt--5,
body.app-shell-user .container-fluid.mt--4,
body.app-shell-user .container-fluid.mt--3,
body.app-shell-admin .container-fluid.mt--6,
body.app-shell-user .mt--6,
body.app-shell-user .mt--5,
body.app-shell-user .mt--4,
body.app-shell-user .mt--3,
body.app-shell-admin .mt--6 {
    margin-top: 0 !important;
}

body.app-shell-user .card,
body.app-shell-admin .card,
body.app-shell-user .modal-content,
body.app-shell-admin .modal-content,
body.app-shell-user .dropdown-menu,
body.app-shell-admin .dropdown-menu {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-xl);
    box-shadow: var(--ui-shadow);
}

body.app-shell-user .card,
body.app-shell-admin .card {
    overflow: hidden;
    background: var(--ui-card-gradient);
    color: var(--ui-text);
}

body[data-theme='dark'].app-shell-user .card,
body[data-theme='dark'].app-shell-admin .card,
body[data-theme='dark'].app-shell-user .modal-content,
body[data-theme='dark'].app-shell-admin .modal-content,
body[data-theme='dark'].app-shell-user .dropdown-menu,
body[data-theme='dark'].app-shell-admin .dropdown-menu {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 24%),
        var(--ui-card-gradient);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: var(--ui-shadow);
}

body.app-shell-user .card .card-body,
body.app-shell-admin .card .card-body {
    padding: 20px;
}

body.app-shell-user .card-header,
body.app-shell-admin .card-header {
    background: transparent;
    border-bottom: 1px solid var(--ui-border);
    padding: 0.85rem 1rem;
}

body.app-shell-user .bg-dark,
body.app-shell-admin .bg-dark {
    background: linear-gradient(135deg, var(--ui-nav-bg) 0%, var(--ui-nav-bg-soft) 100%) !important;
    color: var(--ui-text) !important;
}

body.app-shell-user .bg-orange,
body.app-shell-admin .bg-orange {
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2)) !important;
    color: var(--ui-primary-text) !important;
}

body.app-shell-user .badge,
body.app-shell-admin .badge,
body.auth-shell .badge {
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.app-shell-user .btn,
body.app-shell-admin .btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.72rem 1.15rem;
}

body.app-shell-user .btn-neutral,
body.app-shell-admin .btn-neutral {
    background: var(--ui-surface-strong) !important;
    color: var(--ui-text) !important;
    border: 1px solid var(--ui-border) !important;
    box-shadow: none !important;
}

body.app-shell-user .btn-neutral:hover,
body.app-shell-admin .btn-neutral:hover {
    background: var(--ui-surface) !important;
}

body.app-shell-user .form-control,
body.app-shell-admin .form-control,
body.app-shell-user input[type='text'],
body.app-shell-user input[type='email'],
body.app-shell-user input[type='password'],
body.app-shell-user input[type='number'],
body.app-shell-user input[type='tel'],
body.app-shell-user input[type='search'],
body.app-shell-user select,
body.app-shell-user textarea,
body.app-shell-admin input[type='text'],
body.app-shell-admin input[type='email'],
body.app-shell-admin input[type='password'],
body.app-shell-admin input[type='number'],
body.app-shell-admin input[type='tel'],
body.app-shell-admin input[type='search'],
body.app-shell-admin select,
body.app-shell-admin textarea {
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: var(--ui-field-bg);
    color: var(--ui-field-text);
    box-shadow: none;
}

body.app-shell-user .form-control:focus,
body.app-shell-admin .form-control:focus,
body.app-shell-user input:focus,
body.app-shell-admin input:focus,
body.app-shell-user select:focus,
body.app-shell-admin select:focus,
body.app-shell-user textarea:focus,
body.app-shell-admin textarea:focus {
    border-color: rgba(255, 106, 10, 0.48);
    box-shadow: 0 0 0 4px rgba(255, 106, 10, 0.12);
}

body.app-shell-user .table,
body.app-shell-admin .table {
    border-collapse: separate;
    border-spacing: 0 12px;
}

body.app-shell-user .table thead th,
body.app-shell-admin .table thead th {
    border: none;
    color: var(--ui-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-shell-user .table tbody tr,
body.app-shell-admin .table tbody tr {
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .table tbody td,
body.app-shell-admin .table tbody td,
body.app-shell-user .table tbody th,
body.app-shell-admin .table tbody th {
    border-top: 0;
    vertical-align: middle;
    padding: 1rem 1.1rem;
}

body.app-shell-user .timeline-block,
body.app-shell-admin .timeline-block {
    padding-left: 1rem;
}

body.app-shell-user .timeline-step,
body.app-shell-admin .timeline-step {
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2)) !important;
    box-shadow: 0 12px 24px rgba(255, 106, 10, 0.28);
}

body.app-shell-user .dropdown-menu,
body.app-shell-admin .dropdown-menu {
    padding: 0.75rem;
}

body.app-shell-user .dropdown-header,
body.app-shell-user .dropdown-header h6 {
    color: var(--ui-text-soft);
}

body.app-shell-user .dropdown-item,
body.app-shell-admin .dropdown-item {
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

body.app-shell-user .dropdown-item {
    color: var(--ui-text-soft);
}

body.app-shell-user .dropdown-item:hover,
body.app-shell-user .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ui-text);
}

body.app-shell-user .dropdown-item i:not(.text-danger),
body.app-shell-user .dropdown-item span:not(.text-danger) {
    color: inherit;
}

body.app-shell-user .app-topbar__menu {
    min-width: 12.5rem;
}

body.app-shell-user .app-topbar__menu-header,
body.app-shell-user .app-topbar__menu-title {
    color: var(--ui-text-soft) !important;
}

body.app-shell-user .app-topbar__menu-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ui-text-soft) !important;
}

body.app-shell-user .app-topbar__menu-item:hover,
body.app-shell-user .app-topbar__menu-item:focus {
    color: var(--ui-text) !important;
}

body.app-shell-user .app-topbar__menu-item i:not(.text-danger),
body.app-shell-user .app-topbar__menu-item span:not(.text-danger) {
    color: inherit !important;
}

body.app-shell-user .alert,
body.app-shell-admin .alert {
    border: none;
    border-radius: 16px;
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user.modal-open,
body.app-shell-admin.modal-open {
    padding-right: 0 !important;
    overflow: hidden;
}

body.app-shell-user .modal-backdrop,
body.app-shell-admin .modal-backdrop {
    background: var(--ui-modal-backdrop);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 10040;
    opacity: 1 !important;
}

body.app-shell-user .modal,
body.app-shell-admin .modal {
    z-index: 10050;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

body.app-shell-user .modal-dialog,
body.app-shell-admin .modal-dialog {
    width: min(calc(100% - 1rem), 36rem);
    max-width: min(calc(100vw - 1rem), 36rem);
    margin: 1.25rem auto;
    transform: translateY(18px) scale(0.985);
    transition: transform var(--ui-duration-base) var(--ui-ease);
}

body.app-shell-user .modal.fade.show .modal-dialog,
body.app-shell-admin .modal.fade.show .modal-dialog,
body.app-shell-user .modal.show .modal-dialog,
body.app-shell-admin .modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

body.app-shell-user .modal-dialog.modal-sm,
body.app-shell-admin .modal-dialog.modal-sm {
    max-width: 100%;
}

body.app-shell-user .modal-dialog.modal-md,
body.app-shell-admin .modal-dialog.modal-md {
    max-width: min(calc(100vw - 1rem), 32rem);
}

body.app-shell-user .modal-dialog.modal-lg,
body.app-shell-admin .modal-dialog.modal-lg {
    max-width: min(calc(100vw - 1rem), 46rem);
}

body.app-shell-user .modal-dialog.modal-xl,
body.app-shell-admin .modal-dialog.modal-xl {
    max-width: min(calc(100vw - 1rem), 58rem);
}

body.app-shell-user .modal-content,
body.app-shell-admin .modal-content {
    overflow: hidden;
    color: var(--ui-text);
    background: var(--ui-modal-sheen), var(--ui-modal-surface);
    border: 1px solid var(--ui-border);
    border-radius: 24px;
    box-shadow: var(--ui-shadow-lg);
    -webkit-backdrop-filter: saturate(145%) blur(18px);
    backdrop-filter: saturate(145%) blur(18px);
}

body.app-shell-user .modal-header,
body.app-shell-admin .modal-header,
body.app-shell-user .modal-footer,
body.app-shell-admin .modal-footer {
    border-color: var(--ui-border);
}

body.app-shell-user .modal-header,
body.app-shell-admin .modal-header {
    align-items: center;
    gap: 0.9rem;
    padding: 1.05rem 1.15rem 0.95rem;
    background: var(--ui-modal-header-bg);
}

body.app-shell-user .modal-title,
body.app-shell-admin .modal-title,
body.app-shell-user .modal-header h4,
body.app-shell-user .modal-header h5,
body.app-shell-user .modal-header h6,
body.app-shell-admin .modal-header h4,
body.app-shell-admin .modal-header h5,
body.app-shell-admin .modal-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--ui-text);
}

body.app-shell-user .modal-header .close,
body.app-shell-admin .modal-header .close {
    margin-left: auto;
    flex-shrink: 0;
}

body.app-shell-user .modal-body,
body.app-shell-admin .modal-body {
    padding: 1.1rem 1.15rem 1.2rem;
    color: var(--ui-text-soft);
}

body.app-shell-user .modal-body > h4:first-child,
body.app-shell-user .modal-body > h5:first-child,
body.app-shell-user .modal-body > h6:first-child,
body.app-shell-admin .modal-body > h4:first-child,
body.app-shell-admin .modal-body > h5:first-child,
body.app-shell-admin .modal-body > h6:first-child {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ui-text);
}

body.app-shell-user .modal-body > h4:first-child + p,
body.app-shell-user .modal-body > h5:first-child + p,
body.app-shell-user .modal-body > h6:first-child + p,
body.app-shell-admin .modal-body > h4:first-child + p,
body.app-shell-admin .modal-body > h5:first-child + p,
body.app-shell-admin .modal-body > h6:first-child + p {
    margin-top: 0.55rem;
}

body.app-shell-user .modal-body .text-muted,
body.app-shell-admin .modal-body .text-muted {
    color: var(--ui-muted) !important;
}

body.app-shell-user .modal-body label,
body.app-shell-admin .modal-body label {
    color: var(--ui-text-soft);
    font-weight: 700;
}

body.app-shell-user .modal-footer,
body.app-shell-admin .modal-footer {
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 0.95rem 1.15rem 1.15rem;
    background: var(--ui-modal-footer-bg);
}

body.app-shell-user .modal-footer > *,
body.app-shell-admin .modal-footer > * {
    margin: 0 !important;
}

body.app-shell-user .modal-footer .btn,
body.app-shell-admin .modal-footer .btn {
    min-height: 44px;
}

body.app-shell-user .modal .close,
body.app-shell-admin .modal .close {
    width: 2.35rem;
    height: 2.35rem;
    margin: 0;
    padding: 0;
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ui-modal-close-border);
    border-radius: 999px;
    background: var(--ui-modal-close-bg);
    color: var(--ui-text-soft);
    opacity: 1;
    text-shadow: none;
    box-shadow: none;
    transition:
        background var(--ui-duration-fast) var(--ui-ease),
        border-color var(--ui-duration-fast) var(--ui-ease),
        color var(--ui-duration-fast) var(--ui-ease),
        transform var(--ui-duration-fast) var(--ui-ease);
}

body.app-shell-user .modal .close:hover,
body.app-shell-user .modal .close:focus,
body.app-shell-admin .modal .close:hover,
body.app-shell-admin .modal .close:focus {
    background: var(--ui-primary-soft-bg);
    border-color: var(--ui-primary-soft-bg-hover);
    color: var(--ui-text);
    opacity: 1;
    transform: translateY(-1px);
}

body.app-shell-user .modal .close:focus-visible,
body.app-shell-admin .modal .close:focus-visible {
    outline: 2px solid var(--ui-focus-outline);
    outline-offset: 2px;
}

body.app-shell-user .modal .close span,
body.app-shell-admin .modal .close span {
    display: block;
    line-height: 1;
    font-size: 1.35rem;
}

body.app-shell-user .navbar-nav .nav-link,
body.app-shell-admin .navbar-nav .nav-link {
    border-radius: 12px;
}

body.app-shell-user .sidebar .nav-item-submenu > .nav-link,
body.app-shell-admin .nav-item-submenu > .nav-link {
    position: relative;
}

body.app-shell-user .sidebar .nav-item-submenu > .nav-link::after,
body.app-shell-admin .nav-item-submenu > .nav-link::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-75%) rotate(45deg);
    opacity: 0.45;
}

body.app-shell-user .content .card.bg-dark,
body.app-shell-admin .content .card.bg-dark,
body.app-shell-user .card.bg-dark,
body.app-shell-admin .card.bg-dark {
    color: #f8fafc;
}

body.app-shell-user .card-title,
body.app-shell-admin .card-title {
    letter-spacing: -0.02em;
}

body.app-shell-user .page-header,
body.app-shell-admin .page-header {
    margin-bottom: 1.5rem;
}

body.app-shell-admin .page-header {
    margin-bottom: 0.7rem;
}

body.app-shell-admin .page-header-light {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 0 !important;
}

body.app-shell-admin .page-title {
    padding: 0.35rem 0;
}

body.app-shell-admin .page-header-content {
    padding: 0.4rem 0.95rem;
}

body.app-shell-admin .page-title h4,
body.app-shell-admin .page-title h4 span,
body.app-shell-admin .page-title h1,
body.app-shell-admin .page-title h2,
body.app-shell-admin .page-title h3 {
    color: var(--ui-text) !important;
}

body.app-shell-admin .content {
    padding-top: 0.55rem;
}

body[data-theme='dark'].app-shell-admin .page-header,
body[data-theme='dark'].app-shell-admin .page-header-light {
    background: transparent !important;
}

body[data-theme='dark'].app-shell-admin .navbar-header,
body[data-theme='dark'].app-shell-admin .navbar-header.bg-dark {
    background: var(--ui-nav-bg-soft) !important;
    border-right: 1px solid var(--ui-border);
}

body[data-theme='dark'].app-shell-admin .navbar .navbar-text,
body[data-theme='dark'].app-shell-admin .navbar .navbar-nav-link,
body[data-theme='dark'].app-shell-admin .navbar .dropdown-toggle,
body[data-theme='dark'].app-shell-admin .page-title,
body[data-theme='dark'].app-shell-admin .page-title h4 {
    color: var(--ui-text) !important;
}

body[data-theme='dark'].app-shell-admin .dropdown-menu {
    background: linear-gradient(180deg, var(--ui-surface-elevated) 0%, var(--ui-surface-strong) 100%) !important;
    border-color: var(--ui-border) !important;
}

body[data-theme='dark'].app-shell-admin .dropdown-item {
    color: var(--ui-text-soft) !important;
}

body[data-theme='dark'].app-shell-admin .dropdown-item:hover,
body[data-theme='dark'].app-shell-admin .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--ui-text) !important;
}

body[data-theme='light'].app-shell-admin .sidebar,
body[data-theme='light'].app-shell-admin .sidebar.bg-dark,
body[data-theme='light'].app-shell-admin .sidebar.sidebar-dark {
    background: linear-gradient(180deg, var(--ui-surface-elevated) 0%, var(--ui-surface-strong) 100%) !important;
    color: var(--ui-text) !important;
    border-right: 1px solid var(--ui-border) !important;
    box-shadow: var(--ui-shadow-rail) !important;
}

body[data-theme='light'].app-shell-admin .bg-dark {
    background: linear-gradient(180deg, var(--ui-surface-elevated) 0%, var(--ui-surface-strong) 100%) !important;
    color: var(--ui-text) !important;
}

body[data-theme='light'].app-shell-admin .sidebar-user-material-body {
    background:
        linear-gradient(180deg, var(--ui-surface) 0%, var(--ui-surface-strong) 100%),
        radial-gradient(circle at top right, var(--ui-select-option-hover), transparent 34%) !important;
    color: var(--ui-text) !important;
}

body[data-theme='light'].app-shell-admin .sidebar-user-material-body h6,
body[data-theme='light'].app-shell-admin .sidebar-user-material-body span,
body[data-theme='light'].app-shell-admin .sidebar-user-material-footer > a,
body[data-theme='light'].app-shell-admin .sidebar-user-material .collapse .nav-link {
    color: var(--ui-text) !important;
    text-shadow: none !important;
}

body[data-theme='light'].app-shell-admin .sidebar-user-material-footer > a {
    background: var(--ui-surface-soft) !important;
    background-color: var(--ui-surface-soft) !important;
    border-top: 1px solid var(--ui-border);
}

body[data-theme='light'].app-shell-admin .sidebar-user-material-footer > a:hover,
body[data-theme='light'].app-shell-admin .sidebar-user-material-footer > a[aria-expanded='true'] {
    background: var(--ui-surface-subtle) !important;
    background-color: var(--ui-surface-subtle) !important;
}

body[data-theme='light'].app-shell-admin .sidebar .nav-link,
body[data-theme='light'].app-shell-admin .sidebar .nav-link span,
body[data-theme='light'].app-shell-admin .sidebar .nav-link i,
body[data-theme='light'].app-shell-admin .nav-item-submenu > .nav-link::after {
    color: var(--ui-text-soft) !important;
}

body[data-theme='light'].app-shell-admin .sidebar .nav-link:hover,
body[data-theme='light'].app-shell-admin .sidebar .nav-link.active,
body[data-theme='light'].app-shell-admin .sidebar .nav-item-open > .nav-link,
body[data-theme='light'].app-shell-admin .sidebar .nav-item-expanded > .nav-link {
    color: var(--ui-text) !important;
    background: var(--ui-nav-active-bg) !important;
}

body[data-theme='light'].app-shell-admin .sidebar .nav-group-sub,
body[data-theme='light'].app-shell-admin .sidebar .collapse {
    background: transparent !important;
    border-bottom-color: var(--ui-border) !important;
}

@media (max-width: 1199.98px) {
    body.app-shell-user .sidenav,
    body.app-shell-admin .sidebar {
        box-shadow: 18px 0 48px rgba(15, 23, 42, 0.22);
    }
}

@media (max-width: 991.98px) {
    body.auth-shell .backg.backg-one {
        padding: 32px 0 48px;
    }

    body.auth-shell .backg-content-wrap {
        border-radius: 28px;
    }

    body.app-shell-user .card .card-body,
    body.app-shell-admin .card .card-body {
        padding: 20px;
    }

    body.app-shell-user .sidenav,
    body.app-shell-admin .sidebar {
        display: none !important;
    }

    body.app-shell-user .main-content,
    body.app-shell-admin .page-content {
        margin-left: 0 !important;
    }

    body.app-shell-admin .page-content {
        display: block !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: visible !important;
    }

    body.app-shell-admin .content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
    }

    body.app-shell-admin .page-header,
    body.app-shell-admin .content,
    body.app-shell-admin .container-fluid {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    body.app-shell-user.modal-open,
    body.app-shell-admin.modal-open {
        padding-right: 0 !important;
        overflow: hidden;
    }

    body.app-shell-user .modal,
    body.app-shell-admin .modal {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.app-shell-user .modal-dialog,
    body.app-shell-admin .modal-dialog {
        width: min(calc(100vw - 1rem), 32rem);
        max-width: 600px;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    body.auth-shell .backg-content-wrap {
        padding: 20px;
    }

    body.auth-shell .backg-title {
        font-size: clamp(2.2rem, 9vw, 3.4rem);
    }

    body.app-shell-user .card,
    body.app-shell-admin .card,
    body.app-shell-user .modal-content,
    body.app-shell-admin .modal-content {
        border-radius: 22px;
    }

    body.app-shell-user .modal-header,
    body.app-shell-admin .modal-header,
    body.app-shell-user .modal-body,
    body.app-shell-admin .modal-body,
    body.app-shell-user .modal-footer,
    body.app-shell-admin .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.app-shell-user .modal-footer,
    body.app-shell-admin .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    body.app-shell-user .modal-footer .btn,
    body.app-shell-admin .modal-footer .btn {
        width: 100%;
    }
}

body.app-shell-user .ui-theme-toggle,
body.app-shell-admin .ui-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--ui-border);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ui-surface) 0%, var(--ui-surface-strong) 100%);
    color: var(--ui-text);
    box-shadow: var(--ui-shadow-soft);
    font-weight: 600;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.app-shell-user .ui-theme-toggle:hover,
body.app-shell-admin .ui-theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: var(--ui-shadow);
    border-color: var(--ui-select-hover-border);
}

body.app-shell-user .ui-theme-toggle .fa,
body.app-shell-admin .ui-theme-toggle .fa {
    color: var(--ui-chip-text);
}

body.app-shell-admin .navbar .ui-theme-toggle {
    height: 34px;
    min-width: 34px;
    padding: 0 0.55rem;
    color: var(--ui-text);
}

body.app-shell-admin .app-topbar__theme-pill {
    width: 56px;
    height: 34px;
    padding: 0 !important;
    border-radius: 999px !important;
    overflow: hidden;
}

body.app-shell-admin .app-topbar__theme-pill-track {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

body.app-shell-admin .app-topbar__theme-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: inherit;
}

body[data-theme='light'].app-shell-admin .app-topbar__theme-pill,
body[data-theme='dark'].app-shell-admin .app-topbar__theme-pill {
    background: var(--ui-card-gradient) !important;
    border: 1px solid var(--ui-border) !important;
    color: var(--ui-text) !important;
}

.dashboard-hero,
.dashboard-panel,
.dashboard-summary-card,
.dashboard-quick-card,
.dashboard-mini-card,
.dashboard-status-row,
.dashboard-table-shell,
.dashboard-chart-shell {
    position: relative;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-xl);
    background: var(--ui-card-gradient);
    box-shadow: var(--ui-shadow);
    overflow: hidden;
}

body[data-theme='dark'] .dashboard-panel,
body[data-theme='dark'] .dashboard-summary-card,
body[data-theme='dark'] .dashboard-table-shell,
body[data-theme='dark'] .dashboard-chart-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 24%),
        linear-gradient(135deg, var(--ui-surface-elevated) 0%, var(--ui-surface-strong) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme='dark'] .dashboard-quick-card,
body[data-theme='dark'] .dashboard-mini-card,
body[data-theme='dark'] .dashboard-status-row {
    background: linear-gradient(135deg, var(--ui-surface-soft) 0%, var(--ui-surface) 100%);
    border-color: rgba(255, 255, 255, 0.07);
}

.dashboard-hero {
    padding: clamp(1.15rem, 1.8vw, 1.85rem);
    margin-bottom: 1rem;
}

.dashboard-hero::before,
.dashboard-panel::before,
.dashboard-summary-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(109, 75, 255, 0.08), transparent 45%, rgba(51, 199, 255, 0.06));
    pointer-events: none;
}

.dashboard-hero > *,
.dashboard-panel > *,
.dashboard-summary-card > *,
.dashboard-quick-card > *,
.dashboard-mini-card > *,
.dashboard-status-row > *,
.dashboard-table-shell > *,
.dashboard-chart-shell > * {
    position: relative;
    z-index: 1;
}

.dashboard-hero__eyebrow,
.dashboard-section__eyebrow,
.dashboard-mini-card__label,
.dashboard-status-row__label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ui-muted);
}

.dashboard-hero__title,
.dashboard-section__title {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ui-text);
}

.dashboard-section__title {
    font-size: 1.03rem;
    line-height: 1.25;
}

.dashboard-hero__subtitle,
.dashboard-section__subtitle,
.dashboard-mini-card__meta,
.dashboard-status-row__meta {
    color: var(--ui-text-soft);
}

.dashboard-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.dashboard-stat {
    padding: 0.86rem 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

body[data-theme='dark'] .dashboard-stat {
    background: rgba(8, 13, 25, 0.45);
    border-color: rgba(255, 255, 255, 0.06);
}

.dashboard-stat__label {
    font-size: 0.78rem;
    color: var(--ui-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.dashboard-stat__value {
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ui-text);
}

.dashboard-hero__actions,
.dashboard-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.dashboard-panel {
    padding: 0.95rem;
}

.dashboard-panel + .dashboard-panel {
    margin-top: 1.25rem;
}

.dashboard-panel__header,
.dashboard-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 0.9rem;
}

.dashboard-quick-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 142px;
    padding: 0.92rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-quick-card:hover {
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
    border-color: rgba(109, 75, 255, 0.28);
    box-shadow: var(--ui-shadow-lg);
}

.dashboard-quick-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    margin-bottom: 0.9rem;
    font-size: 1.15rem;
}

.dashboard-quick-card__title {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ui-text);
}

.dashboard-quick-card__text {
    margin: 0;
    color: var(--ui-text-soft);
    font-size: 0.84rem;
}

.dashboard-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.dashboard-mini-card {
    padding: 0.86rem 0.9rem;
}

.dashboard-mini-card__value {
    margin-top: 0.15rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ui-text);
}

.dashboard-service-stack {
    display: grid;
    gap: 0.8rem;
}

.dashboard-panel__note {
    font-size: 0.8rem;
    color: var(--ui-muted);
}

.dashboard-mobile-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.dashboard-mobile-kpi {
    padding: 0.72rem 0.78rem;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.36);
}

.dashboard-mobile-kpi--wide {
    grid-column: 1 / -1;
}

body[data-theme='dark'] .dashboard-mobile-kpi {
    background: rgba(10, 14, 22, 0.38);
}

.dashboard-mobile-kpi__label,
.dashboard-mobile-glance__title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ui-muted);
    font-weight: 700;
}

.dashboard-mobile-kpi__value {
    margin-top: 0.22rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ui-text);
}

.dashboard-mobile-glance__section + .dashboard-mobile-glance__section {
    margin-top: 0.9rem;
}

.dashboard-mobile-glance__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.55rem;
}

.dashboard-mobile-glance__scroller {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.dashboard-mobile-glance__trend-card {
    min-width: 0;
    padding: 0.78rem;
    border-radius: 18px;
}

.dashboard-mobile-queue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.dashboard-alert-row--compact {
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    padding: 0.72rem 0.78rem;
    border-radius: 18px;
}

.dashboard-alert-row--compact .dashboard-alert-row__text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-mobile-alerts {
    display: grid;
    gap: 0.55rem;
}

.dashboard-panel.dashboard-mobile-glance {
    padding: 0.82rem;
}

.dashboard-mobile-glance .dashboard-panel__note {
    font-size: 0.72rem;
}

.dashboard-mobile-glance .dashboard-alert-row__icon,
.dashboard-mobile-glance .dashboard-monitor-card__icon,
.dashboard-mobile-glance .dashboard-trend-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.94rem;
}

.dashboard-mobile-glance .dashboard-alert-row__title {
    font-size: 0.85rem;
}

.dashboard-mobile-glance .dashboard-alert-row__text {
    margin-top: 0.18rem;
    font-size: 0.74rem;
    line-height: 1.35;
}

.dashboard-mobile-glance .dashboard-tone {
    min-height: 24px;
    padding: 0.22rem 0.5rem;
    font-size: 0.64rem;
}

.dashboard-mobile-glance .dashboard-trend-card__top,
.dashboard-mobile-glance .dashboard-monitor-card__top {
    margin-bottom: 0.55rem;
}

.dashboard-mobile-glance .dashboard-trend-card__label,
.dashboard-mobile-glance .dashboard-monitor-card__label {
    font-size: 0.68rem;
}

.dashboard-mobile-glance .dashboard-trend-card__value,
.dashboard-mobile-glance .dashboard-monitor-card__value {
    font-size: 1.02rem;
}

.dashboard-mobile-glance .dashboard-trend-card__meta,
.dashboard-mobile-glance .dashboard-monitor-card__meta {
    margin-top: 0.18rem;
    font-size: 0.73rem;
    line-height: 1.35;
}

.dashboard-mobile-glance .dashboard-trend-card__meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-mobile-glance .dashboard-monitor-card {
    padding: 0.78rem;
    border-radius: 18px;
}

.dashboard-filter-bar,
.dashboard-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-page-header__main {
    min-width: 0;
}

.admin-page-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

.admin-page-header__title {
    margin: 0.22rem 0 0;
    font-size: clamp(1.28rem, 2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--ui-text);
}

.admin-page-header__subtitle {
    margin: 0.45rem 0 0;
    max-width: 56rem;
    color: var(--ui-text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.admin-page-header__aside {
    flex: 0 0 auto;
    min-width: 180px;
}

.admin-page-header__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.admin-page-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 32px;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.48);
    color: var(--ui-text-soft);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
}

body[data-theme='dark'] .admin-page-chip {
    background: rgba(10, 14, 22, 0.52);
}

.admin-queue-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.admin-queue-stat {
    padding: 0.82rem 0.88rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.38);
    box-shadow: var(--ui-shadow-sm);
}

body[data-theme='dark'] .admin-queue-stat {
    background: rgba(10, 14, 22, 0.44);
}

.admin-queue-stat__label {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

.admin-queue-stat__value {
    display: block;
    margin-top: 0.24rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ui-text);
}

.admin-queue-stat__meta {
    display: block;
    margin-top: 0.14rem;
    color: var(--ui-text-soft);
    font-size: 0.76rem;
}

.admin-empty-state {
    display: grid;
    justify-items: start;
    gap: 0.6rem;
    padding: 1.05rem;
    border-radius: 18px;
    border: 1px dashed var(--ui-border);
    background: rgba(255, 255, 255, 0.28);
}

body[data-theme='dark'] .admin-empty-state {
    background: rgba(10, 14, 22, 0.34);
}

.admin-empty-state__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 1rem;
}

.admin-empty-state__title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ui-text);
}

.admin-empty-state__text {
    margin: 0;
    color: var(--ui-text-soft);
    font-size: 0.84rem;
    line-height: 1.5;
    max-width: 42rem;
}

.admin-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.admin-queue-mobile-list {
    display: grid;
    gap: 0.75rem;
}

.admin-queue-card {
    position: relative;
    padding: 0.88rem;
    border-radius: 20px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.38);
    box-shadow: var(--ui-shadow-sm);
}

body[data-theme='dark'] .admin-queue-card {
    background: rgba(10, 14, 22, 0.44);
}

.admin-queue-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.admin-queue-card__eyebrow {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

.admin-queue-card__title {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ui-text);
}

.admin-queue-card__amount {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ui-text);
    text-align: right;
    white-space: nowrap;
}

.admin-queue-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.72rem;
}

.admin-queue-card__meta-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-top: 0.18rem;
}

.admin-queue-card__age {
    font-size: 0.72rem;
    color: var(--ui-muted);
    white-space: nowrap;
}

.admin-queue-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 0.75rem;
    margin-top: 0.8rem;
}

.admin-queue-card__meta {
    min-width: 0;
}

.admin-queue-card__meta--full {
    grid-column: 1 / -1;
}

.admin-queue-card__label {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

.admin-queue-card__value {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--ui-text-soft);
    word-break: break-word;
}

.admin-queue-card__value a {
    color: var(--ui-text);
}

.admin-queue-card__value--strong {
    color: var(--ui-text);
    font-weight: 600;
}

.admin-queue-card__value--clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.admin-queue-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.admin-queue-card__actions .btn {
    min-height: 38px;
}

.admin-queue-card__actions .btn-outline-light {
    border-color: var(--ui-border);
    color: var(--ui-text-soft);
    background: transparent;
}

.admin-queue-card__actions .btn-outline-light:hover,
.admin-queue-card__actions .btn-outline-light:focus {
    color: var(--ui-text);
    background: rgba(255, 255, 255, 0.08);
}

.admin-queue-card__form {
    margin: 0;
}

.admin-queue-card__form--inline {
    flex: 1 1 calc(50% - 0.55rem);
    min-width: 0;
}

.admin-queue-card__form--inline .btn,
.admin-queue-card__form--stacked .btn {
    min-height: 38px;
}

.admin-queue-card__form--stacked {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--ui-border);
}

.admin-queue-card__form--stacked textarea.form-control {
    min-height: 76px;
    resize: vertical;
}

body.app-shell-admin .admin-config-page .admin-page-chip {
    min-height: 28px;
    padding: 0.28rem 0.6rem;
    font-size: 0.7rem;
}

body.app-shell-admin .admin-user-record-page__meta-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.32rem 0;
    color: var(--ui-text-soft);
}

body.app-shell-admin .admin-user-record-page__meta-list li + li {
    border-top: 1px solid var(--ui-border);
}

body.app-shell-admin .admin-user-record-page__meta-list .font-weight-semibold {
    color: var(--ui-text);
}

body.app-shell-admin .admin-user-record-page__actions-panel {
    margin-bottom: 1rem;
}

body.app-shell-admin .admin-user-record-page__workspace-row {
    display: none;
}

body.app-shell-admin .admin-user-record-page__action-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

body.app-shell-admin .admin-user-record-page__action-glance,
body.app-shell-admin .admin-user-record-page__upgrade-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

body.app-shell-admin .admin-user-record-page__action-glance-card,
body.app-shell-admin .admin-user-record-page__upgrade-summary-card {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    min-width: 0;
}

body[data-theme='dark'].app-shell-admin .admin-user-record-page__action-glance-card,
body[data-theme='dark'].app-shell-admin .admin-user-record-page__upgrade-summary-card {
    background: var(--ui-surface-subtle);
}

body.app-shell-admin .admin-user-record-page__action-glance-card strong,
body.app-shell-admin .admin-user-record-page__upgrade-summary-card strong {
    color: var(--ui-text);
    font-size: 0.96rem;
    line-height: 1.3;
}

body.app-shell-admin .admin-user-record-page__action-glance-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

body.app-shell-admin .admin-user-record-page__action-glance-meta {
    color: var(--ui-text-soft);
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Account actions panel header Ã¢â€â‚¬Ã¢â€â‚¬ */
body.app-shell-admin .admin-actions-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.75rem;
}

body.app-shell-admin .admin-actions-panel-header__copy {
    min-width: 0;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Stat strip (replaces stacked glance cards on mobile) Ã¢â€â‚¬Ã¢â€â‚¬ */
body.app-shell-admin .admin-actions-stat-strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    padding: 0 1.1rem 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.app-shell-admin .admin-actions-stat-strip::-webkit-scrollbar {
    display: none;
}

body.app-shell-admin .admin-actions-stat-strip__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    min-width: 0;
}

body[data-theme='dark'].app-shell-admin .admin-actions-stat-strip__item {
    background: var(--ui-surface-subtle);
}

body.app-shell-admin .admin-actions-stat-strip__icon {
    font-size: 1.1rem;
    color: var(--ui-muted);
    flex-shrink: 0;
}

body.app-shell-admin .admin-actions-stat-strip__body {
    display: grid;
    gap: 0.06rem;
    min-width: 0;
}

body.app-shell-admin .admin-actions-stat-strip__label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ui-muted);
    white-space: nowrap;
}

body.app-shell-admin .admin-actions-stat-strip__value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ui-text);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Enhanced icon tab bar Ã¢â€â‚¬Ã¢â€â‚¬ */
body.app-shell-admin .admin-action-tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0 1.1rem 0.85rem;
}

body.app-shell-admin .admin-action-tabbar--mobile {
    padding-top: 0.15rem;
}

body.app-shell-admin .admin-action-tabbar__tab {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.65rem 0.5rem;
    border-radius: 14px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    color: var(--ui-text-soft);
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    cursor: pointer;
    width: 100%;
}

body[data-theme='dark'].app-shell-admin .admin-action-tabbar__tab {
    background: var(--ui-surface-subtle);
}

body.app-shell-admin .admin-action-tabbar__tab:hover {
    text-decoration: none;
    background: rgba(109, 75, 255, 0.07);
    border-color: rgba(109, 75, 255, 0.2);
    color: var(--ui-text);
}

body.app-shell-admin .admin-action-tabbar__tab.is-active,
body.app-shell-admin .admin-action-tabbar__tab.active {
    background: rgba(109, 75, 255, 0.1);
    border-color: rgba(109, 75, 255, 0.32);
    color: #6d4bff;
    box-shadow: 0 2px 8px rgba(109, 75, 255, 0.14);
    text-decoration: none;
}

body[data-theme='dark'].app-shell-admin .admin-action-tabbar__tab.is-active,
body[data-theme='dark'].app-shell-admin .admin-action-tabbar__tab.active {
    background: rgba(109, 75, 255, 0.14);
}

body.app-shell-admin .admin-action-tabbar__icon {
    font-size: 1.15rem;
    line-height: 1;
}

body.app-shell-admin .admin-action-tabbar__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Inline notice (replaces bulky alert in upgrade tab) Ã¢â€â‚¬Ã¢â€â‚¬ */
body.app-shell-admin .admin-actions-inline-notice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    margin-bottom: 1rem;
}

body[data-theme='dark'].app-shell-admin .admin-actions-inline-notice {
    background: var(--ui-surface-subtle);
}

body.app-shell-admin .admin-actions-inline-notice__copy {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.84rem;
    line-height: 1.4;
}

body.app-shell-admin .admin-actions-inline-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    flex-shrink: 0;
}

body.app-shell-admin .admin-user-record-page__action-tabs {
    margin-bottom: 1rem;
}


body.app-shell-admin .admin-user-record-page__action-content {
    min-width: 0;
}

body.app-shell-admin .admin-user-record-page__action-content--mobile {
    padding: 0 1.1rem 0.2rem;
}

body.app-shell-admin .admin-user-record-page__action-content--mobile > .tab-pane {
    padding: 0.95rem 1rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
}

body[data-theme='dark'].app-shell-admin .admin-user-record-page__action-content--mobile > .tab-pane {
    background: var(--ui-surface-subtle);
}

body.app-shell-admin .admin-user-record-page__action-pane {
    display: grid;
    gap: 1rem;
}

body.app-shell-admin .admin-account-action-form .wallet-form-section {
    padding: 0.95rem 1rem 1rem;
    border-radius: 18px;
    background: var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
}

body[data-theme='dark'].app-shell-admin .admin-account-action-form .wallet-form-section {
    background: var(--ui-surface-subtle);
}

body.app-shell-admin .admin-account-action-form .wallet-form-section + .wallet-form-section {
    margin-top: 0.85rem;
}

body.app-shell-admin .admin-account-action-form .wallet-form-section__title {
    margin-bottom: 0.8rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ui-muted);
}

body.app-shell-admin .admin-account-action-form .wallet-amount-field {
    display: flex;
    align-items: stretch;
    min-height: 50px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-admin .admin-account-action-form .wallet-amount-field__prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0 0.95rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ui-text);
    background: rgba(109, 75, 255, 0.08);
}

body.app-shell-admin .admin-account-action-form .wallet-amount-field__input.form-control {
    min-height: 50px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding-left: 1rem;
}

body.app-shell-admin .admin-account-action-form .wallet-amount-field__input.form-control:focus {
    box-shadow: none;
}

body.app-shell-admin .admin-account-action-form .wallet-transfer-note {
    color: var(--ui-text-soft);
    font-size: 0.84rem;
    line-height: 1.45;
}

body.app-shell-admin .admin-account-action-form .wallet-transfer-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

body.app-shell-admin .admin-user-record-page__action-pane-copy h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell-admin .admin-user-record-page__action-pane-copy p {
    margin: 0.35rem 0 0;
    color: var(--ui-text-soft);
    font-size: 0.84rem;
    line-height: 1.6;
}

body.app-shell-admin .admin-user-record-page__action-accordion {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.2rem;
}

body.app-shell-admin .admin-user-record-page__action-accordion-card {
    margin: 0;
    border: 1px solid var(--ui-border);
    border-radius: 18px;
    background: var(--ui-surface-soft);
    overflow: hidden;
}

body[data-theme='dark'].app-shell-admin .admin-user-record-page__action-accordion-card {
    background: var(--ui-surface-subtle);
}

body.app-shell-admin .admin-user-record-page__action-accordion-head {
    padding: 0;
    border-bottom: 0;
    background: transparent;
}

body.app-shell-admin .admin-user-record-page__action-accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 0;
    color: var(--ui-text);
    font-weight: 700;
    text-decoration: none;
    gap: 0.75rem;
}

body.app-shell-admin .admin-user-record-page__action-accordion-trigger:hover,
body.app-shell-admin .admin-user-record-page__action-accordion-trigger:focus {
    text-decoration: none;
    color: var(--ui-text);
}

body.app-shell-admin .admin-user-record-page__action-accordion-trigger > span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

body.app-shell-admin .admin-user-record-page__action-accordion-card .card-body {
    padding: 0.95rem 1rem 1rem;
    border-top: 1px solid var(--ui-border);
}

body.app-shell-admin .admin-user-record-page__upgrade-highlight {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(109, 75, 255, 0.16);
    background: rgba(109, 75, 255, 0.08);
}

body[data-theme='dark'].app-shell-admin .admin-user-record-page__upgrade-highlight {
    background: rgba(109, 75, 255, 0.12);
}

body.app-shell-admin .admin-user-record-page__upgrade-highlight-copy {
    min-width: 0;
}

body.app-shell-admin .admin-user-record-page__upgrade-highlight-copy .text-muted {
    color: var(--ui-text-soft) !important;
}

body.app-shell-admin .admin-user-record-page__upgrade-highlight-value {
    flex: 0 0 auto;
    text-align: right;
}

body.app-shell-admin .admin-user-record-page__tabs {
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
}

body.app-shell-admin .admin-user-record-page__tabs .nav-item {
    flex: 0 0 auto;
}

body.app-shell-admin .admin-user-record-page__tabs .nav-link {
    white-space: nowrap;
    border-radius: 999px;
}

body.app-shell-admin .admin-record-jumpbar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--ui-border);
    border-radius: 1rem;
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-sm);
}

body.app-shell-admin .admin-record-jumpbar__label {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ui-text-soft);
}

body.app-shell-admin .admin-record-jumpbar__links {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 0.5rem;
}

body.app-shell-admin .admin-record-jumpbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(90, 98, 214, 0.09);
    color: var(--ui-text);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

body.app-shell-admin .admin-record-jumpbar__link:hover {
    text-decoration: none;
    background: rgba(90, 98, 214, 0.16);
    color: var(--ui-text);
}

body.app-shell-admin .admin-record-jumpbar__count,
body.app-shell-admin .admin-log-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.08);
    color: var(--ui-text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

body[data-theme='dark'] .admin-record-jumpbar__count,
body[data-theme='dark'] .admin-log-count {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
}

body.app-shell-admin .admin-user-record-page__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

body.app-shell-admin .admin-user-record-page__mobile-list {
    display: none;
}

body.app-shell-admin .admin-user-record-page__log-row[id] {
    scroll-margin-top: 6rem;
}

.admin-queue-compact-list {
    display: grid;
    gap: 0.55rem;
}

.admin-queue-compact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.34);
}

body[data-theme='dark'] .admin-queue-compact-row {
    background: rgba(10, 14, 22, 0.4);
}

.admin-queue-compact-row__main {
    min-width: 0;
}

.admin-queue-compact-row__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.admin-queue-compact-row__title {
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ui-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-queue-compact-row__amount {
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ui-text);
}

.admin-queue-compact-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin-top: 0.22rem;
    font-size: 0.74rem;
    color: var(--ui-text-soft);
}

.admin-queue-compact-row__meta strong {
    color: var(--ui-text);
    font-weight: 600;
}

.admin-queue-compact-row__action .btn {
    min-height: 36px;
    min-width: 72px;
}

.admin-queue-compact-row__action-stack {
    display: grid;
    gap: 0.35rem;
}

.admin-queue-compact-row__action-stack .btn {
    min-height: 36px;
    min-width: 72px;
}

.admin-panel__aside {
    display: grid;
    justify-items: end;
    gap: 0.55rem;
}

.admin-panel__actions {
    margin-top: 0;
    justify-content: flex-end;
}

.admin-panel__footer {
    margin-top: 1rem;
}

.admin-table-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.admin-table-toolbar__meta {
    min-width: 0;
}

.admin-table-toolbar__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ui-text);
}

.admin-table-toolbar__note {
    margin: 0.22rem 0 0;
    color: var(--ui-text-soft);
    font-size: 0.84rem;
    line-height: 1.5;
}

.admin-table-toolbar__aside {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.admin-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.admin-detail-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-detail-card {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.5);
}

body[data-theme='dark'] .admin-detail-card {
    background: rgba(10, 14, 22, 0.42);
}

.admin-detail-card__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

.admin-detail-card__value {
    display: block;
    margin-top: 0.22rem;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--ui-text);
}

.admin-detail-card__meta {
    display: block;
    margin-top: 0.22rem;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--ui-text-soft);
}

.admin-detail-list {
    display: grid;
    gap: 0.75rem;
}

.admin-detail-list__item {
    display: grid;
    gap: 0.22rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.44);
}

body[data-theme='dark'] .admin-detail-list__item {
    background: rgba(10, 14, 22, 0.4);
}

.admin-detail-list__title {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--ui-text);
}

.admin-detail-list__meta {
    font-size: 0.76rem;
    color: var(--ui-muted);
}

.admin-transaction-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.admin-transaction-editor__warning {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(214, 168, 26, 0.24);
    background: rgba(255, 247, 219, 0.92);
    color: #6d5208;
}

body[data-theme='dark'] .admin-transaction-editor__warning {
    background: rgba(70, 53, 7, 0.34);
    border-color: rgba(224, 182, 58, 0.26);
    color: #f3df9b;
}

.admin-transaction-editor__warning i {
    font-size: 1.1rem;
    margin-top: 0.05rem;
}

.admin-transaction-editor__form {
    display: grid;
    gap: 1rem;
}

.admin-transaction-editor__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-transaction-editor__field--full {
    grid-column: 1 / -1;
}

.admin-transaction-editor__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-transaction-editor__meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-transaction-editor__meta-item {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.52);
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

body[data-theme='dark'] .admin-transaction-editor__meta-item {
    background: rgba(10, 14, 22, 0.42);
}

.admin-transaction-editor__meta-item--full {
    grid-column: 1 / -1;
}

.admin-transaction-editor__meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ui-text-soft);
}

.admin-transaction-editor__meta-value {
    color: var(--ui-text-strong);
    line-height: 1.5;
}

.admin-transaction-editor__proof {
    padding: 0.4rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.52);
}

body[data-theme='dark'] .admin-transaction-editor__proof {
    background: rgba(10, 14, 22, 0.42);
}

.admin-transaction-editor__proof-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.admin-transaction-editor__rules {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.6rem;
    color: var(--ui-text);
}

.admin-transaction-editor__alert {
    margin: 0;
}

.admin-detail-list__text {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--ui-text-soft);
    word-break: break-word;
}

.admin-thread {
    display: grid;
    gap: 0.8rem;
}

.admin-thread__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.admin-thread__item.is-admin {
    grid-template-columns: minmax(0, 1fr) auto;
}

.admin-thread__avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.5);
    object-fit: cover;
}

body[data-theme='dark'] .admin-thread__avatar {
    background: rgba(10, 14, 22, 0.56);
}

.admin-thread__bubble {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: var(--ui-shadow-soft);
}

body[data-theme='dark'] .admin-thread__bubble {
    background: rgba(10, 14, 22, 0.46);
}

.admin-thread__item.is-admin .admin-thread__bubble {
    background: rgba(109, 75, 255, 0.12);
}

body[data-theme='dark'] .admin-thread__item.is-admin .admin-thread__bubble {
    background: rgba(109, 75, 255, 0.18);
}

.admin-thread__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.admin-thread__author {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ui-text);
}

.admin-thread__time {
    font-size: 0.74rem;
    color: var(--ui-muted);
}

.admin-thread__message {
    font-size: 0.83rem;
    line-height: 1.6;
    color: var(--ui-text-soft);
    white-space: pre-wrap;
}

.admin-thread-composer {
    display: grid;
    gap: 0.9rem;
}

.admin-thread-composer textarea.form-control {
    min-height: 136px;
    resize: vertical;
}

.admin-thread-composer__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-action-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
}

.admin-action-menu__menu {
    min-width: 13rem;
    padding: 0.35rem;
    border-radius: 16px;
    border-color: var(--ui-border);
    box-shadow: var(--ui-shadow-md);
}

.admin-action-menu__item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 10px;
    white-space: normal;
}

.admin-action-menu__item i {
    width: 1rem;
    text-align: center;
}

.admin-confirm-dialog .modal-content {
    overflow: hidden;
}

.admin-confirm-dialog .modal-title {
    font-size: 1rem;
    line-height: 1.35;
}

.admin-confirm-dialog .modal-body {
    display: grid;
    gap: 0.85rem;
}

.admin-confirm-dialog .modal-body p {
    margin: 0;
    color: var(--ui-text-soft);
    line-height: 1.55;
}

.admin-confirm-dialog .modal-footer .btn-link {
    color: var(--ui-muted);
}

.admin-table-media-thumb {
    display: block;
    width: 72px;
    height: 40px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.48);
    padding: 0.35rem;
}

body[data-theme='dark'] .admin-table-media-thumb {
    background: rgba(10, 14, 22, 0.52);
}

@media (max-width: 767.98px) {
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }

    .admin-transaction-editor__grid,
    .admin-transaction-editor__meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-transaction-editor__footer {
        align-items: stretch;
    }

    .admin-transaction-editor__footer .btn {
        width: 100%;
    }

    .admin-thread__item,
    .admin-thread__item.is-admin {
        grid-template-columns: 1fr;
    }

    .admin-thread__avatar {
        display: none;
    }

    .admin-thread-composer__actions .btn {
        width: 100%;
    }

    .admin-panel__aside,
    .admin-table-toolbar__aside {
        justify-items: start;
        justify-content: flex-start;
    }

    .admin-table-toolbar {
        flex-direction: column;
    }
}

.dashboard-filter-bar {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    padding: 0.85rem 0.9rem;
    border-radius: 20px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.3);
}

body[data-theme='dark'] .dashboard-filter-bar {
    background: rgba(10, 14, 22, 0.38);
}

.dashboard-filter-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ui-muted);
    font-weight: 700;
    padding-right: 0.2rem;
}

.dashboard-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.52);
    color: var(--ui-text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body[data-theme='dark'] .dashboard-filter-chip {
    background: rgba(15, 23, 42, 0.62);
}

.dashboard-filter-chip:hover,
.dashboard-filter-chip.is-active {
    color: var(--ui-text);
    text-decoration: none;
    border-color: rgba(109, 75, 255, 0.28);
    background: var(--ui-chip-bg);
    transform: translateY(-1px);
}

body.app-shell-admin .admin-submission-workspace-switch {
    gap: 0.5rem;
}

body.app-shell-admin .admin-submission-mobile-list {
    display: grid;
    gap: 0.85rem;
}

body.app-shell-admin .admin-submission-card {
    display: block;
    padding: 1rem;
}

body.app-shell-admin .admin-submission-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

body.app-shell-admin .admin-submission-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    color: var(--ui-muted);
    font-size: 0.82rem;
}

body.app-shell-admin .admin-submission-card__main,
body.app-shell-admin .admin-submission-card__title,
body.app-shell-admin .admin-submission-card__identity,
body.app-shell-admin .admin-submission-card__email {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.app-shell-admin .admin-submission-card__title {
    line-height: 1.35;
}

body.app-shell-admin .admin-submission-card__identity {
    margin-top: 0.18rem;
}

body.app-shell-admin .admin-submission-card__email {
    color: var(--ui-text-soft);
}

body.app-shell-admin .admin-submission-card__actions {
    gap: 0.55rem;
}

body.app-shell-admin .admin-submission-card__actions .btn {
    flex: 1 1 calc(50% - 0.55rem);
    min-width: 0;
}

body.app-shell-admin .admin-submission-mobile-stack {
    display: grid;
    gap: 0.8rem;
}

body.app-shell-admin .admin-submission-meta-card,
body.app-shell-admin .admin-submission-payload-card,
body.app-shell-admin .admin-submission-file-card {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body[data-theme='dark'].app-shell-admin .admin-submission-meta-card,
body[data-theme='dark'].app-shell-admin .admin-submission-payload-card,
body[data-theme='dark'].app-shell-admin .admin-submission-file-card {
    background: var(--ui-surface-subtle);
}

body.app-shell-admin .admin-submission-file-list {
    margin-bottom: 0;
}

body.app-shell-admin .admin-submission-filter-bar {
    overflow-x: auto;
    scrollbar-width: thin;
}

body.app-shell-admin .admin-submission-filter-bar .dashboard-filter-group {
    flex-wrap: nowrap;
    min-width: max-content;
}

body.app-shell-admin .admin-submission-section-list,
body.app-shell-admin .admin-submission-review-stack,
body.app-shell-admin .admin-submission-timeline {
    display: grid;
    gap: 0.9rem;
}

body.app-shell-admin .admin-submission-section-card,
body.app-shell-admin .admin-submission-review-card,
body.app-shell-admin .admin-submission-timeline__item {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body[data-theme='dark'].app-shell-admin .admin-submission-section-card,
body[data-theme='dark'].app-shell-admin .admin-submission-review-card,
body[data-theme='dark'].app-shell-admin .admin-submission-timeline__item {
    background: var(--ui-surface-subtle);
}

body.app-shell-admin .admin-submission-section-card__header,
body.app-shell-admin .admin-submission-file-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

body.app-shell-admin .admin-submission-section-card__title {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell-admin .admin-submission-section-card__note {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ui-text-soft);
}

body.app-shell-admin .admin-submission-kv-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

body.app-shell-admin .admin-submission-kv {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

body.app-shell-admin .admin-submission-kv__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

body.app-shell-admin .admin-submission-kv__value {
    color: var(--ui-text);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

body.app-shell-admin .admin-submission-file-grid {
    gap: 0.9rem;
}

body.app-shell-admin .admin-submission-file-card__link {
    display: inline-block;
    margin-top: 0.7rem;
    color: var(--ui-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

body.app-shell-admin .admin-submission-review-card {
    display: grid;
    gap: 0.75rem;
}

body.app-shell-admin .admin-submission-review-card__label {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

body.app-shell-admin .admin-submission-review-panel .dashboard-panel__header {
    align-items: flex-start;
}

body.app-shell-admin .admin-submission-detail-page [id] {
    scroll-margin-top: 6rem;
}

body.app-shell-admin .admin-submission-detail-page__header {
    margin-bottom: 1rem;
}

body.app-shell-admin .admin-submission-detail-page__strip {
    margin-bottom: 1rem;
}

body.app-shell-admin .admin-dashboard-mobile-header {
    margin-bottom: 0.85rem;
}

body.app-shell-admin .admin-dashboard-mobile-header .admin-page-header__chips {
    margin-bottom: 0;
}

body.app-shell-admin .admin-settings-page__header,
body.app-shell-admin .admin-gateway-page__header {
    margin-bottom: 1rem;
}

body.app-shell-admin .admin-settings-page__strip,
body.app-shell-admin .admin-gateway-page__strip {
    margin-bottom: 1rem;
}

body.app-shell-admin .admin-settings-page .dashboard-panel,
body.app-shell-admin .admin-settings-page.dashboard-panel,
body.app-shell-admin .admin-gateway-page .card-body {
    min-width: 0;
}

body.app-shell-admin .admin-settings-page .form-group label,
body.app-shell-admin .admin-gateway-page .form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ui-text-soft);
}

body.app-shell-admin .admin-builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

body.app-shell-admin .admin-builder-item-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.95rem 1rem 0;
}

body.app-shell-admin .admin-builder-item-summary__content {
    min-width: 0;
    display: grid;
    gap: 0.45rem;
}

body.app-shell-admin .admin-builder-item-summary__title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ui-text);
    overflow-wrap: anywhere;
}

body.app-shell-admin .admin-builder-item-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

body.app-shell-admin .admin-builder-summary-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-subtle);
    color: var(--ui-muted);
    font-size: 0.76rem;
    line-height: 1.2;
}

body.app-shell-admin .admin-builder-item-summary__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

body.app-shell-admin .admin-builder-item-body {
    width: 100%;
    padding-top: 0.45rem;
}

body.app-shell-admin .admin-builder-item-actions {
    padding: 0 1rem 1rem;
}

body.app-shell-admin [data-mobile-builder-panel].is-collapsed [data-mobile-panel-body] {
    display: none !important;
}

body.app-shell-admin .admin-builder-option-list {
    display: grid;
    gap: 0.7rem;
}

body.app-shell-admin .admin-builder-option-item {
    padding: 0.8rem 0.85rem;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-subtle);
}

body.app-shell-admin .admin-mobile-panel-toggle {
    display: none;
}

body.app-shell-admin .admin-builder-actions .btn.is-active {
    color: var(--ui-text);
    border-color: rgba(109, 75, 255, 0.3);
    background: var(--ui-chip-bg);
}

body.app-shell-admin .admin-builder-library {
    display: grid;
    gap: 1rem;
}

body.app-shell-admin .admin-builder-library--templates {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.app-shell-admin .admin-builder-library__group {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
}

body.app-shell-admin .admin-builder-status-panel .dashboard-panel__header {
    align-items: flex-start;
}

body.app-shell-admin .admin-builder-restore {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(109, 75, 255, 0.18);
    background: rgba(109, 75, 255, 0.08);
}

body.app-shell-admin .admin-builder-warning-list {
    display: grid;
    gap: 0.55rem;
}

body.app-shell-admin .admin-builder-warning-item {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    width: 100%;
    padding: 0.82rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 177, 0, 0.18);
    background: rgba(255, 177, 0, 0.08);
    color: var(--ui-text);
    font-size: 0.84rem;
    text-align: left;
    appearance: none;
    font: inherit;
}

body.app-shell-admin .admin-builder-warning-item .ph {
    margin-top: 0.08rem;
    color: #c88400;
}

body.app-shell-admin .admin-builder-warning-item__action {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: #c88400;
}

body.app-shell-admin .admin-builder-warning-item.is-clickable {
    cursor: pointer;
}

body.app-shell-admin .admin-builder-drop-hint {
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    border: 1px dashed var(--ui-border);
    color: var(--ui-muted);
    font-size: 0.74rem;
    text-align: center;
    background: var(--ui-surface-subtle);
}

body.app-shell-admin [data-section-row],
body.app-shell-admin [data-field-row] {
    cursor: grab;
}

body.app-shell-admin [data-section-row].is-dragging,
body.app-shell-admin [data-field-row].is-dragging {
    opacity: 0.6;
    cursor: grabbing;
}

body.app-shell-admin [data-section-row].is-drop-target,
body.app-shell-admin [data-field-row].is-drop-target {
    border-color: rgba(109, 75, 255, 0.38);
    box-shadow: 0 0 0 2px rgba(109, 75, 255, 0.1);
}

body.app-shell-admin [data-field-row].is-focused {
    border-color: rgba(109, 75, 255, 0.42);
    box-shadow: 0 0 0 3px rgba(109, 75, 255, 0.12);
}

body.app-shell-admin .admin-field-config-panel .dashboard-summary-card {
    background: var(--ui-surface-subtle);
    border: 1px solid var(--ui-border);
    min-height: 100%;
}

body.app-shell-admin .admin-workflow-setting-group .dashboard-summary-card {
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
}

body.app-shell-admin .admin-builder-issue-list {
    display: grid;
    gap: 0.75rem;
}

body.app-shell-admin .admin-builder-issue-card {
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-subtle);
}

body.app-shell-admin .admin-builder-note-item {
    padding: 0.72rem 0.84rem;
    border-radius: 14px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-subtle);
    font-size: 0.82rem;
}

body.app-shell-admin .admin-builder-note-item + .admin-builder-note-item {
    margin-top: 0.6rem;
}

body.app-shell-admin .admin-builder-footer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom, 0));
    margin-top: 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.96) 100%);
    box-shadow: var(--ui-shadow-md);
}

body[data-theme='dark'].app-shell-admin .admin-builder-footer {
    background: linear-gradient(180deg, rgba(22, 24, 29, 0.92) 0%, rgba(15, 17, 21, 0.98) 100%);
}

body.app-shell-admin .admin-form-preview {
    border-radius: 24px;
    border: 1px solid var(--ui-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 22%),
        var(--ui-card-gradient);
    box-shadow: var(--ui-shadow-md);
    overflow: hidden;
}

body.app-shell-admin .admin-form-preview[data-preview-mode='mobile'] {
    max-width: 420px;
    margin: 0 auto;
}

body.app-shell-admin .admin-form-preview__hero,
body.app-shell-admin .admin-form-preview__footer {
    padding: 1.1rem 1.2rem;
}

body.app-shell-admin .admin-form-preview__hero {
    border-bottom: 1px solid var(--ui-border);
}

body.app-shell-admin .admin-form-preview__body {
    padding: 1.1rem 1.2rem;
    display: grid;
    gap: 1rem;
}

body.app-shell-admin .admin-form-preview__title {
    margin: 0.35rem 0 0.55rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell-admin .admin-form-preview__text {
    color: var(--ui-muted);
    font-size: 0.92rem;
}

body.app-shell-admin .admin-form-preview__section {
    display: grid;
    gap: 0.8rem;
}

body.app-shell-admin .admin-form-preview__section-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell-admin .admin-form-preview__section-header p {
    margin: 0.3rem 0 0;
    color: var(--ui-muted);
    font-size: 0.84rem;
}

body.app-shell-admin .admin-form-preview__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.8rem;
}

body.app-shell-admin .admin-form-preview__field {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

body.app-shell-admin .admin-form-preview__field--full {
    grid-column: span 6;
}

body.app-shell-admin .admin-form-preview__field--half {
    grid-column: span 3;
}

body.app-shell-admin .admin-form-preview__field--third {
    grid-column: span 2;
}

body.app-shell-admin .admin-form-preview__field label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell-admin .admin-form-preview__field label span {
    color: var(--ui-danger);
}

body.app-shell-admin .admin-form-preview__field small {
    color: var(--ui-muted);
    font-size: 0.76rem;
}

body.app-shell-admin .admin-form-preview__field .form-control {
    pointer-events: none;
}

body.app-shell-admin .admin-form-preview[data-preview-mode='mobile'] .admin-form-preview__grid {
    grid-template-columns: 1fr;
}

body.app-shell-admin .admin-form-preview[data-preview-mode='mobile'] .admin-form-preview__field--full,
body.app-shell-admin .admin-form-preview[data-preview-mode='mobile'] .admin-form-preview__field--half,
body.app-shell-admin .admin-form-preview[data-preview-mode='mobile'] .admin-form-preview__field--third {
    grid-column: span 1;
}

body.app-shell-admin .admin-form-preview__choices {
    display: grid;
    gap: 0.45rem;
}

body.app-shell-admin .admin-form-preview__choice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--ui-text-soft);
    font-size: 0.84rem;
}

body.app-shell-admin .admin-form-preview__file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px dashed var(--ui-border);
    color: var(--ui-muted);
    background: var(--ui-surface-soft);
    font-size: 0.82rem;
    font-weight: 600;
}

.dashboard-path-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
}

.dashboard-path-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ui-text-soft);
    background: var(--ui-chip-bg);
}

.dashboard-path-badge i {
    font-size: 0.84rem;
}

.dashboard-path-badge--automatic {
    color: #155e75;
    background: rgba(34, 211, 238, 0.14);
    border-color: rgba(8, 145, 178, 0.18);
}

.dashboard-path-badge--manual {
    color: #6d28d9;
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(147, 51, 234, 0.18);
}

.dashboard-path-badge--review {
    color: #92400e;
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(217, 119, 6, 0.18);
}

.dashboard-path-badge--config {
    color: #4338ca;
    background: rgba(129, 140, 248, 0.14);
    border-color: rgba(99, 102, 241, 0.18);
}

body[data-theme='dark'] .dashboard-path-badge {
    color: rgba(236, 239, 248, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme='dark'] .dashboard-path-badge--automatic {
    color: #8be9ff;
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.2);
}

body[data-theme='dark'] .dashboard-path-badge--manual {
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(168, 85, 247, 0.22);
}

body[data-theme='dark'] .dashboard-path-badge--review {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.22);
}

body[data-theme='dark'] .dashboard-path-badge--config {
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(99, 102, 241, 0.22);
}

.dashboard-alert-stack,
.dashboard-feed {
    display: grid;
    gap: 0.8rem;
}

.dashboard-alert-row,
.dashboard-monitor-card,
.dashboard-feed-item {
    position: relative;
    border-radius: 22px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.34);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body[data-theme='dark'] .dashboard-alert-row,
body[data-theme='dark'] .dashboard-monitor-card,
body[data-theme='dark'] .dashboard-feed-item {
    background: rgba(10, 14, 22, 0.38);
}

.dashboard-alert-row:hover,
.dashboard-monitor-card:hover,
.dashboard-feed-item:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(109, 75, 255, 0.28);
    box-shadow: var(--ui-shadow-lg);
}

.dashboard-alert-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.9rem;
}

.dashboard-alert-row__icon,
.dashboard-feed-item__icon,
.dashboard-monitor-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    flex: 0 0 auto;
}

.dashboard-alert-row__body,
.dashboard-feed-item__body {
    min-width: 0;
}

.dashboard-alert-row__top,
.dashboard-feed-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-feed-item__meta-group {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    min-width: 0;
}

.dashboard-alert-row__title,
.dashboard-feed-item__title,
.dashboard-monitor-card__label {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ui-text);
}

.dashboard-alert-row__text,
.dashboard-feed-item__text,
.dashboard-monitor-card__meta {
    margin: 0.25rem 0 0;
    font-size: 0.84rem;
    color: var(--ui-text-soft);
}

.dashboard-alert-row__meta {
    display: grid;
    justify-items: end;
    gap: 0.2rem;
    text-align: right;
}

.dashboard-alert-row__count,
.dashboard-monitor-card__value {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ui-text);
}

.dashboard-alert-row__cta {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ui-muted);
}

.dashboard-monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.dashboard-trend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.8rem;
}

.dashboard-monitor-card {
    display: block;
    padding: 0.9rem;
}

.dashboard-trend-card {
    display: block;
    padding: 0.95rem;
    border-radius: 22px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.34);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body[data-theme='dark'] .dashboard-trend-card {
    background: rgba(10, 14, 22, 0.38);
}

.dashboard-trend-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(109, 75, 255, 0.28);
    box-shadow: var(--ui-shadow-lg);
}

.dashboard-monitor-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.dashboard-monitor-card__label {
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.dashboard-trend-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.dashboard-trend-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
}

.dashboard-trend-card__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ui-muted);
    font-weight: 700;
}

.dashboard-trend-card__value {
    margin-top: 0.2rem;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--ui-text);
}

.dashboard-trend-card__meta {
    margin-top: 0.32rem;
    font-size: 0.82rem;
    color: var(--ui-text-soft);
}

.dashboard-trend-card__text {
    margin: 0.55rem 0 0;
    font-size: 0.83rem;
    color: var(--ui-text-soft);
}

.dashboard-feed-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.88rem 0.9rem;
}

.dashboard-feed-item__label,
.dashboard-feed-item__time {
    font-size: 0.76rem;
    color: var(--ui-muted);
}

.dashboard-feed-item__label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.dashboard-feed-item__meta-group .dashboard-path-badge {
    padding: 0.24rem 0.5rem;
    font-size: 0.6rem;
}

.dashboard-tone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

.dashboard-tone--danger {
    background: rgba(239, 68, 68, 0.12);
    color: var(--ui-danger);
    border-color: rgba(239, 68, 68, 0.16);
}

.dashboard-tone--warning {
    background: rgba(245, 158, 11, 0.12);
    color: var(--ui-warning);
    border-color: rgba(245, 158, 11, 0.16);
}

.dashboard-tone--success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--ui-success);
    border-color: rgba(34, 197, 94, 0.16);
}

.dashboard-tone--info {
    background: rgba(56, 189, 248, 0.12);
    color: var(--ui-info);
    border-color: rgba(56, 189, 248, 0.16);
}

.dashboard-alert-row--danger,
.dashboard-monitor-card--danger,
.dashboard-feed-item--danger {
    border-color: rgba(239, 68, 68, 0.16);
}

.dashboard-alert-row--warning,
.dashboard-monitor-card--warning,
.dashboard-feed-item--warning {
    border-color: rgba(245, 158, 11, 0.16);
}

.dashboard-alert-row--success,
.dashboard-monitor-card--success,
.dashboard-feed-item--success {
    border-color: rgba(34, 197, 94, 0.16);
}

.dashboard-alert-row--info,
.dashboard-monitor-card--info,
.dashboard-feed-item--info {
    border-color: rgba(56, 189, 248, 0.16);
}

.dashboard-trend-card--danger {
    border-color: rgba(239, 68, 68, 0.16);
}

.dashboard-trend-card--warning {
    border-color: rgba(245, 158, 11, 0.16);
}

.dashboard-trend-card--success {
    border-color: rgba(34, 197, 94, 0.16);
}

.dashboard-trend-card--info {
    border-color: rgba(56, 189, 248, 0.16);
}

.dashboard-status-row,
.dashboard-service-row {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 0.78rem 0.9rem;
}

.dashboard-service-row {
    color: inherit;
    text-decoration: none;
    border-radius: 22px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.34);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body[data-theme='dark'] .dashboard-service-row {
    background: rgba(10, 14, 22, 0.38);
}

.dashboard-service-row:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
    border-color: rgba(109, 75, 255, 0.28);
    box-shadow: var(--ui-shadow-lg);
}

.dashboard-status-row__icon,
.dashboard-service-row__icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
}

.dashboard-status-row__body,
.dashboard-service-row__body {
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-status-row__title,
.dashboard-service-row__title {
    margin: 0;
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--ui-text);
}

.dashboard-status-row__text,
.dashboard-service-row__text {
    margin: 0.2rem 0 0;
    color: var(--ui-text-soft);
    font-size: 0.84rem;
}

.dashboard-table-shell {
    padding: 1rem;
}

.dashboard-table-shell .table {
    margin-bottom: 0;
}

.dashboard-table-shell .table thead th {
    border-top: 0;
    border-bottom: 1px solid var(--ui-border);
    color: var(--ui-muted);
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.72rem;
}

.dashboard-table-shell .table tbody td,
.dashboard-table-shell .table tbody th {
    border-color: var(--ui-border);
    vertical-align: middle;
}

.dashboard-table-shell .table tbody tr:hover {
    background: rgba(109, 75, 255, 0.04);
}

.admin-queue-table__title {
    display: inline-flex;
    flex-direction: column;
    gap: 0.16rem;
}

.admin-queue-table__title strong {
    color: var(--ui-text);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.admin-queue-table__title small {
    color: var(--ui-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

.admin-queue-table__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.admin-queue-table__actions .dropdown-menu {
    min-width: 12rem;
}

.app-admin-navbar {
    position: sticky;
    top: 0;
    z-index: 1045;
    backdrop-filter: blur(16px);
}

.admin-mobile-drawer-head__label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

.admin-mobile-drawer-head {
    display: none;
}

.admin-page-header-shell {
    margin-bottom: 0;
    border-bottom: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(16px);
}

body[data-theme='dark'] .admin-page-header-shell {
    background: rgba(11, 15, 24, 0.74);
}

.admin-page-header-shell__content {
    padding-top: 0.82rem;
    padding-bottom: 0.82rem;
}

.admin-page-header-shell__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
}

@media (max-width: 767.98px) {
    .admin-page-header-shell__content {
        padding-top: 0.58rem;
        padding-bottom: 0.58rem;
    }
}

body.app-shell-user .form-group label,
body.app-shell-admin .form-group label,
body.app-shell-user .col-form-label,
body.app-shell-admin .col-form-label {
    color: var(--ui-text-soft);
    font-weight: 700;
}

body.app-shell-user .form-control,
body.app-shell-admin .form-control,
body.app-shell-user .custom-select,
body.app-shell-admin .custom-select,
body.app-shell-user input[type='text'],
body.app-shell-user input[type='email'],
body.app-shell-user input[type='password'],
body.app-shell-user input[type='number'],
body.app-shell-user input[type='tel'],
body.app-shell-user input[type='search'],
body.app-shell-user select,
body.app-shell-user textarea,
body.app-shell-admin input[type='text'],
body.app-shell-admin input[type='email'],
body.app-shell-admin input[type='password'],
body.app-shell-admin input[type='number'],
body.app-shell-admin input[type='tel'],
body.app-shell-admin input[type='search'],
body.app-shell-admin select,
body.app-shell-admin textarea {
    min-height: 48px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: var(--ui-field-bg);
    color: var(--ui-field-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.app-shell-user .form-control::placeholder,
body.app-shell-admin .form-control::placeholder,
body.app-shell-user textarea::placeholder,
body.app-shell-admin textarea::placeholder {
    color: rgba(100, 116, 139, 0.8);
}

body.app-shell-user .form-control:focus,
body.app-shell-admin .form-control:focus,
body.app-shell-user input:focus,
body.app-shell-admin input:focus,
body.app-shell-user select:focus,
body.app-shell-admin select:focus,
body.app-shell-user textarea:focus,
body.app-shell-admin textarea:focus {
    border-color: rgba(109, 75, 255, 0.46);
    box-shadow: 0 0 0 4px rgba(109, 75, 255, 0.12);
}

body.app-shell-user .input-group-text,
body.app-shell-admin .input-group-text {
    border: 1px solid var(--ui-border);
    border-radius: 16px;
    background: var(--ui-surface);
    color: var(--ui-text-soft);
}

body.app-shell-user .table-responsive,
body.app-shell-admin .table-responsive {
    border-radius: 20px;
}

body.app-shell-user .badge,
body.app-shell-admin .badge {
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

body.app-shell-user .btn-neutral,
body.app-shell-admin .btn-neutral {
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: linear-gradient(135deg, rgba(109, 75, 255, 0.12), rgba(51, 199, 255, 0.09));
    color: var(--ui-text);
    box-shadow: var(--ui-shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.app-shell-user .btn-neutral:hover,
body.app-shell-admin .btn-neutral:hover {
    color: var(--ui-text);
    border-color: rgba(109, 75, 255, 0.28);
    box-shadow: var(--ui-shadow);
    transform: translateY(-1px);
}

body.app-shell-user .btn-primary {
    border: none;
    color: var(--ui-primary-text);
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
    box-shadow: var(--ui-primary-shadow);
}

body.app-shell-user .btn-primary:hover {
    color: var(--ui-primary-text);
    box-shadow: var(--ui-primary-shadow-strong);
    transform: translateY(-1px);
}

body.app-shell-user .dashboard-home {
    padding-bottom: 4.75rem;
}

body.app-shell-user:not(.dashboard-reference-shell) .dashboard-home {
    padding-top: 1rem;
}

body.app-shell-user:not(.dashboard-reference-shell) .main-content > .container-fluid:not(.dashboard-home),
body.app-shell-user:not(.dashboard-reference-shell) .main-content > .content-wrapper > .container-fluid:not(.dashboard-home) {
    padding-top: 1rem;
}

body.app-shell-user:not(.dashboard-reference-shell) .container-fluid.dashboard-home.mt--5,
body.app-shell-user:not(.dashboard-reference-shell) .container-fluid.dashboard-home.mt--6,
body.app-shell-user:not(.dashboard-reference-shell) .container-fluid.dashboard-home.mt--7 {
    margin-top: 0 !important;
}

body.app-shell-user .dashboard-home__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    gap: 0.85rem;
    margin-bottom: 1rem;
}

body.app-shell-user .dashboard-home__hero-copy,
body.app-shell-user .dashboard-home__balance-card,
body.app-shell-user .dashboard-upcoming-card,
body.app-shell-user .dashboard-ring-card {
    position: relative;
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-xl);
    background: var(--ui-card-gradient);
    box-shadow: var(--ui-shadow);
    overflow: hidden;
}

body.app-shell-user .dashboard-home__hero-copy {
    padding: clamp(1.1rem, 1.9vw, 1.75rem);
}

body.app-shell-user .dashboard-home__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    background: var(--ui-chip-bg);
    border: 1px solid var(--ui-border);
    color: var(--ui-chip-text);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.app-shell-user .dashboard-home__title {
    margin: 0.8rem 0 0.3rem;
    font-size: clamp(1.65rem, 3.4vw, 2.9rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell-user .dashboard-home__subtitle {
    max-width: 42rem;
    margin: 0;
    color: var(--ui-text-soft);
    font-size: 0.92rem;
}

body.app-shell-user .dashboard-home__status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.1rem;
}

body.app-shell-user .dashboard-home__status-pill,
body.app-shell-user .dashboard-home__status-row .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.78rem;
    border-radius: 999px;
    font-weight: 700;
}

body.app-shell-user .dashboard-home__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

body.app-shell-user .dashboard-home__balance-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.55), transparent 24%),
        linear-gradient(135deg, rgba(109, 75, 255, 0.92) 0%, rgba(139, 92, 246, 0.88) 52%, rgba(51, 199, 255, 0.72) 100%);
    color: #ffffff;
}

body[data-theme='dark'] .dashboard-home__balance-card {
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(135deg, rgba(16, 20, 31, 0.94) 0%, rgba(24, 28, 43, 0.92) 52%, rgba(43, 20, 88, 0.84) 100%);
}

body.app-shell-user .dashboard-home__balance-card .dashboard-home__eyebrow,
body.app-shell-user .dashboard-home__balance-card .dashboard-home__subtitle,
body.app-shell-user .dashboard-home__balance-card .dashboard-home__metric-label,
body.app-shell-user .dashboard-home__balance-card .dashboard-home__metric-value {
    color: rgba(255, 255, 255, 0.92);
}

body.app-shell-user .dashboard-home__balance-card .dashboard-home__eyebrow {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}

body.app-shell-user .dashboard-home__balance-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

body.app-shell-user .dashboard-home__balance-value {
    margin-top: 0.7rem;
    font-size: clamp(1.8rem, 3.4vw, 2.75rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 700;
}

body.app-shell-user .dashboard-home__balance-note {
    margin-top: 0.45rem;
    max-width: 22rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
}

body.app-shell-user .dashboard-home__balance-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.9rem;
}

body.app-shell-user .dashboard-home__metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

body.app-shell-user .dashboard-home__metric {
    padding: 0.78rem 0.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.app-shell-user .dashboard-home__metric-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    opacity: 0.78;
}

body.app-shell-user .dashboard-home__metric-value {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.98rem;
    font-weight: 700;
}

body.app-shell-user .dashboard-home__hero,
body.app-shell-user .dashboard-home .row,
body.app-shell-user .wallet-send-grid,
body.app-shell-user .wallet-transfer-grid,
body.app-shell-user .wallet-withdraw-grid,
body.app-shell-user .payment-shell__grid {
    align-items: stretch;
}

body.app-shell-user .dashboard-home .row {
    row-gap: 0.85rem;
}

body.app-shell-user .dashboard-home .row > [class*='col-'] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.app-shell-user .dashboard-home__hero > *,
body.app-shell-user .dashboard-panel,
body.app-shell-user .dashboard-home__hero-copy,
body.app-shell-user .dashboard-home__balance-card,
body.app-shell-user .dashboard-upcoming-card,
body.app-shell-user .dashboard-quick-card,
body.app-shell-user .dashboard-table-shell,
body.app-shell-user .wallet-flow-panel,
body.app-shell-user .wallet-method-view__card,
body.app-shell-user .wallet-funding-option__card {
    min-width: 0;
    max-width: 100%;
}

body.app-shell-user .dashboard-home__title,
body.app-shell-user .dashboard-home__subtitle,
body.app-shell-user .dashboard-service-row__title,
body.app-shell-user .dashboard-service-row__text {
    overflow-wrap: anywhere;
}

body.app-shell-user .dashboard-home__circle-action {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
    flex: 0 0 auto;
}

body.app-shell-user .dashboard-home__circle-action:hover {
    color: #ffffff;
    text-decoration: none;
}

body.app-shell-user .dashboard-home__quick-grid,
body.app-shell-user .dashboard-home__upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

body.app-shell-user .dashboard-upcoming-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 150px;
    padding: 0.95rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.app-shell-user .dashboard-upcoming-card:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-2px);
    border-color: rgba(109, 75, 255, 0.28);
    box-shadow: var(--ui-shadow-lg);
}

body.app-shell-user .dashboard-upcoming-card--violet {
    background: linear-gradient(135deg, rgba(109, 75, 255, 0.96) 0%, rgba(139, 92, 246, 0.88) 100%);
    color: #ffffff;
}

body.app-shell-user .dashboard-upcoming-card--soft {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(238, 242, 255, 0.96) 100%);
}

body[data-theme='dark'] .dashboard-upcoming-card--soft {
    background: linear-gradient(135deg, rgba(16, 20, 31, 0.96) 0%, rgba(25, 30, 43, 0.96) 100%);
}

body.app-shell-user .dashboard-upcoming-card__eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.74;
}

body.app-shell-user .dashboard-upcoming-card__title {
    margin: 0;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.app-shell-user .dashboard-upcoming-card__text {
    margin: 0;
    color: inherit;
    opacity: 0.82;
    font-size: 0.84rem;
}

body.app-shell-user .dashboard-upcoming-card__footer {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-shell-user .dashboard-ring-card {
    padding: 1rem;
}

body.app-shell-user .dashboard-ring {
    --ring-primary: 60%;
    width: min(100%, 240px);
    aspect-ratio: 1;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    background:
        conic-gradient(from 140deg, var(--ui-primary) 0 var(--ring-primary), rgba(109, 75, 255, 0.18) var(--ring-primary) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.app-shell-user .dashboard-ring::after {
    content: '';
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: var(--ui-card-gradient);
    box-shadow: inset 0 0 0 1px var(--ui-border);
}

body.app-shell-user .dashboard-ring__inner {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    z-index: 1;
}

body.app-shell-user .dashboard-ring__value {
    font-size: clamp(1.8rem, 2.8vw, 2.3rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--ui-text);
}

body.app-shell-user .dashboard-ring__label {
    display: block;
    margin-top: 0.2rem;
    color: var(--ui-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

body.app-shell-user .dashboard-ring-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

body.app-shell-user .dashboard-ring-legend__item {
    padding: 0.8rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid var(--ui-border);
}

body[data-theme='dark'] .dashboard-ring-legend__item {
    background: rgba(8, 13, 25, 0.38);
}

body.app-shell-user .dashboard-ring-legend__label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ui-muted);
    font-weight: 800;
}

body.app-shell-user .dashboard-ring-legend__value {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell-user .dashboard-home__section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

body.app-shell-user .dashboard-home__section-title .dashboard-section__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

body.app-shell-user .dashboard-home__section-title a {
    color: var(--ui-muted);
    font-weight: 700;
}

body.app-shell-user .user-mobile-dock {
    position: fixed;
    left: 50%;
    bottom: 0.68rem;
    transform: translateX(-50%);
    z-index: 1040;
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow);
    backdrop-filter: blur(20px);
}

body[data-theme='dark'] .user-mobile-dock {
    background: rgba(10, 14, 20, 0.92);
}

body.app-shell-user .user-mobile-dock__item {
    min-width: 54px;
    padding: 0.56rem 0.68rem;
    border-radius: 999px;
    color: var(--ui-text-soft);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

body.app-shell-user .user-mobile-dock__item i {
    font-size: 0.95rem;
}

body.app-shell-user .user-mobile-dock__item.is-active {
    color: var(--ui-nav-active-text);
    background: var(--ui-nav-active-bg);
}

@media (max-width: 991.98px) {
    body.app-shell-user .main-content {
        padding-bottom: 6.25rem;
    }

    body.app-shell-user .dashboard-home__hero {
        grid-template-columns: 1fr;
    }

    body.app-shell-user .dashboard-home__quick-grid,
    body.app-shell-user .dashboard-home__upcoming-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    body.app-shell-user .user-mobile-dock {
        display: inline-flex;
    }

    body.app-shell-admin .sidebar-mobile-main-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.5rem 0.8rem;
        border-radius: 999px;
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1;
    }

    body.app-shell-admin .sidebar-mobile-main-toggle .icon-paragraph-justify3 {
        font-size: 0.95rem;
    }

    body.app-shell-admin .sidebar-mobile-main-toggle .ph {
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    body.app-shell-user .dashboard-home {
        padding-top: 0.35rem;
        padding-bottom: 5.9rem;
    }

    body.app-shell-user:not(.dashboard-reference-shell) .dashboard-home {
        padding-top: 0.75rem;
    }

    body.app-shell-user:not(.dashboard-reference-shell) .main-content > .container-fluid:not(.dashboard-home),
    body.app-shell-user:not(.dashboard-reference-shell) .main-content > .content-wrapper > .container-fluid:not(.dashboard-home) {
        padding-top: 0.75rem;
    }

    body.app-shell-user .main-content .container-fluid.dashboard-home.mt--5 {
        margin-top: 0.25rem !important;
    }

    body.app-shell-user:not(.dashboard-reference-shell) .main-content .container-fluid.dashboard-home.mt--5,
    body.app-shell-user:not(.dashboard-reference-shell) .main-content .container-fluid.dashboard-home.mt--6,
    body.app-shell-user:not(.dashboard-reference-shell) .main-content .container-fluid.dashboard-home.mt--7 {
        margin-top: 0 !important;
    }

    body.app-shell-user .dashboard-home__hero-copy,
    body.app-shell-user .dashboard-home__balance-card,
    body.app-shell-user .dashboard-upcoming-card,
    body.app-shell-user .dashboard-ring-card {
        border-radius: 22px;
    }

    body.app-shell-user .dashboard-home__hero-copy,
    body.app-shell-user .dashboard-home__balance-card {
        padding: 0.85rem;
    }

    body.app-shell-user .dashboard-home__balance-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    body.app-shell-user .dashboard-ring-legend {
        grid-template-columns: 1fr;
    }

    body.app-shell-user .dashboard-home__title {
        margin-top: 0.45rem;
        font-size: clamp(1.55rem, 7vw, 2.2rem);
        font-weight: 700;
    }

    body.app-shell-user .dashboard-home__subtitle {
        font-size: 0.88rem;
    }

    body.app-shell-user .dashboard-home__metric-grid {
        gap: 0.45rem;
    }

    body.app-shell-user .dashboard-home__metric {
        padding: 0.68rem 0.65rem;
    }

    body.app-shell-user .dashboard-home__balance-value {
        font-size: clamp(1.65rem, 7vw, 2.2rem);
        margin-top: 0.5rem;
    }

    body.app-shell-user .dashboard-home__balance-note {
        font-size: 0.84rem;
    }

    body.app-shell-user .wallet-hero {
        padding: 0.95rem;
        gap: 0.8rem;
        border-radius: 22px;
    }

    body.app-shell-user .wallet-hero__layout {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    body.app-shell-user .wallet-hero__greeting {
        font-size: 0.68rem;
        letter-spacing: 0.14em;
    }

    body.app-shell-user .wallet-hero__name {
        font-size: clamp(1.3rem, 6vw, 1.85rem);
    }

    body.app-shell-user .wallet-hero__subtitle {
        font-size: 0.82rem;
        margin-top: 0.35rem;
    }

    body.app-shell-user .wallet-hero__chips {
        margin-top: 0.7rem;
        gap: 0.35rem;
    }

    body.app-shell-user .wallet-hero__chip {
        padding: 0.28rem 0.58rem;
        font-size: 0.68rem;
    }

    body.app-shell-user .wallet-hero__balance-card {
        padding: 0.85rem;
        gap: 0.65rem;
        border-radius: 20px;
    }

    body.app-shell-user .wallet-hero__balance-top {
        gap: 0.75rem;
    }

    body.app-shell-user .wallet-hero__balance {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    body.app-shell-user .wallet-hero__mini-grid {
        gap: 0.45rem;
    }

    body.app-shell-user .wallet-hero__mini {
        padding: 0.65rem 0.7rem;
        border-radius: 14px;
    }

    body.app-shell-user .wallet-hero__mini-value {
        font-size: 0.94rem;
    }

    body.app-shell-user .wallet-hero__last-tx {
        font-size: 0.78rem;
    }

    body.app-shell-user .quick-actions-floating {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
        margin: 0.8rem 0 0.95rem;
    }

    body.app-shell-user .quick-action-card {
        padding: 0.82rem 0.45rem;
    }

    body.app-shell-user .dashboard-home__quick-grid,
    body.app-shell-user .dashboard-home__upcoming-grid {
        grid-template-columns: 1fr;
    }

    body.app-shell-user .dashboard-upcoming-card {
        min-height: 0;
        padding: 0.82rem;
    }

    body.app-shell-user .dashboard-quick-card {
        min-height: 0;
        padding: 0.82rem;
    }

    body.app-shell-user .dashboard-quick-card__icon,
    body.app-shell-user .dashboard-upcoming-card__footer {
        margin-top: 0;
    }

    body.app-shell-user .dashboard-quick-card__title {
        font-size: 0.96rem;
    }

    body.app-shell-user .dashboard-quick-card__text {
        font-size: 0.84rem;
    }
}

@media (max-width: 420px) {
    body.app-shell-user .wallet-hero__mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    body.app-shell-admin {
        --admin-mobile-topbar-h: 58px;
    }

    body.app-shell-admin .admin-mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        width: 100%;
    }

    body.app-shell-admin .admin-mobile-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.85rem 0.9rem 0.75rem;
        border-bottom: 1px solid var(--ui-border);
        background: inherit;
        position: sticky;
        top: 0;
        z-index: 3;
        backdrop-filter: blur(16px);
    }

    body.app-shell-admin.sidebar-mobile-main {
        overflow: hidden;
    }

    body.app-shell-admin.sidebar-mobile-main::after {
        content: '';
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 1030;
        pointer-events: none;
    }

    body.app-shell-admin .sidebar {
        display: block !important;
        position: fixed;
        top: var(--admin-mobile-topbar-h);
        left: 0;
        bottom: 0;
        width: 0 !important;
        max-width: 0 !important;
        transform: none;
        transition: none;
        z-index: 1040;
        overflow: visible;
        border: 0 !important;
        padding: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
        box-shadow: none;
        pointer-events: none;
    }

    body.app-shell-admin .sidebar .sidebar-content {
        position: fixed;
        top: var(--admin-mobile-topbar-h);
        left: 0;
        bottom: 0;
        width: min(84vw, 320px);
        max-width: 320px;
        transform: translateX(-102%);
        transition: transform 180ms ease, box-shadow 180ms ease;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1041;
        background: linear-gradient(180deg, var(--ui-nav-bg) 0%, var(--ui-nav-bg-soft) 100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        box-shadow: none !important;
    }

    body[data-theme='light'].app-shell-admin .sidebar .sidebar-content {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(243, 246, 252, 0.98) 100%) !important;
    }

    body.app-shell-admin:not(.sidebar-mobile-main) .sidebar {
        visibility: hidden !important;
        opacity: 0 !important;
        box-shadow: none !important;
    }

    body.app-shell-admin:not(.sidebar-mobile-main) .sidebar .sidebar-content {
        transform: translateX(-102%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        box-shadow: none !important;
    }

    body.app-shell-admin .sidebar .sidebar-mobile-toggler {
        position: sticky;
        top: 0;
        z-index: 2;
        background: inherit;
        backdrop-filter: blur(16px);
    }

    body.app-shell-admin.sidebar-mobile-main .sidebar .sidebar-content {
        transform: translateX(0);
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: 28px 0 70px rgba(0, 0, 0, 0.32);
    }

    body.app-shell-admin.sidebar-mobile-main .sidebar {
        pointer-events: none;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body.app-shell-admin .modal-dialog {
        margin: 0.9rem auto;
        width: min(calc(100vw - 1.5rem), 36rem);
        max-width: calc(100vw - 1.5rem);
    }

    body.app-shell-admin .content-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
    }

    body.app-shell-admin .page-content {
        min-height: 100vh;
        display: block !important;
    }

    body.app-shell-admin .navbar-brand,
    body.app-shell-admin .navbar-text {
        max-width: 100%;
    }

    body.app-shell-admin .navbar {
        padding: 0.75rem 0.85rem;
    }

    body.app-shell-admin .content {
        padding: 0.9rem 0.85rem 1.15rem;
        overflow-x: hidden;
    }

    body.app-shell-admin .page-header-content {
        padding: 0.55rem 0.85rem;
    }

    body.app-shell-admin .page-header,
    body.app-shell-admin .card,
    body.app-shell-admin .modal-content {
        margin-bottom: 0.9rem;
    }

    body.app-shell-admin .card-body,
    body.app-shell-admin .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    body.app-shell-admin .sidebar .nav-group-sub .nav-link {
        padding: 0.6rem 0.85rem;
        font-size: 0.92rem;
    }

    body.app-shell-admin .sidebar .nav-item-submenu > .nav-link {
        padding-right: 2rem;
    }
}

@media (max-width: 767.98px) {
    body.app-shell-user .dashboard-home__hero,
    body.app-shell-admin .dashboard-hero {
        gap: 0.75rem;
    }

    body.app-shell-user .dashboard-home__hero-copy,
    body.app-shell-user .dashboard-home__balance-card,
    body.app-shell-user .dashboard-upcoming-card,
    body.app-shell-user .dashboard-ring-card,
    body.app-shell-admin .dashboard-hero,
    body.app-shell-admin .dashboard-panel,
    body.app-shell-admin .dashboard-summary-card,
    body.app-shell-admin .dashboard-table-shell {
        padding: 1rem;
        border-radius: 18px;
    }

    body.app-shell-user .dashboard-home__balance-card {
        min-height: auto;
    }

    body.app-shell-user .dashboard-home__metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-shell-user .dashboard-home__quick-grid,
    body.app-shell-user .dashboard-home__upcoming-grid,
    body.app-shell-admin .dashboard-hero__stats {
        grid-template-columns: 1fr;
    }

    body.app-shell-user .dashboard-quick-card,
    body.app-shell-user .dashboard-upcoming-card,
    body.app-shell-user .dashboard-mini-card,
    body.app-shell-user .dashboard-status-row,
    body.app-shell-user .dashboard-service-row {
        min-height: 0;
        padding: 0.85rem;
    }

    body.app-shell-user .dashboard-home__circle-action,
    body.app-shell-user .dashboard-quick-card__icon,
    body.app-shell-user .dashboard-status-row__icon,
    body.app-shell-user .dashboard-service-row__icon {
        width: 40px;
        height: 40px;
    }

    body.app-shell-user .dashboard-ring {
        width: min(100%, 220px);
    }

    body.app-shell-user .dashboard-table-shell,
    body.app-shell-admin .dashboard-table-shell {
        padding: 0.75rem;
    }

    body.app-shell-user .dashboard-table-shell .table tbody td,
    body.app-shell-user .dashboard-table-shell .table tbody th,
    body.app-shell-admin .dashboard-table-shell .table tbody td,
    body.app-shell-admin .dashboard-table-shell .table tbody th {
        padding: 0.75rem 0.8rem;
    }

    body.app-shell-admin .dashboard-panel__header,
    body.app-shell-admin .dashboard-section__header {
        flex-direction: column;
        align-items: flex-start;
    }

    body.app-shell-admin .dashboard-alert-row {
        grid-template-columns: 1fr;
    }

    body.app-shell-admin .admin-builder-restore {
        flex-direction: column;
        align-items: flex-start;
    }

    body.app-shell-admin .admin-builder-library {
        gap: 0.75rem;
    }

    body.app-shell-admin .admin-builder-library__group {
        padding: 0.82rem 0.86rem;
    }

    body.app-shell-admin .admin-builder-library__group .d-flex,
    body.app-shell-admin .admin-builder-library--templates {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.55rem;
        padding-bottom: 0.1rem;
        -webkit-overflow-scrolling: touch;
    }

    body.app-shell-admin .admin-builder-library__group .btn,
    body.app-shell-admin .admin-builder-library--templates .btn {
        flex: 0 0 auto;
    }

    body.app-shell-admin .admin-builder-mobile-compact {
        margin-bottom: 0.85rem !important;
    }

    body.app-shell-admin .admin-builder-mobile-compact .dashboard-panel__header {
        gap: 0.55rem;
        margin-bottom: 0;
    }

    body.app-shell-admin .admin-builder-mobile-compact .dashboard-section__title {
        font-size: 0.98rem;
    }

    body.app-shell-admin .admin-builder-mobile-compact .dashboard-summary-card {
        padding: 0.82rem 0.86rem !important;
        border-radius: 16px;
    }

    body.app-shell-admin .admin-builder-mobile-compact .admin-mobile-panel-toggle {
        align-self: stretch;
    }

    body.app-shell-admin .admin-builder-mobile-compact [data-mobile-panel-body] {
        padding-top: 0.1rem;
    }

    body.app-shell-admin .admin-builder-status-panel .admin-builder-actions {
        width: 100%;
    }

    body.app-shell-admin .admin-builder-status-panel .admin-builder-actions [data-builder-save-status] {
        margin-right: auto;
    }

    body.app-shell-admin [data-field-row] .dashboard-service-row__body,
    body.app-shell-admin [data-section-row] .dashboard-service-row__body {
        width: 100%;
    }

    body.app-shell-admin .admin-builder-item-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.9rem 0.9rem 0;
    }

    body.app-shell-admin .admin-builder-item-summary__actions {
        justify-content: stretch;
    }

    body.app-shell-admin .admin-builder-item-summary__actions .btn {
        flex: 1 1 0;
        min-width: 0;
    }

    body.app-shell-admin .admin-mobile-panel-toggle {
        display: inline-flex;
    }

    body.app-shell-admin [data-field-row].is-collapsed .admin-builder-item-body,
    body.app-shell-admin [data-field-row].is-collapsed .admin-builder-item-actions,
    body.app-shell-admin [data-section-row].is-collapsed .admin-builder-item-body,
    body.app-shell-admin [data-section-row].is-collapsed .admin-builder-item-actions {
        display: none;
    }

    body.app-shell-admin [data-mobile-builder-panel] .admin-mobile-panel-toggle {
        min-width: 0;
    }

    body.app-shell-admin .admin-builder-item-actions {
        padding: 0 0.9rem 0.9rem;
    }

    body.app-shell-admin .admin-builder-option-item {
        padding: 0.72rem 0.76rem;
    }

    body.app-shell-admin .admin-builder-option-item .col-md-2.d-flex {
        margin-top: 0.35rem;
    }

    body.app-shell-admin .admin-builder-footer {
        flex-direction: column;
        align-items: stretch !important;
    }

    body.app-shell-admin .admin-builder-footer .btn {
        width: 100%;
    }

    body.app-shell-admin .dashboard-alert-row__meta,
    body.app-shell-admin .dashboard-alert-row__top {
        justify-items: start;
        justify-content: flex-start;
        text-align: left;
    }

    body.app-shell-admin .dashboard-mobile-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    body.app-shell-admin .dashboard-mobile-queue-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

    body.app-shell-admin .dashboard-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    body.app-shell-admin .dashboard-mini-card {
        padding: 0.74rem 0.78rem;
        border-radius: 16px;
    }

    body.app-shell-admin .dashboard-mini-card__value {
        font-size: 0.96rem;
    }

    body.app-shell-admin .dashboard-mini-card__meta {
        font-size: 0.74rem;
        line-height: 1.35;
    }

    body.app-shell-admin .admin-submission-card__top {
        flex-direction: column;
    }

    body.app-shell-admin .admin-submission-workspace-switch .dashboard-filter-chip {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
    }

    body.app-shell-admin .admin-submission-filter-bar .dashboard-filter-group {
        gap: 0.45rem;
    }

    body.app-shell-admin .admin-builder-actions {
        width: 100%;
    }

    body.app-shell-admin .dashboard-filter-bar {
        align-items: flex-start;
    }

    body.app-shell-admin .dashboard-filter-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 0.15rem;
        -webkit-overflow-scrolling: touch;
    }

    body.app-shell-admin .dashboard-filter-label,
    body.app-shell-admin .dashboard-filter-chip {
        flex: 0 0 auto;
    }

    body.app-shell-admin .dashboard-monitor-grid {
        grid-template-columns: 1fr;
    }

    body.app-shell-admin .dashboard-trend-grid {
        grid-template-columns: 1fr;
    }

    body.app-shell-admin .dashboard-hero__title {
        font-size: clamp(1.18rem, 5vw, 1.5rem);
    }

    body.app-shell-admin .dashboard-stat__value {
        font-size: 1.2rem;
    }

    body.app-shell-admin .admin-dashboard-mobile-header {
        margin-bottom: 0.7rem;
    }

    body.app-shell-admin .dashboard-panel.dashboard-mobile-glance {
        padding-top: 0.2rem;
    }

    body.app-shell-admin .dashboard-mobile-kpi {
        padding: 0.62rem 0.65rem;
        border-radius: 14px;
        min-height: 0;
    }

    body.app-shell-admin .dashboard-mobile-kpi__label {
        font-size: 0.64rem;
    }

    body.app-shell-admin .dashboard-mobile-kpi__value {
        font-size: 0.98rem;
    }

    body.app-shell-admin .dashboard-mobile-glance__section + .dashboard-mobile-glance__section {
        margin-top: 0.85rem;
        padding-top: 0.85rem;
    }

    body.app-shell-admin .dashboard-mobile-glance__scroller {
        gap: 0.55rem;
    }

    body.app-shell-admin .dashboard-mobile-glance__trend-card,
    body.app-shell-admin .dashboard-mobile-queue-grid .dashboard-monitor-card {
        min-width: 0;
        border-radius: 16px;
    }

    body.app-shell-admin .dashboard-mobile-glance .dashboard-trend-card__value,
    body.app-shell-admin .dashboard-mobile-glance .dashboard-monitor-card__value {
        font-size: 1rem;
    }

    body.app-shell-admin .dashboard-mobile-glance .dashboard-trend-card__meta,
    body.app-shell-admin .dashboard-mobile-glance .dashboard-monitor-card__meta {
        line-height: 1.35;
    }

    body.app-shell-admin .admin-settings-page__header,
    body.app-shell-admin .admin-gateway-page__header,
    body.app-shell-admin .admin-settings-page__strip,
    body.app-shell-admin .admin-gateway-page__strip {
        margin-bottom: 0.85rem;
    }

    body.app-shell-admin .admin-settings-page .row {
        margin-left: -0.35rem;
        margin-right: -0.35rem;
    }

    body.app-shell-admin .admin-settings-page [class*='col-'],
    body.app-shell-admin .admin-gateway-page .modal-body [class*='col-'] {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    body.app-shell-admin .admin-settings-page .dashboard-panel,
    body.app-shell-admin .admin-gateway-page .card {
        border-radius: 18px;
    }

    body.app-shell-admin .admin-settings-page .form-group,
    body.app-shell-admin .admin-gateway-page .form-group {
        margin-bottom: 0.85rem;
    }

    body.app-shell-admin .admin-settings-page .input-group-text,
    body.app-shell-admin .admin-gateway-page .input-group-text {
        font-size: 0.76rem;
        padding-left: 0.72rem;
        padding-right: 0.72rem;
    }

    body.app-shell-admin .admin-settings-page .form-control,
    body.app-shell-admin .admin-gateway-page .form-control,
    body.app-shell-admin .admin-gateway-page .select {
        min-height: 44px;
        font-size: 0.88rem;
    }

    body.app-shell-admin .admin-settings-page .dashboard-panel__header {
        padding-bottom: 0.85rem;
    }

    body.app-shell-admin .admin-settings-page .dashboard-summary-card {
        padding: 0.9rem !important;
    }

    body.app-shell-admin .admin-gateway-page .card-body.pb-0 {
        padding-bottom: 0.85rem !important;
    }

    body.app-shell-admin .admin-gateway-page .modal-dialog {
        width: min(calc(100vw - 1.5rem), 36rem);
        max-width: calc(100vw - 1.5rem);
        margin: 0.75rem auto;
    }

    body.app-shell-admin .admin-gateway-page .modal-body {
        padding: 0.9rem;
    }

    body.app-shell-admin .admin-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        margin-bottom: 0.85rem;
    }

    body.app-shell-admin .admin-page-header__main {
        width: 100%;
    }

    body.app-shell-admin .admin-page-header__title {
        font-size: clamp(1.12rem, 5vw, 1.35rem);
    }

    body.app-shell-admin .admin-page-header__subtitle {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    body.app-shell-admin .admin-page-header__aside {
        min-width: 0;
        width: 100%;
    }

    body.app-shell-admin .admin-queue-strip {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

    body.app-shell-admin .admin-queue-stat {
        padding: 0.72rem 0.76rem;
        border-radius: 16px;
    }

    body.app-shell-admin .admin-queue-stat__value {
        font-size: 0.94rem;
    }

    body.app-shell-admin .admin-queue-card {
        padding: 0.82rem;
        border-radius: 18px;
    }

    body.app-shell-admin .admin-queue-card__top {
        gap: 0.65rem;
    }

    body.app-shell-admin .admin-queue-card__title {
        font-size: 0.9rem;
    }

    body.app-shell-admin .admin-queue-card__amount {
        font-size: 0.92rem;
    }

    body.app-shell-admin .admin-queue-card__grid {
        gap: 0.55rem 0.65rem;
    }

    body.app-shell-admin .admin-queue-card__badges {
        gap: 0.32rem;
    }

    body.app-shell-admin .admin-queue-card__age {
        font-size: 0.69rem;
    }

    body.app-shell-admin .admin-queue-card__actions .btn {
        flex: 1 1 calc(50% - 0.55rem);
        min-width: 0;
    }

    body.app-shell-admin .admin-queue-card__form--inline {
        flex: 1 1 calc(50% - 0.55rem);
    }

    body.app-shell-admin .admin-queue-card__form--stacked {
        margin-top: 0.72rem;
        padding-top: 0.72rem;
    }

    body.app-shell-admin .admin-config-page .dashboard-panel__header .btn {
        width: 100%;
    }

    body.app-shell-admin .admin-payment-options-page .admin-queue-card {
        padding: 0.76rem;
    }

    body.app-shell-admin .admin-payment-options-page .admin-queue-card__badges {
        gap: 0.28rem;
    }

    body.app-shell-admin .admin-payment-options-page .admin-queue-card__grid {
        grid-template-columns: 1fr;
        margin-top: 0.65rem;
    }

    body.app-shell-admin .admin-payment-options-page .admin-queue-card__actions {
        margin-top: 0.7rem;
    }

    body.app-shell-admin .admin-payment-options-page .admin-queue-card__actions .btn {
        flex: 1 1 100%;
    }

    body.app-shell-admin .admin-user-record-page .card {
        margin-bottom: 0.85rem;
    }

    body.app-shell-admin .admin-user-record-page__aside {
        order: -1;
    }

    body.app-shell-admin .admin-user-record-page__profile-card {
        order: 2;
    }

    body.app-shell-admin .admin-user-record-page .admin-page-header {
        margin-bottom: 0.7rem;
    }

    body.app-shell-admin .admin-user-record-page .admin-page-header__aside,
    body.app-shell-admin .admin-user-record-page .admin-queue-strip,
    body.app-shell-admin .admin-user-record-page .admin-actions-stat-strip {
        display: none;
    }

    body.app-shell-admin .admin-user-record-page__actions-panel {
        margin-bottom: 0.85rem;
    }

    body.app-shell-admin .admin-user-record-page__workspace-row {
        display: none;
    }

    body.app-shell-admin .admin-user-record-page__workspace-row {
        margin-top: 0.2rem;
    }

    body.app-shell-admin .admin-user-record-page__ops-card .card-body {
        padding-top: 0.8rem;
    }

    body.app-shell-admin .admin-user-record-page .card-header,
    body.app-shell-admin .admin-user-record-page .card-body {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    body.app-shell-admin .admin-user-record-page .admin-action-tabbar--mobile {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0 0.9rem 0.65rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.app-shell-admin .admin-user-record-page .admin-action-tabbar--mobile::-webkit-scrollbar {
        display: none;
    }

    body.app-shell-admin .admin-user-record-page .admin-action-tabbar--mobile .admin-action-tabbar__tab {
        flex: 0 0 5.6rem;
        min-height: 3.2rem;
        padding: 0.6rem 0.55rem;
    }

    body.app-shell-admin .admin-user-record-page .admin-action-tabbar--mobile .admin-action-tabbar__label {
        font-size: 0.72rem;
    }

    body.app-shell-admin .admin-user-record-page__mobile-list {
        display: block;
        padding: 0 0.9rem 0.9rem;
    }

    body.app-shell-admin .admin-user-record-page__desktop-table {
        display: none;
    }

    body.app-shell-admin .admin-record-jumpbar {
        position: sticky;
        top: 4.25rem;
        z-index: 12;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.75rem 0.85rem;
    }

    body.app-shell-admin .admin-record-jumpbar__links {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        -webkit-overflow-scrolling: touch;
    }

    body.app-shell-admin .admin-record-jumpbar__links::-webkit-scrollbar {
        display: none;
    }

    body.app-shell-admin .admin-record-jumpbar__link {
        flex: 0 0 auto;
        font-size: 0.76rem;
        padding: 0.4rem 0.66rem;
    }

    body.app-shell-admin .admin-user-record-page .form-group.row {
        margin-bottom: 0.8rem;
    }

    body.app-shell-admin .admin-user-record-page .form-group.row > label {
        margin-bottom: 0.35rem;
    }

    body.app-shell-admin .admin-user-record-page .form-check-inline {
        display: block;
        margin-right: 0;
        margin-bottom: 0.45rem;
    }

    body.app-shell-admin .admin-user-record-page__avatar-card .card-body {
        padding-top: 0.95rem;
        padding-bottom: 0.95rem;
    }

    body.app-shell-admin .admin-user-record-page__meta-list li {
        flex-direction: column;
        gap: 0.2rem;
    }

    body.app-shell-admin .admin-user-record-page__tabs .nav-link {
        padding: 0.55rem 0.8rem;
        font-size: 0.78rem;
    }

    body.app-shell-admin .admin-user-record-page__action-glance,
    body.app-shell-admin .admin-user-record-page__upgrade-summary {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    body.app-shell-admin .admin-user-record-page__action-glance-card,
    body.app-shell-admin .admin-user-record-page__upgrade-summary-card,
    body.app-shell-admin .admin-user-record-page__upgrade-highlight {
        padding: 0.85rem 0.9rem;
        border-radius: 16px;
    }

    body.app-shell-admin .admin-user-record-page__upgrade-highlight {
        flex-direction: column;
    }

    body.app-shell-admin .admin-user-record-page__upgrade-highlight-value {
        text-align: left;
    }

    body.app-shell-admin .admin-user-record-page__action-pane {
        gap: 0.9rem;
    }

    body.app-shell-admin .admin-account-action-form .wallet-form-section {
        padding: 0.82rem 0.82rem 0.86rem;
        border-radius: 18px;
    }

    body.app-shell-admin .admin-account-action-form .wallet-transfer-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.app-shell-admin .admin-actions-stat-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
        padding: 0 0.9rem 0.85rem;
        overflow: visible;
    }

    body.app-shell-admin .admin-actions-stat-strip__item {
        min-width: 0;
        padding: 0.65rem 0.75rem;
        border-radius: 16px;
    }

    body.app-shell-admin .admin-actions-stat-strip__value {
        white-space: normal;
    }

    body.app-shell-admin .admin-action-tabbar--mobile {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
        padding: 0 0.9rem 0.8rem;
    }

    body.app-shell-admin .admin-user-record-page__action-content--mobile {
        padding: 0 0.9rem 0.15rem;
    }

    body.app-shell-admin .admin-user-record-page__action-content--mobile > .tab-pane {
        padding: 0.9rem;
        border-radius: 16px;
    }

    body.app-shell-admin .admin-user-record-page .tab-content > .tab-pane > .card-body {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }

    body.app-shell-admin .admin-user-record-page .datatable-header,
    body.app-shell-admin .admin-user-record-page .datatable-footer,
    body.app-shell-admin .admin-user-record-page .dataTables_length,
    body.app-shell-admin .admin-user-record-page .dataTables_filter,
    body.app-shell-admin .admin-user-record-page .dataTables_info,
    body.app-shell-admin .admin-user-record-page .dataTables_paginate {
        display: none !important;
    }

    body.app-shell-admin .admin-user-record-page .table.datatable-show-all {
        min-width: 620px;
    }

    body.app-shell-admin .admin-user-record-page .table.datatable-show-all thead th,
    body.app-shell-admin .admin-user-record-page .table.datatable-show-all tbody td {
        font-size: 0.74rem;
        white-space: nowrap;
    }

    body.app-shell-admin .admin-user-record-page__log-row .card-header {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    body.app-shell-admin .admin-user-record-page__log-row .card-title {
        font-size: 0.88rem;
    }

    body.app-shell-admin .admin-user-record-page__section-header {
        align-items: flex-start;
    }

    body.app-shell-admin .admin-user-record-page__summary-list {
        display: grid;
        gap: 0.7rem;
    }

    body.app-shell-admin .admin-user-record-page__summary-card {
        display: grid;
        gap: 0.7rem;
        padding: 0.82rem;
        border: 1px solid var(--ui-border);
        border-radius: 18px;
        background: var(--ui-surface-soft);
    }

    body[data-theme='dark'].app-shell-admin .admin-user-record-page__summary-card {
        background: var(--ui-surface-subtle);
    }

    body.app-shell-admin .admin-user-record-page__summary-card--compact {
        gap: 0.32rem;
    }

    body.app-shell-admin .admin-user-record-page__summary-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.7rem;
    }

    body.app-shell-admin .admin-user-record-page__summary-title {
        font-size: 0.92rem;
        font-weight: 700;
        color: var(--ui-text);
        line-height: 1.3;
    }

    body.app-shell-admin .admin-user-record-page__summary-subtitle {
        margin-top: 0.14rem;
        font-size: 0.78rem;
        line-height: 1.45;
        color: var(--ui-muted);
    }

    body.app-shell-admin .admin-user-record-page__summary-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem 0.75rem;
    }

    body.app-shell-admin .admin-user-record-page__summary-label {
        display: block;
        margin-bottom: 0.18rem;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--ui-muted);
    }

    body.app-shell-admin .admin-user-record-page__summary-value {
        display: block;
        font-size: 0.83rem;
        line-height: 1.45;
        color: var(--ui-text-soft);
        word-break: break-word;
    }

    body.app-shell-admin .admin-user-record-page__summary-actions {
        display: flex;
    }

    body.app-shell-admin .admin-user-record-page__summary-actions .btn {
        width: 100%;
    }

    body.app-shell-admin .admin-log-count {
        font-size: 0.68rem;
    }

    body.app-shell-admin .admin-user-record-page__mobile-list .admin-empty-state {
        margin-bottom: 0;
    }

    body.app-shell-admin .admin-queue-compact-row {
        padding: 0.68rem 0.74rem;
        gap: 0.6rem;
    }

    body.app-shell-admin .admin-queue-compact-row__title,
    body.app-shell-admin .admin-queue-compact-row__amount {
        font-size: 0.84rem;
    }

    body.app-shell-admin .admin-queue-compact-row__meta {
        font-size: 0.71rem;
    }

    body.app-shell-admin .table-responsive:not(.dashboard-table-shell):not(.d-none) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 18px;
    }

    body.app-shell-admin .table-responsive:not(.dashboard-table-shell):not(.d-none) > .table,
    body.app-shell-admin .table-responsive:not(.dashboard-table-shell):not(.d-none) > table {
        min-width: 720px;
    }

    body.app-shell-admin .admin-submission-meta-card,
    body.app-shell-admin .admin-submission-payload-card,
    body.app-shell-admin .admin-submission-file-card {
        padding: 0.85rem 0.9rem;
        border-radius: 16px;
    }

    body.app-shell-admin .admin-submission-card__actions .btn {
        flex-basis: 100%;
    }

    body.app-shell-admin .admin-submission-section-card,
    body.app-shell-admin .admin-submission-review-card,
    body.app-shell-admin .admin-submission-timeline__item {
        padding: 0.9rem;
        border-radius: 16px;
    }

    body.app-shell-admin .admin-submission-section-card__header,
    body.app-shell-admin .admin-submission-file-card__header {
        flex-direction: column;
    }

    body.app-shell-admin .admin-submission-kv-list,
    body.app-shell-admin .admin-submission-review-stack,
    body.app-shell-admin .admin-submission-timeline {
        gap: 0.72rem;
    }

    body.app-shell-admin .admin-submission-detail-page__header {
        margin-bottom: 0.85rem;
    }

    body.app-shell-admin .admin-submission-detail-page__strip {
        margin-bottom: 0.85rem;
    }

    body.app-shell-admin .admin-form-preview__hero,
    body.app-shell-admin .admin-form-preview__body,
    body.app-shell-admin .admin-form-preview__footer {
        padding: 0.95rem 1rem;
    }

    body.app-shell-admin .admin-form-preview__grid {
        grid-template-columns: 1fr;
    }

    body.app-shell-admin .admin-form-preview__field--full,
    body.app-shell-admin .admin-form-preview__field--half,
    body.app-shell-admin .admin-form-preview__field--third {
        grid-column: span 1;
    }

    body.app-shell-admin .dashboard-service-stack--mobile-trim > :nth-child(n+4),
    body.app-shell-admin .dashboard-feed--mobile-trim > :nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 420px) {
    body.app-shell-admin .admin-queue-strip {
        grid-template-columns: 1fr;
    }

    body.app-shell-admin .dashboard-mobile-kpis,
    body.app-shell-admin .dashboard-mobile-queue-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    body.app-shell-admin .dashboard-mobile-glance__section-head {
        align-items: flex-start;
    }

    body.app-shell-admin .dashboard-panel.dashboard-mobile-glance .dashboard-panel__note {
        display: none;
    }

    body.app-shell-admin .dashboard-mobile-glance__title,
    body.app-shell-admin .dashboard-mobile-kpi__label {
        letter-spacing: 0.1em;
    }
}

/* ==========================================================================
   MODERN WALLET UI REWRITE (Appended components)
   ========================================================================== */

/* 1. Layout Overrides (Other pages) */
body.app-shell-user .main-content {
    min-width: 0;
    margin-left: var(--ui-desktop-nav-w) !important;
    padding-top: var(--ui-topbar-h);
    transition: margin-left var(--ui-duration-base) var(--ui-ease);
}
@media (max-width: 991.98px) {
    body.app-shell-user .main-content {
        margin-left: 0 !important;
        padding-bottom: 0;
    }

    body[data-theme='dark'].app-shell-user {
        background: #090a0d;
    }

    body[data-theme='dark'].app-shell-user .main-content,
    body[data-theme='dark'].app-shell-user .app-content-shell {
        background: var(--ui-page-gradient);
    }

    body[data-theme='dark'].app-shell-user .main-content {
        min-height: calc(100dvh - var(--ui-topbar-h));
    }

    body[data-theme='dark'].app-shell-user .app-content-shell {
        min-height: calc(100dvh - var(--ui-topbar-h) - var(--ui-tabbar-h) - env(safe-area-inset-bottom, 20px));
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    :root {
        --ui-desktop-nav-w: 220px;
    }
}

@media (min-width: 1200px) and (max-width: 1365.98px) {
    :root {
        --ui-desktop-nav-w: 232px;
    }
}

body.app-shell-user .app-content-shell {
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: 1rem 1rem 2.5rem;
}

body.app-shell-user .app-content-shell > .container-fluid,
body.app-shell-user .app-content-shell > .content,
body.app-shell-user .app-content-shell > .content-wrapper {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 1200px) {
    body.app-shell-user .app-content-shell {
        padding: 1.25rem 1.5rem 3rem;
    }
}

@media (min-width: 992px) and (max-width: 1365.98px) {
    body.app-shell-user .app-content-shell {
        padding: 1rem 1.125rem 2.5rem;
    }
}

@media (max-width: 991.98px) {
    body.app-shell-user .app-content-shell {
        width: 100%;
        padding: 0.8rem 0.8rem 1.5rem;
    }
}

/* 2. App Rail (Desktop Navigation) */
body.app-shell-user .app-rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--ui-rail-w);
    background: linear-gradient(180deg, var(--ui-nav-bg) 0%, var(--ui-nav-bg-soft) 100%);
    box-shadow: var(--ui-shadow-rail);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 0.5rem;
}
@media (min-width: 992px) {
    body.app-shell-user .app-rail {
        display: none !important;
    }
}
@media (max-width: 991.98px) {
    body.app-shell-user .app-rail { display: none !important; }
}

body.app-shell-user .app-rail__logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: grid;
    place-items: center;
}
body.app-shell-user .app-rail__logo img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

body.app-shell-user .app-rail__item {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ui-nav-text);
    font-size: 1.15rem;
    text-decoration: none;
    transition: all var(--ui-duration-fast) var(--ui-ease);
}
body.app-shell-user .app-rail__item:hover {
    color: var(--ui-nav-active-text);
    background: rgba(255, 255, 255, 0.08);
}
body.app-shell-user .app-rail__item.is-active {
    color: var(--ui-nav-active-text);
    background: var(--ui-nav-active-bg);
}

/* Rail Tooltips */
body.app-shell-user .app-rail__item[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    background: var(--ui-surface-strong);
    color: var(--ui-text);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: var(--ui-shadow-soft);
    border: 1px solid var(--ui-border);
    transition: all var(--ui-duration-fast) var(--ui-ease);
    z-index: 9999;
}
body.app-shell-user .app-rail__item:hover[data-tip]::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Rail Groups (Collapsible) */
body.app-shell-user .app-rail__group {
    position: relative;
}
body.app-shell-user .app-rail__sub {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(-8px) scale(0.95);
    background: var(--ui-surface-strong);
    padding: 0.5rem;
    border-radius: 14px;
    box-shadow: var(--ui-shadow-lg);
    border: 1px solid var(--ui-border);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--ui-duration-base) var(--ui-ease);
    z-index: 1060;
}
body.app-shell-user .app-rail__group:hover .app-rail__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0) scale(1);
    pointer-events: auto;
}
body.app-shell-user .app-rail__sub-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    color: var(--ui-text-soft);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background var(--ui-duration-fast);
}
body.app-shell-user .app-rail__sub-item:hover {
    background: var(--ui-bg-alt);
    color: var(--ui-text);
    text-decoration: none;
}

/* 2b. Desktop Navigation Panel */
body.app-shell-user .app-desktop-nav {
    position: fixed;
    top: var(--ui-topbar-h);
    left: 0;
    bottom: 0;
    width: var(--ui-desktop-nav-w);
    padding: 1rem 1rem 1.15rem;
    z-index: 1022;
    border-right: 1px solid var(--ui-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 20%),
        var(--ui-surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

@media (min-width: 992px) and (max-width: 1365.98px) {
    body.app-shell-user .app-desktop-nav {
        padding: 0.875rem 0.75rem 1rem;
    }
}

body.app-shell-user .app-desktop-nav__scroll {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(109, 75, 255, 0.48) rgba(148, 163, 184, 0.1);
}

body.app-shell-user .app-desktop-nav__scroll::-webkit-scrollbar {
    width: 6px;
}

body.app-shell-user .app-desktop-nav__scroll::-webkit-scrollbar-track {
    margin: 0.35rem 0 0.15rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.12) 0%, rgba(148, 163, 184, 0.04) 100%);
}

body.app-shell-user .app-desktop-nav__scroll::-webkit-scrollbar-thumb {
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(127, 92, 255, 0.78) 0%, rgba(91, 67, 221, 0.54) 100%) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 100%) border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.app-shell-user .app-desktop-nav__scroll:hover::-webkit-scrollbar-thumb {
    background:
        linear-gradient(180deg, rgba(127, 92, 255, 0.92) 0%, rgba(91, 67, 221, 0.72) 100%) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.12) 100%) border-box;
}

body[data-theme='dark'].app-shell-user .app-desktop-nav__scroll {
    scrollbar-color: rgba(167, 139, 250, 0.58) rgba(255, 255, 255, 0.08);
}

body[data-theme='dark'].app-shell-user .app-desktop-nav__scroll::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(15, 23, 42, 0.06) 100%);
}

body[data-theme='dark'].app-shell-user .app-desktop-nav__scroll::-webkit-scrollbar-thumb {
    background:
        linear-gradient(180deg, rgba(167, 139, 250, 0.88) 0%, rgba(109, 75, 255, 0.62) 100%) padding-box,
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 100%) border-box;
}

body.app-shell-user .app-desktop-nav__summary,
body.app-shell-user .app-desktop-nav__status-card,
body.app-shell-user .app-desktop-nav__link {
    border: 1px solid var(--ui-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 22%),
        var(--ui-surface-strong);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .app-desktop-nav__summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem;
    border-radius: 22px;
    margin-bottom: 0.9rem;
    position: relative;
    overflow: hidden;
}

body.app-shell-user .app-desktop-nav__summary::after {
    content: '';
    position: absolute;
    inset: auto -18% -34% auto;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(109, 75, 255, 0.16) 0%, rgba(109, 75, 255, 0) 72%);
    pointer-events: none;
}

body.app-shell-user .app-desktop-nav__avatar {
    width: 46px;
    height: 46px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 999px;
    border: 2px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
    overflow: hidden;
}

body.app-shell-user .app-desktop-nav__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

body.app-shell-user .app-desktop-nav__identity {
    min-width: 0;
    display: grid;
    gap: 0.15rem;
}

body.app-shell-user .app-desktop-nav__eyebrow,
body.app-shell-user .app-desktop-nav__section-label {
    margin: 0;
    color: var(--ui-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.app-shell-user .app-desktop-nav__name {
    display: block;
    color: var(--ui-text);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
}

body.app-shell-user .app-desktop-nav__meta {
    display: block;
    color: var(--ui-text-soft);
    font-size: 0.76rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.app-shell-user .app-desktop-nav__status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

body.app-shell-user .app-desktop-nav__status-card {
    display: grid;
    gap: 0.22rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

body.app-shell-user .app-desktop-nav__status-card:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

body.app-shell-user .app-desktop-nav__status-card::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(109, 75, 255, 0.9) 0%, rgba(109, 75, 255, 0.2) 100%);
    opacity: 0.85;
}

body.app-shell-user .app-desktop-nav__status-label {
    color: var(--ui-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.app-shell-user .app-desktop-nav__status-value {
    color: var(--ui-text);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

body.app-shell-user .app-desktop-nav__section {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.72rem;
    border: 1px solid rgba(129, 140, 248, 0.08);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 24%),
        rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

body.app-shell-user .app-desktop-nav__link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 0.85rem;
    border-radius: 18px;
    color: var(--ui-text-soft);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition:
        transform var(--ui-duration-fast) var(--ui-ease),
        border-color var(--ui-duration-fast) var(--ui-ease),
        box-shadow var(--ui-duration-fast) var(--ui-ease),
        color var(--ui-duration-fast) var(--ui-ease);
}

body.app-shell-user .app-desktop-nav__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    bottom: 11px;
    width: 3px;
    border-radius: 999px;
    background: var(--ui-primary);
    opacity: 0;
    transform: scaleY(0.4);
    transition:
        opacity var(--ui-duration-fast) var(--ui-ease),
        transform var(--ui-duration-fast) var(--ui-ease);
}

body.app-shell-user .app-desktop-nav__link:hover {
    color: var(--ui-text);
    text-decoration: none;
    transform: translateX(2px);
    border-color: var(--ui-select-hover-border);
}

body.app-shell-user .app-desktop-nav__link:hover::before,
body.app-shell-user .app-desktop-nav__link:focus-visible::before {
    opacity: 0.45;
    transform: scaleY(1);
}

body.app-shell-user .app-desktop-nav__link.is-active {
    color: var(--ui-text);
    border-color: rgba(109, 75, 255, 0.2);
    background:
        linear-gradient(135deg, rgba(109, 75, 255, 0.16) 0%, rgba(109, 75, 255, 0.03) 55%),
        var(--ui-surface-strong);
    box-shadow: 0 14px 30px rgba(109, 75, 255, 0.12);
}

body.app-shell-user .app-desktop-nav__link.is-active::before {
    opacity: 1;
    transform: scaleY(1);
}

body.app-shell-user .app-desktop-nav__link--danger {
    color: #b42318;
}

body[data-theme='dark'].app-shell-user .app-desktop-nav__link--danger {
    color: #ff8b8b;
}

body.app-shell-user .app-desktop-nav__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--ui-primary-soft-bg);
    color: var(--ui-primary);
    font-size: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition:
        background var(--ui-duration-fast) var(--ui-ease),
        color var(--ui-duration-fast) var(--ui-ease),
        box-shadow var(--ui-duration-fast) var(--ui-ease),
        transform var(--ui-duration-fast) var(--ui-ease);
}

body.app-shell-user .app-desktop-nav__link--danger .app-desktop-nav__icon {
    background: rgba(239, 68, 68, 0.1);
    color: inherit;
}

body.app-shell-user .app-desktop-nav__link:hover .app-desktop-nav__icon,
body.app-shell-user .app-desktop-nav__link:focus-visible .app-desktop-nav__icon {
    transform: translateX(1px);
}

body.app-shell-user .app-desktop-nav__link.is-active .app-desktop-nav__icon {
    background: linear-gradient(135deg, #7f5cff 0%, #5b43dd 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(91, 67, 221, 0.26);
}

body.app-shell-user .app-desktop-nav__copy {
    min-width: 0;
    display: grid;
    gap: 0.14rem;
}

body.app-shell-user .app-desktop-nav__title {
    color: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
}

body.app-shell-user .app-desktop-nav__hint {
    color: var(--ui-muted);
    font-size: 0.72rem;
    line-height: 1.35;
}

body.app-shell-user .app-desktop-nav__footer {
    padding-top: 0.15rem;
    margin-top: auto;
}

body.app-shell-user .app-desktop-nav__section-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.1rem;
}

body.app-shell-user .app-desktop-nav__section-label::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.24) 0%, rgba(148, 163, 184, 0) 100%);
}

@media (max-width: 991.98px) {
    body.app-shell-user .app-desktop-nav {
        display: none !important;
    }
}

/* 3. Slim Topbar */
body.app-shell-user .app-topbar {
    position: fixed;
    top: 0;
    left: var(--ui-desktop-nav-w);
    right: 0;
    min-height: 68px;
    padding: 12px 22px;
    background: var(--ui-surface);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-topbar);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: left var(--ui-duration-base) var(--ui-ease);
}

@media (min-width: 992px) and (max-width: 1365.98px) {
    body.app-shell-user .app-topbar {
        padding: 10px 18px;
    }
}
@media (max-width: 991.98px) {
    body.app-shell-user .app-topbar {
        left: 0;
        padding: 10px 12px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --ui-topbar-h: 60px;
    }

    body.app-shell-user .app-topbar {
        min-height: 60px;
        padding: 10px 12px;
    }

    body.app-shell-user .app-topbar__translate,
    body.app-shell-user .app-topbar__theme-toggle {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    body.app-shell-user .user-language-pill {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
    }

    body.app-shell-user .app-topbar__theme-pill {
        width: 52px;
    }
}

@media (max-width: 420px) {
    body.app-shell-user .app-topbar {
        padding: 9px 10px;
    }

    body.app-shell-user .app-topbar__left,
    body.app-shell-user .app-topbar__right {
        gap: 0.35rem;
        min-width: 0;
    }

    body.app-shell-user .app-topbar__logo img {
        max-height: 26px;
        max-width: 132px;
    }

    body.app-shell-user .app-topbar__translate,
    body.app-shell-user .app-topbar__theme-toggle,
    body.app-shell-user .user-language-pill {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
    }

    body.app-shell-user .app-topbar__theme-pill {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        border-radius: 999px;
        overflow: hidden;
    }

    body.app-shell-user .app-topbar__theme-pill::before {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        width: 22px;
        height: 22px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.2);
        transition: transform var(--ui-duration-base) var(--ui-ease), background var(--ui-duration-base) var(--ui-ease);
    }

    body[data-theme='dark'].app-shell-user .app-topbar__theme-pill::before {
        transform: translateX(14px);
        background: rgba(15, 23, 42, 0.88);
    }

    body.app-shell-user .app-topbar__theme-pill-track {
        position: relative;
        display: block;
    }

    body.app-shell-user .app-topbar__theme-pill-icon {
        position: absolute;
        top: 50%;
        z-index: 1;
        font-size: 0.68rem;
        transform: translateY(-50%);
        opacity: 0.38;
        transition: opacity var(--ui-duration-base) var(--ui-ease), color var(--ui-duration-base) var(--ui-ease);
    }

    body.app-shell-user .app-topbar__theme-pill-icon--sun {
        left: 7px;
    }

    body.app-shell-user .app-topbar__theme-pill-icon--moon {
        right: 7px;
    }

    body[data-theme='light'].app-shell-user .app-topbar__theme-pill-icon--sun {
        opacity: 1;
        color: #c77b00;
    }

    body[data-theme='dark'].app-shell-user .app-topbar__theme-pill-icon--moon {
        opacity: 1;
        color: #c4b5fd;
    }

    body.app-shell-user .app-topbar .dropdown > .nav-link {
        padding-left: 0.35rem;
    }

    body.app-shell-user .app-topbar .avatar {
        width: 30px;
        height: 30px;
    }
}

body.app-shell-user .app-topbar__left,
body.app-shell-user .app-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

body.app-shell-user .app-topbar__logo {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.2rem 0.15rem 0;
    border-radius: 12px;
}
body.app-shell-user .app-topbar__logo img {
    max-height: 34px;
    max-width: 180px;
    width: auto;
    display: block;
}
@media (max-width: 991.98px) {
    body.app-shell-user .app-topbar__logo img {
        max-height: 30px;
    }
}

body.app-shell-user .app-topbar__title {
    font-weight: 800;
    font-size: 0.96rem;
    color: var(--ui-text);
    letter-spacing: -0.02em;
}

body.app-shell-user .app-topbar__translate,
body.app-shell-user .app-topbar__theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-strong);
    color: var(--ui-text);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .app-topbar__translate {
    width: 34px;
    padding: 0 !important;
    overflow: visible;
}

body.app-shell-user .user-language-pill {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

body.app-shell-user .app-topbar__translate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ui-text);
    font-size: 0.92rem;
    pointer-events: none;
}

body.app-shell-user .app-topbar .ui-theme-toggle {
    font-size: 0.68rem;
    color: var(--ui-text);
}

body.app-shell-user .app-topbar__theme-pill {
    width: 56px;
    padding: 0 !important;
    overflow: hidden;
}

body.app-shell-user .app-topbar__theme-pill-track {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

body.app-shell-user .app-topbar__theme-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: inherit;
}

body.app-shell-user .app-topbar__translate:hover,
body.app-shell-user .app-topbar__translate:focus-within,
body.app-shell-user .app-topbar__theme-toggle:hover,
body.app-shell-user .app-topbar__theme-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: var(--ui-select-hover-border);
    box-shadow: var(--ui-select-focus-ring);
}

body.app-shell-user .app-topbar .avatar {
    width: 32px;
    height: 32px;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    border: 2px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
    overflow: hidden;
}

body.app-shell-user .app-topbar__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

body.app-shell-user .header {
    display: none;
}

/* 4. Bottom Tabbar (Mobile) */
body.app-shell-user .app-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(4.6rem + env(safe-area-inset-bottom, 20px));
    padding-bottom: env(safe-area-inset-bottom, 20px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.06);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
body[data-theme='dark'] .app-tabbar {
    background:
        linear-gradient(180deg, rgba(12, 15, 22, 0.96) 0%, rgba(8, 10, 16, 0.985) 100%),
        var(--ui-tabbar-bg);
}
@media (min-width: 992px) {
    body.app-shell-user .app-tabbar { display: none !important; }
}

body.app-shell-user .app-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    flex: 1;
    height: 100%;
    color: var(--ui-text-soft);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0em;
    transition: color 0.18s ease, transform 0.18s ease;
    opacity: 1;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

body.app-shell-user .app-tabbar__item i {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 28px;
    border-radius: 14px;
    background: transparent;
    color: var(--ui-text-soft);
    font-size: 1.45rem;
    transition:
        background 0.22s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.18s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 0.22s ease;
}

body.app-shell-user .app-tabbar__item span {
    transition: color 0.18s ease, font-weight 0.18s ease;
}

body.app-shell-user .app-tabbar__item:hover i {
    transform: translateY(-2px);
}

body.app-shell-user .app-tabbar__item.is-active {
    color: var(--ui-primary);
    text-decoration: none;
    font-weight: 800;
}

body.app-shell-user .app-tabbar__item.is-active i {
    width: 52px;
    background: rgba(109, 75, 255, 0.12);
    color: var(--ui-primary);
    transform: translateY(-3px) scale(1.05);
}

body[data-theme='dark'].app-shell-user .app-tabbar__item.is-active i {
    background: rgba(167, 139, 250, 0.18);
    color: #c4b5fd;
}

body[data-theme='dark'].app-shell-user .app-tabbar__item.is-active {
    color: #c4b5fd;
}

/* 5. More Sheet (Native Bottom Sheet) */
body.app-shell-user.app-more-sheet-open {
    overflow: hidden;
}

body.app-shell-user .app-more-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 15, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    z-index: 2050;
    transition: opacity 0.4s ease, visibility 0.4s;
}

body.app-shell-user .app-more-sheet-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

body.app-shell-user .app-more-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 600px;
    background: var(--ui-surface);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 60px rgba(0, 0, 0, 0.35);
    z-index: 2100;
    transform: translate(-50%, 100%);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.5s;
    max-height: 88vh;
    overflow: hidden;
}
body.app-shell-user .app-more-sheet.is-open {
    transform: translate(-50%, 0);
    visibility: visible;
}

body.app-shell-user .app-more-sheet__handle {
    width: 38px;
    height: 5px;
    margin: 0.72rem auto 0;
    border-radius: 999px;
    background: var(--ui-border);
    opacity: 0.85;
}

body.app-shell-user .app-more-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.78rem 0.88rem 0.7rem;
}

body.app-shell-user .app-more-sheet__header-copy {
    min-width: 0;
}

body.app-shell-user .app-more-sheet__title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ui-text);
    letter-spacing: -0.02em;
}

body.app-shell-user .app-more-sheet__subtitle {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--ui-text-soft);
}

body.app-shell-user .app-more-sheet__close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
    color: var(--ui-text-soft);
    box-shadow: var(--ui-shadow-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.app-shell-user .app-more-sheet__body {
    padding: 0 0.88rem calc(0.88rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    max-height: calc(min(54vh, 26rem) - 5.6rem);
}

body.app-shell-user .app-more-sheet__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.72rem;
}
body.app-shell-user .app-more-sheet__section + .app-more-sheet__section {
    margin-top: 0.7rem;
}
body.app-shell-user .app-more-sheet__heading {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ui-muted);
    padding: 0 0.12rem;
}
body.app-shell-user .app-more-sheet__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    text-align: left;
    gap: 0.52rem;
    color: var(--ui-text);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0.62rem 0.68rem;
    min-width: 0;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow-soft);
    transition: transform var(--ui-duration-fast) var(--ui-ease), box-shadow var(--ui-duration-fast) var(--ui-ease), border-color var(--ui-duration-fast) var(--ui-ease);
}

body.app-shell-user .app-more-sheet__item:hover,
body.app-shell-user .app-more-sheet__item:focus-visible {
    color: var(--ui-text);
    text-decoration: none;
    transform: translateY(-1px);
    border-color: var(--ui-select-hover-border);
    box-shadow: var(--ui-shadow);
}
body.app-shell-user .app-more-sheet__item--accent {
    border-color: rgba(111, 73, 246, 0.26);
    background:
        linear-gradient(135deg, rgba(111, 73, 246, 0.16), rgba(111, 73, 246, 0.06)),
        var(--ui-surface);
}
body.app-shell-user .app-more-sheet__item--accent .app-more-sheet__icon {
    background: rgba(111, 73, 246, 0.18);
    color: #f4f1ff;
}
body.app-shell-user .app-more-sheet__icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: rgba(109, 75, 255, 0.12);
    color: var(--ui-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex: 0 0 auto;
}

/* 6. Dashboard: Wallet Hero */
body.app-shell-user .wallet-hero {
    position: relative;
    padding: 1.5rem;
    border-radius: var(--ui-radius-xl);
    background: var(--ui-wallet-hero-gradient);
    color: var(--ui-hero-text);
    box-shadow: var(--ui-shadow);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
body.app-shell-user .wallet-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--ui-wallet-hero-glow-top);
}
body.app-shell-user .wallet-hero::after {
    content: '';
    position: absolute;
    right: -4rem;
    bottom: -4rem;
    width: 11rem;
    height: 11rem;
    border-radius: 50%;
    pointer-events: none;
    background: var(--ui-wallet-hero-glow-bottom);
    filter: blur(6px);
}
@media (min-width: 768px) {
    body.app-shell-user .wallet-hero {
        padding: 1.6rem 1.75rem;
    }
}

body.app-shell-user .wallet-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 0.9rem;
    align-items: stretch;
}
body.app-shell-user .wallet-hero__copy,
body.app-shell-user .wallet-hero__balance-card {
    min-width: 0;
}
body.app-shell-user .wallet-hero__greeting {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.84;
    margin-bottom: 0.35rem;
}
body.app-shell-user .wallet-hero__name {
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
}
body.app-shell-user .wallet-hero__subtitle {
    margin: 0.45rem 0 0;
    max-width: 36rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--ui-hero-text-soft);
}
body.app-shell-user .wallet-hero__chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}
body.app-shell-user .wallet-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    background: var(--ui-wallet-hero-chip-bg);
    border: 1px solid var(--ui-wallet-hero-chip-border);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
body.app-shell-user .wallet-hero__chip::before {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--ui-wallet-hero-chip-dot);
    box-shadow: 0 0 0 3px var(--ui-wallet-hero-chip-dot-ring);
    flex: 0 0 auto;
}
body.app-shell-user .wallet-hero__balance-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 22px;
    background: var(--ui-wallet-hero-card-bg);
    border: 1px solid var(--ui-wallet-hero-card-border);
    box-shadow: var(--ui-wallet-hero-card-shadow);
    backdrop-filter: blur(18px);
}
body.app-shell-user .wallet-hero__balance-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
body.app-shell-user .wallet-hero__balance-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.12rem;
}
body.app-shell-user .wallet-hero__balance {
    font-size: clamp(1.95rem, 4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
body.app-shell-user .wallet-hero__mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}
body.app-shell-user .wallet-hero__mini-pill {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 92px;
    padding: 0.72rem 0.78rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
body.app-shell-user .wallet-hero__mini {
    padding: 0.72rem 0.78rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
body.app-shell-user .wallet-hero__mini-label {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    opacity: 0.76;
}
body.app-shell-user .wallet-hero__mini-value {
    display: block;
    margin-top: 0.2rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
body.app-shell-user .wallet-hero__last-tx {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.1rem;
    font-size: 0.82rem;
    color: var(--ui-hero-text-soft);
}
body.app-shell-user .wallet-hero__last-tx i {
    font-size: 0.92rem;
    opacity: 0.84;
}
body.app-shell-user .wallet-hero__fund-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ui-wallet-hero-button-bg);
    color: var(--ui-hero-text);
    font-size: 1.2rem;
    text-decoration: none;
    border: 1px solid var(--ui-wallet-hero-button-border);
    box-shadow: var(--ui-wallet-hero-button-shadow);
    transition: transform var(--ui-duration-base) var(--ui-ease), background var(--ui-duration-base) var(--ui-ease);
    flex: 0 0 auto;
}
body.app-shell-user .wallet-hero__fund-btn:hover {
    color: var(--ui-hero-text);
    text-decoration: none;
    transform: translateY(-1px) scale(1.03);
    background: var(--ui-wallet-hero-button-hover-bg);
}

/* 8. Transaction List (Compact) */
body.app-shell-user .tx-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid var(--ui-border);
}
body.app-shell-user .tx-row:last-child {
    border-bottom: none;
}
body.app-shell-user .tx-row__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 0.9rem;
    flex-shrink: 0;
}
body.app-shell-user .tx-row__body {
    flex: 1 1 0%;
    min-width: 0; /* allows truncation */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
body.app-shell-user .tx-row__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ui-text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.app-shell-user .tx-row__meta {
    font-size: 0.75rem;
    color: var(--ui-text-soft);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.app-shell-user .tx-row__amount-wrap {
    text-align: right;
    flex-shrink: 0;
}
body.app-shell-user .tx-row__amount {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0;
}
body.app-shell-user .tx-row__amount--debit { color: var(--ui-debit) !important; }
body.app-shell-user .tx-row__amount--credit { color: var(--ui-credit) !important; }

/* 9. Compact Info Panels (2-col grid) */
body.app-shell-user .panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}
body.app-shell-user .panel-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface-strong);
    border: 1px solid var(--ui-border);
    transition: all var(--ui-duration-fast) var(--ui-ease);
}
body.app-shell-user .panel-card:hover {
    border-color: rgba(109, 75, 255, 0.28);
    box-shadow: var(--ui-shadow-soft);
}
body.app-shell-user .panel-card__icon {
    font-size: 1.25rem;
    color: var(--ui-primary);
    margin-bottom: 0.6rem;
}
body.app-shell-user .panel-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.15rem 0;
    color: var(--ui-text);
}
body.app-shell-user .panel-card__text {
    font-size: 0.75rem;
    color: var(--ui-text-soft);
    margin: 0 0 0.85rem 0;
    line-height: 1.35;
    flex-grow: 1; /* Pushes button to bottom */
}
body.app-shell-user .panel-card__btn {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: var(--ui-chip-bg);
    color: var(--ui-primary);
    border: none;
    transition: background var(--ui-duration-fast);
}
body.app-shell-user .panel-card__btn:hover {
    background: rgba(109, 75, 255, 0.15);
    text-decoration: none;
}

/* 10. Mobile Aside Details Panel */
body.app-shell-user .wallet-aside {
    display: block;
}
body.app-shell-user .wallet-aside > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: var(--ui-radius-lg);
    background: var(--ui-surface-strong);
    border: 1px solid var(--ui-border);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
}
body.app-shell-user .wallet-aside > summary::-webkit-details-marker {
    display: none;
}
body.app-shell-user .wallet-aside > summary::after {
    content: '\f078'; /* FontAwesome down chevron */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--ui-text-soft);
    transition: transform 0.2s ease;
}
body.app-shell-user .wallet-aside[open] > summary::after {
    transform: rotate(180deg);
}
body.app-shell-user .wallet-aside > .dashboard-panel {
    margin-top: 0; /* Reset since it's inside details */
}
@media (min-width: 1200px) {
    /* Destructure the details element on large screens */
    body.app-shell-user .wallet-aside > summary { display: none; }
    /* Hide the details open/close state logic so content is always visible */
    body.app-shell-user .wallet-aside[open] > summary ~ *,
    body.app-shell-user .wallet-aside:not([open]) > summary ~ * {
        display: block !important;
    }
}

/* Base Animation/Accessibility rule */
@media (prefers-reduced-motion: reduce) {
    body.app-shell-user *,
    body.app-shell-user *::before,
    body.app-shell-user *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 991.98px) {
    .swal2-container, #toast-container {
        bottom: 0;
    }
}

/* Dashboard Enhancements */
body.app-shell-user .wallet-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}
body.app-shell-user .wallet-stat {
    background: var(--ui-surface-strong);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: var(--ui-shadow-soft);
    transition: transform var(--ui-duration-base) var(--ui-ease);
}
body.app-shell-user .wallet-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--ui-shadow);
    border-color: rgba(109, 75, 255, 0.28);
}
body.app-shell-user .wallet-stat__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ui-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
body.app-shell-user .wallet-stat__value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ui-text);
    letter-spacing: -0.02em;
}

body.app-shell-user .tx-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
body.app-shell-user .tx-dot--credit {
    background-color: var(--ui-credit);
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
}
body.app-shell-user .tx-dot--debit {
    background-color: var(--ui-debit);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

body.app-shell-user .panel-card--highlight {
    border-color: var(--ui-primary);
    background: linear-gradient(135deg, var(--ui-surface-strong) 0%, rgba(109, 75, 255, 0.05) 100%);
    box-shadow: 0 4px 20px rgba(109, 75, 255, 0.12);
}
body[data-theme='dark'] .panel-card--highlight {
    background: linear-gradient(135deg, var(--ui-surface-strong) 0%, rgba(139, 92, 246, 0.08) 100%);
}

body.app-shell-user .tx-list__footer {
    display: block;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ui-primary);
    text-decoration: none;
    background: var(--ui-chip-bg);
    border-radius: var(--ui-radius-md);
    margin-top: 1rem;
    transition: background var(--ui-duration-base) var(--ui-ease);
}
body.app-shell-user .tx-list__footer:hover {
    background: rgba(109, 75, 255, 0.15);
    color: var(--ui-primary-2);
    text-decoration: none;
}

body.app-shell-user .credit-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--ui-border);
    margin-top: 1.25rem;
    overflow: hidden;
    display: flex;
}
body.app-shell-user .credit-bar__fill {
    height: 100%;
    background: var(--ui-primary);
    border-radius: 999px;
    transition: width 1s ease-out;
}

@media (max-width: 767.98px) {
    body.app-shell-user .wallet-stats-strip {
        grid-template-columns: 1fr;
    }
}
/* --- Dashboard Enhancements --- */
body.app-shell-user .wallet-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
body.app-shell-user .wallet-stat {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    padding: 0.82rem 0.95rem;
    box-shadow: var(--ui-shadow-soft);
    display: flex;
    flex-direction: column;
}
body.app-shell-user .wallet-stat__label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ui-muted);
    margin-bottom: 0.18rem;
}
body.app-shell-user .wallet-stat__value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ui-text);
}
body.app-shell-user .tx-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
body.app-shell-user .tx-dot--credit {
    background: var(--ui-success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
body.app-shell-user .tx-dot--debit {
    background: var(--ui-danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}
body.app-shell-user .panel-card--highlight {
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    background: linear-gradient(135deg, var(--ui-surface-strong) 0%, rgba(139, 92, 246, 0.05) 100%) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.12) !important;
}
body.app-shell-user .tx-list__footer {
    display: block;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ui-primary);
    border-top: 1px solid var(--ui-border);
    background: var(--ui-bg-alt);
    margin-top: 0.5rem;
    border-bottom-left-radius: var(--ui-radius-lg);
    border-bottom-right-radius: var(--ui-radius-lg);
}
body.app-shell-user .tx-list__footer:hover {
    background: rgba(109, 75, 255, 0.05);
    text-decoration: none;
}
body.app-shell-user .credit-bar {
    width: 100%;
    margin-top: 1.25rem;
}
body.app-shell-user .credit-bar__fill {
    height: 6px;
    background: var(--ui-success);
    border-radius: 999px;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
body.app-shell-user .credit-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 100%;
    width: calc(100vw);
    max-width: 400px;
    background: var(--ui-danger);
    border-radius: 0 999px 999px 0;
}
body.app-shell-user .credit-bar__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ui-muted);
    margin-top: 0.4rem;
}

@media (max-width: 991.98px) {
    body.app-shell-user .wallet-hero__layout {
        grid-template-columns: 1fr;
    }
}
body.app-shell-user .wallet-hero__name,
body.app-shell-user .wallet-hero__subtitle {
    color: var(--ui-hero-text) !important;
}
/* --- Fixes for Topbar, Translate Tool, and Activity --- */

/* 1. Restore light mode for Topbar */
body[data-theme='light'].app-shell-user .app-topbar {
    background: var(--ui-surface) !important;
    border-bottom: 1px solid var(--ui-border) !important;
    color: var(--ui-text) !important;
    box-shadow: var(--ui-shadow-topbar) !important;
}
body[data-theme='light'].app-shell-user .app-topbar__theme-toggle,
body[data-theme='light'].app-shell-user .app-topbar .nav-link,
body[data-theme='light'].app-shell-user .app-topbar__translate {
    color: var(--ui-text) !important;
}

body[data-theme='dark'].app-shell-user .app-topbar {
    background: var(--ui-surface) !important;
    border-bottom: 1px solid var(--ui-border) !important;
    color: var(--ui-text) !important;
    box-shadow: var(--ui-shadow-topbar) !important;
}

body[data-theme='dark'].app-shell-user .app-topbar__theme-toggle,
body[data-theme='dark'].app-shell-user .app-topbar .nav-link,
body[data-theme='dark'].app-shell-user .app-topbar__translate {
    color: var(--ui-text) !important;
    border-color: var(--ui-border);
    background: var(--ui-surface);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

/* 2. Format Translate Pill Height */
body.app-shell-user #google_translate_element {
    display: flex !important;
    align-items: center;
    height: 35px;
    overflow: hidden;
}
body.app-shell-user .goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}
body.app-shell-user .goog-te-combo {
    margin: 0 !important;
    width: 90px !important;
    max-width: 90px !important;
    height: 26px !important;
    padding: 0 0.4rem !important;
    border-radius: 999px !important;
    border: 1px solid var(--ui-select-border) !important;
    background: transparent !important;
    color: var(--ui-text) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    outline: none;
    cursor: pointer;
}

body.app-shell-user select.form-control,
body.app-shell-admin select.form-control {
    min-height: 52px;
    border-radius: 16px;
    background-color: var(--ui-field-bg);
    color: var(--ui-field-text);
}

body.app-shell-user .select2-container,
body.app-shell-admin .select2-container {
    width: 100% !important;
}

body.app-shell-user .select2-container .select2-selection--single,
body.app-shell-admin .select2-container .select2-selection--single {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft, var(--ui-surface));
    display: flex;
    align-items: center;
    padding: 0.12rem 0.9rem;
    box-shadow: none;
}

body.app-shell-user .select2-container .select2-selection--single .select2-selection__rendered,
body.app-shell-admin .select2-container .select2-selection--single .select2-selection__rendered {
    display: flex !important;
    align-items: center;
    min-height: 100%;
    line-height: 1.35 !important;
    padding-left: 0 !important;
    padding-right: 1.7rem !important;
    color: var(--ui-text) !important;
    white-space: normal;
}

body.app-shell-user .select2-container .select2-selection--single .select2-selection__placeholder,
body.app-shell-admin .select2-container .select2-selection--single .select2-selection__placeholder {
    color: var(--ui-muted) !important;
    line-height: 1.35 !important;
}

body.app-shell-user .select2-container .select2-selection--single .select2-selection__arrow,
body.app-shell-admin .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 0.7rem !important;
}

body.app-shell-user .select2-container .select2-selection--single .select2-selection__arrow b,
body.app-shell-admin .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--ui-muted) transparent transparent transparent !important;
}

body[data-theme='dark'].app-shell-user .select2-container .select2-selection--single,
body[data-theme='dark'].app-shell-admin .select2-container .select2-selection--single {
    background: var(--ui-surface);
    border-color: var(--ui-border);
}

/* 3. Center Activity Rows & Left-Align View All */
body.app-shell-user .tx-row--enhanced {
    align-items: center !important;
}
body.app-shell-user .tx-row__icon {
    display: grid !important;
    place-items: center !important;
    height: 100% !important;
}
body.app-shell-user .tx-list__footer {
    text-align: left !important;
    padding-left: 1rem !important;
}
/* --- Premium UI Components: Part 1 --- */

/* Smart Insight Banners */
body.app-shell-user .insight-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.85rem; /* Even more compact */
    background: linear-gradient(90deg, var(--ui-primary), var(--ui-primary-2));
    color: var(--ui-nav-active-text);
    border-radius: var(--ui-radius-lg);
    margin-bottom: 0.75rem; 
    box-shadow: 0 8px 16px rgba(109, 75, 255, 0.2);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.4s var(--ui-ease);
    min-height: 44px; 
}
@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
body.app-shell-user .insight-banner i { font-size: 0.9rem; }
body.app-shell-user .insight-banner__content { flex: 1; font-size: 0.72rem; font-weight: 600; line-height: 1.2; }
body.app-shell-user .insight-banner .btn-neutral {
    padding: 0.25rem 0.6rem !important;
    font-size: 0.65rem !important;
    height: auto !important;
    line-height: 1 !important;
}
body.app-shell-user .insight-banner__close { 
    position: absolute;
    top: 5px;
    right: 8px;
    background: transparent; 
    border: none; 
    color: var(--ui-nav-active-text); 
    opacity: 0.6; 
    cursor: pointer; 
    padding: 0.25rem;
    font-size: 0.8rem;
    transition: opacity 0.2s;
}
body.app-shell-user .insight-banner__close:hover { opacity: 1; }

/* Floating Action Cards */
body.app-shell-user .quick-actions-floating {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0.9rem 0 1.1rem;
    position: relative;
    z-index: 1;
    padding: 0;
}
body.app-shell-user .quick-action-card {
    background: var(--ui-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-lg);
    padding: 0.95rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: var(--ui-text) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: var(--ui-shadow-soft);
}
body[data-theme='dark'].app-shell-user .quick-action-card {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
}
body.app-shell-user .quick-action-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(109, 75, 255, 0.25);
    box-shadow: var(--ui-shadow);
}
body[data-theme='dark'].app-shell-user .quick-action-card:hover {
    background: rgba(24, 30, 44, 0.98);
}
body.app-shell-user .quick-action-card i {
    font-size: 1.05rem;
    color: var(--ui-primary);
}
body.app-shell-user .quick-action-card span {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Wallet Transfer Page */
body.app-shell-user .wallet-transfer-page {
    padding-top: 1rem;
}

body.app-shell-user .wallet-withdraw-page {
    padding-top: 1rem;
}

body.app-shell-user .wallet-withdraw-grid {
    row-gap: 1rem;
}

body.app-shell-user .wallet-transfer-intro {
    padding: 0.9rem 0.95rem;
    margin-bottom: 1rem;
}

body.app-shell-user .wallet-transfer-intro__header {
    margin-bottom: 0;
    align-items: center;
}

body.app-shell-user .wallet-transfer-intro__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

body.app-shell-user .wallet-path-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
}

body.app-shell-user .wallet-path-badges--compact {
    margin-bottom: 0.7rem;
}

body.app-shell-user .wallet-path-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.34rem 0.58rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    color: var(--ui-text-soft);
    background: var(--ui-surface-soft);
}

body.app-shell-user .wallet-path-badge i {
    font-size: 0.82rem;
}

body.app-shell-user .wallet-path-badge--automatic {
    color: #155e75;
    background: rgba(34, 211, 238, 0.16);
    border-color: rgba(8, 145, 178, 0.18);
}

body.app-shell-user .wallet-path-badge--instant {
    color: #4338ca;
    background: rgba(129, 140, 248, 0.16);
    border-color: rgba(99, 102, 241, 0.18);
}

body.app-shell-user .wallet-path-badge--manual {
    color: #6d28d9;
    background: rgba(168, 85, 247, 0.14);
    border-color: rgba(147, 51, 234, 0.18);
}

body.app-shell-user .wallet-path-badge--review {
    color: #92400e;
    background: rgba(251, 191, 36, 0.16);
    border-color: rgba(217, 119, 6, 0.18);
}

body.app-shell-user .wallet-withdraw-intro {
    padding: 0.9rem 0.95rem;
    margin-bottom: 1rem;
}

body.app-shell-user .wallet-withdraw-intro__header {
    margin-bottom: 0;
    align-items: center;
}

body.app-shell-user .wallet-withdraw-intro__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

body.app-shell-user .wallet-withdraw-form-panel,
body.app-shell-user .wallet-withdraw-summary-panel {
    min-height: 100%;
}

body.app-shell-user .wallet-withdraw-summary-panel .wallet-transfer-detail__value {
    font-size: 1rem;
}

body.app-shell-user .wallet-withdraw-aside {
    display: grid;
    gap: 1rem;
    align-content: start;
}

body.app-shell-user .wallet-withdraw-aside > .dashboard-panel {
    margin: 0 !important;
}

body.app-shell-user .wallet-withdraw-page .dashboard-panel__header {
    flex-wrap: wrap;
}

body.app-shell-user .wallet-withdraw-page .dashboard-panel__header .badge {
    max-width: 100%;
    white-space: normal;
}

body.app-shell-user .wallet-send-aside,
body.app-shell-user .wallet-transfer-aside {
    display: grid;
    gap: 1rem;
    align-content: start;
}

body.app-shell-user .wallet-send-aside > .dashboard-panel,
body.app-shell-user .wallet-transfer-aside > .dashboard-panel {
    margin: 0 !important;
}

body.app-shell-user .wallet-send-page .dashboard-panel__header,
body.app-shell-user .wallet-transfer-page .dashboard-panel__header {
    flex-wrap: wrap;
}

body.app-shell-user .wallet-send-page .dashboard-panel__header .badge,
body.app-shell-user .wallet-transfer-page .dashboard-panel__header .badge {
    max-width: 100%;
    white-space: normal;
}

body.app-shell-user .wallet-transfer-form .form-group {
    margin-bottom: 1rem;
}

body.app-shell-user .wallet-withdraw-page .select2-container {
    width: 100% !important;
}

body.app-shell-user .wallet-withdraw-page .select2-container .select2-selection--single {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    display: flex;
    align-items: center;
    padding: 0.2rem 0.95rem;
    box-shadow: none;
}

body.app-shell-user .wallet-withdraw-page .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 1.35;
    padding-left: 0;
    padding-right: 1.8rem;
    color: var(--ui-text);
}

body.app-shell-user .wallet-withdraw-page .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 0.7rem;
}

body.app-shell-user .wallet-withdraw-page .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--ui-muted) transparent transparent transparent;
}

body.app-shell-user .wallet-withdraw-page .wallet-transfer-details--summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

body.app-shell-user .wallet-send-page .wallet-transfer-details--summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

body.app-shell-user .wallet-withdraw-page .wallet-transfer-details--summary .wallet-transfer-detail {
    min-height: 0;
    padding: 0.78rem 0.82rem;
}

body.app-shell-user .wallet-send-page .wallet-transfer-details--summary .wallet-transfer-detail {
    min-height: 0;
    padding: 0.78rem 0.82rem;
}

body.app-shell-user .wallet-withdraw-page .wallet-transfer-details--summary .wallet-transfer-detail__value {
    font-size: 0.9rem;
    line-height: 1.25;
}

body.app-shell-user .wallet-send-page .wallet-transfer-details--summary .wallet-transfer-detail__value {
    font-size: 0.9rem;
    line-height: 1.25;
}

body.app-shell-user .wallet-form-section {
    padding: 1rem 1rem 1.05rem;
    border-radius: 20px;
    background: var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .wallet-form-section + .wallet-form-section {
    margin-top: 0.9rem;
}

body.app-shell-user .wallet-form-section__title {
    margin-bottom: 0.85rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-transfer-form-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.78rem;
}

body.app-shell-user .wallet-transfer-form-meta__item {
    padding: 0.58rem 0.66rem;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 24%),
        var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.app-shell-user .wallet-transfer-form-meta__label {
    display: block;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-transfer-form-meta__value {
    display: block;
    margin-top: 0.14rem;
    font-size: 0.84rem;
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ui-text);
}

body.app-shell-user .wallet-flow-stepline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.7rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

body.app-shell-user .wallet-flow-stepline__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

body.app-shell-user .wallet-flow-stepline__num {
    width: 1.3rem;
    height: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 0.68rem;
    font-weight: 800;
    flex: 0 0 auto;
}

body.app-shell-user .wallet-flow-stepline__text {
    min-width: 0;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ui-text-soft);
}

body.app-shell-user .wallet-transfer-form .col-form-label,
body.app-shell-user .wallet-transfer-form label {
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-transfer-form .form-control,
body.app-shell-user .wallet-transfer-form .custom-file-label {
    min-height: 46px;
    border-radius: 16px;
    padding-left: 1rem;
    padding-right: 1rem;
}

body.app-shell-user .wallet-transfer-form .form-control.is-invalid,
body.app-shell-user .wallet-transfer-form .custom-file-label.is-invalid {
    border-color: rgba(239, 68, 68, 0.42);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

body.app-shell-user .wallet-transfer-form textarea.form-control {
    min-height: 118px;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

body.app-shell-user .wallet-transfer-form .custom-file-label {
    display: flex;
    align-items: center;
    padding-right: 3.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.app-shell-user .wallet-transfer-form .custom-file-label::after {
    height: 100%;
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
}

body.app-shell-user .wallet-transfer-form .custom-file-label,
body.app-shell-admin .custom-file-label {
    background: var(--ui-field-bg);
    color: var(--ui-field-text);
    border-color: var(--ui-border);
}

body.app-shell-user .wallet-transfer-form .custom-file-label::after,
body.app-shell-admin .custom-file-label::after {
    background: var(--ui-surface-soft);
    color: var(--ui-text);
    border-left: 1px solid var(--ui-border);
}

body.app-shell-user .wallet-amount-field {
    display: flex;
    align-items: stretch;
    min-height: 50px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .wallet-amount-field.is-invalid {
    border-color: rgba(239, 68, 68, 0.42);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

body.app-shell-user .wallet-amount-field__prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0 0.95rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ui-text);
    background: rgba(116, 82, 255, 0.08);
    border-right: 1px solid var(--ui-border);
}

body.app-shell-user .wallet-amount-field__input.form-control {
    min-height: 50px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding-left: 1rem;
}

body.app-shell-user .wallet-amount-field__input.form-control:focus {
    box-shadow: none;
}

body.app-shell-user .wallet-transfer-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

body.app-shell-user .wallet-transfer-form .btn.is-loading,
body.app-shell-user .wallet-transfer-form .btn[aria-busy='true'] {
    opacity: 0.78;
    pointer-events: none;
}

body.app-shell-user .wallet-transfer-details {
    display: grid;
    gap: 0.75rem;
}

body.app-shell-user .wallet-flow-summary-card .wallet-transfer-details--summary {
    gap: 0.62rem;
}

body.app-shell-user .wallet-transfer-details,
body.app-shell-user .wallet-transfer-detail,
body.app-shell-user .wallet-transfer-detail__meta,
body.app-shell-user .wallet-history-row__meta,
body.app-shell-user .wallet-ledger-row__content,
body.app-shell-user .wallet-ledger-row__head,
body.app-shell-user .wallet-ledger-row__actions,
body.app-shell-user .wallet-flow-note,
body.app-shell-user .wallet-flow-note__text,
body.app-shell-user .tx-row__body,
body.app-shell-user .tx-row__amount-wrap,
body.app-shell-user .dashboard-panel__header > div {
    min-width: 0;
}

body.app-shell-user .wallet-transfer-detail {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.88rem 0.95rem;
    border-radius: 18px;
    background: var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .wallet-flow-summary-card .wallet-transfer-detail {
    padding: 0.78rem 0.84rem;
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 24%),
        var(--ui-surface-soft);
}

body.app-shell-user .wallet-transfer-detail__meta {
    min-width: 0;
}

body.app-shell-user .wallet-transfer-detail__label {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-flow-summary-card .wallet-transfer-detail__label {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
}

body.app-shell-user .wallet-transfer-detail__value {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--ui-text);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.app-shell-user .wallet-flow-summary-card .wallet-transfer-detail__value {
    margin-top: 0.14rem;
    font-size: 0.88rem;
    line-height: 1.22;
}

body.app-shell-user .wallet-transfer-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--ui-duration-base) var(--ui-ease), background var(--ui-duration-base) var(--ui-ease);
}

body.app-shell-user .wallet-transfer-copy:hover {
    text-decoration: none;
    transform: translateY(-1px);
    background: rgba(109, 75, 255, 0.14);
}

body.app-shell-user .wallet-transfer-copy.is-copied {
    background: rgba(34, 197, 94, 0.15);
    color: var(--ui-credit);
    border-color: rgba(34, 197, 94, 0.24);
}

body.app-shell-user .wallet-transfer-empty,
body.app-shell-user .wallet-transfer-note {
    color: var(--ui-text-soft);
    font-size: 0.84rem;
    line-height: 1.45;
}

body.app-shell-user .wallet-transfer-empty {
    padding: 0.95rem;
    border-radius: 16px;
    background: var(--ui-surface-soft);
    border: 1px dashed var(--ui-border);
}

body.app-shell-user .wallet-flow-inline-status-list {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

body.app-shell-user .wallet-flow-inline-status {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 24%),
        var(--ui-surface);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .wallet-flow-inline-status.is-warning {
    border-color: rgba(255, 186, 73, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 186, 73, 0.12) 0%, rgba(255, 186, 73, 0) 24%),
        var(--ui-surface);
}

body.app-shell-user .wallet-flow-inline-status.is-success {
    border-color: rgba(34, 197, 94, 0.22);
    background:
        linear-gradient(180deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0) 24%),
        var(--ui-surface);
}

body.app-shell-user .wallet-flow-inline-status.is-danger {
    border-color: rgba(248, 113, 113, 0.22);
    background:
        linear-gradient(180deg, rgba(248, 113, 113, 0.12) 0%, rgba(248, 113, 113, 0) 24%),
        var(--ui-surface);
}

body.app-shell-user .wallet-flow-inline-status.is-action {
    border-color: rgba(109, 75, 255, 0.16);
    background:
        linear-gradient(180deg, rgba(109, 75, 255, 0.10) 0%, rgba(109, 75, 255, 0) 24%),
        var(--ui-surface);
}

body.app-shell-user .wallet-flow-inline-status__body {
    min-width: 0;
}

body.app-shell-user .wallet-flow-inline-status__head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

body.app-shell-user .wallet-flow-inline-status__icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 0.95rem;
}

body.app-shell-user .wallet-flow-inline-status.is-warning .wallet-flow-inline-status__icon {
    background: rgba(255, 186, 73, 0.16);
    color: var(--ui-warning);
}

body.app-shell-user .wallet-flow-inline-status.is-success .wallet-flow-inline-status__icon {
    background: rgba(34, 197, 94, 0.16);
    color: var(--ui-credit);
}

body.app-shell-user .wallet-flow-inline-status.is-danger .wallet-flow-inline-status__icon {
    background: rgba(248, 113, 113, 0.16);
    color: #ff9d9d;
}

body.app-shell-user .wallet-flow-inline-status__title {
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--ui-text);
}

body.app-shell-user .wallet-flow-inline-status__text {
    margin: 0.35rem 0 0;
    color: var(--ui-text-soft);
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.app-shell-user .wallet-flow-inline-status__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0.56rem 0.82rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

body.app-shell-user .wallet-flow-inline-status__cta:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

body.app-shell-user .wallet-flow-inline-status-list--compact {
    gap: 0.55rem;
    margin-bottom: 0.82rem;
}

body.app-shell-user .wallet-flow-inline-status--compact {
    align-items: center;
    gap: 0.72rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
}

body.app-shell-user .wallet-flow-inline-status--compact .wallet-flow-inline-status__head {
    gap: 0.45rem;
}

body.app-shell-user .wallet-flow-inline-status--compact .wallet-flow-inline-status__icon {
    width: 1.65rem;
    height: 1.65rem;
    flex-basis: 1.65rem;
    border-radius: 10px;
    font-size: 0.84rem;
}

body.app-shell-user .wallet-flow-inline-status--compact .wallet-flow-inline-status__title {
    font-size: 0.8rem;
    line-height: 1.15;
}

body.app-shell-user .wallet-flow-inline-status--compact .wallet-flow-inline-status__text {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    line-height: 1.3;
}

body.app-shell-user .wallet-flow-inline-status--compact .wallet-flow-inline-status__cta {
    padding: 0.46rem 0.7rem;
    font-size: 0.68rem;
}

body.app-shell-user .wallet-upgrade-brief {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-color: rgba(109, 75, 255, 0.18);
    background:
        radial-gradient(circle at top left, rgba(109, 75, 255, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(109, 75, 255, 0.08) 0%, rgba(109, 75, 255, 0) 26%),
        var(--ui-surface);
}

body.app-shell-user .wallet-upgrade-brief.is-upgrade-focus {
    border-color: rgba(109, 75, 255, 0.28);
    box-shadow: var(--ui-shadow);
}

body.app-shell-user .wallet-upgrade-brief.is-success {
    border-color: rgba(79, 193, 140, 0.26);
    background:
        radial-gradient(circle at top left, rgba(79, 193, 140, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(79, 193, 140, 0.10) 0%, rgba(79, 193, 140, 0) 26%),
        var(--ui-surface);
}

body.app-shell-user .wallet-upgrade-brief__content {
    display: grid;
    gap: 0.95rem;
}

body.app-shell-user .wallet-upgrade-brief__text {
    margin: 0.42rem 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--ui-text-soft);
    max-width: 58rem;
}

body.app-shell-user .wallet-upgrade-brief__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

body.app-shell-user .wallet-upgrade-chip {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 0.16rem;
    padding: 0.72rem 0.82rem;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 24%),
        var(--ui-surface-soft);
}

body.app-shell-user .wallet-upgrade-chip__label {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-upgrade-chip__value {
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--ui-text);
    font-variant-numeric: tabular-nums;
}

body.app-shell-user .wallet-upgrade-brief__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

body.app-shell-user .wallet-upgrade-brief__hint {
    min-width: 0;
    flex: 1 1 18rem;
    font-size: 0.76rem;
    line-height: 1.5;
    color: var(--ui-text-soft);
    overflow-wrap: anywhere;
}

body.app-shell-user .wallet-upgrade-brief--compact {
    padding: 0.82rem 0.9rem;
}

body.app-shell-user .wallet-upgrade-brief__compact-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.7rem;
}

body.app-shell-user .wallet-upgrade-brief__compact-copy {
    min-width: 0;
}

body.app-shell-user .wallet-upgrade-brief__compact-copy .dashboard-section__title {
    font-size: 1rem;
    line-height: 1.12;
}

body.app-shell-user .wallet-upgrade-brief__compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

body.app-shell-user .wallet-upgrade-brief__compact-item {
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 0.55rem 0.68rem;
    border-radius: 14px;
    border: 1px solid var(--ui-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 24%),
        var(--ui-surface-soft);
}

body.app-shell-user .wallet-upgrade-brief__compact-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-upgrade-brief__compact-value {
    font-size: 0.82rem;
    line-height: 1.15;
    color: var(--ui-text);
    font-variant-numeric: tabular-nums;
}

body.app-shell-user .wallet-upgrade-brief__compact-cta {
    min-height: 2.3rem;
    padding-top: 0.56rem;
    padding-bottom: 0.56rem;
    white-space: nowrap;
}

body.app-shell-user .wallet-history-page {
    padding-top: 0.15rem;
}

body.app-shell-user .wallet-history-intro {
    padding: 0.9rem 0.95rem;
    margin-bottom: 1rem;
}

body.app-shell-user .wallet-history-intro__header {
    margin-bottom: 0;
    align-items: center;
}

body.app-shell-user .wallet-history-intro__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

body.app-shell-user .tx-row--full {
    padding: 0.95rem 0;
}

body.app-shell-user .tx-row__icon--ledger {
    background: var(--ui-surface-strong);
    color: var(--ui-primary);
    border: 1px solid var(--ui-border);
}

body.app-shell-user .tx-row__icon--withdraw {
    color: var(--ui-danger);
}

body.app-shell-user .wallet-history-row__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.55rem;
    flex-wrap: wrap;
}

body.app-shell-user .wallet-activity-preview .dashboard-panel__header {
    margin-bottom: 0.65rem;
}

body.app-shell-user .wallet-activity-preview .dashboard-service-stack {
    gap: 0.4rem;
}

body.app-shell-user .wallet-activity-preview .tx-row--full {
    padding: 0.6rem 0.1rem;
}

body.app-shell-user .wallet-activity-preview .wallet-ledger-row__head {
    gap: 0.42rem;
}

body.app-shell-user .wallet-activity-preview .tx-row__title {
    font-size: 0.84rem;
    line-height: 1.2;
}

body.app-shell-user .wallet-activity-preview .tx-row__meta {
    font-size: 0.72rem;
    line-height: 1.35;
}

body.app-shell-user .wallet-activity-preview .tx-row__amount {
    font-size: 0.84rem;
}

body.app-shell-user .wallet-activity-preview .wallet-history-row__footer {
    margin-top: 0.42rem;
    gap: 0.45rem;
}

body.app-shell-user .wallet-activity-preview .wallet-history-row__meta {
    gap: 0.34rem 0.6rem;
    font-size: 0.72rem;
}

body.app-shell-user .wallet-activity-preview .badge.badge-pill {
    padding: 0.28rem 0.5rem;
    font-size: 0.65rem;
}

body.app-shell-user .wallet-history-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.76rem;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-history-row__meta span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.app-shell-user .wallet-send-page {
    padding-top: 1rem;
}

body.app-shell-user .wallet-send-intro {
    padding: 0.9rem 0.95rem;
    margin-bottom: 1rem;
}

body.app-shell-user .wallet-send-intro__header {
    margin-bottom: 0;
    align-items: center;
}

body.app-shell-user .wallet-send-intro__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

body.app-shell-user .wallet-send-form-panel,
body.app-shell-user .wallet-send-summary-panel {
    min-height: auto;
}

body.app-shell-user .wallet-send-summary-panel {
    align-self: flex-start;
}

body.app-shell-user .wallet-send-aside,
body.app-shell-user .wallet-transfer-aside,
body.app-shell-user .wallet-withdraw-aside {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

body.app-shell-user .wallet-funding-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

body.app-shell-user .wallet-funding-option {
    display: block;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
}

body.app-shell-user .wallet-funding-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.app-shell-user .wallet-funding-option__card {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.82rem 0.88rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 24%),
        var(--ui-surface-soft);
    box-shadow: var(--ui-shadow-soft);
    transition: transform var(--ui-duration-base) var(--ui-ease), border-color var(--ui-duration-base) var(--ui-ease), box-shadow var(--ui-duration-base) var(--ui-ease), background var(--ui-duration-base) var(--ui-ease);
}

body.app-shell-user .wallet-funding-option--gateway .wallet-funding-option__card {
    position: relative;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(109, 75, 255, 0.06) 0%, rgba(109, 75, 255, 0) 26%),
        var(--ui-surface);
}

body.app-shell-user .wallet-funding-option:hover .wallet-funding-option__card,
body.app-shell-user .wallet-funding-option.is-active .wallet-funding-option__card {
    transform: translateY(-1px);
    border-color: rgba(109, 75, 255, 0.24);
    box-shadow: var(--ui-shadow);
}

body.app-shell-user .wallet-funding-option.is-active .wallet-funding-option__card {
    background:
        linear-gradient(180deg, rgba(109, 75, 255, 0.10) 0%, rgba(109, 75, 255, 0) 24%),
        var(--ui-surface);
}

body.app-shell-user .wallet-funding-option__icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 1rem;
    flex: 0 0 auto;
}

body.app-shell-user .wallet-funding-option__icon--image {
    padding: 0.3rem;
    background: var(--ui-tabbar-bg);
    box-shadow: inset 0 0 0 1px rgba(109, 75, 255, 0.08);
}

body.app-shell-user .wallet-funding-option__icon--image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

body.app-shell-user .wallet-funding-option__copy {
    min-width: 0;
    display: grid;
    gap: 0.14rem;
}

body.app-shell-user .wallet-funding-option__eyebrow {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ui-muted);
}

body[data-theme='dark'].app-shell-user .wallet-path-badge {
    color: rgba(236, 239, 248, 0.9);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body[data-theme='dark'].app-shell-user .wallet-path-badge--automatic {
    color: #8be9ff;
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.2);
}

body[data-theme='dark'].app-shell-user .wallet-path-badge--instant {
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.16);
    border-color: rgba(139, 92, 246, 0.22);
}

body[data-theme='dark'].app-shell-user .wallet-path-badge--manual {
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.16);
    border-color: rgba(168, 85, 247, 0.22);
}

body[data-theme='dark'].app-shell-user .wallet-path-badge--review {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.22);
}

body.app-shell-user .wallet-funding-option__title {
    display: block;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.2;
    color: var(--ui-text);
}

body.app-shell-user .wallet-funding-option__text {
    font-size: 0.74rem;
    line-height: 1.35;
    color: var(--ui-text-soft);
}

body.app-shell-user .wallet-funding-instructions[hidden] {
    display: none !important;
}

body.app-shell-user .wallet-funding-instructions__intro {
    margin-bottom: 0.85rem;
}

body.app-shell-user .wallet-funding-instructions__eyebrow {
    display: inline-block;
    margin-bottom: 0.22rem;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-funding-instructions__title {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.2;
    color: var(--ui-text);
}

body.app-shell-user .wallet-funding-instructions__text {
    margin: 0.3rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--ui-text-soft);
}

body[data-theme='dark'].app-shell-user .wallet-funding-option__card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 24%),
        var(--ui-surface-soft);
}

body[data-theme='dark'].app-shell-user .wallet-funding-option--gateway .wallet-funding-option__card {
    background:
        linear-gradient(180deg, rgba(138, 99, 255, 0.10) 0%, rgba(138, 99, 255, 0) 24%),
        var(--ui-surface);
}

body[data-theme='dark'].app-shell-user .wallet-funding-option__icon--image {
    background: rgba(255, 255, 255, 0.92);
}

body[data-theme='dark'].app-shell-user .wallet-funding-option.is-active .wallet-funding-option__card {
    background:
        linear-gradient(180deg, rgba(138, 99, 255, 0.12) 0%, rgba(138, 99, 255, 0) 24%),
        var(--ui-surface);
}

body[data-theme='dark'].app-shell-user .wallet-upgrade-brief {
    background:
        radial-gradient(circle at top left, rgba(138, 99, 255, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(138, 99, 255, 0.10) 0%, rgba(138, 99, 255, 0) 26%),
        var(--ui-surface);
}

body[data-theme='dark'].app-shell-user .wallet-upgrade-brief.is-success {
    background:
        radial-gradient(circle at top left, rgba(79, 193, 140, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(79, 193, 140, 0.10) 0%, rgba(79, 193, 140, 0) 26%),
        var(--ui-surface);
}

body[data-theme='dark'].app-shell-user .wallet-upgrade-chip {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 24%),
        var(--ui-surface-soft);
}

@media (max-width: 575.98px) {
    body.app-shell-user .wallet-funding-option-grid {
        grid-template-columns: 1fr;
    }

    body.app-shell-user .wallet-funding-option__card {
        padding: 0.8rem 0.82rem;
        border-radius: 16px;
    }

    body.app-shell-user .wallet-flow-inline-status {
        padding: 0.85rem 0.88rem;
        border-radius: 16px;
        flex-direction: column;
    }

    body.app-shell-user .wallet-flow-inline-status--compact {
        flex-direction: row;
        align-items: center;
        padding: 0.62rem 0.7rem;
        border-radius: 14px;
    }

    body.app-shell-user .wallet-flow-inline-status__title {
        font-size: 0.82rem;
    }

    body.app-shell-user .wallet-flow-inline-status__text,
    body.app-shell-user .wallet-flow-inline-status__cta {
        font-size: 0.72rem;
    }

    body.app-shell-user .wallet-upgrade-brief {
        padding: 0.9rem 0.92rem;
        gap: 0.82rem;
    }

    body.app-shell-user .wallet-upgrade-brief__text {
        font-size: 0.76rem;
    }

    body.app-shell-user .wallet-upgrade-brief__chips {
        gap: 0.45rem;
    }

    body.app-shell-user .wallet-upgrade-chip {
        width: 100%;
        padding: 0.66rem 0.72rem;
        border-radius: 14px;
    }

    body.app-shell-user .wallet-upgrade-chip__value {
        font-size: 0.84rem;
    }

    body.app-shell-user .wallet-upgrade-brief__actions {
        align-items: stretch;
    }

    body.app-shell-user .wallet-upgrade-brief__actions .btn {
        width: 100%;
    }

    body.app-shell-user .wallet-upgrade-brief__hint {
        flex-basis: 100%;
        font-size: 0.72rem;
    }

    body.app-shell-user .wallet-upgrade-brief--compact {
        padding: 0.72rem 0.78rem;
    }

    body.app-shell-user .wallet-upgrade-brief__compact-main {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 0.58rem;
    }

    body.app-shell-user .wallet-upgrade-brief__compact-copy .dashboard-section__title {
        font-size: 0.94rem;
    }

    body.app-shell-user .wallet-upgrade-brief__compact-meta {
        justify-content: flex-start;
        gap: 0.38rem;
    }

    body.app-shell-user .wallet-upgrade-brief__compact-item {
        width: calc(50% - 0.19rem);
        padding: 0.48rem 0.58rem;
        border-radius: 12px;
    }

    body.app-shell-user .wallet-upgrade-brief__compact-item:last-child {
        width: 100%;
    }

    body.app-shell-user .wallet-upgrade-brief__compact-value {
        font-size: 0.78rem;
    }

    body.app-shell-user .wallet-upgrade-brief__compact-cta {
        width: 100%;
    }
}

body.app-shell-user .wallet-flow-shell {
    padding-top: 1.35rem;
}

body.app-shell-user .wallet-account-page .wallet-flow-hero {
    margin-bottom: 0.85rem;
}

body.app-shell-user .wallet-account-page .wallet-flow-inline-status-list {
    margin-bottom: 0.9rem;
}

body.app-shell-user .wallet-account-page .dashboard-panel__header {
    margin-bottom: 0.95rem;
}

body.app-shell-user .wallet-account-page .wallet-flow-stepline {
    margin-bottom: 0.72rem;
}

body.app-shell-user .wallet-account-page .wallet-form-section {
    padding: 0.92rem 0.92rem 0.96rem;
}

body.app-shell-user .wallet-account-page .wallet-transfer-form__actions {
    margin-top: 0.85rem;
}

body.app-shell-user .wallet-authorization-aside,
body.app-shell-user .wallet-profile-aside,
body.app-shell-user .wallet-security-aside {
    display: grid;
    gap: 1rem;
    align-content: start;
}

body.app-shell-user .wallet-security-qr-wrap {
    padding: 0.9rem;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 22%),
        var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .wallet-security-qr-wrap img {
    display: block;
    width: 100%;
    height: auto;
}

body.app-shell-user .wallet-account-page .wallet-flow-summary-card .wallet-transfer-details--summary {
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

body.app-shell-user .wallet-account-page .wallet-flow-summary-card .wallet-transfer-detail {
    min-height: 0;
    padding: 0.8rem 0.82rem;
}

body.app-shell-user .wallet-account-page .wallet-flow-summary-card .wallet-transfer-detail__value {
    font-size: 0.9rem;
    line-height: 1.28;
}

body.app-shell-user .wallet-flow-hero {
    padding: 1.1rem 1.1rem 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--ui-flow-hero-border);
    background: var(--ui-flow-hero-gradient);
    box-shadow: var(--ui-flow-hero-shadow);
}

body.app-shell-user .wallet-flow-hero__bg {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg-image);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    transform: scale(0.85) translateX(8%);
    filter: blur(3px);
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

body.app-shell-user .wallet-flow-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ui-flow-hero-sheen);
    pointer-events: none;
}

body.app-shell-user .wallet-flow-hero::after {
    content: '';
    position: absolute;
    inset: auto -52px -66px auto;
    width: 214px;
    height: 214px;
    border-radius: 50%;
    background: var(--ui-flow-hero-glow);
    pointer-events: none;
}

body.app-shell-user .wallet-requestcard-hero::after {
    content: none;
}

body.app-shell-user .wallet-requestcard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(9, 12, 24, 0.9), rgba(20, 24, 38, 0.8) 52%, rgba(10, 53, 71, 0.54)),
        radial-gradient(circle at 18% 18%, rgba(121, 91, 255, 0.18), rgba(121, 91, 255, 0) 42%);
    pointer-events: none;
}

body.app-shell-user .wallet-requestcard-hero .wallet-flow-hero__header {
    align-items: center;
    position: relative;
    z-index: 1;
}

body.app-shell-user .wallet-requestcard-hero .dashboard-section__eyebrow,
body.app-shell-user .wallet-requestcard-hero .wallet-flow-hero__title,
body.app-shell-user .wallet-requestcard-hero .wallet-flow-hero__text,
body.app-shell-user .wallet-requestcard-hero .wallet-flow-kpi__label,
body.app-shell-user .wallet-requestcard-hero .wallet-flow-kpi__value,
body.app-shell-user .wallet-requestcard-hero .wallet-flow-kpi__meta {
    text-shadow: 0 1px 10px rgba(3, 6, 15, 0.28);
}

body.app-shell-user .wallet-requestcard-hero .wallet-flow-hero__title,
body.app-shell-user .wallet-requestcard-hero .wallet-flow-kpi__value {
    color: rgba(248, 250, 255, 0.98);
}

body.app-shell-user .wallet-requestcard-hero .wallet-flow-hero__text,
body.app-shell-user .wallet-requestcard-hero .wallet-flow-kpi__meta {
    color: rgba(224, 230, 243, 0.9);
}

body.app-shell-user .wallet-requestcard-hero .wallet-flow-kpi__label {
    color: rgba(191, 201, 221, 0.8);
}

body.app-shell-user .wallet-requestcard-hero .wallet-flow-kpi {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 40px rgba(8, 12, 26, 0.2);
}

body.app-shell-user .wallet-requestcard-hero__visual {
    padding: 0.25rem 0;
    margin-top: -0.1rem;
    margin-bottom: -0.45rem;
    justify-content: center;
}

body.app-shell-user .wallet-requestcard-hero__visual::before {
    content: '';
    position: absolute;
    inset: 12% 10% 10%;
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 48%),
        radial-gradient(circle at 72% 74%, rgba(255, 106, 10, 0.2), rgba(255, 106, 10, 0) 52%);
    filter: blur(14px);
    opacity: 0.9;
}

body.app-shell-user .wallet-requestcard-hero__visual .wallet-flow-hero__visual-image {
    position: relative;
    width: min(100%, 330px);
    margin-inline: auto;
    transform: translate3d(0, -0.2rem, 0) rotate(-4deg);
    filter: drop-shadow(0 30px 48px rgba(15, 23, 42, 0.26)) saturate(1.08) contrast(1.04) brightness(1.03);
}

body.app-shell-user .wallet-card-workspace {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

body.app-shell-user .wallet-card-workspace__card {
    min-height: 100%;
    border: 1px solid var(--ui-border);
}

body.app-shell-user .wallet-card-workspace__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

body.app-shell-user .wallet-card-workspace__meta {
    display: grid;
    gap: 0.42rem;
    margin-top: 0.25rem;
    color: var(--ui-text-soft);
    font-size: 0.78rem;
    line-height: 1.45;
}

body.app-shell-user .wallet-card-workspace__meta span {
    display: flex;
    align-items: flex-start;
    gap: 0.42rem;
}

body.app-shell-user .wallet-card-workspace__meta i {
    margin-top: 0.08rem;
    color: var(--ui-text);
}

body.app-shell-user .wallet-card-workspace__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 0.35rem;
}

body.app-shell-user .wallet-card-workspace__actions .btn {
    flex: 1 1 132px;
    min-height: 32px;
    padding: 0.38rem 0.58rem;
    font-size: 0.7rem;
    line-height: 1.2;
}

body.app-shell-user .wallet-card-workspace__actions--compact .btn {
    min-height: 30px;
    padding: 0.34rem 0.52rem;
    font-size: 0.66rem;
}

body.app-shell-user .wallet-card-workspace__actions--compact .btn {
    min-height: 30px;
    padding: 0.34rem 0.52rem;
    font-size: 0.66rem;
}

body.app-shell-user .wallet-card-workspace__actions form {
    flex: 1 1 132px;
}

body.app-shell-user .wallet-card-workspace__actions form .btn {
    width: 100%;
}

body.app-shell-user .wallet-requestcard-history-ledger .wallet-ledger-row__actions--compact .btn,
body.app-shell-user .wallet-requestcard-history-ledger .wallet-ledger-row__actions--compact form .btn {
    min-height: 30px;
    padding: 0.34rem 0.5rem;
    font-size: 0.66rem;
}

body.app-shell-user .wallet-requestcard-history-ledger .wallet-ledger-row__actions--compact .btn,
body.app-shell-user .wallet-requestcard-history-ledger .wallet-ledger-row__actions--compact form .btn {
    min-height: 30px;
    padding: 0.34rem 0.5rem;
    font-size: 0.66rem;
}

body.app-shell-user .wallet-card-workspace__action-stack {
    display: grid;
    gap: 0.7rem;
}

body.app-shell-user .wallet-card-workspace__hint {
    margin-top: 0.95rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ui-text-soft);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Card Deck Layout Ã¢â€â‚¬Ã¢â€â‚¬ */
body.app-shell-user .wallet-card-deck {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

@media (min-width: 768px) {
    body.app-shell-user .wallet-card-deck {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Premium Card Visual Ã¢â€â‚¬Ã¢â€â‚¬ */
body.app-shell-user .wallet-premium-card {
    position: relative;
    padding: 1.25rem 1.15rem 1rem;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(135deg, #1a1636 0%, #0e1628 52%, #0c2234 100%);
    color: rgba(248, 250, 255, 0.96);
    box-shadow:
        0 20px 44px rgba(8, 12, 30, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 210px;
    transition: transform var(--ui-duration-base) var(--ui-ease),
                box-shadow var(--ui-duration-base) var(--ui-ease);
}

body.app-shell-user .wallet-premium-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 28px 52px rgba(8, 12, 30, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

body.app-shell-user .wallet-premium-card--virtual {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(135deg, #0c1e36 0%, #0a2842 52%, #082838 100%);
}

body.app-shell-user .wallet-premium-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}

body.app-shell-user .wallet-premium-card__head > div {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

body.app-shell-user .wallet-premium-card__type {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(220, 230, 248, 0.8);
}

body.app-shell-user .wallet-premium-card__chip {
    width: 38px;
    height: 28px;
    border-radius: 6px;
    background:
        linear-gradient(145deg, #c9a84c, #f0d98a 42%, #b8922e 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

body.app-shell-user .wallet-premium-card__chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 1px;
    background: rgba(0, 0, 0, 0.12);
}

body.app-shell-user .wallet-premium-card__chip::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
}

body.app-shell-user .wallet-premium-card__number-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: auto;
}

body.app-shell-user .wallet-premium-card__number-hidden {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(248, 250, 255, 0.92);
}

body.app-shell-user .wallet-premium-card__reveal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 250, 255, 0.82);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background var(--ui-duration-base) var(--ui-ease),
                border-color var(--ui-duration-base) var(--ui-ease);
}

body.app-shell-user .wallet-premium-card__reveal-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
}

body.app-shell-user .wallet-premium-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.8rem;
}

body.app-shell-user .wallet-premium-card__holder {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(220, 230, 248, 0.85);
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.app-shell-user .wallet-premium-card__expiry {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(200, 210, 230, 0.7);
    letter-spacing: 0.04em;
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Card Actions Drawer Ã¢â€â‚¬Ã¢â€â‚¬ */
body.app-shell-user .wallet-card-actions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.app-shell-user .wallet-card-actions-wrapper .btn {
    flex: 1 1 auto;
    min-height: 32px;
    padding: 0.38rem 0.62rem;
    font-size: 0.68rem;
    font-weight: 800;
    border-radius: 10px;
    line-height: 1.2;
}

body.app-shell-user .wallet-card-actions-wrapper .btn-primary {
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
    border: none;
    color: #fff;
    box-shadow: 0 8px 18px rgba(109, 75, 255, 0.22);
}

body.app-shell-user .wallet-card-actions-wrapper .btn-neutral {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(248, 250, 255, 0.88);
}

body.app-shell-user .wallet-card-actions-wrapper .btn-neutral:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
}

body.app-shell-user .wallet-card-actions-wrapper .btn-outline-danger {
    background: rgba(255, 100, 120, 0.08);
    border: 1px solid rgba(255, 100, 120, 0.2);
    color: #ff7b9c;
}

body.app-shell-user .wallet-card-actions-wrapper .btn-outline-danger:hover {
    background: rgba(255, 100, 120, 0.16);
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Sticky Mobile CTA Ã¢â€â‚¬Ã¢â€â‚¬ */
body.app-shell-user .wallet-mobile-sticky-cta {
    display: none;
}

@media (max-width: 767.98px) {
    body.app-shell-user .wallet-mobile-sticky-cta {
        display: block;
        position: fixed;
        bottom: 68px;
        left: 0;
        right: 0;
        z-index: 20;
        padding: 0.72rem 1rem;
        background: linear-gradient(180deg, rgba(246, 244, 251, 0), rgba(246, 244, 251, 0.92) 28%, rgba(246, 244, 251, 0.98) 100%);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    body[data-theme='dark'].app-shell-user .wallet-mobile-sticky-cta {
        background: linear-gradient(180deg, rgba(15, 17, 20, 0), rgba(15, 17, 20, 0.92) 28%, rgba(15, 17, 20, 0.98) 100%);
    }

    body.app-shell-user .wallet-mobile-sticky-cta .btn {
        border-radius: 16px;
        font-weight: 800;
        font-size: 0.88rem;
        min-height: 48px;
    }
}

/* Ã¢â€â‚¬Ã¢â€â‚¬ Request Card Empty State Ã¢â€â‚¬Ã¢â€â‚¬ */
body.app-shell-user .wallet-requestcard-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.2rem 1.2rem;
    gap: 0.7rem;
}

body.app-shell-user .wallet-requestcard-empty__icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
    color: var(--ui-muted);
    font-size: 1.45rem;
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .wallet-requestcard-empty__title {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--ui-text);
}

body.app-shell-user .wallet-requestcard-empty__text {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ui-text-soft);
    max-width: 32ch;
}

body.app-shell-user .wallet-flow-hero__header {
    position: relative;
    z-index: 1;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0;
}

body.app-shell-user .wallet-flow-hero__content {
    min-width: 0;
    flex: 1 1 340px;
}

body.app-shell-user .wallet-flow-hero__visual {
    position: relative;
    z-index: 1;
    flex: 0 1 320px;
    min-width: min(100%, 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

body.app-shell-user .wallet-flow-hero__visual-image {
    width: min(100%, 320px);
    height: auto;
    display: block;
}

body.app-shell-user .wallet-flow-hero__title {
    margin: 0;
    font-size: clamp(1.72rem, 3vw, 2.28rem);
    line-height: 1;
    letter-spacing: -0.045em;
    font-weight: 800;
    color: var(--ui-text);
}

body.app-shell-user .wallet-flow-hero__text {
    margin: 0.55rem 0 0;
    max-width: 42rem;
    color: var(--ui-text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

body.app-shell-user .wallet-flow-hero__helper {
    margin: 0.48rem 0 0;
    max-width: 42rem;
    color: var(--ui-muted);
    font-size: 0.76rem;
    line-height: 1.45;
    font-weight: 700;
}

body.app-shell-user .wallet-flow-hero__chips {
    margin-top: 0.78rem;
}

body.app-shell-user .wallet-flow-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

body.app-shell-user .wallet-flow-hero__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    min-height: 42px;
    padding-inline: 0.95rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .wallet-flow-hero__action--secondary {
    box-shadow: none;
}

body.app-shell-user .wallet-flow-hero__context {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.95rem;
}

body.app-shell-user .wallet-flow-hero__context-item {
    display: grid;
    gap: 0.18rem;
    padding: 0.75rem 0.82rem;
    border-radius: 14px;
    border: 1px solid var(--ui-flow-kpi-border);
    background: var(--ui-flow-kpi-bg);
    box-shadow: var(--ui-flow-kpi-shadow);
    min-width: 0;
}

body.app-shell-user .wallet-flow-hero__context-label {
    display: block;
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-flow-hero__context-value {
    display: block;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--ui-text);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.app-shell-user .wallet-review-state {
    gap: 1rem;
}

body.app-shell-user .wallet-review-state__badge {
    align-self: flex-start;
}

body.app-shell-user .wallet-review-state__kpis {
    margin-top: 0.25rem;
}

body.app-shell-user .wallet-review-state__note {
    margin: 0;
    color: var(--ui-text-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

body.app-shell-user .wallet-review-state__actions {
    justify-content: flex-start;
}

body.app-shell-user .wallet-review-state.is-success {
    border-color: rgba(34, 197, 94, 0.2);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(255, 255, 255, 0.02));
}

body.app-shell-user .wallet-review-state.is-info {
    border-color: rgba(59, 130, 246, 0.18);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0.02));
}

body.app-shell-user .wallet-review-state.is-warning,
body.app-shell-user .wallet-review-state.is-danger {
    border-color: rgba(245, 158, 11, 0.2);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.02));
}

body[data-theme='dark'].app-shell-user .wallet-review-state {
    background-color: rgba(15, 23, 42, 0.72);
}

body[data-theme='dark'].app-shell-user .wallet-review-state .dashboard-section__title,
body[data-theme='dark'].app-shell-user .wallet-review-state .wallet-flow-kpi__value {
    color: #f8fafc;
}

body[data-theme='dark'].app-shell-user .wallet-review-state .wallet-transfer-note,
body[data-theme='dark'].app-shell-user .wallet-review-state .wallet-flow-kpi__label,
body[data-theme='dark'].app-shell-user .wallet-review-state__note {
    color: rgba(226, 232, 240, 0.82);
}

body[data-theme='dark'].app-shell-user .wallet-review-state__badge {
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.42);
    color: #f8fafc;
}

body[data-theme='dark'].app-shell-user .wallet-review-state.is-success .wallet-review-state__badge {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

body[data-theme='dark'].app-shell-user .wallet-review-state.is-info .wallet-review-state__badge {
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
}

body[data-theme='dark'].app-shell-user .wallet-review-state.is-warning .wallet-review-state__badge {
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a;
}

body[data-theme='dark'].app-shell-user .wallet-review-state.is-danger .wallet-review-state__badge {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

body.app-shell-user .wallet-manual-settlement-inline__scroll {
    display: grid;
    gap: 1rem;
}

body.app-shell-user .wallet-form-sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -1rem -1rem;
    padding: 1rem;
    border-top: 1px solid var(--ui-border);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.92) 22%, rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(14px);
}

body.app-shell-user .wallet-flow-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    min-width: min(100%, 360px);
    flex: 1 1 360px;
}

body.app-shell-user .wallet-flow-kpi {
    padding: 0.82rem 0.9rem;
    border-radius: 14px;
    border: 1px solid var(--ui-flow-kpi-border);
    background: var(--ui-flow-kpi-bg);
    box-shadow: var(--ui-flow-kpi-shadow);
    display: grid;
    gap: 0.14rem;
    align-content: start;
}

body.app-shell-user .wallet-flow-kpi__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 0.1rem;
    background: var(--ui-flow-kpi-icon-bg);
    color: var(--ui-text);
    box-shadow: var(--ui-flow-kpi-icon-shadow);
}

body.app-shell-user .wallet-flow-kpi__icon i {
    font-size: 1rem;
}

body.app-shell-user .wallet-flow-kpi__label {
    display: block;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-flow-kpi__value {
    display: block;
    margin-top: 0.22rem;
    font-size: 1rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ui-text);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

body.app-shell-user .wallet-flow-kpi__meta {
    display: block;
    margin-top: 0.16rem;
    font-size: 0.68rem;
    line-height: 1.35;
    color: var(--ui-text-soft);
}

body.app-shell-user .wallet-flow-switcher {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1rem;
}

body.app-shell-user .wallet-flow-switcher--mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-shell-user .wallet-flow-switcher--activity {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.app-shell-user .wallet-flow-switcher__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
    color: var(--ui-text-soft);
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    box-shadow: var(--ui-shadow-soft);
    transition: transform var(--ui-duration-base) var(--ui-ease), border-color var(--ui-duration-base) var(--ui-ease), background var(--ui-duration-base) var(--ui-ease), color var(--ui-duration-base) var(--ui-ease), box-shadow var(--ui-duration-base) var(--ui-ease);
}

body.app-shell-user .wallet-flow-switcher__item i {
    font-size: 0.98rem;
}

body.app-shell-user .wallet-flow-switcher__item:hover,
body.app-shell-user .wallet-flow-switcher__item:focus-visible {
    transform: translateY(-1px);
    color: var(--ui-text);
    border-color: var(--ui-select-hover-border);
    box-shadow: var(--ui-shadow);
}

body.app-shell-user .wallet-flow-switcher__item.is-active {
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
    border-color: transparent;
    color: var(--ui-nav-active-text);
    box-shadow: 0 16px 30px rgba(109, 75, 255, 0.24);
}

body.app-shell-user .wallet-flow-panel {
    position: relative;
    overflow: hidden;
    transition: transform var(--ui-duration-base) var(--ui-ease), border-color var(--ui-duration-base) var(--ui-ease), background var(--ui-duration-base) var(--ui-ease), box-shadow var(--ui-duration-base) var(--ui-ease);
}

body.app-shell-user .wallet-flow-panel--primary {
    background:
        var(--ui-panel-sheen-primary),
        var(--ui-card-gradient);
}

body.app-shell-user .wallet-flow-panel--accent {
    background:
        radial-gradient(circle at 0% 0%, rgba(109, 75, 255, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(109, 75, 255, 0.08) 0%, var(--ui-surface) 100%);
}

body.app-shell-user .wallet-flow-panel--secondary,
body.app-shell-user .wallet-flow-panel--ledger {
    background:
        var(--ui-panel-sheen-secondary),
        linear-gradient(135deg, var(--ui-surface-elevated) 0%, var(--ui-surface-strong) 100%);
    box-shadow:
        var(--ui-shadow-soft),
        var(--ui-note-highlight);
}

body.app-shell-user .wallet-flow-panel:hover {
    transform: translateY(-1px);
    box-shadow: var(--ui-shadow);
}

body.app-shell-user .wallet-flow-note-list {
    display: grid;
    gap: 0.75rem;
}

body.app-shell-user .wallet-flow-note {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background:
        var(--ui-note-sheen),
        var(--ui-surface-soft);
    box-shadow:
        var(--ui-shadow-soft),
        var(--ui-note-highlight);
}

body.app-shell-user .wallet-flow-note__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    font-size: 1rem;
}

body.app-shell-user .wallet-flow-note__title {
    display: block;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ui-text);
}

body.app-shell-user .wallet-flow-note__text {
    margin: 0.22rem 0 0;
    color: var(--ui-text-soft);
    font-size: 0.84rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.app-shell-user .wallet-flow-note__text strong {
    color: var(--ui-text);
}

body.app-shell-user .wallet-confirm-panel {
    padding-bottom: 0.15rem;
}

body.app-shell-user .wallet-confirm-recipient {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    border: 1px solid var(--ui-border);
    background:
        radial-gradient(circle at 0% 0%, rgba(109, 75, 255, 0.12), transparent 38%),
        linear-gradient(135deg, var(--ui-surface-elevated) 0%, var(--ui-surface-strong) 100%);
    box-shadow:
        var(--ui-shadow-soft),
        var(--ui-note-highlight);
}

body.app-shell-user .wallet-confirm-recipient__icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .wallet-confirm-recipient__icon i {
    font-size: 1.4rem;
}

body.app-shell-user .wallet-confirm-recipient__body {
    min-width: 0;
}

body.app-shell-user .wallet-confirm-recipient__eyebrow {
    display: block;
    margin-bottom: 0.24rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-confirm-recipient__title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--ui-text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.app-shell-user .wallet-confirm-recipient__meta {
    margin: 0.26rem 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--ui-text-soft);
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.app-shell-user .wallet-confirm-recipient__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    color: var(--ui-text);
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: var(--ui-shadow-soft);
}

body.app-shell-user .wallet-confirm-recipient__badge i {
    font-size: 0.95rem;
}

body.app-shell-user .wallet-confirm-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

body.app-shell-user .wallet-confirm-detail {
    display: grid;
    gap: 0.32rem;
    min-height: 100%;
    padding: 0.98rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--ui-border);
    background:
        var(--ui-note-sheen),
        var(--ui-surface-soft);
    box-shadow:
        var(--ui-shadow-soft),
        var(--ui-note-highlight);
}

body.app-shell-user .wallet-confirm-detail--highlight {
    border-color: rgba(109, 75, 255, 0.18);
    background:
        radial-gradient(circle at 100% 0%, rgba(109, 75, 255, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(109, 75, 255, 0.06) 0%, var(--ui-surface-soft) 100%);
}

body.app-shell-user .wallet-confirm-detail.is-negative {
    border-color: rgba(230, 57, 70, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(230, 57, 70, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, var(--ui-surface-soft) 100%);
}

body.app-shell-user .wallet-confirm-detail__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ui-muted);
}

body.app-shell-user .wallet-confirm-detail__value {
    display: block;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ui-text);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.app-shell-user .wallet-confirm-detail.is-negative .wallet-confirm-detail__value,
body.app-shell-user .wallet-confirm-total {
    color: var(--ui-danger);
}

body.app-shell-user .wallet-confirm-detail__meta,
body.app-shell-user .wallet-confirm-caption {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ui-text-soft);
}

body.app-shell-user .wallet-confirm-form {
    margin-top: 1rem;
}

body.app-shell-user .wallet-confirm-caption {
    padding: 0.88rem 0.95rem;
    border-radius: 18px;
    border: 1px dashed var(--ui-border);
    background: var(--ui-surface-soft);
}

body.app-shell-user .wallet-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

body.app-shell-user .wallet-confirm-actions .btn {
    min-width: 170px;
}

body.app-shell-user .wallet-confirm-aside {
    display: grid;
    gap: 1rem;
}

body.app-shell-user .wallet-flow-inline-status {
    color: var(--ui-danger);
}

body.app-shell-user .select2-container--open .select2-dropdown {
    border-radius: 16px;
    overflow: hidden;
    border-color: var(--ui-select-hover-border);
    box-shadow: var(--ui-shadow);
}

body.app-shell-user .select2-results__options {
    max-height: min(60vh, 320px) !important;
    overflow-y: auto !important;
    padding-block: 0.35rem;
}

body.app-shell-user .select2-results__option {
    padding: 0.7rem 0.9rem;
    font-size: 0.92rem;
}

body[data-theme='dark'].app-shell-user .wallet-flow-kpi,
body[data-theme='dark'].app-shell-user .wallet-flow-switcher__item,
body[data-theme='dark'].app-shell-user .wallet-flow-note {
    background: var(--ui-surface-soft);
}

body[data-theme='dark'].app-shell-user .wallet-flow-hero {
    border-color: var(--ui-flow-hero-border);
    background: var(--ui-flow-hero-gradient);
    box-shadow: var(--ui-flow-hero-shadow);
}

body[data-theme='dark'].app-shell-user .wallet-flow-hero::before {
    background: var(--ui-flow-hero-sheen);
}

body[data-theme='dark'].app-shell-user .wallet-flow-kpi {
    border-color: var(--ui-flow-kpi-border);
    background: var(--ui-flow-kpi-bg);
    box-shadow: var(--ui-flow-kpi-shadow);
}

body[data-theme='dark'].app-shell-user .wallet-flow-hero__context-item {
    border-color: var(--ui-flow-kpi-border);
    background: var(--ui-flow-kpi-bg);
    box-shadow: var(--ui-flow-kpi-shadow);
}

body[data-theme='dark'].app-shell-user .wallet-flow-kpi__icon {
    background: var(--ui-flow-kpi-icon-bg);
    color: var(--ui-hero-text);
    box-shadow: var(--ui-flow-kpi-icon-shadow);
}

body[data-theme='dark'].app-shell-user .wallet-withdraw-page .select2-container .select2-selection--single {
    border-color: var(--ui-border);
    background: var(--ui-surface);
}

body[data-theme='dark'].app-shell-user .wallet-flow-panel--accent {
    background:
        radial-gradient(circle at 0% 0%, rgba(138, 99, 255, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(138, 99, 255, 0.16) 0%, var(--ui-surface-strong) 100%);
}

body[data-theme='dark'].app-shell-user .wallet-flow-panel--secondary,
body[data-theme='dark'].app-shell-user .wallet-flow-panel--ledger {
    background:
        var(--ui-panel-sheen-secondary),
        linear-gradient(135deg, var(--ui-surface-elevated) 0%, var(--ui-surface-strong) 100%);
    border-color: var(--ui-border);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.22),
        var(--ui-note-highlight);
}

body[data-theme='dark'].app-shell-user .wallet-flow-note {
    background:
        var(--ui-note-sheen),
        var(--ui-surface-soft);
    box-shadow:
        0 16px 28px rgba(0, 0, 0, 0.16),
        var(--ui-note-highlight);
}

body[data-theme='dark'].app-shell-user .wallet-confirm-recipient,
body[data-theme='dark'].app-shell-user .wallet-confirm-detail,
body[data-theme='dark'].app-shell-user .wallet-confirm-recipient__badge,
body[data-theme='dark'].app-shell-user .wallet-confirm-caption {
    background: var(--ui-surface-soft);
}

body[data-theme='dark'].app-shell-user .wallet-confirm-recipient {
    border-color: var(--ui-border);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.2),
        var(--ui-note-highlight);
}

body[data-theme='dark'].app-shell-user .wallet-confirm-detail--highlight {
    background:
        radial-gradient(circle at 100% 0%, rgba(138, 99, 255, 0.16), transparent 34%),
        var(--ui-surface-soft);
}

body[data-theme='dark'].app-shell-user .wallet-confirm-detail.is-negative {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 97, 115, 0.14), transparent 34%),
        var(--ui-surface-soft);
}

body[data-theme='dark'].app-shell-user .wallet-flow-switcher__item:hover,
body[data-theme='dark'].app-shell-user .wallet-flow-switcher__item:focus-visible {
    border-color: var(--ui-select-hover-border);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

body[data-theme='dark'].app-shell-user .wallet-flow-switcher__item.is-active {
    box-shadow: 0 18px 34px rgba(111, 73, 246, 0.28);
}

body[data-theme='dark'].app-shell-user .wallet-flow-panel:hover {
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.24);
}

body.app-shell-user .tx-row--full {
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 0;
    padding: 0.8rem 0.25rem;
}

body.app-shell-user .tx-row--full .tx-row__title,
body.app-shell-user .tx-row--full .tx-row__meta {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.app-shell-user .tx-row--full .tx-row__amount-wrap {
    min-width: 118px;
}

body.app-shell-user .tx-row--full .tx-row__amount {
    max-width: 100%;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

body.app-shell-user .wallet-ledger-row__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 0.85rem;
    align-items: flex-start;
}

body.app-shell-user .wallet-ledger-row__content {
    min-width: 0;
}

body.app-shell-user .wallet-ledger-row__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

body.app-shell-user .wallet-ledger-row__actions .wallet-path-badge {
    margin: 0;
    padding: 0.3rem 0.52rem;
    font-size: 0.64rem;
}

body.app-shell-user .wallet-ledger-export-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 575.98px) {
    body.app-shell-user .wallet-flow-hero {
        padding: 0.85rem 0.85rem 0.8rem;
    }

    body.app-shell-user .wallet-flow-hero__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.72rem;
    }

    body.app-shell-user .wallet-flow-hero__content {
        flex-basis: auto;
    }

    body.app-shell-user .wallet-flow-hero__title {
        font-size: 1.5rem;
    }

    body.app-shell-user .wallet-flow-hero__text {
        margin-top: 0.4rem;
        font-size: 0.84rem;
        line-height: 1.45;
    }

    body.app-shell-user .wallet-flow-hero__helper {
        margin-top: 0.34rem;
        font-size: 0.7rem;
        line-height: 1.35;
    }

    body.app-shell-user .wallet-flow-hero__actions {
        width: 100%;
        gap: 0.5rem;
        margin-top: 0.72rem;
    }

    body.app-shell-user .wallet-flow-hero__action {
        width: 100%;
        min-height: 40px;
        padding-inline: 0.86rem;
        font-size: 0.78rem;
    }

    body.app-shell-user .wallet-flow-hero__context {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.48rem;
        margin-top: 0.78rem;
    }

    body.app-shell-user .wallet-flow-hero__context-item {
        padding: 0.56rem 0.62rem;
        border-radius: 12px;
        box-shadow: none;
    }

    body.app-shell-user .wallet-flow-hero__context-label {
        font-size: 0.54rem;
        letter-spacing: 0.08em;
    }

    body.app-shell-user .wallet-flow-hero__context-value {
        font-size: 0.76rem;
        line-height: 1.2;
    }

    body.app-shell-user .wallet-flow-kpis {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        min-width: 0;
        width: auto;
        flex: 0 0 auto;
        align-self: flex-start;
    }

    body.app-shell-user .wallet-flow-kpi {
        width: auto;
        min-width: 0;
        padding: 0.48rem 0.68rem;
        border-radius: 12px;
        display: grid;
        gap: 0.08rem;
        box-shadow: none;
    }

    body.app-shell-user .wallet-flow-kpi__icon {
        width: 24px;
        height: 24px;
        border-radius: 8px;
        margin-bottom: 0;
    }

    body.app-shell-user .wallet-flow-kpi__icon i {
        font-size: 0.72rem;
    }

    body.app-shell-user .wallet-flow-kpi__label {
        font-size: 0.56rem;
        letter-spacing: 0.09em;
        white-space: nowrap;
    }

    body.app-shell-user .wallet-flow-kpi__value {
        font-size: 0.84rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    body.app-shell-user .wallet-flow-kpi__meta {
        font-size: 0.6rem;
        white-space: nowrap;
    }

    body.app-shell-user .select2-results__options {
        max-height: min(52vh, 280px) !important;
    }

    body.app-shell-user .wallet-withdraw-page .select2-container .select2-selection--single {
        min-height: 50px;
        padding: 0.1rem 0.82rem;
    }

    body.app-shell-user .wallet-withdraw-page .select2-container .select2-selection--single .select2-selection__rendered {
        font-size: 0.9rem;
        padding-right: 1.55rem;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-withdraw-aside {
        gap: 0.8rem;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-transfer-details--summary {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-transfer-details--summary .wallet-transfer-detail {
        padding: 0.66rem 0.72rem;
        border-radius: 14px;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-transfer-details--summary .wallet-transfer-detail__label {
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-transfer-details--summary .wallet-transfer-detail__value {
        margin-top: 0.15rem;
        font-size: 0.82rem;
        line-height: 1.2;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-flow-note-list {
        gap: 0.6rem;
    }

    body.app-shell-user .wallet-withdraw-page .dashboard-panel {
        padding: 0.82rem;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-withdraw-form-panel {
        margin-bottom: 0.9rem;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-withdraw-pending-ledger,
    body.app-shell-user .wallet-withdraw-page .wallet-withdraw-history-ledger {
        margin-top: 0.9rem !important;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-withdraw-pending-ledger .dashboard-panel__header,
    body.app-shell-user .wallet-withdraw-page .wallet-withdraw-history-ledger .dashboard-panel__header,
    body.app-shell-user .wallet-withdraw-page .wallet-withdraw-checks-card .dashboard-panel__header,
    body.app-shell-user .wallet-withdraw-page .wallet-withdraw-overview-card .dashboard-panel__header,
    body.app-shell-user .wallet-withdraw-page .wallet-withdraw-summary-card .dashboard-panel__header {
        margin-bottom: 0.65rem;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-activity-preview {
        margin-top: 0.9rem !important;
    }

    body.app-shell-user .wallet-withdraw-page .dashboard-service-stack {
        gap: 0.35rem;
    }

    body.app-shell-user .wallet-withdraw-page .tx-row--full {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.72rem 0;
    }

    body.app-shell-user .wallet-withdraw-page .tx-row--full .tx-row__icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-ledger-row__head {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.28rem;
    }

    body.app-shell-user .wallet-withdraw-page .tx-row--full .tx-row__amount-wrap {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    body.app-shell-user .wallet-withdraw-page .tx-row--full .tx-row__amount {
        font-size: 0.8rem;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-history-row__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-ledger-row__actions {
        width: 100%;
        justify-content: flex-start;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-history-row__meta {
        gap: 0.35rem 0.6rem;
        font-size: 0.72rem;
    }

    body.app-shell-user .wallet-withdraw-page .tx-group-header {
        margin: 0.5rem 0 0.25rem;
    }

    body.app-shell-user .wallet-withdraw-page .wallet-transfer-detail__value,
    body.app-shell-user .wallet-withdraw-page .wallet-flow-kpi__value,
    body.app-shell-user .wallet-withdraw-page .wallet-flow-kpi__meta,
    body.app-shell-user .wallet-withdraw-page .tx-row__title,
    body.app-shell-user .wallet-withdraw-page .tx-row__meta,
    body.app-shell-user .wallet-withdraw-page .tx-row__amount,
    body.app-shell-user .wallet-withdraw-page .wallet-flow-note__text {
        white-space: normal;
    }

    body.app-shell-user .wallet-send-page .dashboard-panel,
    body.app-shell-user .wallet-transfer-page .dashboard-panel {
        padding: 0.82rem;
    }

    body.app-shell-user .wallet-send-page .wallet-send-aside,
    body.app-shell-user .wallet-transfer-page .wallet-transfer-aside {
        gap: 0.8rem;
    }

    body.app-shell-user .wallet-send-page .wallet-transfer-details--summary {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

    body.app-shell-user .wallet-send-page .wallet-transfer-details--summary .wallet-transfer-detail {
        padding: 0.66rem 0.72rem;
        border-radius: 14px;
    }

    body.app-shell-user .wallet-send-page .wallet-transfer-details--summary .wallet-transfer-detail__label {
        font-size: 0.58rem;
        letter-spacing: 0.08em;
    }

    body.app-shell-user .wallet-send-page .wallet-transfer-details--summary .wallet-transfer-detail__value {
        margin-top: 0.15rem;
        font-size: 0.82rem;
        line-height: 1.2;
    }

    body.app-shell-user .wallet-send-page .wallet-send-history-ledger {
        margin-top: 0.9rem !important;
    }

    body.app-shell-user .wallet-send-page .wallet-send-summary-card .dashboard-panel__header,
    body.app-shell-user .wallet-send-page .wallet-send-checks-card .dashboard-panel__header,
    body.app-shell-user .wallet-send-page .wallet-send-history-ledger .dashboard-panel__header,
    body.app-shell-user .wallet-transfer-page .wallet-transfer-bank-card .dashboard-panel__header,
    body.app-shell-user .wallet-transfer-page .wallet-transfer-crypto-card .dashboard-panel__header {
        margin-bottom: 0.65rem;
    }

    body.app-shell-user .wallet-send-page .wallet-activity-preview,
    body.app-shell-user .wallet-transfer-page .wallet-activity-preview {
        margin-top: 0.9rem !important;
    }

    body.app-shell-user .wallet-send-page .tx-row--full {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 0.65rem;
        padding: 0.72rem 0;
    }

    body.app-shell-user .wallet-send-page .tx-row--full .tx-row__icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    body.app-shell-user .wallet-send-page .wallet-ledger-row__head {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.28rem;
    }

    body.app-shell-user .wallet-send-page .tx-row--full .tx-row__amount-wrap {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    body.app-shell-user .wallet-send-page .wallet-history-row__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    body.app-shell-user .wallet-send-page .wallet-ledger-row__actions,
    body.app-shell-user .wallet-transfer-page .wallet-ledger-row__actions {
        width: 100%;
        justify-content: flex-start;
    }

    body.app-shell-user .wallet-send-page .wallet-history-row__meta {
        gap: 0.35rem 0.6rem;
        font-size: 0.72rem;
    }

    body.app-shell-user .wallet-transfer-page .wallet-transfer-detail {
        flex-direction: column;
        gap: 0.65rem;
    }

    body.app-shell-user .wallet-activity-preview .tx-row--full {
        padding: 0.54rem 0.04rem;
    }

    body.app-shell-user .wallet-activity-preview .tx-row__title {
        font-size: 0.8rem;
    }

    body.app-shell-user .wallet-activity-preview .tx-row__meta,
    body.app-shell-user .wallet-activity-preview .wallet-history-row__meta {
        font-size: 0.69rem;
    }

    body.app-shell-user .wallet-activity-preview .tx-row__amount {
        font-size: 0.8rem;
    }

    body.app-shell-user .wallet-transfer-page .wallet-transfer-copy {
        align-self: flex-start;
        max-width: 100%;
    }

    body.app-shell-user .wallet-send-page .wallet-transfer-detail__value,
    body.app-shell-user .wallet-send-page .wallet-flow-kpi__value,
    body.app-shell-user .wallet-send-page .tx-row__title,
    body.app-shell-user .wallet-send-page .tx-row__meta,
    body.app-shell-user .wallet-send-page .tx-row__amount,
    body.app-shell-user .wallet-send-page .wallet-flow-note__text,
    body.app-shell-user .wallet-transfer-page .wallet-transfer-detail__value,
    body.app-shell-user .wallet-transfer-page .wallet-flow-kpi__value,
    body.app-shell-user .wallet-transfer-page .wallet-flow-note__text {
        white-space: normal;
    }

    body.app-shell-user .wallet-flow-switcher {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-shell-user .wallet-flow-switcher--mode {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-shell-user .wallet-flow-switcher--activity {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-shell-user .wallet-flow-switcher__item {
        min-height: 44px;
        font-size: 0.76rem;
    }

    body.app-shell-user .wallet-flow-note {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 0.7rem;
    }

    body.app-shell-user .wallet-flow-note__icon {
        width: 36px;
        height: 36px;
        font-size: 0.94rem;
    }

    body.app-shell-user .wallet-confirm-recipient {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.app-shell-user .wallet-confirm-recipient__badge {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }

    body.app-shell-user .wallet-confirm-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.app-shell-user .wallet-confirm-actions .btn {
        flex: 1 1 100%;
        min-width: 0;
    }

    body.app-shell-user .wallet-transfer-intro__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    body.app-shell-user .wallet-transfer-intro__chips {
        justify-content: flex-start;
    }

    body.app-shell-user .wallet-transfer-form-meta {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        margin-bottom: 0.65rem;
    }

    body.app-shell-user .wallet-transfer-form-meta__item {
        padding: 0.5rem 0.58rem;
        border-radius: 12px;
    }

    body.app-shell-user .wallet-transfer-form-meta__label {
        font-size: 0.54rem;
        letter-spacing: 0.08em;
    }

    body.app-shell-user .wallet-transfer-form-meta__value {
        font-size: 0.76rem;
    }

    body.app-shell-user .wallet-flow-stepline {
        gap: 0.4rem 0.55rem;
        margin-bottom: 0.68rem;
    }

    body.app-shell-user .wallet-flow-stepline__num {
        width: 1.15rem;
        height: 1.15rem;
        font-size: 0.62rem;
    }

    body.app-shell-user .wallet-flow-stepline__text {
        font-size: 0.7rem;
    }

    body.app-shell-user .wallet-account-page .wallet-flow-stepline {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.4rem;
        margin-bottom: 0.62rem;
    }

    body.app-shell-user .wallet-account-page .wallet-flow-stepline__item {
        align-items: flex-start;
    }

    body.app-shell-user .wallet-account-page .wallet-form-section {
        padding: 0.82rem 0.82rem 0.86rem;
        border-radius: 18px;
    }

    body.app-shell-user .wallet-account-page .wallet-flow-inline-status-list {
        margin-bottom: 0.75rem;
    }

    body.app-shell-user .wallet-authorization-aside,
    body.app-shell-user .wallet-profile-aside,
    body.app-shell-user .wallet-security-aside {
        gap: 0.78rem;
        margin-top: 0.9rem;
    }

    body.app-shell-user .wallet-account-page .wallet-flow-summary-card .wallet-transfer-details--summary {
        gap: 0.55rem;
    }

    body.app-shell-user .wallet-account-page .wallet-flow-summary-card .wallet-transfer-detail {
        padding: 0.72rem 0.74rem;
    }

    body.app-shell-user .wallet-security-qr-wrap {
        padding: 0.72rem;
        border-radius: 16px;
        margin-bottom: 0.78rem;
    }

    body.app-shell-user .wallet-transfer-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.app-shell-user .wallet-transfer-form__actions .btn {
        width: 100%;
    }

    body.app-shell-user .wallet-transfer-detail {
        flex-direction: column;
    }

    body.app-shell-user .wallet-transfer-copy {
        align-self: flex-start;
    }

    body.app-shell-user .wallet-withdraw-intro__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    body.app-shell-user .wallet-withdraw-intro__chips {
        justify-content: flex-start;
    }

    body.app-shell-user .wallet-history-intro__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    body.app-shell-user .wallet-history-intro__chips {
        justify-content: flex-start;
    }

    body.app-shell-user .wallet-send-intro__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    body.app-shell-user .wallet-send-intro__chips {
        justify-content: flex-start;
    }

    body.app-shell-user .tx-row--full .tx-row__amount-wrap {
        min-width: 0;
        width: 100%;
        text-align: left;
    }

    body.app-shell-user .wallet-history-row__footer {
        align-items: flex-start;
    }

    body.app-shell-user .wallet-history-row__meta {
        gap: 0.45rem 0.8rem;
    }

    body.app-shell-user .app-more-sheet__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 0.75rem;
    }

    body.app-shell-user .app-more-sheet__item {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 0.45rem;
        font-size: 0.66rem;
    }

    body.app-shell-user .app-more-sheet__icon {
        width: 32px;
        height: 32px;
        font-size: 0.82rem;
    }
}

@media (max-width: 767.98px) {
    body.app-shell-user .wallet-flow-hero {
        padding: 0.78rem 0.78rem 0.68rem;
    }

    body.app-shell-user .wallet-card-workspace {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    body.app-shell-user .wallet-card-workspace__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }

    body.app-shell-user .wallet-card-workspace__actions .btn {
        min-height: 30px;
        padding: 0.34rem 0.5rem;
        font-size: 0.66rem;
    }

    body.app-shell-user .wallet-card-workspace__actions--compact .btn {
        min-height: 28px;
        padding: 0.3rem 0.46rem;
        font-size: 0.62rem;
    }

    body.app-shell-user .wallet-card-workspace__actions--compact .btn {
        min-height: 28px;
        padding: 0.3rem 0.46rem;
        font-size: 0.62rem;
    }

    body.app-shell-user .wallet-card-workspace__actions form {
        width: 100%;
    }

    body.app-shell-user .wallet-history-page .wallet-history-ledger .wallet-ledger-row__head {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.38rem;
    }

    body.app-shell-user .wallet-history-page .wallet-history-ledger .wallet-history-row__footer {
        gap: 0.4rem;
    }

    body.app-shell-user .wallet-history-page .wallet-history-ledger .wallet-history-row__meta {
        width: 100%;
        gap: 0.34rem 0.65rem;
    }

    body.app-shell-user .wallet-history-page .wallet-history-ledger .wallet-ledger-row__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.36rem;
        width: 100%;
    }

    body.app-shell-user .wallet-history-page .wallet-history-ledger .wallet-ledger-row__actions .btn,
    body.app-shell-user .wallet-history-page .wallet-history-ledger .wallet-ledger-row__actions form .btn {
        width: 100%;
        min-height: 30px;
        padding: 0.34rem 0.5rem;
        font-size: 0.66rem;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .tx-row--enhanced.tx-row--full {
        align-items: flex-start;
        gap: 0.55rem;
        padding: 0.68rem 0.72rem;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .tx-row--enhanced.tx-row--full .tx-row__icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .tx-row--enhanced.tx-row--full .tx-row__title {
        font-size: 0.76rem;
        line-height: 1.2;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .tx-row--enhanced.tx-row--full .tx-row__meta {
        font-size: 0.64rem;
        line-height: 1.25;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .wallet-history-row__meta span {
        font-size: 0.62rem;
        line-height: 1.2;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .wallet-ledger-row__actions--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .tx-row--enhanced.tx-row--full {
        align-items: flex-start;
        gap: 0.55rem;
        padding: 0.68rem 0.72rem;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .tx-row--enhanced.tx-row--full .tx-row__icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .tx-row--enhanced.tx-row--full .tx-row__title {
        font-size: 0.76rem;
        line-height: 1.2;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .tx-row--enhanced.tx-row--full .tx-row__meta {
        font-size: 0.64rem;
        line-height: 1.25;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .wallet-history-row__meta span {
        font-size: 0.62rem;
        line-height: 1.2;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .wallet-ledger-row__actions--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-shell-user .wallet-requestcard-hero {
        position: relative;
        padding-bottom: 1.6rem;
    }

    body.app-shell-user .wallet-requestcard-hero .wallet-flow-hero__header {
        position: static;
    }

    body.app-shell-user .wallet-flow-hero::after {
        inset: auto -34px -46px auto;
        width: 148px;
        height: 148px;
    }

    body.app-shell-user .wallet-requestcard-hero__visual {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        min-height: 0;
        margin: 0.4rem auto 0;
        justify-content: center;
        align-items: center;
        z-index: 1;
        order: 2;
    }

    body.app-shell-user .wallet-requestcard-hero__visual .wallet-flow-hero__visual-image {
        width: min(100%, 210px);
        transform: rotate(-3deg);
        filter: drop-shadow(0 14px 22px rgba(15, 23, 42, 0.18)) saturate(1.04) contrast(1.02);
    }

    body.app-shell-user .wallet-flow-hero__header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.58rem;
    }

    body.app-shell-user .wallet-flow-hero__content {
        width: 100%;
        flex: 1 1 auto;
    }

    body.app-shell-user .wallet-flow-hero__visual {
        width: 100%;
        min-width: 0;
        order: 3;
    }

    body.app-shell-user .wallet-requestcard-hero .wallet-flow-hero__content,
    body.app-shell-user .wallet-requestcard-hero .wallet-flow-kpis {
        position: relative;
        z-index: 1;
    }

    body.app-shell-user .wallet-requestcard-hero .wallet-flow-kpis {
        order: 3;
    }

    body.app-shell-user .wallet-flow-hero__visual-image {
        width: min(100%, 280px);
    }

    body.app-shell-user .wallet-flow-kpis {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.42rem;
        align-self: stretch;
    }

    body.app-shell-user .wallet-flow-kpi {
        min-width: 0;
        padding: 0.64rem 0.7rem;
    }

    body.app-shell-user .wallet-flow-kpi:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

/* Balance Sparkline Hook */
body.app-shell-user .wallet-hero__sparkline {
    width: 100%;
    height: 40px;
    margin-top: 0.85rem;
    opacity: 0.48;
}

/* Vaults / Spaces Carousel */
body.app-shell-user .vault-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0 1.5rem;
    scrollbar-width: none;
}
body.app-shell-user .vault-carousel::-webkit-scrollbar { display: none; }
body.app-shell-user .vault-card {
    flex: 0 0 240px;
    background: var(--ui-card-gradient);
    border: 1px solid var(--ui-border);
    border-radius: 20px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ui-shadow-soft);
}
body.app-shell-user .vault-card__progress-bg { height: 4px; background: var(--ui-progress-bg); border-radius: 99px; margin-top: 1rem; }
body[data-theme='dark'].app-shell-user .vault-card__progress-bg { background: var(--ui-progress-bg); }
body.app-shell-user .vault-card__progress-fill { height: 100%; height: 4px; background: var(--ui-primary); border-radius: 99px; }

/* Temporal Headers */
body.app-shell-user .tx-group-header {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--ui-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
body.app-shell-user .tx-group-header::after { content: ''; flex: 1; height: 1px; background: var(--ui-border); opacity: 0.5; }
/* Legacy wallet hero overrides removed: modern hero styles above are the source of truth. */

/* Shared Selection System */
body.app-shell-user select.form-control,
body.app-shell-admin select.form-control {
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid var(--ui-select-border);
    background: var(--ui-select-bg);
    color: var(--ui-field-text);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    transition:
        border-color var(--ui-duration-base) var(--ui-ease),
        box-shadow var(--ui-duration-base) var(--ui-ease),
        background var(--ui-duration-base) var(--ui-ease),
        transform var(--ui-duration-fast) var(--ui-ease);
}

body.app-shell-user select.form-control option,
body.app-shell-user .custom-select option,
body.app-shell-user select option,
body.app-shell-admin select.form-control option,
body.app-shell-admin .custom-select option,
body.app-shell-admin select option {
    background: var(--ui-select-dropdown-bg);
    color: var(--ui-text);
}

body.app-shell-user select.form-control optgroup,
body.app-shell-user .custom-select optgroup,
body.app-shell-user select optgroup,
body.app-shell-admin select.form-control optgroup,
body.app-shell-admin .custom-select optgroup,
body.app-shell-admin select optgroup {
    background: var(--ui-select-dropdown-bg);
    color: var(--ui-text-soft);
}

body.app-shell-user select.form-control:hover,
body.app-shell-admin select.form-control:hover {
    border-color: var(--ui-select-hover-border);
}

body.app-shell-user select.form-control:focus,
body.app-shell-admin select.form-control:focus {
    border-color: var(--ui-primary);
    box-shadow: var(--ui-select-focus-ring);
}

body.app-shell-user .app-select-shell,
body.app-shell-admin .app-select-shell {
    position: relative;
    display: grid;
    gap: 0.55rem;
}

body.app-shell-user .app-select-shell__icon,
body.app-shell-admin .app-select-shell__icon {
    position: absolute;
    top: 0.95rem;
    left: 1rem;
    z-index: 3;
    width: 1.95rem;
    height: 1.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ui-select-chip-bg);
    color: var(--ui-select-chip-text);
    font-size: 0.96rem;
    pointer-events: none;
}

body.app-shell-user .app-select-shell__hint,
body.app-shell-admin .app-select-shell__hint {
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--ui-muted);
}

body.app-shell-user .app-select-shell--payout .select2-container .select2-selection--single,
body.app-shell-user .app-select-shell--payout select.form-control,
body.app-shell-admin .app-select-shell--payout .select2-container .select2-selection--single,
body.app-shell-admin .app-select-shell--payout select.form-control {
    padding-left: 3.5rem !important;
}

body.app-shell-user .app-select-shell--rich .select2-container .select2-selection--single,
body.app-shell-user .app-select-shell--rich select.form-control,
body.app-shell-admin .app-select-shell--rich .select2-container .select2-selection--single,
body.app-shell-admin .app-select-shell--rich select.form-control {
    padding-left: 3.5rem !important;
}

body.app-shell-user .select2-container,
body.app-shell-admin .select2-container {
    width: 100% !important;
}

body.app-shell-user .select2-container .select2-selection--single,
body.app-shell-user .select2-container .select2-selection--multiple,
body.app-shell-admin .select2-container .select2-selection--single,
body.app-shell-admin .select2-container .select2-selection--multiple {
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid var(--ui-select-border);
    background: var(--ui-select-bg);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition:
        border-color var(--ui-duration-base) var(--ui-ease),
        box-shadow var(--ui-duration-base) var(--ui-ease),
        background var(--ui-duration-base) var(--ui-ease),
        transform var(--ui-duration-fast) var(--ui-ease);
}

body.app-shell-user .select2-container .select2-selection--single,
body.app-shell-admin .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    padding: 0.25rem 1rem;
}

body.app-shell-user .select2-container:hover .select2-selection--single,
body.app-shell-user .select2-container:hover .select2-selection--multiple,
body.app-shell-admin .select2-container:hover .select2-selection--single,
body.app-shell-admin .select2-container:hover .select2-selection--multiple {
    border-color: var(--ui-select-hover-border);
    transform: translateY(-1px);
}

body.app-shell-user .select2-container--focus .select2-selection--single,
body.app-shell-user .select2-container--focus .select2-selection--multiple,
body.app-shell-user .select2-container--open .select2-selection--single,
body.app-shell-user .select2-container--open .select2-selection--multiple,
body.app-shell-admin .select2-container--focus .select2-selection--single,
body.app-shell-admin .select2-container--focus .select2-selection--multiple,
body.app-shell-admin .select2-container--open .select2-selection--single,
body.app-shell-admin .select2-container--open .select2-selection--multiple {
    border-color: var(--ui-primary);
    box-shadow: var(--ui-select-focus-ring);
}

body.app-shell-user .select2-container .select2-selection--single .select2-selection__rendered,
body.app-shell-admin .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 2rem !important;
    color: var(--ui-text) !important;
    line-height: 1.35 !important;
}

body.app-shell-user .select2-container .select2-selection--single .select2-selection__placeholder,
body.app-shell-admin .select2-container .select2-selection--single .select2-selection__placeholder {
    color: var(--ui-muted) !important;
}

body.app-shell-user .select2-container .select2-selection--single .select2-selection__arrow,
body.app-shell-admin .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 0.85rem !important;
}

body.app-shell-user .select2-container .select2-selection--single .select2-selection__arrow b,
body.app-shell-admin .select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--ui-muted) transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
}

body.app-shell-user .select2-container .select2-selection--multiple,
body.app-shell-admin .select2-container .select2-selection--multiple {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem 0.45rem;
}

body.app-shell-user .select2-container .select2-selection--multiple .select2-selection__rendered,
body.app-shell-admin .select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0 !important;
}

body.app-shell-user .select2-container .select2-selection--multiple .select2-selection__choice,
body.app-shell-admin .select2-container .select2-selection--multiple .select2-selection__choice {
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--ui-select-chip-bg) !important;
    color: var(--ui-select-chip-text) !important;
    padding: 0.42rem 0.72rem !important;
    margin: 0 !important;
    font-size: 0.8rem !important;
    font-weight: 700;
}

body.app-shell-user .select2-container .select2-selection--multiple .select2-selection__choice__remove,
body.app-shell-admin .select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: currentColor !important;
    margin-right: 0.35rem !important;
}

body.app-shell-user .select2-container--open .select2-dropdown,
body.app-shell-admin .select2-container--open .select2-dropdown {
    border: 1px solid var(--ui-select-border);
    border-radius: 20px;
    background: var(--ui-select-dropdown-bg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

body.app-shell-user .select2-search--dropdown,
body.app-shell-admin .select2-search--dropdown {
    padding: 0.8rem;
    background: transparent;
}

body.app-shell-user .select2-search--dropdown .select2-search__field,
body.app-shell-admin .select2-search--dropdown .select2-search__field {
    min-height: 44px;
    border-radius: 14px;
    border: 1px solid var(--ui-select-border);
    background: var(--ui-select-bg);
    color: var(--ui-text);
    padding: 0.7rem 0.9rem;
}

body.app-shell-user .select2-results__options,
body.app-shell-admin .select2-results__options {
    max-height: min(60vh, 340px) !important;
    padding: 0.35rem;
}

body.app-shell-user .select2-results__option,
body.app-shell-admin .select2-results__option {
    padding: 0;
    border-radius: 14px;
    margin-bottom: 0.2rem;
    color: var(--ui-text);
}

body.app-shell-user .select2-results__option--highlighted[aria-selected],
body.app-shell-admin .select2-results__option--highlighted[aria-selected] {
    background: var(--ui-select-option-hover) !important;
    color: inherit !important;
}

body.app-shell-user .select2-results__option[aria-selected='true'],
body.app-shell-admin .select2-results__option[aria-selected='true'] {
    background: var(--ui-select-option-active) !important;
    color: inherit !important;
}

body.app-shell-user .select2-container--default .select2-results > .select2-results__options,
body.app-shell-admin .select2-container--default .select2-results > .select2-results__options,
body.app-shell-user .select2-container--default .select2-dropdown,
body.app-shell-admin .select2-container--default .select2-dropdown,
body.app-shell-user .select2-dropdown.bg-info-800,
body.app-shell-admin .select2-dropdown.bg-info-800 {
    background: var(--ui-select-dropdown-bg) !important;
    color: var(--ui-text) !important;
}

body.app-shell-user .select2-results__group,
body.app-shell-admin .select2-results__group {
    padding: 0.55rem 0.8rem 0.3rem !important;
    background: transparent !important;
    color: var(--ui-text-soft) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-shell-user .select2-results__option[aria-disabled='true'],
body.app-shell-admin .select2-results__option[aria-disabled='true'] {
    color: var(--ui-muted) !important;
}

body.app-shell-user .select2-search--dropdown .select2-search__field::placeholder,
body.app-shell-admin .select2-search--dropdown .select2-search__field::placeholder,
body.app-shell-user .select2-container .select2-search--inline .select2-search__field::placeholder,
body.app-shell-admin .select2-container .select2-search--inline .select2-search__field::placeholder {
    color: var(--ui-muted) !important;
}

body.app-shell-user .select2-container .select2-search--inline .select2-search__field,
body.app-shell-admin .select2-container .select2-search--inline .select2-search__field,
body.app-shell-user .select2-container .select2-selection--multiple .select2-selection__rendered li,
body.app-shell-admin .select2-container .select2-selection--multiple .select2-selection__rendered li {
    color: var(--ui-text) !important;
}

body.app-shell-user .select2-container .select2-selection--single .select2-selection__clear,
body.app-shell-admin .select2-container .select2-selection--single .select2-selection__clear {
    color: var(--ui-muted) !important;
}

body.app-shell-user .app-select-dropdown,
body.app-shell-admin .app-select-dropdown {
    background: var(--ui-select-dropdown-bg) !important;
    color: var(--ui-text) !important;
}

body.app-shell-user .app-select-dropdown .select2-search--dropdown,
body.app-shell-admin .app-select-dropdown .select2-search--dropdown {
    background: var(--ui-select-dropdown-bg) !important;
}

body.app-shell-user .app-select-dropdown .select2-search--dropdown .select2-search__field,
body.app-shell-admin .app-select-dropdown .select2-search--dropdown .select2-search__field {
    background: var(--ui-select-bg) !important;
    color: var(--ui-text) !important;
    -webkit-text-fill-color: var(--ui-text) !important;
    box-shadow: none !important;
}

body.app-shell-user .app-select-dropdown .select2-results__option,
body.app-shell-admin .app-select-dropdown .select2-results__option,
body.app-shell-user .app-select-dropdown .select2-results__option[aria-selected='false'],
body.app-shell-admin .app-select-dropdown .select2-results__option[aria-selected='false'] {
    background: transparent !important;
    color: var(--ui-text) !important;
}

body.app-shell-user .app-select-dropdown .select2-results__option .app-select-option,
body.app-shell-user .app-select-dropdown .select2-results__option .app-select-selection,
body.app-shell-admin .app-select-dropdown .select2-results__option .app-select-option,
body.app-shell-admin .app-select-dropdown .select2-results__option .app-select-selection {
    background: transparent !important;
    color: inherit !important;
    box-shadow: none !important;
}

body.app-shell-user .app-select-dropdown .select2-results__option .app-select-option__label,
body.app-shell-user .app-select-dropdown .select2-results__option .app-select-selection__label,
body.app-shell-admin .app-select-dropdown .select2-results__option .app-select-option__label,
body.app-shell-admin .app-select-dropdown .select2-results__option .app-select-selection__label {
    color: var(--ui-text) !important;
}

body.app-shell-user .app-select-dropdown .select2-results__option .app-select-option__meta,
body.app-shell-admin .app-select-dropdown .select2-results__option .app-select-option__meta {
    color: var(--ui-muted) !important;
}

body[data-theme='light'].app-shell-user select.form-control,
body[data-theme='light'].app-shell-user .custom-select,
body[data-theme='light'].app-shell-user select,
body[data-theme='light'].app-shell-admin select.form-control,
body[data-theme='light'].app-shell-admin .custom-select,
body[data-theme='light'].app-shell-admin select {
    color-scheme: light;
}

body[data-theme='dark'].app-shell-user select.form-control,
body[data-theme='dark'].app-shell-user .custom-select,
body[data-theme='dark'].app-shell-user select,
body[data-theme='dark'].app-shell-admin select.form-control,
body[data-theme='dark'].app-shell-admin .custom-select,
body[data-theme='dark'].app-shell-admin select {
    color-scheme: dark;
    background: var(--ui-select-bg);
    color: var(--ui-text);
    border-color: var(--ui-select-border);
}

body[data-theme='dark'].app-shell-user select.form-control option,
body[data-theme='dark'].app-shell-user .custom-select option,
body[data-theme='dark'].app-shell-user select option,
body[data-theme='dark'].app-shell-admin select.form-control option,
body[data-theme='dark'].app-shell-admin .custom-select option,
body[data-theme='dark'].app-shell-admin select option,
body[data-theme='dark'].app-shell-user select.form-control optgroup,
body[data-theme='dark'].app-shell-user .custom-select optgroup,
body[data-theme='dark'].app-shell-user select optgroup,
body[data-theme='dark'].app-shell-admin select.form-control optgroup,
body[data-theme='dark'].app-shell-admin .custom-select optgroup,
body[data-theme='dark'].app-shell-admin select optgroup {
    background: var(--ui-select-dropdown-bg) !important;
}

body.app-shell-user .app-select-option,
body.app-shell-user .app-select-selection,
body.app-shell-admin .app-select-option,
body.app-shell-admin .app-select-selection {
    display: flex;
    align-items: center;
    gap: 0.72rem;
}

body.app-shell-user .app-select-option,
body.app-shell-admin .app-select-option {
    min-height: 56px;
    padding: 0.8rem 0.9rem;
}

body.app-shell-user .app-select-option__icon,
body.app-shell-user .app-select-selection__icon,
body.app-shell-admin .app-select-option__icon,
body.app-shell-admin .app-select-selection__icon {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ui-select-chip-bg);
    color: var(--ui-select-chip-text);
    font-size: 0.95rem;
}

body.app-shell-user .app-select-option__copy,
body.app-shell-user .app-select-selection__copy,
body.app-shell-admin .app-select-option__copy,
body.app-shell-admin .app-select-selection__copy {
    min-width: 0;
    display: grid;
    gap: 0.12rem;
}

body.app-shell-user .app-select-option__label,
body.app-shell-user .app-select-selection__label,
body.app-shell-admin .app-select-option__label,
body.app-shell-admin .app-select-selection__label {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell-user .app-select-option__meta,
body.app-shell-admin .app-select-option__meta {
    font-size: 0.75rem;
    color: var(--ui-muted);
}

body.app-shell-user .app-select-selection__chip,
body.app-shell-admin .app-select-selection__chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: var(--ui-select-chip-bg);
    color: var(--ui-select-chip-text);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.app-shell-user .wallet-choice-field,
body.app-shell-admin .wallet-choice-field {
    position: relative;
}

body.app-shell-user .wallet-choice-field__surface,
body.app-shell-admin .wallet-choice-field__surface {
    position: relative;
}

body.app-shell-user .app-choice-grid,
body.app-shell-admin .app-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

body.app-shell-user .app-choice-grid--three,
body.app-shell-admin .app-choice-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.app-shell-user .app-choice-grid__input,
body.app-shell-admin .app-choice-grid__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.app-shell-user .app-choice-grid__card,
body.app-shell-admin .app-choice-grid__card {
    position: relative;
    min-height: 112px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-select-border);
    background: var(--ui-select-bg);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition:
        border-color var(--ui-duration-base) var(--ui-ease),
        box-shadow var(--ui-duration-base) var(--ui-ease),
        transform var(--ui-duration-fast) var(--ui-ease),
        background var(--ui-duration-base) var(--ui-ease);
}

body.app-shell-user .app-choice-grid__card:hover,
body.app-shell-user .app-choice-grid__card:focus-within,
body.app-shell-admin .app-choice-grid__card:hover,
body.app-shell-admin .app-choice-grid__card:focus-within {
    border-color: var(--ui-select-hover-border);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

body.app-shell-user .app-choice-grid__input:focus-visible + .app-choice-grid__card,
body.app-shell-user .app-choice-grid__input:checked + .app-choice-grid__card,
body.app-shell-admin .app-choice-grid__input:focus-visible + .app-choice-grid__card,
body.app-shell-admin .app-choice-grid__input:checked + .app-choice-grid__card {
    border-color: var(--ui-primary);
    box-shadow: var(--ui-select-focus-ring);
}

body.app-shell-user .app-choice-grid__input:checked + .app-choice-grid__card,
body.app-shell-admin .app-choice-grid__input:checked + .app-choice-grid__card {
    background:
        linear-gradient(180deg, var(--ui-select-option-hover), rgba(255, 255, 255, 0) 100%),
        var(--ui-select-bg);
}

body.app-shell-user .app-choice-grid__icon,
body.app-shell-admin .app-choice-grid__icon {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ui-select-chip-bg);
    color: var(--ui-select-chip-text);
    font-size: 1.05rem;
}

body.app-shell-user .app-choice-grid__copy,
body.app-shell-admin .app-choice-grid__copy {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
}

body.app-shell-user .app-choice-grid__title,
body.app-shell-admin .app-choice-grid__title {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--ui-text);
}

body.app-shell-user .app-choice-grid__meta,
body.app-shell-admin .app-choice-grid__meta {
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--ui-muted);
}

body.app-shell-user .app-choice-grid__badge,
body.app-shell-admin .app-choice-grid__badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.46rem;
    border-radius: 999px;
    background: var(--ui-select-chip-bg);
    color: var(--ui-select-chip-text);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 575.98px) {
    body.app-shell-user .select2-container .select2-selection--single,
    body.app-shell-user .select2-container .select2-selection--multiple,
    body.app-shell-admin .select2-container .select2-selection--single,
    body.app-shell-admin .select2-container .select2-selection--multiple,
    body.app-shell-user select.form-control,
    body.app-shell-admin select.form-control {
        min-height: 54px;
        border-radius: 16px;
    }

    body.app-shell-user .app-select-shell__icon,
    body.app-shell-admin .app-select-shell__icon {
        top: 0.88rem;
        left: 0.92rem;
        width: 1.82rem;
        height: 1.82rem;
    }

    body.app-shell-user .app-choice-grid,
    body.app-shell-admin .app-choice-grid,
    body.app-shell-user .app-choice-grid--three,
    body.app-shell-admin .app-choice-grid--three {
        grid-template-columns: 1fr;
    }

    body.app-shell-user .app-choice-grid__card,
    body.app-shell-admin .app-choice-grid__card {
        min-height: 94px;
    }
}

body.app-shell-user .app-action-blocked-modal .modal-dialog,
body.app-shell-admin .app-action-blocked-modal .modal-dialog {
    max-width: 480px;
    margin: 1rem auto;
}

body.app-shell-user .app-action-blocked-modal .modal-content,
body.app-shell-admin .app-action-blocked-modal .modal-content {
    border: 1px solid var(--ui-border);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 184, 77, 0.12) 0%, rgba(255, 184, 77, 0) 22%),
        var(--ui-surface-strong);
    box-shadow: var(--ui-shadow-lg);
}

body.app-shell-user .app-action-blocked-modal.is-success .modal-content,
body.app-shell-admin .app-action-blocked-modal.is-success .modal-content {
    background:
        linear-gradient(180deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0) 22%),
        var(--ui-surface-strong);
}

body.app-shell-user .app-action-blocked-modal.is-error .modal-content,
body.app-shell-admin .app-action-blocked-modal.is-error .modal-content {
    background:
        linear-gradient(180deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0) 22%),
        var(--ui-surface-strong);
}

body.app-shell-user .app-action-blocked-modal.is-warning .modal-content,
body.app-shell-admin .app-action-blocked-modal.is-warning .modal-content {
    background:
        linear-gradient(180deg, rgba(245, 158, 11, 0.14) 0%, rgba(245, 158, 11, 0) 22%),
        var(--ui-surface-strong);
}

body.app-shell-user .app-action-blocked-modal.is-info .modal-content,
body.app-shell-admin .app-action-blocked-modal.is-info .modal-content {
    background:
        linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 22%),
        var(--ui-surface-strong);
}

body.app-shell-user .app-action-blocked-modal .modal-body,
body.app-shell-admin .app-action-blocked-modal .modal-body {
    position: relative;
    padding: 1.4rem;
}

body.app-shell-user .app-action-blocked-modal__close,
body.app-shell-admin .app-action-blocked-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--ui-text);
}

body.app-shell-user .app-action-blocked-modal__eyebrow,
body.app-shell-admin .app-action-blocked-modal__eyebrow {
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b86a00;
}

body.app-shell-user .app-action-blocked-modal.is-success .app-action-blocked-modal__eyebrow,
body.app-shell-admin .app-action-blocked-modal.is-success .app-action-blocked-modal__eyebrow {
    color: #0f9f6e;
}

body.app-shell-user .app-action-blocked-modal.is-error .app-action-blocked-modal__eyebrow,
body.app-shell-admin .app-action-blocked-modal.is-error .app-action-blocked-modal__eyebrow {
    color: #dc2626;
}

body.app-shell-user .app-action-blocked-modal.is-warning .app-action-blocked-modal__eyebrow,
body.app-shell-admin .app-action-blocked-modal.is-warning .app-action-blocked-modal__eyebrow {
    color: #b45309;
}

body.app-shell-user .app-action-blocked-modal.is-info .app-action-blocked-modal__eyebrow,
body.app-shell-admin .app-action-blocked-modal.is-info .app-action-blocked-modal__eyebrow {
    color: #2563eb;
}

body.app-shell-user .app-action-blocked-modal__title,
body.app-shell-admin .app-action-blocked-modal__title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ui-text);
}

body.app-shell-user .app-action-blocked-modal__message,
body.app-shell-admin .app-action-blocked-modal__message {
    margin: 0.8rem 0 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--ui-muted);
}

body.app-shell-user .app-action-blocked-modal__reasons,
body.app-shell-admin .app-action-blocked-modal__reasons {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

body.app-shell-user .app-action-blocked-modal__reason,
body.app-shell-admin .app-action-blocked-modal__reason {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface);
}

body.app-shell-user .app-action-blocked-modal__reason-icon,
body.app-shell-admin .app-action-blocked-modal__reason-icon {
    width: 2.3rem;
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 184, 77, 0.18);
    color: #a86100;
    font-size: 1rem;
}

body.app-shell-user .app-action-blocked-modal.is-success .app-action-blocked-modal__reason-icon,
body.app-shell-admin .app-action-blocked-modal.is-success .app-action-blocked-modal__reason-icon {
    background: rgba(16, 185, 129, 0.16);
    color: #0f9f6e;
}

body.app-shell-user .app-action-blocked-modal.is-error .app-action-blocked-modal__reason-icon,
body.app-shell-admin .app-action-blocked-modal.is-error .app-action-blocked-modal__reason-icon {
    background: rgba(239, 68, 68, 0.16);
    color: #dc2626;
}

body.app-shell-user .app-action-blocked-modal.is-warning .app-action-blocked-modal__reason-icon,
body.app-shell-admin .app-action-blocked-modal.is-warning .app-action-blocked-modal__reason-icon {
    background: rgba(245, 158, 11, 0.18);
    color: #b45309;
}

body.app-shell-user .app-action-blocked-modal.is-info .app-action-blocked-modal__reason-icon,
body.app-shell-admin .app-action-blocked-modal.is-info .app-action-blocked-modal__reason-icon {
    background: rgba(59, 130, 246, 0.16);
    color: #2563eb;
}

body.app-shell-user .app-action-blocked-modal__reason-title,
body.app-shell-admin .app-action-blocked-modal__reason-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--ui-text);
}

body.app-shell-user .app-action-blocked-modal__reason-text,
body.app-shell-admin .app-action-blocked-modal__reason-text {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--ui-muted);
}

body.app-shell-user .app-action-blocked-modal__note,
body.app-shell-admin .app-action-blocked-modal__note {
    margin: 0.95rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #a86100;
}

body.app-shell-user .app-action-blocked-modal.is-success .app-action-blocked-modal__note,
body.app-shell-admin .app-action-blocked-modal.is-success .app-action-blocked-modal__note {
    color: #0f9f6e;
}

body.app-shell-user .app-action-blocked-modal.is-error .app-action-blocked-modal__note,
body.app-shell-admin .app-action-blocked-modal.is-error .app-action-blocked-modal__note {
    color: #dc2626;
}

body.app-shell-user .app-action-blocked-modal.is-warning .app-action-blocked-modal__note,
body.app-shell-admin .app-action-blocked-modal.is-warning .app-action-blocked-modal__note {
    color: #b45309;
}

body.app-shell-user .app-action-blocked-modal.is-info .app-action-blocked-modal__note,
body.app-shell-admin .app-action-blocked-modal.is-info .app-action-blocked-modal__note {
    color: #2563eb;
}

body.app-shell-user .app-action-blocked-modal__actions,
body.app-shell-admin .app-action-blocked-modal__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

@media (max-width: 575.98px) {
    body.app-shell-user .app-action-blocked-modal .modal-dialog,
    body.app-shell-admin .app-action-blocked-modal .modal-dialog {
        width: calc(100vw - 1rem);
        max-width: 600px;
        margin: 0.5rem auto;
    }

    body.app-shell-user .app-action-blocked-modal .modal-body,
    body.app-shell-admin .app-action-blocked-modal .modal-body {
        padding: 1.1rem;
    }

    body.app-shell-user .app-action-blocked-modal__actions,
    body.app-shell-admin .app-action-blocked-modal__actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.app-shell-user .app-action-blocked-modal__actions .btn,
    body.app-shell-admin .app-action-blocked-modal__actions .btn {
        width: 100%;
    }
}

.app-inline-toast-root {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10060;
    display: grid;
    gap: 0.65rem;
    width: min(340px, calc(100vw - 1.25rem));
}

.app-inline-toast {
    display: block;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--ui-shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

body[data-theme='dark'] .app-inline-toast {
    background: rgba(10, 14, 22, 0.96);
}

.app-inline-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-inline-toast__content {
    display: grid;
    gap: 0.18rem;
}

.app-inline-toast__title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--ui-text);
}

.app-inline-toast__text {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--ui-text-soft);
}

.app-inline-toast.is-success {
    border-color: rgba(16, 185, 129, 0.24);
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.12);
}

.app-inline-toast.is-warning {
    border-color: rgba(245, 158, 11, 0.24);
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.12);
}

.app-inline-toast.is-error {
    border-color: rgba(239, 68, 68, 0.24);
    box-shadow: 0 18px 40px rgba(239, 68, 68, 0.12);
}

.app-inline-toast.is-info {
    border-color: rgba(59, 130, 246, 0.24);
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.12);
}

@media (max-width: 575.98px) {
    .app-inline-toast-root {
        top: 0.75rem;
        right: 0.5rem;
        left: 0.5rem;
        width: auto;
    }
}

/* Request card mobile compact fixes */
@media (max-width: 767.98px) {
    body.app-shell-user .wallet-requestcard-page .wallet-card-workspace__actions--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .tx-row--enhanced.tx-row--full {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        align-items: flex-start;
        gap: 0.5rem;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .tx-row__body {
        min-width: 0;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .wallet-ledger-row__actions--compact {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 0.34rem;
    }
}

@media (max-width: 420px) {
    body.app-shell-user .wallet-requestcard-page .wallet-card-workspace__actions--compact,
    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .wallet-ledger-row__actions--compact {
        grid-template-columns: 1fr;
    }

    body.app-shell-user .wallet-requestcard-page .wallet-requestcard-history-ledger .wallet-history-row__meta {
        display: none;
    }
}

/* ========================================================================
   KYC Wizard Ã¢â‚¬â€ Multi-step verification flow
   ======================================================================== */

/* Progress bar */
body.app-shell-user .kyc-wizard-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.1rem;
    padding: 0.15rem;
    border-radius: 999px;
    background: var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
    box-shadow: var(--ui-shadow-soft);
    overflow: hidden;
}

body.app-shell-user .kyc-wizard-progress__step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--ui-muted);
    background: transparent;
    transition: all 0.35s var(--ui-ease);
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.app-shell-user .kyc-wizard-progress__step.is-active {
    background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2));
    color: #fff;
    box-shadow: 0 4px 14px rgba(109, 75, 255, 0.28);
}

body.app-shell-user .kyc-wizard-progress__step.is-complete {
    color: var(--ui-credit);
}

body.app-shell-user .kyc-wizard-progress__num {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    background: var(--ui-chip-bg);
    color: var(--ui-chip-text);
    transition: all 0.3s var(--ui-ease);
}

body.app-shell-user .kyc-wizard-progress__step.is-active .kyc-wizard-progress__num {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

body.app-shell-user .kyc-wizard-progress__step.is-complete .kyc-wizard-progress__num {
    background: rgba(34, 197, 94, 0.16);
    color: var(--ui-credit);
}

body.app-shell-user .kyc-wizard-progress__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Step containers */
body.app-shell-user .kyc-wizard-step {
    display: none;
    animation: kycStepIn 0.4s var(--ui-ease);
}

body.app-shell-user .kyc-wizard-step.is-visible {
    display: block;
}

@keyframes kycStepIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step header inside each step */
body.app-shell-user .kyc-step-header {
    margin-bottom: 0.9rem;
}

body.app-shell-user .kyc-step-header__title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ui-text);
    margin: 0 0 0.25rem;
}

body.app-shell-user .kyc-step-header__subtitle {
    font-size: 0.82rem;
    color: var(--ui-text-soft);
    line-height: 1.45;
    margin: 0;
}

/* Step nav buttons */
body.app-shell-user .kyc-wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

body.app-shell-user .kyc-wizard-nav .btn {
    min-width: 120px;
}

/* Upload cards Ã¢â‚¬â€ enhanced file inputs */
body.app-shell-user .kyc-upload-card {
    position: relative;
    padding: 1rem;
    border-radius: 18px;
    border: 2px dashed var(--ui-border);
    background: var(--ui-surface-soft);
    text-align: center;
    transition: all 0.25s var(--ui-ease);
    cursor: pointer;
    margin-bottom: 0.5rem;
}

body.app-shell-user .kyc-upload-card:hover,
body.app-shell-user .kyc-upload-card.is-dragover {
    border-color: var(--ui-primary);
    background: rgba(109, 75, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 75, 255, 0.12);
}

body.app-shell-user .kyc-upload-card.has-file {
    border-style: solid;
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.04);
}

body.app-shell-user .kyc-upload-card__icon {
    font-size: 1.6rem;
    color: var(--ui-muted);
    margin-bottom: 0.4rem;
    transition: color 0.25s var(--ui-ease);
}

body.app-shell-user .kyc-upload-card:hover .kyc-upload-card__icon,
body.app-shell-user .kyc-upload-card.is-dragover .kyc-upload-card__icon {
    color: var(--ui-primary);
}

body.app-shell-user .kyc-upload-card.has-file .kyc-upload-card__icon {
    color: var(--ui-credit);
}

body.app-shell-user .kyc-upload-card__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ui-text);
    margin-bottom: 0.2rem;
}

body.app-shell-user .kyc-upload-card__hint {
    display: block;
    font-size: 0.68rem;
    color: var(--ui-muted);
    line-height: 1.3;
}

body.app-shell-user .kyc-upload-card__badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.app-shell-user .kyc-upload-card__badge--required {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

body.app-shell-user .kyc-upload-card__badge--optional {
    background: var(--ui-chip-bg);
    color: var(--ui-muted);
}

body.app-shell-user .kyc-upload-card input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* File thumbnail preview */
body.app-shell-user .kyc-upload-preview {
    display: none;
    margin-top: 0.6rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    max-height: 140px;
    position: relative;
}

body.app-shell-user .kyc-upload-preview.is-visible {
    display: block;
}

body.app-shell-user .kyc-upload-preview img {
    width: 100%;
    height: 100%;
    max-height: 140px;
    object-fit: cover;
    display: block;
}

body.app-shell-user .kyc-upload-preview__name {
    display: block;
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--ui-text-soft);
    background: var(--ui-surface-soft);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Review step Ã¢â‚¬â€ summary grid */
body.app-shell-user .kyc-review-grid {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

body.app-shell-user .kyc-review-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.78rem 0.88rem;
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 24%),
        var(--ui-surface-soft);
    border: 1px solid var(--ui-border);
}

body.app-shell-user .kyc-review-item__label {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ui-muted);
}

body.app-shell-user .kyc-review-item__value {
    margin-top: 0.14rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ui-text);
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.app-shell-user .kyc-review-item__thumb {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--ui-border);
}

body.app-shell-user .kyc-review-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Compact status bar (replaces stacked review panels) */
body.app-shell-user .kyc-compact-status {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--ui-border);
    background: var(--ui-surface-soft);
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    color: var(--ui-text-soft);
    flex-wrap: wrap;
}

body.app-shell-user .kyc-compact-status__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.app-shell-user .kyc-compact-status__badge--submitted {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

body.app-shell-user .kyc-compact-status__badge--approved {
    background: rgba(34, 197, 94, 0.12);
    color: var(--ui-credit);
}

body.app-shell-user .kyc-compact-status__badge--rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

body.app-shell-user .kyc-compact-status__badge--needs_changes {
    background: rgba(251, 191, 36, 0.14);
    color: #d97706;
}

body.app-shell-user .kyc-compact-status__badge--draft {
    background: var(--ui-chip-bg);
    color: var(--ui-muted);
}

body.app-shell-user .kyc-compact-status__note {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Resubmit alert */
body.app-shell-user .kyc-resubmit-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.88rem;
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.06);
    margin-bottom: 0.9rem;
    font-size: 0.8rem;
    color: var(--ui-text);
    line-height: 1.45;
}

body.app-shell-user .kyc-resubmit-alert i {
    flex: 0 0 auto;
    font-size: 1rem;
    color: #d97706;
    margin-top: 0.1rem;
}

/* Upload card grid */
body.app-shell-user .kyc-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 575px) {
    body.app-shell-user .kyc-upload-grid {
        grid-template-columns: 1fr;
    }

    body.app-shell-user .kyc-wizard-progress__label {
        display: none;
    }

    body.app-shell-user .kyc-wizard-progress__step {
        justify-content: center;
        padding: 0.55rem 0.35rem;
    }

    body.app-shell-user .kyc-wizard-nav .btn {
        min-width: 0;
        flex: 1;
    }
}

/* ========================================================================
   KYC Wizard Ã¢â‚¬â€ Multi-step verification flow
   ======================================================================== */
.kyc-wizard-step { display: none !important; animation: kycStepIn 0.4s ease; }
.kyc-wizard-step.is-visible { display: block !important; }
@keyframes kycStepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Button tweaks */
.kyc-btn-flat { border-radius: 8px !important; font-weight: 700 !important; }

/* Progress bar */
.kyc-wizard-progress { display: flex; align-items: center; gap: 0; margin-bottom: 1.1rem; padding: 0.15rem; border-radius: 999px; background: var(--ui-surface-soft); border: 1px solid var(--ui-border); box-shadow: var(--ui-shadow-soft); overflow: hidden; }
.kyc-wizard-progress__step { flex: 1; display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.75rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; color: var(--ui-muted); background: transparent; transition: all 0.35s ease; white-space: nowrap; }
.kyc-wizard-progress__step.is-active { background: linear-gradient(135deg, var(--ui-primary), var(--ui-primary-2)); color: #fff; box-shadow: 0 4px 14px rgba(109, 75, 255, 0.28); }
.kyc-wizard-progress__step.is-complete { color: var(--ui-credit); }
.kyc-wizard-progress__num { width: 1.35rem; height: 1.35rem; flex: 0 0 1.35rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 0.68rem; font-weight: 900; background: var(--ui-chip-bg); color: var(--ui-chip-text); transition: all 0.3s ease; }
.kyc-wizard-progress__step.is-active .kyc-wizard-progress__num { background: rgba(255, 255, 255, 0.22); color: #fff; }
.kyc-wizard-progress__step.is-complete .kyc-wizard-progress__num { background: rgba(34, 197, 94, 0.16); color: var(--ui-credit); }
.kyc-step-header { margin-bottom: 0.9rem; }
.kyc-step-header__title { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ui-text); margin: 0 0 0.25rem; }
.kyc-step-header__subtitle { font-size: 0.82rem; color: var(--ui-text-soft); line-height: 1.45; margin: 0; }
.kyc-wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.kyc-wizard-nav .btn { min-width: 120px; }
.kyc-upload-card { position: relative; padding: 1rem; border-radius: 18px; border: 2px dashed var(--ui-border); background: var(--ui-surface-soft); text-align: center; transition: all 0.25s ease; cursor: pointer; margin-bottom: 0.5rem; }
.kyc-upload-card:hover, .kyc-upload-card.is-dragover { border-color: var(--ui-primary); background: rgba(109, 75, 255, 0.04); transform: translateY(-2px); }
.kyc-upload-card.has-file { border-style: solid; border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.04); }
.kyc-upload-card__icon { font-size: 1.6rem; color: var(--ui-muted); margin-bottom: 0.4rem; transition: color 0.25s ease; }
.kyc-upload-card:hover .kyc-upload-card__icon, .kyc-upload-card.is-dragover .kyc-upload-card__icon { color: var(--ui-primary); }
.kyc-upload-card.has-file .kyc-upload-card__icon { color: var(--ui-credit); }
.kyc-upload-card__label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--ui-text); margin-bottom: 0.2rem; }
.kyc-upload-card__hint { display: block; font-size: 0.68rem; color: var(--ui-muted); line-height: 1.3; }
.kyc-upload-card__badge { position: absolute; top: 0.6rem; right: 0.6rem; padding: 0.2rem 0.5rem; border-radius: 999px; font-size: 0.58rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.kyc-upload-card__badge--required { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.kyc-upload-card__badge--optional { background: var(--ui-chip-bg); color: var(--ui-muted); }
.kyc-upload-card input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.kyc-upload-preview { display: none; margin-top: 0.6rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--ui-border); max-height: 140px; position: relative; }
.kyc-upload-preview.is-visible { display: block; }
.kyc-upload-preview img { width: 100%; height: 100%; max-height: 140px; object-fit: cover; display: block; }
.kyc-upload-preview__name { display: block; padding: 0.35rem 0.5rem; font-size: 0.65rem; font-weight: 700; color: var(--ui-text-soft); background: var(--ui-surface-soft); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.kyc-review-grid { display: grid; gap: 0.65rem; margin-bottom: 0.9rem; }
.kyc-review-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; padding: 0.78rem 0.88rem; border-radius: 15px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 24%), var(--ui-surface-soft); border: 1px solid var(--ui-border); }
.kyc-review-item__label { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ui-muted); }
.kyc-review-item__value { margin-top: 0.14rem; font-size: 0.88rem; font-weight: 700; color: var(--ui-text); line-height: 1.3; overflow-wrap: anywhere; word-break: break-word; }
.kyc-review-item__thumb { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--ui-border); }
.kyc-review-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kyc-compact-status { display: flex; align-items: center; gap: 0.65rem; padding: 0.6rem 0.85rem; border-radius: 14px; border: 1px solid var(--ui-border); background: var(--ui-surface-soft); margin-bottom: 0.9rem; font-size: 0.78rem; color: var(--ui-text-soft); flex-wrap: wrap; }
.kyc-compact-status__badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.55rem; border-radius: 999px; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.kyc-compact-status__badge--submitted { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.kyc-compact-status__badge--approved { background: rgba(34, 197, 94, 0.12); color: var(--ui-credit); }
.kyc-compact-status__badge--rejected { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.kyc-compact-status__badge--needs_changes { background: rgba(251, 191, 36, 0.14); color: #d97706; }
.kyc-compact-status__badge--draft { background: var(--ui-chip-bg); color: var(--ui-muted); }
.kyc-compact-status__note { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kyc-resubmit-alert { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.75rem 0.88rem; border-radius: 14px; border: 1px solid rgba(251, 191, 36, 0.22); background: rgba(251, 191, 36, 0.06); margin-bottom: 0.9rem; font-size: 0.8rem; color: var(--ui-text); line-height: 1.45; }
.kyc-resubmit-alert i { flex: 0 0 auto; font-size: 1rem; color: #d97706; margin-top: 0.1rem; }
.kyc-upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (max-width: 575px) { .kyc-upload-grid { grid-template-columns: 1fr; } .kyc-wizard-progress__label { display: none; } .kyc-wizard-progress__step { justify-content: center; padding: 0.55rem 0.35rem; } .kyc-wizard-nav .btn { min-width: 0; flex: 1; } }

