:root {
    color-scheme: dark;
    --px-bg: #030706;
    --px-bg-deep: #010302;
    --px-panel: rgba(9, 15, 13, .92);
    --px-panel-soft: rgba(13, 21, 18, .76);
    --px-panel-raised: rgba(16, 25, 21, .94);
    --px-line: rgba(196, 220, 208, .105);
    --px-line-strong: rgba(196, 220, 208, .18);
    --px-text: #eef5f1;
    --px-muted: #87968f;
    --px-subtle: #526059;
    --px-accent: #3ddc91;
    --px-accent-2: #72e6ad;
    --px-info: #55a8ff;
    --px-warning: #f3b63f;
    --px-danger: #ff6168;
    --px-violet: #9c83ff;
    --px-radius: 20px;
    --px-radius-lg: 28px;
    --px-shadow: 0 22px 70px rgba(0, 0, 0, .36);
    --px-sidebar-open: 292px;
    --px-sidebar-closed: 82px;
    --px-header: 70px;
}

[x-cloak] { display: none !important; }
html { background: var(--px-bg-deep); scroll-behavior: smooth; }
body.phoenix-v5 {
    color: var(--px-text);
    background:
        radial-gradient(circle at 8% -8%, rgba(61, 220, 145, .085), transparent 31rem),
        radial-gradient(circle at 100% 100%, rgba(61, 220, 145, .04), transparent 36rem),
        linear-gradient(145deg, #020504, #070b09 52%, #020403);
    font-family: Vazirmatn, IRANSansX, "Segoe UI", Tahoma, sans-serif;
    font-feature-settings: "ss01", "tnum";
}
body.phoenix-v5::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

::selection { color: #041009; background: rgba(114, 230, 173, .8); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(135, 150, 143, .22); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(114, 230, 173, .42); }

.phoenix-v5 .glass-panel,
.phoenix-v5 .glass-card,
.phoenix-panel {
    background:
        linear-gradient(135deg, rgba(255,255,255,.018), transparent 42%),
        linear-gradient(150deg, var(--px-panel-raised), var(--px-panel));
    border: 1px solid var(--px-line) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.035), 0 14px 45px rgba(0,0,0,.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.phoenix-v5 .glass-panel:hover,
.phoenix-v5 .glass-card:hover { border-color: rgba(114, 230, 173, .14) !important; }
.phoenix-v5 .phoenix-panel { border-radius: var(--px-radius-lg) !important; }
.phoenix-v5 [class*="rounded-2xl"] { border-radius: var(--px-radius) !important; }

.phoenix-v5 .app-sidebar {
    width: var(--px-sidebar-open) !important;
    flex-basis: var(--px-sidebar-open);
    background:
        radial-gradient(circle at 80% 0, rgba(61,220,145,.09), transparent 22rem),
        linear-gradient(180deg, rgba(5,10,8,.985), rgba(2,5,4,.99)) !important;
    border: 0 !important;
    border-left: 1px solid var(--px-line) !important;
    box-shadow: -16px 0 54px rgba(0,0,0,.3) !important;
}
.phoenix-v5 .app-sidebar.sidebar-closed {
    width: var(--px-sidebar-closed) !important;
    flex-basis: var(--px-sidebar-closed);
}
.phoenix-v5 .app-sidebar::after {
    content: "";
    position: absolute;
    top: 6rem;
    left: -1px;
    width: 1px;
    height: 20rem;
    background: linear-gradient(transparent, rgba(114,230,173,.46), transparent);
    box-shadow: 0 0 20px rgba(61,220,145,.28);
}
.phoenix-v5 .app-sidebar nav { padding: 14px 12px 24px; }
.phoenix-v5 .app-sidebar nav > div { margin: 0 0 13px; padding: 0; }
.phoenix-v5 .app-sidebar nav button {
    min-height: 28px;
    padding-inline: 10px;
    color: rgba(211,225,218,.39) !important;
    font-size: 10px !important;
    letter-spacing: .02em;
}
.phoenix-v5 .app-sidebar nav a {
    min-height: 43px;
    margin-block: 2px;
    padding: 10px 12px !important;
    border: 1px solid transparent;
    border-radius: 15px !important;
    color: rgba(222,232,227,.65);
    opacity: 1 !important;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.phoenix-v5 .app-sidebar nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.035) !important;
    border-color: rgba(255,255,255,.055);
    transform: translateX(-2px);
}
.phoenix-v5 .app-sidebar nav a[class*="bg-white/10"],
.phoenix-v5 .app-sidebar nav a[aria-current="page"] {
    color: #eafff3 !important;
    background: linear-gradient(90deg, rgba(61,220,145,.13), rgba(61,220,145,.035)) !important;
    border-color: rgba(61,220,145,.24) !important;
    box-shadow: inset -3px 0 var(--px-accent), 0 8px 24px rgba(0,0,0,.16);
}
.phoenix-v5 .app-sidebar nav a i { color: #82948b !important; font-size: 15px !important; }
.phoenix-v5 .app-sidebar nav a:hover i,
.phoenix-v5 .app-sidebar nav a[aria-current="page"] i { color: var(--px-accent-2) !important; }

.phoenix-v5 .app-header {
    height: var(--px-header) !important;
    min-height: var(--px-header);
    padding-inline: clamp(14px, 2.2vw, 30px) !important;
    background: rgba(3, 8, 6, .82) !important;
    border-bottom: 1px solid var(--px-line) !important;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
    backdrop-filter: blur(22px);
}
.phoenix-v5 .app-main {
    padding: clamp(16px, 2.3vw, 32px) !important;
    background: radial-gradient(circle at 80% 0, rgba(61,220,145,.032), transparent 28rem);
}
.phoenix-v5 .app-main > * { animation: phoenix-in .3s ease both; }
/* No transform here. animation-fill-mode:both leaves the element in a
   transformed state permanently — even as an identity matrix — which
   makes it the containing block for every position:fixed descendant.
   Modals inside a page were being positioned against this wrapper
   instead of the viewport, so they opened off-screen and could only be
   reached by scrolling. Fading alone has the same effect visually. */
@keyframes phoenix-in { from { opacity: 0; } }

.phoenix-command-trigger {
    width: min(34vw, 430px);
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-inline: 14px;
    border: 1px solid var(--px-line);
    border-radius: 15px;
    color: var(--px-muted);
    background: rgba(255,255,255,.025);
    transition: .2s ease;
}
.phoenix-command-trigger:hover { color: #dce9e2; border-color: var(--px-line-strong); background: rgba(255,255,255,.04); }
.phoenix-command-trigger kbd {
    margin-right: auto;
    direction: ltr;
    padding: 2px 7px;
    border: 1px solid var(--px-line);
    border-radius: 6px;
    color: var(--px-subtle);
    font-size: 10px;
}
.phoenix-fund-select {
    height: 40px;
    min-width: 148px;
    max-width: 220px;
    padding: 0 12px;
    color: #dfeae4;
    background: rgba(255,255,255,.028);
    border: 1px solid var(--px-line);
    border-radius: 15px;
    font-size: 12px;
}

.phoenix-v5 .phoenix-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    color: var(--px-accent-2);
    background: rgba(61,220,145,.055);
    border: 1px solid rgba(61,220,145,.15);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}
.phoenix-page-title { font-size: clamp(24px, 3vw, 36px); line-height: 1.4; font-weight: 900; letter-spacing: -.035em; color: #fff; }
.phoenix-page-subtitle { margin-top: 6px; color: var(--px-muted); font-size: 12px; }
.phoenix-data-source { display: inline-flex; align-items: center; gap: 6px; color: var(--px-subtle); font-size: 10px; }
.phoenix-data-source::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--px-accent); box-shadow: 0 0 9px rgba(61,220,145,.5); }

.phoenix-spotlight {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    padding: 10px 14px;
    color: #dce9e2;
    background: linear-gradient(90deg, rgba(85,168,255,.055), rgba(61,220,145,.035));
    border: 1px solid rgba(85,168,255,.22);
    border-radius: 16px;
    font-size: 12px;
}
.phoenix-spotlight i { color: var(--px-info); }

.phoenix-metric {
    position: relative;
    min-height: 142px;
    padding: 18px;
    overflow: hidden;
}
.phoenix-metric::after {
    content: "";
    position: absolute;
    inset: auto -30px -50px auto;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--metric-glow, rgba(61,220,145,.08));
    filter: blur(35px);
}
.phoenix-metric__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 14px; border: 1px solid currentColor; opacity: .9; }
.phoenix-metric__label { color: #c4d0ca; font-size: 12px; font-weight: 700; }
.phoenix-metric__value { margin-top: 22px; color: #fff; font-size: clamp(22px, 2.5vw, 32px); line-height: 1; font-weight: 900; direction: rtl; font-variant-numeric: tabular-nums; }
.phoenix-metric__meta { margin-top: 9px; color: var(--px-muted); font-size: 10px; }
.tone-success { color: var(--px-accent); --metric-glow: rgba(61,220,145,.12); }
.tone-info { color: var(--px-info); --metric-glow: rgba(85,168,255,.1); }
.tone-warning { color: var(--px-warning); --metric-glow: rgba(243,182,63,.1); }
.tone-danger { color: var(--px-danger); --metric-glow: rgba(255,97,104,.1); }
.tone-violet { color: var(--px-violet); --metric-glow: rgba(156,131,255,.1); }

.phoenix-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.phoenix-section-head h2 { color: #fff; font-size: 14px; font-weight: 800; }
.phoenix-section-head p { margin-top: 4px; color: var(--px-subtle); font-size: 10px; }

.phoenix-v5 input:not([type="checkbox"]):not([type="radio"]),
.phoenix-v5 select,
.phoenix-v5 textarea {
    min-height: 42px;
    color: var(--px-text) !important;
    background: rgba(0,0,0,.3) !important;
    border: 1px solid var(--px-line) !important;
    border-radius: 15px !important;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.phoenix-v5 textarea { min-height: 92px; }
.phoenix-v5 input:focus,
.phoenix-v5 select:focus,
.phoenix-v5 textarea:focus {
    background: rgba(0,0,0,.42) !important;
    border-color: rgba(114,230,173,.42) !important;
    box-shadow: 0 0 0 3px rgba(61,220,145,.075) !important;
}
.phoenix-v5 input::placeholder,
.phoenix-v5 textarea::placeholder { color: #4f5c56; }
.phoenix-v5 select option { background: #07100c; color: #eaf2ee; }
.phoenix-v5 input[type="checkbox"],
.phoenix-v5 input[type="radio"] { accent-color: var(--px-accent); }

.phoenix-v5 button,
.phoenix-v5 a { -webkit-tap-highlight-color: transparent; }
.phoenix-v5 button:focus-visible,
.phoenix-v5 a:focus-visible,
.phoenix-v5 input:focus-visible,
.phoenix-v5 select:focus-visible,
.phoenix-v5 textarea:focus-visible { outline: 2px solid rgba(114,230,173,.65); outline-offset: 2px; }
.phoenix-v5 button[class*="bg-emerald-6"],
.phoenix-v5 a[class*="bg-emerald-6"] {
    background: linear-gradient(135deg, #208456, #145c3c) !important;
    border: 1px solid rgba(114,230,173,.19);
    box-shadow: 0 9px 28px rgba(17,105,64,.16);
}
.phoenix-v5 button:disabled { cursor: not-allowed; filter: saturate(.45); }

.phoenix-v5 table { width: 100%; border-collapse: separate; border-spacing: 0; }
.phoenix-v5 thead { background: rgba(255,255,255,.025) !important; }
.phoenix-v5 th {
    padding-block: 12px !important;
    color: #78877f !important;
    font-size: 10px !important;
    font-weight: 700;
    border-bottom: 1px solid var(--px-line);
}
.phoenix-v5 td { border-bottom: 1px solid rgba(255,255,255,.045); }
.phoenix-v5 tbody tr { transition: background .16s ease; }
.phoenix-v5 tbody tr:hover { background: rgba(61,220,145,.028) !important; }
.phoenix-v5 .overflow-x-auto { overscroll-behavior-inline: contain; scrollbar-gutter: stable; }

.phoenix-modal-shell { background: rgba(0, 3, 2, .78); backdrop-filter: blur(12px); }
.phoenix-v5 .fixed.inset-0 > div:not(.mobile-sidebar-overlay) { border-color: var(--px-line) !important; }

.phoenix-command-backdrop {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: min(14vh, 110px) 16px 16px;
    background: rgba(0,3,2,.76);
    backdrop-filter: blur(14px);
}
.phoenix-command {
    width: min(100%, 650px);
    max-height: min(72vh, 650px);
    overflow: hidden;
    background: #07100c;
    border: 1px solid rgba(196,220,208,.17);
    border-radius: 26px;
    box-shadow: 0 35px 100px rgba(0,0,0,.58);
}
.phoenix-command__input { width: 100%; height: 58px; padding: 0 18px !important; border: 0 !important; border-bottom: 1px solid var(--px-line) !important; border-radius: 0 !important; font-size: 14px; }
.phoenix-command__list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.phoenix-command__item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 15px; color: #b9c6c0; text-align: right; }
.phoenix-command__item:hover,
.phoenix-command__item.is-active { color: #fff; background: rgba(61,220,145,.08); }
.phoenix-command__item i { width: 24px; color: var(--px-accent-2); text-align: center; }
.phoenix-command__item small { margin-right: auto; color: var(--px-subtle); }

.phoenix-mobile-nav { display: none; }
.phoenix-focus-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--px-muted); font-size: 11px; }
.phoenix-focus-mode .app-sidebar { display: none !important; }
.phoenix-focus-mode .app-header { opacity: .62; }
.phoenix-focus-mode .app-main { padding-inline: max(20px, 6vw) !important; }

.phoenix-skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,.045); border-radius: 8px; }
.phoenix-skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent); animation: skeleton 1.2s infinite; }
@keyframes skeleton { to { transform: translateX(-100%); } }

/* هماهنگ‌ساز سراسری صفحات قدیمی با Phoenix UI v5.1 */
.phoenix-page {
    width: 100%;
    margin-inline: auto !important;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
}
.phoenix-page-header {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 16px;
    margin-bottom: 18px !important;
    padding: 2px 4px 15px !important;
    border-bottom: 0 !important;
    background: transparent !important;
}
.phoenix-page-header h1 {
    margin: 0 0 5px !important;
    color: #fff !important;
    font-size: clamp(23px, 2.5vw, 32px) !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;
    letter-spacing: -.035em;
}
.phoenix-page-header h1 i { color: var(--px-accent-2) !important; filter: none !important; }
.phoenix-page-header p { margin: 0 !important; color: var(--px-muted) !important; font-size: 11px !important; }

.phoenix-v5 .phoenix-surface,
.phoenix-v5 .app-main [data-phoenix-card="true"] {
    background:
        linear-gradient(135deg, rgba(255,255,255,.016), transparent 42%),
        linear-gradient(150deg, rgba(15,23,19,.94), rgba(6,10,8,.95)) !important;
    border: 1px solid var(--px-line) !important;
    border-radius: var(--px-radius-lg) !important;
    box-shadow: inset 0 1px rgba(255,255,255,.03), 0 16px 48px rgba(0,0,0,.2) !important;
    backdrop-filter: blur(18px);
}
.phoenix-v5 .app-main [data-phoenix-card="true"]:hover { border-color: rgba(114,230,173,.14) !important; }

.phoenix-segmented {
    display: flex;
    gap: 4px !important;
    padding: 4px !important;
    background: rgba(0,0,0,.28) !important;
    border: 1px solid var(--px-line) !important;
    border-radius: 18px !important;
    overflow-x: auto;
}
.phoenix-segmented > button,
.phoenix-segmented > label > div {
    min-height: 39px;
    border-radius: 14px !important;
    white-space: nowrap;
}

.phoenix-upload-zone {
    min-height: 128px;
    border: 1px dashed rgba(135,150,143,.34) !important;
    border-radius: 22px !important;
    background: rgba(0,0,0,.2) !important;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.phoenix-upload-zone:hover,
.phoenix-upload-zone:focus-within {
    border-color: rgba(114,230,173,.45) !important;
    background: rgba(61,220,145,.035) !important;
    transform: translateY(-1px);
}
.phoenix-upload-zone i[class*="file"],
.phoenix-upload-zone i[class*="cloud"] { color: var(--px-accent-2) !important; filter: drop-shadow(0 0 12px rgba(61,220,145,.2)); }

.phoenix-form label:not([class*="cursor-pointer"]) { color: #9aa8a1; }
.phoenix-form button[type="submit"] { min-height: 45px; border-radius: 16px !important; }
.phoenix-v5 .app-main button[class*="bg-blue-6"],
.phoenix-v5 .app-main a[class*="bg-blue-6"] {
    background: linear-gradient(135deg, #256ca5, #174c78) !important;
    border: 1px solid rgba(109,183,242,.2);
}
.phoenix-v5 .app-main button[class*="bg-purple-6"],
.phoenix-v5 .app-main a[class*="bg-purple-6"] {
    background: linear-gradient(135deg, #6350a6, #433572) !important;
    border: 1px solid rgba(175,153,255,.18);
}
.phoenix-v5 .app-main button[class*="bg-red-6"],
.phoenix-v5 .app-main a[class*="bg-red-6"] {
    background: linear-gradient(135deg, #9e343c, #6f242b) !important;
    border: 1px solid rgba(255,120,127,.18);
}

.phoenix-table-shell {
    overflow: auto;
    background: rgba(0,0,0,.18) !important;
    border: 1px solid var(--px-line) !important;
    border-radius: 22px !important;
    box-shadow: inset 0 1px rgba(255,255,255,.02);
}
.phoenix-v5 .app-main table th:first-child { border-start-start-radius: 12px; }
.phoenix-v5 .app-main table th:last-child { border-start-end-radius: 12px; }

.phoenix-empty-state {
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--px-subtle) !important;
    text-align: center;
    border: 1px dashed var(--px-line) !important;
    border-radius: 20px !important;
    background: rgba(0,0,0,.14);
}
.phoenix-v5 .app-main .fixed.inset-0 { background: rgba(0,3,2,.78) !important; backdrop-filter: blur(12px); }
.phoenix-v5 .app-main .fixed.inset-0 > div { border-radius: 26px !important; box-shadow: 0 34px 100px rgba(0,0,0,.58) !important; }

.phoenix-v5 .app-main [class*="bg-green-500/5"],
.phoenix-v5 .app-main [class*="bg-emerald-500/5"] { background-color: rgba(61,220,145,.035) !important; }
.phoenix-v5 .app-main [class*="bg-blue-500/5"] { background-color: rgba(85,168,255,.035) !important; }
.phoenix-v5 .app-main [class*="bg-purple-500/10"] { background-color: rgba(156,131,255,.05) !important; }

.phoenix-chat-page > div,
.phoenix-chat-page > section { border-radius: 26px !important; border-color: var(--px-line) !important; background-color: rgba(8,16,13,.88) !important; }

@media (max-width: 767px) {
    .phoenix-page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .phoenix-page-header { align-items: flex-start !important; padding-inline: 1px !important; }
    .phoenix-page-header > * { max-width: 100%; }
    .phoenix-page-header h1 { font-size: 22px !important; }
    .phoenix-page-header p { font-size: 10px !important; line-height: 1.8; }
    .phoenix-segmented { width: 100%; }
    .phoenix-segmented > button { flex: 1; padding-inline: 10px !important; font-size: 10px !important; }
    .phoenix-upload-zone { min-height: 112px; }
    .phoenix-table-shell { border-radius: 18px !important; }
    .phoenix-v5 .app-main .fixed.inset-0 > div { border-radius: 22px !important; }
}

@media (max-width: 1023px) {
    .phoenix-command-trigger { width: min(40vw, 330px); }
    .phoenix-command-trigger span { display: none; }
}

@media (max-width: 767px) {
    :root { --px-header: 60px; }
    body.phoenix-v5 { overflow: hidden; }
    .phoenix-v5 .app-sidebar {
        position: fixed !important;
        inset: 0 0 0 auto;
        width: min(86vw, 310px) !important;
        height: 100dvh !important;
        z-index: 80 !important;
        transition: transform .26s ease, opacity .26s ease !important;
    }
    .phoenix-v5 .app-sidebar.sidebar-open { transform: translateX(0); opacity: 1; }
    .phoenix-v5 .app-sidebar.sidebar-closed { transform: translateX(105%); opacity: 0; pointer-events: none; }
    .phoenix-v5 .mobile-sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
    .phoenix-v5 .app-header { padding-inline: 12px !important; }
    .phoenix-v5 .app-main {
        padding: 12px 12px calc(82px + env(safe-area-inset-bottom)) !important;
        scroll-padding-bottom: 90px;
    }
    .phoenix-command-trigger { width: 38px; height: 38px; justify-content: center; padding: 0; }
    .phoenix-command-trigger kbd { display: none; }
    .phoenix-fund-select { min-width: 124px; max-width: 145px; height: 38px; }
    .phoenix-page-title { font-size: 23px; }
    .phoenix-spotlight { align-items: flex-start; font-size: 11px; line-height: 1.8; }
    .phoenix-metric { min-height: 126px; padding: 14px; }
    .phoenix-metric__value { margin-top: 16px; font-size: 22px; }
    .phoenix-metric__label { font-size: 10px; }
    .phoenix-v5 .glass-panel,
    .phoenix-v5 .glass-card { border-radius: 20px !important; }
    .phoenix-v5 [class*="rounded-3xl"] { border-radius: 22px !important; }
    .phoenix-v5 [class*="p-8"],
    .phoenix-v5 [class*="p-7"],
    .phoenix-v5 [class*="p-6"] { padding: 15px !important; }
    .phoenix-v5 .fixed.inset-0 { padding: 10px !important; }
    .phoenix-v5 .fixed.inset-0 > div:not(.mobile-sidebar-overlay) { max-height: calc(100dvh - 20px) !important; overflow-y: auto; }
    .phoenix-mobile-nav {
        position: fixed;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        right: 10px;
        left: 10px;
        bottom: max(8px, env(safe-area-inset-bottom));
        z-index: 55;
        min-height: 62px;
        padding: 6px;
        background: rgba(5,10,8,.94);
        border: 1px solid rgba(196,220,208,.13);
        border-radius: 24px;
        box-shadow: 0 18px 55px rgba(0,0,0,.5);
        backdrop-filter: blur(20px);
    }
    .phoenix-mobile-nav a,
    .phoenix-mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; color: #738078; font-size: 9px; border-radius: 16px; }
    .phoenix-mobile-nav i { font-size: 15px; }
    .phoenix-mobile-nav a.is-active { color: var(--px-accent); background: rgba(61,220,145,.065); }
    .phoenix-mobile-nav__primary { margin-top: -19px; width: 49px; height: 49px; justify-self: center; color: #03140b !important; background: var(--px-accent) !important; border: 5px solid #050a08; border-radius: 50% !important; box-shadow: 0 0 25px rgba(61,220,145,.28); }
    .phoenix-mobile-nav__primary span { display: none; }
    .phoenix-mobile-nav__primary i { font-size: 18px; }

    table[data-mobile-cards="true"] { min-width: 0 !important; display: block; background: transparent !important; }
    table[data-mobile-cards="true"] thead { display: none; }
    table[data-mobile-cards="true"] tbody { display: grid; gap: 10px; }
    table[data-mobile-cards="true"] tbody tr { display: grid; gap: 0; padding: 10px 12px; background: rgba(0,0,0,.2); border: 1px solid var(--px-line); border-radius: 18px; }
    table[data-mobile-cards="true"] tbody td { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; min-height: 34px; padding: 8px 0 !important; text-align: left !important; border-bottom: 1px solid rgba(255,255,255,.04); white-space: normal !important; }
    table[data-mobile-cards="true"] tbody td:last-child { border-bottom: 0; }
    table[data-mobile-cards="true"] tbody td::before { content: attr(data-label); flex: 0 0 42%; color: var(--px-muted); text-align: right; font-size: 10px; }
    table[data-mobile-cards="true"] tbody td[colspan] { justify-content: center; }
    table[data-mobile-cards="true"] tbody td[colspan]::before { display: none; }
    .phoenix-focus-mode .app-header { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
