﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg-base:       #0a0d12;
    --bg-surface:    #0f141d;
    --bg-elevated:   #1f2633;
    --bg-card:       #131722;

    --purple-900:    #1d2a3d;
    --purple-700:    #2f4769;
    --purple-600:    #40608a;
    --purple-500:    #6ba3f5;
    --purple-400:    #8bb8ff;
    --purple-300:    #b8c5d6;
    --purple-200:    #eaf2ff;

    --pink-500:      #2e7d32;
    --pink-400:      #66bb6a;

    --white:         #ffffff;
    --text-primary:  #f2f5fa;
    --text-secondary:#94a3b8;
    --text-muted:    #64748b;

    --border-subtle: #151e2e;
    --border-mid:    #233247;
    --border-bright: #4c5e7e;

    --glow-sm:       0 0 16px rgba(107, 163, 245, 0.2);
    --glow-md:       0 0 26px rgba(107, 163, 245, 0.24);
    --glow-lg:       0 0 48px rgba(107, 163, 245, 0.2);

    --glass:         rgba(15, 20, 29, 0.84);
    --font-ui:       "Manrope", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-sm:     8px;
    --radius-md:     14px;
    --radius-lg:     20px;
    --radius-xl:     28px;
    --transition:    0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ui);
    min-height: 100vh;
    color: var(--text-primary);
    background: var(--bg-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 15% 15%, rgba(110, 143, 212, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 45% 55% at 85% 80%, rgba(100, 60, 200, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 70% 20%, rgba(60, 140, 180, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 60% 30% at 40% 95%, rgba(80, 50, 160, 0.10) 0%, transparent 65%);
}

.bg-layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-stars { opacity: 0.56; }
.bg-lines { opacity: 0.42; }
.bg-dots { opacity: 0.88; }

.loading-strip {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.06);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.loading-strip.active {
    opacity: 1;
}

.loading-strip > span {
    display: block;
    width: 36%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, #5ea8ff 36%, #8bc4ff 62%, transparent 100%);
    animation: stripMove 1.1s linear infinite;
}

@keyframes stripMove {
    0% { transform: translateX(-40%); }
    100% { transform: translateX(320%); }
}


.app-container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.portal {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}


.sidebar {
    position: sticky;
    top: 16px;
    border-radius: var(--radius-lg);
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.sidebar__brand-title {
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    color: var(--white);
    background: linear-gradient(135deg, #b7d5ff, #6ba3f5, #6bf5b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar__brand-sub {
    margin-top: 5px;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    font-weight: 500;
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 4px 8px;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    text-align: left;
    font-family: inherit;
    transition: var(--transition);
    transition-property: background, border-color, color, transform;
}

.nav-item:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.nav-item.is-active {
    background: linear-gradient(135deg, rgba(124,58,237,0.25) 0%, rgba(109,40,217,0.12) 100%);
    border-color: var(--border-mid);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(109,40,217,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
}

.nav-item__ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    color: var(--purple-400);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-item.is-active .nav-item__ico {
    background: linear-gradient(135deg, rgba(107, 163, 245, 0.56), rgba(107, 245, 179, 0.36));
    border-color: rgba(167,139,250,0.5);
    color: var(--white);
    box-shadow: 0 0 14px rgba(139,92,246,0.3);
}

.nav-item__txt {
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.sidebar__notes {
    margin: 6px 6px 0;
    padding: 12px 12px 10px;
    background: rgba(236, 72, 153, 0.06);
    border: 1px solid rgba(236, 72, 153, 0.22);
    border-radius: var(--radius-md);
}

.sidebar__notes-title {
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #6ba3f5;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.sidebar__notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar__notes-list li {
    font-size: 0.72rem;
    color: rgba(236, 72, 153, 0.75);
    line-height: 1.45;
    padding-left: 14px;
    position: relative;
}

.sidebar__notes-list li::before {
    content: 'â€º';
    position: absolute;
    left: 2px;
    color: #6ba3f5;
    font-weight: 700;
}

.note-hl {
    color: #f472b6;
    font-weight: 700;
}

.sidebar__footer {
    padding: 10px 6px 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar__token { width: 100%; justify-content: center; }

.sidebar__account {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(139, 92, 246, 0.07);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sidebar__account-ico { font-size: 0.9rem; flex-shrink: 0; }
.sidebar__account-name { font-size: 0.8rem; font-weight: 700; color: var(--purple-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.sidebar__account-level { font-size: 0.7rem; font-weight: 800; color: var(--purple-400); background: rgba(139,92,246,0.15); padding: 2px 6px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }


.main { min-width: 0; }


.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px 24px;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(19,23,34,0.95) 0%, rgba(15,20,29,0.98) 100%);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167,139,250,0.5), rgba(236,72,153,0.3), transparent);
}

.logo { display: flex; align-items: center; gap: 14px; }

.logo__z5 {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(139,92,246,0.3), 0 8px 24px rgba(109,40,217,0.4);
    animation: logo-pulse 5s ease-in-out infinite;
}

.logo__img { object-fit: contain; background: transparent; }

@keyframes logo-pulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(139,92,246,0.3), 0 8px 24px rgba(109,40,217,0.4); }
    50%       { box-shadow: 0 0 0 1px rgba(167,139,250,0.5), 0 8px 36px rgba(139,92,246,0.55); }
}

.logo__text h1 {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #dbeafe 0%, #8bb8ff 52%, #6bf5b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo__by {
    display: block;
    margin-top: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--purple-400);
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.header__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }


.page-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(17,13,36,0.85) 0%, rgba(9,8,20,0.92) 100%);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 220;
    overflow: visible;
}

.page-topbar:has(.account-switcher__trigger[aria-expanded="true"]) {
    z-index: 6000;
}

.page-topbar__kicker {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: var(--white);
    margin-left: 4px;
}

.page-topbar__sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.page-topbar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; position: relative; overflow: visible; }

.page-topbar__actions[hidden] {
    display: none !important;
}

.account-switcher {
    position: relative;
    z-index: 2;
}

.account-switcher__trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(107, 163, 245, 0.28);
    background: linear-gradient(135deg, rgba(18, 24, 38, 0.92) 0%, rgba(12, 16, 26, 0.96) 100%);
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    max-width: min(320px, 72vw);
}

.account-switcher__trigger:hover,
.account-switcher__trigger[aria-expanded="true"] {
    border-color: rgba(107, 163, 245, 0.45);
    box-shadow: 0 0 0 1px rgba(107, 163, 245, 0.12), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.account-switcher__avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #9ec5ff;
    background: rgba(107, 163, 245, 0.12);
    border: 1px solid rgba(107, 163, 245, 0.22);
    overflow: hidden;
}

.account-switcher__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    text-align: left;
}

.account-switcher__name {
    font-size: 0.86rem;
    font-weight: 800;
    color: #f4f8ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.account-switcher__sub {
    font-size: 0.66rem;
    font-weight: 600;
    color: rgba(176, 194, 214, 0.78);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.account-switcher__chev {
    font-size: 0.68rem;
    color: rgba(176, 194, 214, 0.75);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.account-switcher__trigger[aria-expanded="true"] .account-switcher__chev {
    transform: rotate(180deg);
}

.account-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 280px;
    max-width: min(360px, 92vw);
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(154, 173, 208, 0.22);
    background: linear-gradient(165deg, rgba(20, 26, 40, 0.98) 0%, rgba(12, 16, 26, 0.99) 100%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.account-switcher__menu:not([hidden]) {
    display: block;
}

.account-switcher__menu-head {
    padding: 6px 10px 8px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(168, 199, 245, 0.65);
}

.account-switcher__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 240px;
    overflow: auto;
    padding: 0 2px 4px;
}

.account-switcher__item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
}

.account-switcher__item.is-active {
    border-color: rgba(107, 163, 245, 0.24);
    background: rgba(107, 163, 245, 0.08);
}

.account-switcher__item-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 8px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.account-switcher__item-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}

.account-switcher__item-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f4f8ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.account-switcher__item-meta {
    font-size: 0.66rem;
    color: rgba(176, 194, 214, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.account-switcher__item-remove {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(248, 113, 113, 0.85);
    cursor: pointer;
    transition: background 0.15s ease;
}

.account-switcher__item-remove:hover {
    background: rgba(248, 113, 113, 0.12);
}

.account-switcher__footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 2px 2px;
    margin-top: 4px;
    border-top: 1px solid rgba(154, 173, 208, 0.14);
}

.account-switcher__footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid rgba(154, 173, 208, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: #dce8f8;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.account-switcher__footer-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.account-switcher__footer-btn--danger {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(127, 29, 29, 0.22);
}

.account-switcher__footer-btn--danger:hover {
    background: rgba(127, 29, 29, 0.34);
}

.token-account-picker {
    margin-bottom: 12px;
}

.token-account-picker__label {
    margin: 0 0 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(168, 199, 245, 0.72);
}

.token-account-picker__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.token-account-picker__btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(107, 163, 245, 0.22);
    background: rgba(107, 163, 245, 0.08);
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.token-account-picker__btn:hover {
    border-color: rgba(107, 163, 245, 0.38);
    background: rgba(107, 163, 245, 0.14);
}

.token-account-picker__btn-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #f4f8ff;
}

.token-account-picker__btn-meta {
    font-size: 0.68rem;
    color: rgba(176, 194, 214, 0.78);
}

.token-account-picker__divider {
    margin: 0 0 10px;
    font-size: 0.72rem;
    color: rgba(176, 194, 214, 0.7);
    text-align: center;
}

.cr-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(245,158,11,0.35);
}

.cr-balance__label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(253,230,138,0.55); font-weight: 700; }
.cr-balance__val   { font-weight: 800; font-size: 0.92rem; color: #fde68a; font-variant-numeric: tabular-nums; }
.cr-balance__unit  { font-size: 0.7rem; color: rgba(253,230,138,0.45); font-weight: 700; }


.page { display: none; }
.page.is-active { display: block; }


.guide-panel {
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(154, 173, 208, 0.2);
    background: linear-gradient(160deg, rgba(22, 28, 42, 0.72) 0%, rgba(14, 18, 28, 0.86) 100%);
    box-shadow: 0 14px 38px rgba(2, 6, 14, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
}

.guide-panel__head { margin-bottom: 10px; }
.guide-panel__title {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #dbeafe;
    margin-bottom: 4px;
}
.guide-panel__desc {
    font-size: 0.76rem;
    color: #9db4d7;
    line-height: 1.5;
}

.guide-panel__steps {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
}
.guide-panel__steps li {
    font-size: 0.77rem;
    color: #bfd0ea;
    line-height: 1.52;
}
.guide-panel__step-label {
    color: #e9f2ff;
    font-weight: 700;
}


.empty-state {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(145deg, rgba(24, 33, 49, 0.7), rgba(13, 19, 29, 0.88));
    border: 1px solid rgba(140, 167, 206, 0.24);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(5, 10, 20, 0.36);
}

.empty-state__icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #a9c5ef;
    background: linear-gradient(135deg, rgba(107,163,245,0.18), rgba(76,94,126,0.18));
    border: 1px solid rgba(139, 184, 255, 0.3);
}

.empty-state__title {
    font-weight: 800;
    color: #eaf2ff;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.empty-state__text {
    color: #b8c5d6;
    font-size: 0.86rem;
    line-height: 1.55;
}


.social-layout { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.social-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.social-tab {
    padding: 7px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(0,0,0,0.25);
    color: var(--text-secondary);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.07em;
    cursor: pointer;
    transition: var(--transition);
}

.social-tab:hover { background: rgba(139,92,246,0.1); color: var(--text-primary); border-color: var(--border-mid); }
.social-tab.is-active { background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(109,40,217,0.15)); border-color: var(--border-bright); color: var(--white); }

.social-actions { display: flex; gap: 10px; }
.social-list { min-height: 120px; }
.social-player-list { display: flex; flex-direction: column; gap: 8px; }

.social-player {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; border-radius: var(--radius-md);
    background: rgba(13,13,28,0.7);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.social-player:hover { border-color: var(--border-mid); background: rgba(139,92,246,0.06); }

.social-player__avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(109,40,217,0.2));
    border: 1px solid var(--border-mid);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem; color: var(--white); flex-shrink: 0;
}

.social-player__info { flex: 1; min-width: 0; }
.social-player__name { font-weight: 700; font-size: 0.92rem; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-player__id   { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; font-variant-numeric: tabular-nums; }

.social-player__status {
    font-size: 0.75rem; padding: 3px 10px; border-radius: 9px;
    background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.3);
    color: var(--purple-400); white-space: nowrap;
}


.settings-layout { display: flex; flex-direction: column; gap: 16px; }

.settings-section {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: linear-gradient(160deg, rgba(19,23,34,0.9) 0%, rgba(15,20,29,0.96) 100%);
    overflow: hidden;
}

.settings-section__title {
    padding: 11px 18px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--purple-400);
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, rgba(22, 30, 44, 0.78) 0%, rgba(15, 20, 29, 0.92) 100%);
}

.settings-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer; transition: background var(--transition);
}

.settings-row:last-child { border-bottom: none; }
.settings-row:hover { background: rgba(139,92,246,0.05); }
.settings-row__label { font-weight: 700; font-size: 0.88rem; color: var(--text-primary); flex: 1; pointer-events: none; }
.settings-row__desc  { font-size: 0.78rem; color: var(--text-muted); flex: 2; pointer-events: none; line-height: 1.55; }

.btn {
    display: inline-flex; align-items: flex-end; gap: 8px;
    padding: 10px 20px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius-md);
    cursor: pointer; font-size: 0.9rem; font-weight: 700;
    font-family: inherit; letter-spacing: 0.02em;
    transition: var(--transition);
    transition-property: transform, box-shadow, background, border-color, opacity;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    animation: btnGlassPulse 5.5s ease-in-out infinite;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(107, 163, 245, 0.42) 0%, rgba(90, 143, 232, 0.34) 60%, rgba(76, 94, 126, 0.38) 100%);
    color: #0b1020;
    box-shadow: 0 6px 18px rgba(107,163,245,0.24), 0 1px 0 rgba(255,255,255,0.22) inset;
    border: 1px solid rgba(139,184,255,0.48);
}

.btn-primary::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 12%, rgba(255,255,255,0.22) 44%, transparent 78%);
    border-radius: inherit;
    pointer-events: none;
    transform: translateX(-120%);
    animation: btnGlassSweep 3.8s ease-in-out infinite;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107,163,245,0.34), 0 1px 0 rgba(255,255,255,0.12) inset;
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    background: linear-gradient(135deg, rgba(31,38,51,0.62), rgba(37,45,61,0.5));
    color: var(--text-primary);
    border: 1px solid rgba(139,184,255,0.26);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(37,45,61,0.95);
    border-color: var(--border-bright);
    color: var(--purple-200);
    box-shadow: 0 4px 16px rgba(107,163,245,0.16);
}

.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

#filter-refreshed-only { flex-shrink: 0; }
#filter-refreshed-only.active {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    border-width: 2px;
    border-color: #fda4af;
    color: #ffffff;
    background: linear-gradient(180deg, #fb7185 0%, #e11d48 45%, #9f1239 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 2px 0 #3f0a1a,
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 22px rgba(244, 63, 94, 0.45);
}

.btn-icon { font-size: 1.05rem; line-height: 1; }


.container-filter-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.filters {
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 14px;
    background: linear-gradient(160deg, rgba(19,23,34,0.9) 0%, rgba(15,20,29,0.96) 100%);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
}

.filters__row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.filters__row--second { align-items: center; }
.filters__group { display: flex; flex-direction: column; gap: 7px; }
.filters__group--grow { flex: 1; min-width: 260px; }

.filters__label {
    font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 700; color: var(--text-muted);
}

.filters__select {
    appearance: none;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-mid);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: inherit;
    font-weight: 600; font-size: 0.88rem;
    cursor: pointer; min-width: 160px;
    transition: border-color var(--transition);
}

.filters__select:focus { outline: none; border-color: var(--border-bright); }
.filters__select:disabled { opacity: 0.5; cursor: not-allowed; }


.search-box {
    flex: 1; min-width: 200px;
    display: flex; align-items: center; gap: 10px;
    padding: 0 14px; border-radius: var(--radius-md);
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-mid);
    transition: border-color var(--transition);
}

.search-box:focus-within { border-color: var(--border-bright); box-shadow: 0 0 0 3px rgba(109,40,217,0.1); }
.search-box--wide { min-width: 260px; }
.search-icon { color: var(--text-muted); font-size: 1.05rem; }

.search-box input {
    flex: 1; background: transparent; border: none;
    padding: 11px 0; color: var(--text-primary);
    font-size: 0.9rem; outline: none; font-family: inherit;
}

.search-box input::placeholder { color: var(--text-muted); }


.toggle {
    display: inline-flex; align-items: center; gap: 10px;
    user-select: none; cursor: pointer;
    padding: 9px 12px; border-radius: 9px;
    border: 1px solid var(--border-subtle);
    background: rgba(0,0,0,0.25);
    position: relative;
}

.toggle input { position: absolute; opacity: 0; pointer-events: none; }

.toggle__track {
    width: 42px; height: 23px; border-radius: 9px;
    border: 1px solid var(--border-mid);
    background: linear-gradient(135deg, rgba(22, 30, 44, 0.78) 0%, rgba(15, 20, 29, 0.92) 100%);
    position: relative; flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition);
}

.toggle__track::after {
    content: ""; position: absolute;
    top: 3px; left: 3px;
    width: 17px; height: 17px; border-radius: 50%;
    background: var(--text-muted);
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
    transition: transform var(--transition), background var(--transition);
}

.toggle input:checked + .toggle__track { background: linear-gradient(135deg, rgba(107, 163, 245, 0.34), rgba(90, 143, 232, 0.26)); border-color: rgba(139,184,255,0.52); }
.toggle input:checked + .toggle__track::after { transform: translateX(19px); background: var(--purple-400); box-shadow: 0 0 10px rgba(139,92,246,0.4); }

.toggle__txt { font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-secondary); }
.toggle--compact { padding: 7px 10px; }
.toggle--compact .toggle__txt { font-size: 0.68rem; }

.filters__row--second .inventory-select-visible-btn {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 0.78rem;
    user-select: none;
}

.filters__row--second .inventory-select-visible-btn__txt {
    position: relative;
    display: inline-block;
    min-width: 12ch;
    text-align: center;
    white-space: nowrap;
}

.filters__row--second .inventory-select-visible-btn[aria-pressed="false"] .inventory-select-visible-btn__face--deselect,
.filters__row--second .inventory-select-visible-btn[aria-pressed="true"] .inventory-select-visible-btn__face--select {
    display: none;
}

.filters__row--second .inventory-select-visible-btn[aria-pressed="false"] .inventory-select-visible-btn__face--select,
.filters__row--second .inventory-select-visible-btn[aria-pressed="true"] .inventory-select-visible-btn__face--deselect {
    display: inline;
}

.filters__row--second .inventory-select-visible-btn__face--deselect {
    font-variant-numeric: tabular-nums;
}

.inv-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    --inv-attach: clamp(32px, 2.8vw, 42px);
    --inv-attach-banner: clamp(32px, 2.5vw, 40px);
}

.inv-grid--compact {
    gap: 8px;
    --inv-attach: clamp(32px, 2.5vw, 38px);
    --inv-attach-banner: clamp(32px, 2.2vw, 36px);
}
.inv-grid--compact .inv-card { padding: 8px 10px; }
.inv-grid--compact .inv-card__icon { width: 36px; height: 36px; }

.inv-grid--compact .inv-card__icon-deco {
    width: 22px;
    height: 22px;
}

.inv-grid--large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    --inv-attach: clamp(32px, 3.2vw, 48px);
    --inv-attach-banner: clamp(32px, 2.9vw, 44px);
}

@media (max-width: 1536px) {
    .inv-grid:not(.inv-grid--large),
    #inventory-card-canvas.inv-grid:not(.inv-grid--large) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    .inv-grid:not(.inv-grid--large),
    #inventory-card-canvas.inv-grid:not(.inv-grid--large) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .inv-grid:not(.inv-grid--large),
    #inventory-card-canvas.inv-grid:not(.inv-grid--large) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .inv-grid:not(.inv-grid--large),
    #inventory-card-canvas.inv-grid:not(.inv-grid--large) {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .inv-grid--large,
    #inventory-card-canvas.inv-grid.inv-grid--large {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.inv-card {
    position: relative;
    border-radius: var(--radius-md);
    padding: 14px 13px;
    background: linear-gradient(165deg, rgba(17, 22, 34, 0.96) 0%, rgba(12, 15, 24, 0.99) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    border: 1px solid rgba(118, 149, 196, 0.22);
    cursor: pointer;
    transition: var(--transition);
    transition-property: transform, border-color, background, opacity, filter;
    overflow: hidden;
}

.inv-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 0;
    pointer-events: none;
}

.inv-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 14%, rgba(255, 255, 255, 0.18) 46%, transparent 78%);
    transform: translateX(-130%);
    opacity: 0;
    transition: transform 0.65s ease, opacity var(--transition);
    z-index: 0;
}

.inv-card:hover::before {
    opacity: 1;
}

.inv-card:hover::after {
    opacity: 1;
    transform: translateX(130%);
}

.inv-card:not(.is-selected) {
    opacity: 0.72;
}

.inv-card:not(.is-selected):hover {
    opacity: 0.92;
}

.inv-card[class*="rarity-"] .inv-card__icon,
.inv-card__attach-well[class*="rarity-"] {
    background: transparent;
    background-blend-mode: normal;
}

.inv-card[class*="rarity-"] .inv-card__icon::before,
.inv-card__attach-well[class*="rarity-"]::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    z-index: 0;
    background: var(--inv-icon-plate);
}

.inv-card.rarity-blueprint .inv-card__icon::before,
.inv-card__attach-well.rarity-blueprint::before {
    background: url("/assets/blueprint-bg.png") center / cover no-repeat;
    border-radius: var(--radius-sm);
}

.inv-card.rarity-common .inv-card__icon,
.inv-card__attach-well.rarity-common {
    --inv-icon-accent: rgba(180, 184, 190);
    --inv-icon-plate: linear-gradient(to right, rgba(108, 108, 108, 0.5) 0%, rgba(108, 108, 108, 0.19) 100%);
    border: 2px solid rgb(108, 108, 108);
}

.inv-card.rarity-uncommon .inv-card__icon,
.inv-card__attach-well.rarity-uncommon {
    --inv-icon-accent: rgba(38, 191, 87);
    --inv-icon-plate: linear-gradient(to right, rgba(38, 191, 87, 0.5) 0%, rgba(38, 191, 87, 0.19) 100%);
    border: 2px solid rgb(38, 191, 87);
}

.inv-card.rarity-rare .inv-card__icon,
.inv-card__attach-well.rarity-rare {
    --inv-icon-accent: rgba(0, 168, 242);
    --inv-icon-plate: linear-gradient(to right, #00a8f280 0%, #00a8f230 100%);
    border: 2px solid #00a8f2;
}

.inv-card.rarity-epic .inv-card__icon,
.inv-card__attach-well.rarity-epic {
    --inv-icon-accent: rgba(204, 48, 153);
    --inv-icon-plate: linear-gradient(to right, rgba(204, 48, 153, 0.5) 0%, rgba(204, 48, 153, 0.19) 100%);
    border: 2px solid rgb(204, 48, 153);
}

.inv-card.rarity-legendary .inv-card__icon,
.inv-card__attach-well.rarity-legendary {
    --inv-icon-accent: rgba(255, 198, 0);
    --inv-icon-plate: linear-gradient(to right, #ffc60080 0%, #ffc60030 100%);
    border: 2px solid #ffc600;
}

.inv-card.rarity-blueprint .inv-card__icon,
.inv-card__attach-well.rarity-blueprint {
    --inv-icon-accent: rgba(255, 198, 0);
    border: none;
    border: 2px solid #ffc600;
}

.inv-card__main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.inv-card__body {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.inv-card__body--has-attach {
    padding-right: clamp(72px, 32%, 176px);
}

.inv-card__qty-row {
    line-height: 1.2;
    min-width: 0;
}

.inv-card__qty-row .inv-card__qty {
    position: static;
    display: inline;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: rgba(200, 214, 236, 0.85);
    font-weight: 800;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

.inv-card__category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(178, 196, 228, 0.72);
    line-height: 1.25;
}

.inv-card__name-row {
    min-width: 0;
}

.inv-card__name-row .inv-card__name {
    display: inline;
    font-weight: 700;
    color: rgba(241, 246, 255, 0.96);
    font-size: 0.86rem;
    line-height: 1.35;
    overflow: visible;
    word-break: break-word;
}

.inv-card:hover {
    transform: none;
    border-color: #354863;
}

.inv-card.is-selected {
    opacity: 1;
    filter: none;
    border-color: rgba(52, 211, 153, 0.9) !important;
    background: linear-gradient(160deg, rgba(31,38,51,0.92) 0%, rgba(19,23,34,0.98) 100%);
}

.inv-card__icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.45);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    border: 2px solid rgba(130, 150, 180, 0.35);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
    isolation: isolate;
}

.inv-card__icon-deco {
    display: none;
    position: absolute;
    left: -4px;
    bottom: -4px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: var(--inv-icon-accent, rgba(148, 163, 184, 0.85));
    pointer-events: none;
    z-index: 3;
}

.inv-card[class*="rarity-"] .inv-card__icon-deco,
.inv-card__attach-well[class*="rarity-"] .inv-card__icon-deco {
    display: block;
}

.inv-card__icon-deco-path {
    fill: currentColor;
    fill-opacity: 0.55;
}

.inv-card__icon img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.inv-card__icon .no-icon {
    position: relative;
    z-index: 2;
    color: rgba(226, 232, 252, 0.35);
    font-size: 1.25rem;
}

.inv-card__name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.88rem;
    word-break: break-word;
    line-height: 1.4;
}

.inv-card__meta {
    margin-top: 4px; font-size: 0.72rem; color: var(--text-muted);
    display: flex; gap: 8px; flex-wrap: wrap;
}

.inv-card__attach-well {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
}

.inv-card__attach-well .inv-card__icon-deco {
    left: -3px;
    bottom: -3px;
    width: 18px;
    height: 18px;
}

.inv-card__attach-well .inv-card__attach-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3px;
    box-sizing: border-box;
    border: none;
    background: transparent;
}

.inv-card__attach-well .inv-card__attach-empty {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: rgba(226, 232, 252, 0.35);
    font-size: 0.65rem;
}

.inv-card__attach {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    margin: 0;
    max-width: clamp(72px, 32%, 176px);
    overflow: visible;
    z-index: 2;
}

.inv-card__attach-img {
    width: var(--inv-attach, clamp(32px, 2.8vw, 42px));
    height: var(--inv-attach, clamp(32px, 2.8vw, 42px));
    min-width: 32px;
    min-height: 32px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
}

.inv-card__attach-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--inv-attach, clamp(32px, 2.8vw, 42px));
    height: var(--inv-attach, clamp(32px, 2.8vw, 42px));
    min-width: 32px;
    min-height: 32px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
}

.inv-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 10px;
}

.inv-card__actions-left {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
}

.inv-mini-btn {
    border: 1px solid rgba(139,184,255,0.26);
    background: linear-gradient(135deg, rgba(31,38,51,0.56), rgba(37,45,61,0.44));
    color: var(--purple-300);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-sm); padding: 7px 10px;
    font-weight: 700; font-size: 0.8rem;
    font-family: inherit; cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px) saturate(118%);
    -webkit-backdrop-filter: blur(8px) saturate(118%);
    animation: none;
}

.inv-mini-btn:disabled { opacity: 0.5; cursor: not-allowed; }


.bulk-actions {
    position: sticky; bottom: 14px; margin-top: 14px;
    border-radius: var(--radius-md); padding: 11px 14px;
    background: rgba(9,8,20,0.92);
    border: 1px solid var(--border-mid);
    box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(139,92,246,0.08);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    backdrop-filter: blur(20px);
}

.bulk-actions__left,
.bulk-actions__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.bulk-actions__right {
    margin-left: auto;
}

.bulk-actions__right[hidden] {
    display: none !important;
}

.bulk-actions--reload-only .bulk-actions__right {
    display: none !important;
}

.bulk-actions__btn-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

#bulk-refresh-id-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.bulk-actions__btn {
    padding: 9px 14px; border-radius: var(--radius-sm);
    border: 1px solid rgba(139,184,255,0.26);
    background: linear-gradient(135deg, rgba(19,23,34,0.56), rgba(15,20,29,0.42));
    color: var(--text-secondary); font-weight: 700;
    letter-spacing: 0.05em; font-size: 0.75rem;
    font-family: inherit; cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px) saturate(118%);
    -webkit-backdrop-filter: blur(8px) saturate(118%);
    animation: btnGlassPulse 5.5s ease-in-out infinite;
}

.bulk-actions__btn:hover:not(:disabled):not(.bulk-actions__btn--refresh) { transform: translateY(-1px); border-color: var(--border-bright); color: var(--text-primary); background: rgba(139,92,246,0.1); }
.bulk-actions__btn:disabled { opacity: 0.45; cursor: not-allowed; }

.bulk-actions__btn--primary {
    background: linear-gradient(135deg, rgba(190,226,52,0.44) 0%, rgba(168,201,50,0.36) 100%);
    border-color: rgba(190,226,52,0.56);
    color: #141a0d;
    box-shadow: 0 4px 14px rgba(190,226,52,0.2);
}

.bulk-actions__btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(203,232,107,0.5) 0%, rgba(190,226,52,0.42) 100%);
    box-shadow: 0 6px 18px rgba(190,226,52,0.24);
    color: #141a0d;
}

@keyframes btnGlassPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.08); }
    50% { box-shadow: 0 6px 18px rgba(107,163,245,0.14), inset 0 1px 0 rgba(255,255,255,0.14); }
}

@keyframes btnGlassSweep {
    0% { transform: translateX(-120%); opacity: 0; }
    12% { opacity: 0.9; }
    48% { transform: translateX(120%); opacity: 0.18; }
    100% { transform: translateX(120%); opacity: 0; }
}

.bulk-actions__btn--warn { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: rgba(191,219,254,0.9); }
.bulk-actions__btn--danger { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.3); color: rgba(254,202,202,0.9); }
.bulk-actions__btn--ghost { background: rgba(139,92,246,0.07); border-color: var(--border-subtle); color: var(--purple-300); }

.bulk-actions__btn--refresh {
    min-width: 108px;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    border-width: 2px;
    border-style: solid;
    border-color: #4ade80;
    background: linear-gradient(180deg, #2dd47a 0%, #16a34a 42%, #15803d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 2px 0 #0f3d26,
        0 6px 18px rgba(0, 0, 0, 0.5),
        0 0 22px rgba(34, 197, 94, 0.55);
    animation: none;
}

.bulk-actions__btn--refresh:hover:not(:disabled) {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-color: #86efac;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 45%, #166534 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 0 #0f3d26,
        0 8px 24px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(74, 222, 128, 0.7);
}

.bulk-actions__btn--refresh:active:not(:disabled) {
    transform: translateY(1px);
}


.backpack-only-badge {
    font-size: 0.78rem; font-weight: 600; color: var(--purple-300);
    padding: 5px 10px; border-radius: var(--radius-sm);
    background: rgba(139,92,246,0.12);
    border: 1px solid var(--border-mid); white-space: nowrap;
}

.backpack-only-badge.hidden { display: none; }

.inventory-banner {
    margin-bottom: 14px; padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 0.87rem; line-height: 1.45; color: #fde68a;
    background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.35);
}

.inventory-banner.inventory-banner--hidden { display: none; }


.loading {
    padding: 34px 16px;
    display: flex;
    justify-content: center;
}

.loading__panel {
    width: min(560px, 100%);
    padding: 16px;
    border: 1px solid rgba(130, 168, 224, 0.28);
    background: linear-gradient(145deg, rgba(20, 28, 42, 0.78), rgba(13, 19, 29, 0.9));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 16px 34px rgba(4, 10, 20, 0.44);
    backdrop-filter: blur(10px) saturate(122%);
    -webkit-backdrop-filter: blur(10px) saturate(122%);
}

.loading__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.loading__copy { min-width: 0; }

.loading__title {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e9f2ff;
}

.loading__subtitle {
    margin: 4px 0 0;
    font-size: 0.74rem;
    color: #9db5d7;
}

.loading__progress {
    position: relative;
    height: 7px;
    border: 1px solid rgba(107, 163, 245, 0.24);
    background: rgba(8, 14, 24, 0.72);
    overflow: hidden;
}

.loading__progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    background: linear-gradient(90deg, rgba(107,163,245,0.86), rgba(107,245,179,0.88));
    box-shadow: 0 0 16px rgba(107,163,245,0.42);
    animation: loadingProgressSweep 1.25s ease-in-out infinite;
}

.loading__pulse-dots {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.loading__pulse-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(148, 179, 221, 0.75);
    animation: loadingDotPulse 1.05s ease-in-out infinite;
}
.loading__pulse-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading__pulse-dots span:nth-child(3) { animation-delay: 0.3s; }

.spinner {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(107, 163, 245, 0.22);
    border-top-color: rgba(107, 245, 179, 0.88);
    border-right-color: rgba(107, 163, 245, 0.86);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    flex-shrink: 0;
    margin: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loadingProgressSweep {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}
@keyframes loadingDotPulse {
    0%, 100% { opacity: 0.35; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes stats-pill-bar-update {
    0% {
        border-color: rgba(139, 184, 255, 0.35);
        box-shadow: 0 0 0 0 rgba(107, 163, 245, 0), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
    35% {
        border-color: rgba(178, 221, 255, 0.55);
        box-shadow: 0 0 24px rgba(107, 163, 245, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    100% {
        border-color: rgba(120, 140, 180, 0.35);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
}

@keyframes stats-metric-flash {
    0% { transform: scale(1); filter: brightness(1); }
    45% { transform: scale(1.04); filter: brightness(1.12); }
    100% { transform: scale(1); filter: brightness(1); }
}


.header-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 11px 18px;
    min-height: 46px;
    border-radius: 12px;
    width: 100%;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    color: #c7d7f5;
    border: 1px solid rgba(120, 140, 180, 0.38);
    background: linear-gradient(165deg, rgba(18, 24, 36, 0.92) 0%, rgba(14, 18, 28, 0.96) 55%, rgba(12, 16, 26, 0.98) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.header-stats.header-stats--updated {
    animation: stats-pill-bar-update 0.65s ease-out;
}

.header-stats.header-stats--loading {
    border-color: rgba(107, 163, 245, 0.42);
    background: linear-gradient(165deg, rgba(16, 22, 34, 0.97) 0%, rgba(10, 14, 22, 0.99) 100%);
    animation: stats-shell-loading-glow 2.4s ease-in-out infinite;
}

@keyframes stats-shell-loading-glow {
    0%, 100% {
        box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(107, 163, 245, 0.18);
    }
    50% {
        box-shadow: 0 6px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 28px rgba(107, 163, 245, 0.22);
    }
}

.header-stats.header-stats--message {
    border-color: rgba(52, 211, 153, 0.42);
    border-color: color-mix(in srgb, var(--stats-banner-accent, #34d399) 45%, rgba(120, 140, 180, 0.35));
    background: linear-gradient(165deg, rgba(14, 22, 20, 0.94) 0%, rgba(10, 14, 20, 0.97) 55%, rgba(8, 12, 18, 0.99) 100%);
    background: linear-gradient(
        165deg,
        color-mix(in srgb, var(--stats-banner-accent, #34d399) 12%, rgba(14, 20, 28, 0.94)) 0%,
        rgba(10, 14, 20, 0.97) 55%,
        rgba(8, 12, 18, 0.99) 100%
    );
    animation: stats-shell-toast-in 0.45s ease-out;
}

@keyframes stats-shell-toast-in {
    from {
        opacity: 0.88;
        transform: translateY(-3px);
        filter: saturate(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: saturate(1);
    }
}

.header-stats .stats-pill__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    justify-items: stretch;
    gap: 10px 12px;
    width: 100%;
}

.header-stats .stats-pill__inner.stats-pill__inner--message,
.header-stats .stats-pill__inner.stats-pill__inner--loading,
.header-stats .stats-pill__inner:has(.stats-pill__loading) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 2.75rem;
    width: 100%;
}

.header-stats .stats-pill__inner--message,
.header-stats .stats-pill__inner--loading {
    min-height: 2.75rem;
}

.stats-pill__loading {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 10px 18px;
    border-radius: 11px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(107, 163, 245, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 28px rgba(0, 0, 0, 0.35);
}

.stats-pill__loading-pulse {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 40%, rgba(107, 163, 245, 0.18), transparent 52%);
    animation: stats-loading-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes stats-loading-pulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

.stats-pill__loading-ico {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(107, 163, 245, 0.28), rgba(66, 94, 140, 0.14));
    border: 1px solid rgba(139, 184, 255, 0.28);
    color: #a8c7f5;
    font-size: 0.95rem;
}

.stats-pill__loading-ico i {
    animation: stats-loading-spin 0.85s linear infinite;
}

@keyframes stats-loading-spin {
    to { transform: rotate(360deg); }
}

.stats-pill__loading-text {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c5d9f8;
}

.stats-pill__toast {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: min(100%, 560px);
    padding: 11px 18px 11px 14px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 10px 36px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(52, 211, 153, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 10px 36px rgba(0, 0, 0, 0.45),
        0 0 32px color-mix(in srgb, var(--stats-toast-accent, #34d399) 22%, transparent);
    color: var(--stats-toast-accent, #34d399);
    animation: stats-toast-pop 0.45s cubic-bezier(0.34, 1.35, 0.64, 1);
}

@keyframes stats-toast-pop {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(6px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stats-pill__toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 1rem;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.35);
    background: color-mix(in srgb, var(--stats-toast-accent, #34d399) 22%, transparent);
    border-color: color-mix(in srgb, var(--stats-toast-accent, #34d399) 45%, transparent);
    color: var(--stats-toast-accent, #34d399);
}

.stats-pill__toast-text {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    line-height: 1.35;
    text-align: start;
    color: var(--stats-toast-accent, #34d399);
}

@media (max-width: 1024px) {
    .header-stats .stats-pill__inner:not(.stats-pill__inner--message):not(.stats-pill__inner--loading):not(:has(.stats-pill__loading)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .header-stats .stats-pill__inner:not(.stats-pill__inner--message):not(.stats-pill__inner--loading):not(:has(.stats-pill__loading)) {
        grid-template-columns: 1fr;
    }
}

.header-stats .stats-pill__metric {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.55rem 0.35rem 0.4rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(107, 163, 245, 0.12);
    min-width: 0;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.header-stats .stats-pill__metric--flash {
    animation: stats-metric-flash 0.48s ease-out;
}

.header-stats .stats-pill__metric--time {
    padding-inline: 0.5rem 0.65rem;
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(100, 120, 160, 0.22);
}

.header-stats .stats-pill__ico-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(107, 163, 245, 0.22), rgba(66, 94, 140, 0.16));
    border: 1px solid rgba(139, 184, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-stats .stats-pill__ico-ring--accent {
    background: linear-gradient(145deg, rgba(167, 139, 250, 0.26), rgba(109, 76, 204, 0.14));
    border-color: rgba(192, 167, 250, 0.35);
}

.header-stats .stats-pill__ico-ring--muted {
    background: linear-gradient(145deg, rgba(90, 110, 150, 0.2), rgba(50, 62, 88, 0.14));
    border-color: rgba(120, 140, 170, 0.22);
}

.header-stats .stats-pill__ico {
    font-size: 0.95rem;
    line-height: 1;
    color: #a8c7f5;
}

.header-stats .stats-pill__ico-ring--accent .stats-pill__ico {
    color: #d4c4ff;
}

.header-stats .stats-pill__metric-text {
    display: flex;
    align-items: center;
    gap: 0.12em;
    line-height: 1.15;
    min-width: 0;
}

.header-stats .stats-pill__value {
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #eaf1ff;
    letter-spacing: 0.02em;
}

.header-stats .stats-pill__label {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    max-width: 12rem;
    margin-left: 8px;
}

.header-stats .stats-pill__label--wrap {
    text-transform: none;
    letter-spacing: 0.03em;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
}

.header-stats .stats-pill__time-display {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #9eb6e8;
    white-space: nowrap;
}

.header-stats .stats-pill__divider {
    display: none;
}

.header-stats .stats-pill__seg { display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap; color: inherit; }
.header-stats .stats-pill__link { margin-inline-start: 0.35em; padding: 2px 8px; font-size: 0.78em; font-weight: 600; font-family: inherit; color: var(--purple-300); background: rgba(139,92,246,0.15); border: 1px solid var(--border-mid); border-radius: 6px; cursor: pointer; pointer-events: auto; }
.header-stats .stats-pill__link:hover { background: rgba(139,92,246,0.25); }

@media (prefers-reduced-motion: reduce) {
    .header-stats.header-stats--updated,
    .header-stats.header-stats--loading,
    .header-stats.header-stats--message,
    .header-stats .stats-pill__metric--flash,
    .header-stats .stats-pill__toast,
    .stats-pill__loading-ico i,
    .stats-pill__loading-pulse,
    .refreshed-session-toast,
    .refreshed-session-toast__glow {
        animation: none;
    }
    .header-stats .stats-pill__toast,
    .header-stats.header-stats--message {
        transform: none;
    }
    .refreshed-session-toast {
        transform: translateX(-50%);
    }
}

.refreshed-session-toast {
    position: fixed;
    left: 50%;
    top: clamp(76px, 14vh, 140px);
    z-index: 90;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: min(92vw, 420px);
    padding: 12px 18px 12px 14px;
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(30, 22, 48, 0.96), rgba(14, 12, 22, 0.98));
    border: 1px solid rgba(167, 139, 250, 0.42);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.55),
        0 0 40px rgba(139, 92, 246, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #e9d5ff;
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    line-height: 1.35;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    transition:
        opacity 0.32s ease,
        transform 0.38s cubic-bezier(0.34, 1.35, 0.64, 1),
        box-shadow 0.35s ease;
}

.refreshed-session-toast--in {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.refreshed-session-toast--out {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.97);
    transition-duration: 0.35s;
}

.refreshed-session-toast__glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 35% 40%, rgba(167, 139, 250, 0.22), transparent 55%);
    animation: refreshed-toast-glow 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes refreshed-toast-glow {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

.refreshed-session-toast__ico {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    font-size: 1rem;
    color: #ddd6fe;
    background: rgba(139, 92, 246, 0.22);
    border: 1px solid rgba(192, 167, 250, 0.4);
}

.refreshed-session-toast__txt {
    position: relative;
    z-index: 1;
}


.stash-sync-banner {
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.12));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.stash-sync-banner.hidden {
    display: none;
}

.stash-sync-banner__inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px 12px 16px;
}

.stash-sync-banner__icon {
    flex-shrink: 0;
    color: #fbbf24;
    font-size: 1.1rem;
    margin-top: 2px;
}

.stash-sync-banner__text {
    margin: 0;
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #fef3c7;
    font-weight: 500;
    white-space: pre-line;
}

.stash-sync-banner__dismiss {
    flex-shrink: 0;
    align-self: center;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid rgba(253, 224, 71, 0.45);
    background: rgba(15, 20, 29, 0.55);
    color: #fde68a;
}

.stash-sync-banner__dismiss:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(253, 224, 71, 0.65);
}


.inventory-container {
    border-radius: var(--radius-md); overflow: auto;
    max-height: calc(100vh - 280px); padding-bottom: 24px; margin-bottom: 8px;
    background: linear-gradient(160deg, rgba(19,23,34,0.9) 0%, rgba(15,20,29,0.96) 100%);
    border: 1px solid var(--border-subtle);
}

.inventory-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }

.inventory-table thead { position: sticky; top: 0; z-index: 2; background: linear-gradient(180deg, #0d0c1f 0%, #09080e 100%); }

.inventory-table th {
    text-align: left; padding: 13px 14px;
    color: var(--purple-300); font-weight: 700; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.07em;
    border-bottom: 1px solid var(--border-mid);
}

.inventory-table td {
    padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer; transition: background var(--transition);
}

.inventory-table td.checkbox-cell { cursor: default; vertical-align: middle; width: 52px; padding: 8px 10px; }

.row-select-label {
    display: flex; align-items: center; justify-content: center; position: relative;
    min-width: 44px; min-height: 44px; margin: -4px auto;
    cursor: pointer; border-radius: var(--radius-sm);
    transition: background var(--transition); overflow: hidden;
}

.row-select-label:hover { background: rgba(139,92,246,0.1); }
.row-select-label:focus-within { outline: 2px solid var(--purple-500); outline-offset: 2px; }

.row-checkbox { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }

.row-select-box {
    width: 21px; height: 21px; border-radius: 6px;
    border: 2px solid rgba(139,92,246,0.45);
    background: rgba(12,16,24,0.88);
    display: flex; align-items: center; justify-content: center;
    transition: border-color var(--transition), background var(--transition);
}

.row-checkbox:checked + .row-select-box {
    background: linear-gradient(135deg, rgba(124,58,237,0.6), rgba(109,40,217,0.5));
    border-color: var(--purple-400);
    box-shadow: 0 0 10px rgba(109,40,217,0.3);
}

.row-checkbox:checked + .row-select-box::after {
    content: ""; width: 6px; height: 10px;
    border: solid rgba(230,220,255,0.95); border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg); margin-bottom: 2px;
}

.th-select-wrap { display: flex; align-items: center; justify-content: center; }
.th-select-wrap .row-select-label { margin: 0; }

.inventory-table tbody tr:hover { background: rgba(139,92,246,0.06); }
.row-selected { background: rgba(107,163,245,0.12) ; border-left: 3px solid #6ba3f5; }
.blacklisted-row { opacity: 0.5; background: rgba(220,38,38,0.05); }


.inventory-table tbody tr.row-cloned {
    background: linear-gradient(90deg, rgba(245,158,11,0.12) 0%, rgba(251,191,36,0.05) 50%, transparent 100%);
    border-left: 3px solid #f59e0b;
}

.inventory-table tbody tr.row-cloned:hover {
    background: linear-gradient(90deg, rgba(245,158,11,0.18) 0%, rgba(251,191,36,0.08) 50%, rgba(139,92,246,0.05) 100%) ;
}

.inventory-table tbody tr.row-cloned.row-selected {
    background: linear-gradient(90deg, rgba(245,158,11,0.16) 0%, rgba(139,92,246,0.08) 100%) ;
    border-left-color: var(--purple-400);
}

.name-cell--cloned { color: #fde68a; }

.cloned-badge {
    display: inline-block; margin-left: 8px; padding: 3px 8px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
    border-radius: 6px; vertical-align: middle;
    color: #1a0a00;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: 1px solid #fcd34d;
    box-shadow: 0 0 10px rgba(245,158,11,0.4);
}


.inventory-table tbody tr.row-session-refreshed:not(.row-cloned) {
    background: linear-gradient(90deg, rgba(139,92,246,0.18) 0%, rgba(109,40,217,0.08) 50%, transparent 100%);
    border-left: 4px solid var(--purple-500);
    box-shadow: inset 0 0 0 1px rgba(139,92,246,0.2);
}

.inventory-table tbody tr.row-session-refreshed:not(.row-cloned):hover {
    background: linear-gradient(90deg, rgba(139,92,246,0.22) 0%, rgba(109,40,217,0.1) 50%, transparent 100%) ;
}

.inventory-table tbody tr.row-cloned.row-session-refreshed {
    border-right: 3px solid var(--purple-500);
    box-shadow: inset 0 0 0 1px rgba(245,158,11,0.18), inset -3px 0 0 0 var(--purple-500);
}

.name-cell--refreshed:not(.name-cell--cloned) { color: var(--purple-300); }

.refreshed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: 5px 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 6px;
    vertical-align: middle;
    color: #ecfff7;
    background: linear-gradient(135deg, rgba(34, 197, 136, 0.34), rgba(16, 185, 129, 0.26));
    border: 1px solid rgba(110, 231, 183, 0.52);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(7px) saturate(120%);
    -webkit-backdrop-filter: blur(7px) saturate(120%);
}

.modal--cloned-item .modal-content--cloned { border-color: rgba(245,158,11,0.5); box-shadow: 0 0 0 1px rgba(245,158,11,0.2), 0 24px 64px rgba(0,0,0,0.65); }
.modal-cloned-banner { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; color: #1a0a00; background: linear-gradient(90deg, #f59e0b, #fbbf24); border: 1px solid #fcd34d; text-align: center; }

.modal--session-refreshed .modal-content--refreshed { border-color: rgba(139,92,246,0.45); box-shadow: 0 0 0 1px rgba(109,40,217,0.2), 0 24px 64px rgba(0,0,0,0.65); }
.modal-refreshed-banner { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; line-height: 1.35; color: var(--white); background: linear-gradient(90deg, #7c3aed, #a855f7); border: 1px solid rgba(167,139,250,0.5); text-align: center; }



.btn-refresh-id {
    padding: 7px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-mid);
    background: rgba(139,92,246,0.1); color: var(--purple-300);
    font-size: 0.78rem; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: var(--transition);
}

.btn-refresh-id:hover:not(:disabled) { background: rgba(139,92,246,0.22); color: var(--white); box-shadow: 0 0 12px rgba(109,40,217,0.3); }
.btn-refresh-id:disabled { opacity: 0.5; }

.error-message { margin-top: 20px; padding: 16px; border-radius: var(--radius-sm); text-align: center; color: #fecaca; background: rgba(220,38,38,0.1); border: 1px solid rgba(248,113,113,0.3); }


.modal { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: center; background: rgba(4,3,12,0.9); backdrop-filter: blur(10px); }

.modal-content {
    border-radius: var(--radius-xl); max-width: 500px; width: 92%;
    border: 1px solid var(--border-mid);
    background: linear-gradient(160deg, rgba(18,13,38,0.98) 0%, rgba(9,8,20,0.99) 100%);
    box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(139,92,246,0.08);
    overflow: hidden;
}

.modal-header { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--border-subtle); background: rgba(139,92,246,0.05); }
.modal-header h3 { margin: 0; color: var(--purple-300); font-size: 1.05rem; }
.modal-icon { width: 46px; height: 46px; object-fit: contain; border-radius: 9px; }
.modal-icon-placeholder { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; background: rgba(0,0,0,0.3); border-radius: 9px; border: 1px solid var(--border-subtle); }
.modal-details { padding: 20px 22px; }
.modal-details p { margin: 10px 0; font-size: 0.9rem; line-height: 1.55; }
.modal-details strong { color: var(--purple-400); }
.close-modal { float: right; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); line-height: 1; }
.close-modal:hover { color: var(--purple-300); }
.close-btn { margin: 14px 22px 20px; width: calc(100% - 44px); }
.btn.btn-primary.close-btn { justify-content: center; }


.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(150deg, rgba(20, 29, 44, 0.82), rgba(11, 16, 24, 0.92));
    border: 1px solid rgba(137, 165, 206, 0.24);
    box-shadow: 0 16px 34px rgba(4, 10, 22, 0.54), inset 0 1px 0 rgba(255,255,255,0.06);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
}
.site-footer__line {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0 0 10px;
    background: linear-gradient(90deg, rgba(107,163,245,0), rgba(107,163,245,0.65), rgba(107,245,179,0.55), rgba(107,163,245,0));
}
.site-footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}
.site-footer__brand-copy { min-width: 0; }
.site-footer__name {
    margin: 0 0 2px;
    font-size: 0.84rem;
    color: #dce9ff;
    letter-spacing: 0.03em;
}
.site-footer__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.site-footer__text {
    font-size: 0.72rem;
    color: #9db4d7;
    margin: 0;
    letter-spacing: 0.02em;
}
.site-footer__text strong {
    color: #e5f0ff;
    font-weight: 800;
    letter-spacing: 0.11em;
}
.site-footer__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.site-footer__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    color: #cae2ff;
    border: 1px solid rgba(130, 188, 255, 0.28);
    background: linear-gradient(135deg, rgba(107,163,245,0.16), rgba(76,94,126,0.14));
}
.site-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    color: #dcf7ff;
    text-decoration: none;
    border: 1px solid rgba(107, 245, 179, 0.34);
    background: linear-gradient(135deg, rgba(107,245,179,0.18), rgba(107,163,245,0.12));
}
.site-footer__link:hover {
    border-color: rgba(107, 245, 179, 0.55);
    background: linear-gradient(135deg, rgba(107,245,179,0.26), rgba(107,163,245,0.16));
}


.token-overlay {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background:
        radial-gradient(ellipse 120% 100% at 50% 0%, rgba(107,163,245,0.12) 0%, rgba(10,13,18,0.9) 58%),
        linear-gradient(140deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 45%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(12px) saturate(105%);
    -webkit-backdrop-filter: blur(12px) saturate(105%);
}

.token-overlay.hidden { display: none ; }

.token-scene { position: relative; width: 100%; max-width: 540px; }

.token-scene__glow {
    position: absolute; inset: -50%;
    background: radial-gradient(circle at 50% 30%, rgba(40, 168, 217, .24) 0%, rgba(40, 168, 217, 0.08) 35%, transparent 60%), radial-gradient(circle at 65% 38%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 18%, transparent 40%);
    filter: blur(26px) saturate(110%);
    animation: token-glow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes token-glow { 0%, 100% { opacity: 0.65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }

.token-card {
    position: relative; padding: 20px 20px 16px; border-radius: var(--radius-xl);
    background: linear-gradient(165deg, rgba(19,23,34,0.97) 0%, rgba(15,20,29,0.99) 100%);
    border: 1px solid var(--border-mid);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
    backdrop-filter: blur(14px);
    animation: card-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes card-enter { from { opacity: 0; transform: translateY(28px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.token-card::before {
    content: ""; position: absolute; inset: 0; border-radius: var(--radius-xl);
    padding: 1px;
    background: lrgba(130, 188, 255, 0.2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.token-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.token-card__logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(107, 163, 245, 0.28);
    background: rgba(8, 12, 20, 0.65);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), 0 0 16px rgba(107, 163, 245, 0.14);
}
.token-card__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.token-card__head-copy { min-width: 0; flex: 1; }

.app-logo {
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.app-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.app-logo--sidebar {
    width: 52px;
    height: 52px;
}
.app-logo--footer {
    width: 48px;
    height: 48px;
}

.brand-icon {
    display: block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    object-fit: contain;
}
.brand-icon--avatar {
    width: 18px;
    height: 18px;
}

.token-card__subtitle { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; display: none; }
.token-card__title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; text-align: left; }
.token-card__hint { font-size: 0.76rem; line-height: 1.45; color: var(--text-muted); text-align: left; }
.token-card__hint a, .token-card__link { color: var(--purple-400); text-decoration: underline; text-underline-offset: 3px; }
.token-card__hint a:hover, .token-card__link:hover { color: var(--purple-300); }

.token-manual-columns {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.token-manual-block {
    margin-top: 0;
    padding: 13px 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(130, 188, 255, 0.2);
    background: linear-gradient(180deg, rgba(9, 18, 34, 0.62), rgba(7, 13, 24, 0.46));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.token-manual-block--auth {
    border-color: rgba(130, 188, 255, 0.28);
}
.token-manual-block--paste {
    border-color: rgba(130, 188, 255, 0.2);
}
.token-manual-block__title {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #cfe4ff;
    margin: 0 0 4px;
}
.token-manual-block__hint {
    margin: 0 0 8px;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #a9bdd8;
}
.token-manual-block__input-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #d5e6fb;
}
.token-manual-block__actions {
    display: flex;
    margin-bottom: 10px;
}
.token-manual-block__download {
    width: 100%;
    justify-content: center;
}
.token-manual-block__input {
    width: 100%;
    margin-bottom: 8px;
}
.token-manual-block__submit {
    width: 100%;
    justify-content: center;
}
@media (min-width: 760px) {
    .token-manual-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}
.token-card__error { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; text-align: left; color: #fecaca; background: rgba(127,29,29,0.3); border: 1px solid rgba(248,113,113,0.3); }
.token-card__error.is-visible { display: block; animation: shake 0.4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.token-card__legal { margin-top: 10px; text-align: center; font-size: 0.68rem; color: var(--text-muted); }


.discord-fab {
    position: fixed; right: 20px; top: 20px; z-index: 9500;
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #e7f8ff;
    background: linear-gradient(140deg, rgba(80, 174, 255, 0.86), rgba(107, 245, 179, 0.5));
    border: 1px solid rgba(166, 232, 255, 0.52);
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(80,174,255,0.34), 0 0 0 1px rgba(107,245,179,0.2), 0 2px 10px rgba(0,0,0,0.42);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.discord-fab:hover {
    transform: scale(1.07) translateY(-2px);
    box-shadow: 0 14px 34px rgba(80,174,255,0.45), 0 0 0 1px rgba(107,245,179,0.32), 0 4px 12px rgba(0,0,0,0.45);
    color: #f3fdff;
}
.discord-fab:focus-visible { outline: 2px solid rgba(107,245,179,0.62); outline-offset: 3px; }
.discord-fab__icon { flex-shrink: 0; opacity: 0.98; font-size: 1.35rem; }



* {
    scrollbar-width: thin;
    scrollbar-color: #6ba3f5 rgba(12,16,24,0.88);
}
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: rgba(12,16,24,0.88); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8bb8ff, #6ba3f5 45%, #6bf5b3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #dbeafe, #8bb8ff 40%, #6ba3f5);
}


@media (max-width: 768px) {
    .header { flex-direction: column; text-align: center; }
    .header__right { align-items: center; width: 100%; }
    .discord-fab { right: 14px; top: 14px; width: 50px; height: 50px; }
    .logo { flex-direction: column; }
    .search-box, .btn { width: 100%; }
    .container-filter-group { width: 100%; }
    .portal { grid-template-columns: 1fr; }
    .sidebar { position: relative; top: auto; }
    .token-card { padding: 18px 16px 14px; }
}


.bulk-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    font-family: var(--font-ui);
    animation: bulkOverlayIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bulk-progress-overlay__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107, 163, 245, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(167, 139, 250, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, rgba(6, 8, 14, 0.88) 0%, rgba(4, 6, 12, 0.96) 100%);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.bulk-progress-overlay__fx {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bulk-progress-overlay__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
    animation: bulkOrbFloat 8s ease-in-out infinite;
}

.bulk-progress-overlay__orb--1 {
    width: min(55vw, 420px);
    height: min(55vw, 420px);
    left: -10%;
    top: 15%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.5) 0%, transparent 70%);
    animation-delay: 0s;
}

.bulk-progress-overlay__orb--2 {
    width: min(45vw, 360px);
    height: min(45vw, 360px);
    right: -5%;
    bottom: 10%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, transparent 70%);
    animation-delay: -2.5s;
}

.bulk-progress-overlay__orb--3 {
    width: min(35vw, 280px);
    height: min(35vw, 280px);
    left: 35%;
    top: 40%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
    animation-delay: -5s;
}

.bulk-progress-overlay__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    top: -120px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 45%,
        rgba(167, 139, 250, 0.07) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        transparent 100%
    );
    animation: bulkScanLine 3.2s ease-in-out infinite;
    pointer-events: none;
}

.bulk-progress-overlay__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bulk-progress-overlay__card {
    position: relative;
    padding: 28px 26px 22px;
    border-radius: 20px;
    border: 1px solid rgba(139, 184, 255, 0.22);
    background: linear-gradient(165deg, rgba(22, 28, 44, 0.92) 0%, rgba(12, 16, 26, 0.96) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(107, 163, 245, 0.08);
    overflow: hidden;
    animation: bulkCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.bulk-progress-overlay__card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 220deg at 50% 50%, transparent 0deg, rgba(124, 58, 237, 0.06) 120deg, transparent 240deg);
    animation: bulkCardRotate 14s linear infinite;
    pointer-events: none;
}

.bulk-progress-overlay__donut-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto 18px;
}

.bulk-progress-overlay__donut {
    width: 112px;
    height: 112px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.35));
}

.bulk-progress-overlay__donut-track {
    stroke: rgba(100, 120, 160, 0.25);
    stroke-width: 7;
}

.bulk-progress-overlay__donut-arc {
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bulk-progress-overlay__pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: #e8f0ff;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}

.bulk-progress-overlay__title {
    margin: 0 0 14px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c7d7f5;
    background: linear-gradient(135deg, #e8f0ff, #a78bfa 55%, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bulk-progress-overlay__bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.18);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.bulk-progress-overlay__fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #5b21b6, #a78bfa 45%, #38bdf8);
    background-size: 200% 100%;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
    animation: bulkBarShimmer 2s ease-in-out infinite;
}

.bulk-progress-overlay__fill--ok {
    animation: none;
    background: linear-gradient(90deg, #059669, #34d399);
}

.bulk-progress-overlay__fill--warn {
    animation: none;
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.bulk-progress-overlay--done .bulk-progress-overlay__fill:not(.bulk-progress-overlay__fill--ok):not(.bulk-progress-overlay__fill--warn) {
    animation: none;
}

.bulk-progress-overlay__status {
    margin: 0 0 8px;
    text-align: center;
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.45;
    min-height: 2.6em;
}

.bulk-progress-overlay__count {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(167, 139, 250, 0.95);
    margin-bottom: 16px;
}

.bulk-progress-overlay__steps-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 8px;
}

.bulk-progress-overlay__steps-icon {
    color: #a78bfa;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.4));
}

.bulk-progress-overlay__steps {
    list-style: none;
    margin: 0;
    padding: 8px 10px 6px;
    max-height: min(36vh, 280px);
    overflow-y: auto;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(100, 120, 150, 0.15);
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.45) rgba(0, 0, 0, 0.2);
}

.bulk-progress-overlay__steps::-webkit-scrollbar {
    width: 6px;
}

.bulk-progress-overlay__steps::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.45);
    border-radius: 999px;
}

.bulk-progress-overlay__step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 0.82rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: translateX(-14px);
}

.bulk-progress-overlay__step:last-child {
    border-bottom: none;
}

.bulk-progress-overlay__step--in {
    animation: bulkStepReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.bulk-progress-overlay__step-ico {
    flex-shrink: 0;
    width: 1.15em;
    text-align: center;
}

.bulk-progress-overlay__step--ok .bulk-progress-overlay__step-ico {
    color: #34d399;
}

.bulk-progress-overlay__step--fail .bulk-progress-overlay__step-ico {
    color: #f87171;
}

.bulk-progress-overlay__step-label {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.bulk-progress-overlay__errors {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.25);
    max-height: 140px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.bulk-progress-overlay--done .bulk-progress-overlay__card {
    animation: bulkCardPulse 0.65s ease-out 1;
}

.bulk-progress-overlay--warn .bulk-progress-overlay__title {
    filter: hue-rotate(-8deg) saturate(1.1);
}

@keyframes bulkOverlayIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bulkCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes bulkCardPulse {
    0% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.04) inset,
            0 24px 64px rgba(0, 0, 0, 0.55);
    }
    40% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.06) inset,
            0 28px 72px rgba(0, 0, 0, 0.5),
            0 0 48px rgba(52, 211, 153, 0.18);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.04) inset,
            0 24px 64px rgba(0, 0, 0, 0.55);
    }
}

@keyframes bulkCardRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bulkOrbFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(6%, -4%) scale(1.05);
    }
    66% {
        transform: translate(-5%, 5%) scale(0.96);
    }
}

@keyframes bulkScanLine {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}

@keyframes bulkBarShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@keyframes bulkStepReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bulk-progress-overlay,
    .bulk-progress-overlay__card,
    .bulk-progress-overlay__orb,
    .bulk-progress-overlay__scan,
    .bulk-progress-overlay__card::before,
    .bulk-progress-overlay__fill,
    .bulk-progress-overlay__step--in {
        animation: none !important;
    }

    .bulk-progress-overlay__step {
        opacity: 1;
        transform: none;
    }

    .bulk-progress-overlay__donut-arc {
        transition: none;
    }
}


:root {
    --radius-sm: 5px;
    --radius-md: 7px;
    --radius-lg: 10px;
    --radius-xl: 12px;
}

.sidebar,
.header,
.filters,
.token-card,
.modal-content,
.settings-section,
.page-topbar,
.bulk-actions {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.sidebar,
.header,
.filters,
.inv-card,
.token-card,
.settings-section {
    border-color: #1f2b3d;
}

.nav-item {
    border-radius: 6px;
}

.nav-item.is-active {
    background: linear-gradient(135deg, rgba(107, 163, 245, 0.26), rgba(76, 94, 126, 0.2));
    border-color: rgba(107, 163, 245, 0.42);
    box-shadow: none;
}

.btn {
    border-radius: 7px;
    padding: 9px 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-secondary {
    background: #1f2633;
    border-color: #2b3a4f;
}

.btn-secondary:hover:not(:disabled) {
    background: #252d3d;
    border-color: #4c5e7e;
}

.btn-primary {
    background: linear-gradient(135deg, #6ba3f5 0%, #5a8fe8 58%, #4c5e7e 100%);
    color: #ffffff;
    border-color: rgba(107, 163, 245, 0.42);
}

.btn-primary::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 62%);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #8bb8ff 0%, #6ba3f5 48%, #5a8fe8 100%);
}

.filters__select,
.search-box,
.toggle {
    border-radius: 5px;
}

.search-box:focus-within {
    box-shadow: 0 0 0 2px rgba(107, 163, 245, 0.18);
}

.inv-card {
    padding: 11px 10px;
}

.inv-card:hover {
    transform: none;
}

.bulk-actions__btn {
    border-radius: 6px;
    font-size: 0.74rem;
}

.bulk-actions__btn--primary {
    background: #bee234;
    border-color: #a8c932;
}

.bulk-actions__btn--primary:hover:not(:disabled) {
    background: #cbe86b;
}

.token-card {
    padding: 16px 16px 13px;
}

.token-scene__glow {
    filter: blur(22px) saturate(102%);
}


.app-container {
    max-width: 1180px;
    padding: 14px 14px 24px;
}

.portal {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 14px;
}

.sidebar {
    top: 12px;
}

.sidebar__notes {
    background: rgba(21, 30, 46, 0.75);
    border-color: #233247;
}

.sidebar__notes-list li,
.sidebar__notes-list li::before,
.note-hl {
    color: #94a3b8;
}

.header {
    padding: 12px 14px;
    margin-bottom: 10px;
}

.logo {
    gap: 10px;
}

.logo__z5 {
    width: 44px;
    height: 44px;
    animation: none;
    box-shadow: 0 0 0 1px #233247, 0 4px 12px rgba(0, 0, 0, 0.28);
}

.logo__text h1 {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text-primary);
    font-size: 1.04rem;
    letter-spacing: 0.06em;
}

.logo__by {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    color: var(--text-secondary);
}

.page-topbar {
    padding: 8px 10px;
    margin-bottom: 10px;
    border-color: rgba(107, 163, 245, 0.24);
    background: linear-gradient(135deg, rgba(22, 30, 44, 0.78) 0%, rgba(15, 20, 29, 0.92) 100%);
}

.page-topbar__kicker {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.page-topbar__sub {
    font-size: 0.72rem;
}

.filters {
    padding: 10px;
    margin-bottom: 10px;
}


#inventory-card-canvas {
    max-height: none;
    padding: 0px 5px 0px 0px;
}

#inventory-card-canvas::-webkit-scrollbar {
    width: 8px;
}

#inventory-card-canvas::-webkit-scrollbar-track {
    background: rgba(15, 20, 29, 0.7);
    border-radius: 8px;
}

#inventory-card-canvas::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6ba3f5 0%, #5a8fe8 58%, #4c5e7e 100%);
    border-radius: 8px;
}

#inventory-card-canvas::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8bb8ff 0%, #6ba3f5 48%, #5a8fe8 100%);
}


#inventory-card-canvas.inv-grid {
    gap: 8px;
    --inv-attach: clamp(32px, 3vmin, 48px);
    --inv-attach-banner: clamp(32px, 2.7vmin, 44px);
}

#inventory-card-canvas.inv-grid:not(.inv-grid--large) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    #inventory-card-canvas.inv-grid:not(.inv-grid--large) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    #inventory-card-canvas.inv-grid:not(.inv-grid--large) {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

#inventory-card-canvas.inv-grid.inv-grid--compact {
    --inv-attach: clamp(32px, 2.75vmin, 42px);
    --inv-attach-banner: clamp(32px, 2.5vmin, 40px);
}

#inventory-card-canvas.inv-grid.inv-grid--large {
    --inv-attach: clamp(32px, 3.4vmin, 52px);
    --inv-attach-banner: clamp(32px, 3vmin, 48px);
}

#inventory-card-canvas .inv-card {
    padding: 10px;
}

#inventory-card-canvas .inv-card__icon {
    width: clamp(52px, 14vmin, 64px);
    height: clamp(52px, 14vmin, 64px);
    padding: 4px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

#inventory-card-canvas .inv-card__icon img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#inventory-card-canvas .inv-card__category {
    font-size: 0.66rem;
    padding-top: 3px;
    margin: 0;
}

#inventory-card-canvas .inv-card__name-row {
    transform: translateY(-6px);
}

#inventory-card-canvas .inv-card__name-row .inv-card__name {
    font-size: 0.78rem;
}

#inventory-card-canvas .inv-card__qty-row .inv-card__qty {
    font-size: 0.76rem;
}

#inventory-card-canvas .inv-card__meta {
    margin-top: 2px;
    gap: 5px;
    font-size: 0.68rem;
}


#inventory-card-canvas .inv-card__actions {
    margin-top: 6px;
    gap: 4px;
}

#inventory-card-canvas .inv-mini-btn {
    padding: 5px 7px;
    font-size: 0.72rem;
    display: flex;
    align-items: flex-end;
}


.inv-card:hover,
#inventory-card-canvas .inv-card:hover {
    transform: none ;
}

@media (max-width: 768px) {
    #inventory-card-canvas {
        max-height: none;
        min-height: 0;
        overflow: visible;
        padding-right: 0;
    }

    #inventory-card-canvas.inv-grid {
        gap: 10px;
    }
}

.portal {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    padding: 0;
}

.sidebar__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 14px 14px;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(107, 163, 245, 0.14) 0%, transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(107, 245, 179, 0.08) 0%, transparent 50%),
        linear-gradient(165deg, rgba(24, 30, 44, 0.96) 0%, rgba(14, 18, 28, 0.98) 100%);
    border: 1px solid rgba(154, 173, 208, 0.2);
    box-shadow: 0 14px 38px rgba(2, 6, 14, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
}

.sidebar__brand-accent {
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #6ba3f5 20%, #6bf5b3 80%, transparent);
    opacity: 0.9;
}

.sidebar__brand-mark {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidebar__brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: contain;
    border: 1px solid rgba(107, 163, 245, 0.35);
    background: rgba(8, 12, 20, 0.65);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 0 20px rgba(107, 163, 245, 0.18);
}

.sidebar__brand-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #8dffb8;
    background: rgba(16, 48, 32, 0.72);
    border: 1px solid rgba(107, 245, 179, 0.28);
    box-shadow: 0 0 14px rgba(107, 245, 179, 0.12);
}

.sidebar__brand-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6bf5b3;
    box-shadow: 0 0 10px rgba(107, 245, 179, 0.85);
    animation: sidebarBrandPulse 1.8s ease-in-out infinite;
}

@keyframes sidebarBrandPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.88); }
}

.sidebar__brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sidebar__brand-eyebrow {
    margin: 0;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(168, 199, 245, 0.72);
}

.sidebar__brand-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: #f4f8ff;
    background: linear-gradient(135deg, #eef5ff 0%, #b7d5ff 45%, #8dffb8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar__brand-sub {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.45;
    font-weight: 500;
    color: rgba(176, 194, 214, 0.82);
    letter-spacing: 0.01em;
}

.sidebar__brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar__brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(220, 232, 248, 0.9);
    background: rgba(107, 163, 245, 0.1);
    border: 1px solid rgba(107, 163, 245, 0.22);
}

.sidebar__brand-tag .brand-icon {
    opacity: 0.95;
}

.sidebar__brand-tag i {
    font-size: 0.68rem;
    color: #8bb8ff;
}

@media (max-width: 960px) {
    .portal {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .sidebar {
        position: relative;
        top: auto;
        width: 100%;
    }

    .sidebar__brand {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 12px 14px;
        gap: 12px 16px;
    }

    .sidebar__brand-accent {
        left: 0;
        right: 0;
    }

    .sidebar__brand-copy {
        flex: 1 1 160px;
        min-width: 0;
    }

    .sidebar__brand-tags {
        width: 100%;
        margin-top: -2px;
    }
}

@media (max-width: 520px) {
    .sidebar__brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar__brand-mark {
        width: 100%;
    }

    .sidebar__brand-tags {
        width: 100%;
    }
}


.sidebar__nav {
    display: grid ;
    grid-template-columns: repeat(2, minmax(0, 1fr)) ;
    gap: 8px ;
    padding: 12px 12px ;
}

.nav-item {
    justify-content: center ;
    gap: 8px ;
    padding: 10px 10px ;
}

.nav-item__txt {
    font-size: 0.72rem ;
    letter-spacing: 0.08em ;
}

.sidebar__notes {
    margin: 4px 0 0 ;
}

.sidebar__footer {
    padding: 8px 0 0 ;
    margin-top: 6px ;
}

.main {
    width: 100% ;
}


.nav-item:hover,
.sidebar__account,
.social-tab:hover,
.social-player:hover,
.settings-row:hover,
.bulk-actions__btn--ghost,
.row-select-label:hover,
.inventory-table tbody tr:hover,
.btn-refresh-id,
.btn-refresh-id:hover:not(:disabled),
.inv-mini-btn:hover:not(:disabled),
.bulk-actions__btn:hover:not(:disabled):not(.bulk-actions__btn--refresh),
.status-id-cell--yes .status-id-label,
.header-stats .stats-pill__link,
.header-stats .stats-pill__link:hover {
    background-color: rgba(107, 163, 245, 0.12) ;
}

.nav-item__ico,
.backpack-only-badge,
.status-id-cell--yes .status-id-label {
    border-color: rgba(107, 163, 245, 0.32) ;
}

.toggle input:checked + .toggle__track {
    background: linear-gradient(135deg, rgba(107, 163, 245, 0.34), rgba(90, 143, 232, 0.26)) ;
    border-color: rgba(107, 163, 245, 0.46) ;
}

.toggle input:checked + .toggle__track::after {
    box-shadow: 0 0 10px rgba(107, 163, 245, 0.36) ;
}

.spinner {
    border: 2px solid rgba(107, 163, 245, 0.18) ;
    border-top-color: #6ba3f5 ;
    border-right-color: rgba(76, 94, 126, 0.6) ;
}

.logo__z5 {
    box-shadow: 0 0 0 1px rgba(107, 163, 245, 0.28), 0 8px 24px rgba(76, 94, 126, 0.3) ;
}

.modal-content,
.modal--session-refreshed .modal-content--refreshed {
    box-shadow: 0 24px 64px rgba(0,0,0,0.62), 0 0 0 1px rgba(107,163,245,0.16) ;
}

.modal-header {
    background: rgba(107, 163, 245, 0.08) ;
}

.site-footer__line {
    background: linear-gradient(90deg, transparent, rgba(107,163,245,0.52), rgba(76,94,126,0.32), transparent) ;
}

.row-session-refreshed .refreshed-badge,
.modal-refreshed-banner {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.42), rgba(16, 185, 129, 0.3)) ;
    border-color: rgba(110, 231, 183, 0.58) ;
}


.page-topbar {
    align-items: center;
}

.page-topbar__actions {
    min-width: 0;
    justify-content: flex-end;
}

#settings-logout-action {
    min-width: 108px;
    justify-content: center;
}


.app-container .portal {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 960px) {
    .app-container .portal {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

.app-container .sidebar,
.app-container .main,
.app-container .filters,
.app-container .settings-section,
.app-container .page-topbar,
.app-container .bulk-actions {
    border: 1px solid rgba(154, 173, 208, 0.2);
    background: linear-gradient(160deg, rgba(22, 28, 42, 0.72) 0%, rgba(14, 18, 28, 0.86) 100%);
    box-shadow: 0 14px 38px rgba(2, 6, 14, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    z-index: 3;
}

.app-container .sidebar {
    position: sticky;
    top: 18px;
    border-radius: 18px;
    overflow: visible;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.app-container .main {
    border-radius: 18px;
    padding: 14px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.app-container .page-topbar {
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 12px;
    position: relative;
    z-index: 220;
    overflow: visible;
}

.app-container .page-topbar:has(.account-switcher__trigger[aria-expanded="true"]) {
    z-index: 6000;
}

.app-container .filters,
.app-container .settings-section,
.app-container .bulk-actions {
    border-radius: 14px;
}


:root {
    --round-xs: 8px;
    --round-sm: 10px;
    --round-md: 12px;
    --round-lg: 16px;
    --round-xl: 20px;
    --round-pill: 999px;
}


.sidebar,
.main,
.page-topbar,
.filters,
.bulk-actions,
.settings-section,
.token-card,
.modal-content,
.inventory-table-container {
    border-radius: var(--round-lg) ;
}


.btn,
.bulk-actions__btn,
.inv-mini-btn,
.btn-refresh-id,
.nav-item,
.filters__select,
.search-box,
.site-footer__chip,
.site-footer__link {
    border-radius: var(--round-md) ;
}


.inventory-table {
    border-radius: var(--round-md) ;
    overflow: hidden;
}

.inventory-table thead th:first-child {
    border-top-left-radius: var(--round-md);
}

.inventory-table thead th:last-child {
    border-top-right-radius: var(--round-md);
}


.toggle__track,
.refreshed-badge,
.status-id-cell--yes .status-id-label,
.status-id-cell--no .status-id-label {
    border-radius: var(--round-sm) ;
}


@media (max-width: 1024px) {
    .portal,
    .app-container .portal {
        gap: 12px;
    }

    .sidebar,
    .app-container .sidebar {
        position: relative;
        top: auto;
        width: 100%;
    }

    .main,
    .app-container .main {
        width: 100%;
        padding: 10px;
    }

    .filters__row {
        flex-wrap: wrap;
    }

    .filters__group,
    .filters__group--grow {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .page-topbar {
        min-height: 0;
    }

    .page-topbar,
    .page-topbar__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .settings-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .guide-panel__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bulk-actions {
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .bulk-actions__left,
    .bulk-actions__right {
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }

    .bulk-actions__btn,
    .btn,
    .inv-mini-btn,
    .btn-refresh-id {
        width: 100%;
        justify-content: center;
    }

}

@media (max-width: 560px) {
    .sidebar__nav {
        grid-template-columns: 1fr 1fr ;
    }

    .nav-item__txt {
        font-size: 0.74rem;
    }

    .token-card {
        padding: 14px 12px;
    }

    .header-stats {
        padding: 9px 12px;
        font-size: 0.78rem;
        border-radius: 10px;
    }

    .header-stats .stats-pill__inner:not(.stats-pill__inner--message):not(.stats-pill__inner--loading):not(:has(.stats-pill__loading)) {
        gap: 8px;
    }
}


.btn {
    border-width: 1px;
    border-style: solid;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 55%);
    opacity: 0.12;
}

.btn:hover:not(:disabled) {
    box-shadow: 0 10px 22px rgba(8, 14, 28, 0.45), 0 0 0 1px rgba(214, 226, 255, 0.16);
}

.btn.btn-primary {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-width: 2px;
    border-style: solid;
    border-color: #93c5fd;
    background: linear-gradient(180deg, #7eb8fc 0%, #3b82f6 45%, #1d4ed8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 0 #0b1524,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(59, 130, 246, 0.48);
    animation: none;
}

.btn.btn-primary:hover:not(:disabled) {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 44%, #2563eb 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 2px 0 #0b1524,
        0 8px 22px rgba(0, 0, 0, 0.5),
        0 0 28px rgba(96, 165, 250, 0.55);
}

.btn.btn-secondary {
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #e8f1ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border-width: 2px;
    border-style: solid;
    border-color: rgba(148, 174, 214, 0.55);
    background: linear-gradient(180deg, #4a5d78 0%, #354458 42%, #252f3d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 2px 0 #0a0e14,
        0 6px 16px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(100, 140, 200, 0.22);
    animation: none;
}

.btn.btn-secondary:hover:not(:disabled) {
    border-color: rgba(186, 210, 255, 0.65);
    color: #ffffff;
    background: linear-gradient(180deg, #5a6d88 0%, #3d4d62 42%, #2c3648 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 2px 0 #0a0e14,
        0 8px 20px rgba(0, 0, 0, 0.48),
        0 0 24px rgba(130, 165, 220, 0.32);
}

.filters__row--second .inventory-select-visible-btn.btn.btn-secondary {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(186, 202, 228, 0.88);
    text-shadow: none;
    border-width: 1px;
    border-color: rgba(108, 132, 168, 0.38);
    background: linear-gradient(180deg, rgba(38, 46, 60, 0.92), rgba(26, 32, 42, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.35);
}

.filters__row--second .inventory-select-visible-btn.btn.btn-secondary:hover:not(:disabled) {
    color: rgba(218, 228, 246, 0.95);
    border-color: rgba(140, 164, 198, 0.48);
    background: linear-gradient(180deg, rgba(46, 56, 72, 0.94), rgba(30, 38, 50, 0.97));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 2px 8px rgba(0, 0, 0, 0.38);
}

.filters__row--second .inventory-select-visible-btn.btn.btn-secondary[aria-pressed="true"] {
    font-weight: 700;
    color: rgba(225, 235, 252, 0.94);
    border-color: rgba(120, 152, 195, 0.42);
    background: linear-gradient(180deg, rgba(44, 58, 78, 0.95), rgba(30, 40, 56, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.4);
}

.filters__row--second .inventory-select-visible-btn.btn.btn-secondary[aria-pressed="true"]:hover:not(:disabled) {
    color: rgba(236, 242, 252, 0.97);
    border-color: rgba(138, 168, 208, 0.52);
    background: linear-gradient(180deg, rgba(52, 68, 90, 0.97), rgba(36, 48, 64, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.42);
}

.filters__row--second .inventory-select-visible-btn.btn.btn-secondary:focus-visible {
    outline: none;
    border-color: rgba(148, 174, 210, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 2px rgba(100, 130, 170, 0.35),
        0 2px 8px rgba(0, 0, 0, 0.35);
}

.filters__row--second .inventory-select-visible-btn.btn.btn-secondary:active:not(:disabled) {
    transform: translateY(1px);
    border-color: rgba(115, 142, 182, 0.42);
    background: linear-gradient(180deg, rgba(34, 42, 56, 0.96), rgba(22, 28, 38, 0.99));
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.35),
        0 1px 2px rgba(0, 0, 0, 0.35);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-info:not(.active) {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-width: 2px;
    border-style: solid;
    border-color: #5ee9ed;
    background: linear-gradient(180deg, #06b6d4 0%, #0891b2 48%, #0e7490 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 2px 0 #063844,
        0 5px 14px rgba(0, 0, 0, 0.38),
        0 0 18px rgba(6, 182, 212, 0.35);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-info:hover:not(:disabled):not(.active) {
    border-color: #a5f3fc;
    background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 44%, #0e7490 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 #063844,
        0 7px 18px rgba(0, 0, 0, 0.42),
        0 0 22px rgba(34, 211, 238, 0.42);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-info:focus-visible {
    outline: none;
    border-color: #cffafe;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 #063844,
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(34, 211, 238, 0.45),
        0 0 0 3px rgba(103, 232, 249, 0.35);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-info:active:not(:disabled) {
    transform: translateY(1px);
    border-color: #67e8f9;
    background: linear-gradient(180deg, #0891b2 0%, #0e7490 52%, #155e75 100%);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.35),
        0 1px 0 #063844,
        0 4px 12px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(8, 145, 178, 0.35);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-primary:not(.active) {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-width: 2px;
    border-style: solid;
    border-color: #93c5fd;
    background: linear-gradient(180deg, #5b8def 0%, #2563eb 48%, #1e40af 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 0 #0b1524,
        0 5px 14px rgba(0, 0, 0, 0.38),
        0 0 18px rgba(59, 130, 246, 0.38);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-primary:hover:not(:disabled):not(.active) {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #7eb8fc 0%, #3b82f6 44%, #1d4ed8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 #0b1524,
        0 7px 18px rgba(0, 0, 0, 0.42),
        0 0 22px rgba(96, 165, 250, 0.42);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-primary:focus-visible {
    outline: none;
    border-color: #dbeafe;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 #0b1524,
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(59, 130, 246, 0.42),
        0 0 0 3px rgba(147, 197, 253, 0.45);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
    border-color: #60a5fa;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 52%, #1e3a8a 100%);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.35),
        0 1px 0 #0b1524,
        0 4px 12px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(37, 99, 235, 0.35);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-warning:not(.active) {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fffbeb;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-width: 2px;
    border-style: solid;
    border-color: #fbbf24;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 48%, #92400e 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 2px 0 #5c2d04,
        0 5px 14px rgba(0, 0, 0, 0.38),
        0 0 18px rgba(245, 158, 11, 0.42);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-warning:hover:not(:disabled):not(.active) {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 44%, #b45309 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 0 #5c2d04,
        0 7px 18px rgba(0, 0, 0, 0.42),
        0 0 22px rgba(251, 191, 36, 0.45);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-warning:focus-visible {
    outline: none;
    border-color: #fef3c7;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 2px 0 #5c2d04,
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(251, 191, 36, 0.45),
        0 0 0 3px rgba(252, 211, 77, 0.45);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-warning:active:not(:disabled) {
    transform: translateY(1px);
    border-color: #f59e0b;
    background: linear-gradient(180deg, #b45309 0%, #92400e 52%, #78350f 100%);
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.35),
        0 1px 0 #5c2d04,
        0 4px 12px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(217, 119, 6, 0.35);
}

.btn.btn-success {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-width: 2px;
    border-style: solid;
    border-color: #6ee7b7;
    background: linear-gradient(180deg, #34d399 0%, #059669 45%, #047857 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 2px 0 #042f24,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(16, 185, 129, 0.45);
    animation: none;
}

.btn.btn-success:hover:not(:disabled) {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #4ade80 0%, #10b981 44%, #059669 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 #042f24,
        0 8px 22px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(52, 211, 153, 0.5);
}

.btn.btn-info {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-width: 2px;
    border-style: solid;
    border-color: #67e8f9;
    background: linear-gradient(180deg, #22d3ee 0%, #0891b2 45%, #0e7490 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 0 #083344,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(6, 182, 212, 0.45);
    animation: none;
}

.btn.btn-info:hover:not(:disabled) {
    border-color: #a5f3fc;
    background: linear-gradient(180deg, #38bdf8 0%, #06b6d4 44%, #0891b2 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 2px 0 #083344,
        0 8px 22px rgba(0, 0, 0, 0.5),
        0 0 28px rgba(34, 211, 238, 0.5);
}

.btn.btn-warning {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1a0f05;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    border-width: 2px;
    border-style: solid;
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 45%, #b45309 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 0 #5c2d04,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(245, 158, 11, 0.4);
    animation: none;
}

.btn.btn-warning:hover:not(:disabled) {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 44%, #d97706 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 0 #5c2d04,
        0 8px 22px rgba(0, 0, 0, 0.5),
        0 0 28px rgba(251, 191, 36, 0.5);
}

.btn.btn-danger {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-width: 2px;
    border-style: solid;
    border-color: #fca5a5;
    background: linear-gradient(180deg, #f87171 0%, #dc2626 45%, #b91c1c 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 2px 0 #3f0a0a,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(239, 68, 68, 0.45);
    animation: none;
}

.btn.btn-danger:hover:not(:disabled) {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fb7185 0%, #ef4444 44%, #dc2626 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 #3f0a0a,
        0 8px 22px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(248, 113, 113, 0.5);
}

.btn.btn-primary.btn-success {
    border-color: #4ade80;
    background: linear-gradient(180deg, #2dd47a 0%, #16a34a 45%, #15803d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 2px 0 #0f3d26,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(34, 197, 94, 0.5);
}

.btn.btn-primary.btn-success:hover:not(:disabled) {
    border-color: #86efac;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 44%, #166534 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 #0f3d26,
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(74, 222, 128, 0.55);
}

.btn.btn-primary:active:not(:disabled),
.btn.btn-secondary:active:not(:disabled),
.btn.btn-success:active:not(:disabled),
.btn.btn-info:active:not(:disabled),
.btn.btn-warning:active:not(:disabled),
.btn.btn-danger:active:not(:disabled) {
    transform: translateY(1px);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-info.active {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-color: #67e8f9;
    color: #ffffff;
    background: linear-gradient(180deg, #22d3ee 0%, #0891b2 45%, #0e7490 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 0 #083344,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(6, 182, 212, 0.45);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-primary.active {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-color: #93c5fd;
    color: #ffffff;
    background: linear-gradient(180deg, #7eb8fc 0%, #3b82f6 45%, #1d4ed8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 0 #0b1524,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(59, 130, 246, 0.45);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-warning.active {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-color: #fcd34d;
    color: #fffbeb;
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 0 #5c2d04,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(251, 191, 36, 0.48);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-info.active:hover:not(:disabled) {
    border-color: #a5f3fc;
    background: linear-gradient(180deg, #38bdf8 0%, #06b6d4 44%, #0891b2 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 2px 0 #083344,
        0 8px 22px rgba(0, 0, 0, 0.5),
        0 0 28px rgba(34, 211, 238, 0.5);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-primary.active:hover:not(:disabled) {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 44%, #2563eb 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 2px 0 #0b1524,
        0 8px 22px rgba(0, 0, 0, 0.5),
        0 0 28px rgba(96, 165, 250, 0.55);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-warning.active:hover:not(:disabled) {
    border-color: #fef08a;
    background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 44%, #f59e0b 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 0 #5c2d04,
        0 8px 22px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(253, 224, 71, 0.55);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-info.active:focus-visible {
    outline: none;
    border-color: #cffafe;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 #083344,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 26px rgba(34, 211, 238, 0.48),
        0 0 0 3px rgba(103, 232, 249, 0.42);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-primary.active:focus-visible {
    outline: none;
    border-color: #e0f2fe;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 #0b1524,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 26px rgba(59, 130, 246, 0.45),
        0 0 0 3px rgba(147, 197, 253, 0.45);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-warning.active:focus-visible {
    outline: none;
    border-color: #fffbeb;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 2px 0 #5c2d04,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 26px rgba(251, 191, 36, 0.5),
        0 0 0 3px rgba(253, 224, 71, 0.5);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-info.active:active:not(:disabled) {
    transform: translateY(1px);
    border-color: #22d3ee;
    background: linear-gradient(180deg, #0891b2 0%, #0e7490 52%, #155e75 100%);
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.38),
        0 1px 0 #083344,
        0 4px 14px rgba(0, 0, 0, 0.48),
        0 0 16px rgba(6, 182, 212, 0.38);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-primary.active:active:not(:disabled) {
    transform: translateY(1px);
    border-color: #60a5fa;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 52%, #1e3a8a 100%);
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.38),
        0 1px 0 #0b1524,
        0 4px 14px rgba(0, 0, 0, 0.48),
        0 0 16px rgba(37, 99, 235, 0.38);
}

.filters__row--second .container-filter-group .btn.btn-secondary.btn-warning.active:active:not(:disabled) {
    transform: translateY(1px);
    border-color: #f59e0b;
    background: linear-gradient(180deg, #d97706 0%, #b45309 52%, #92400e 100%);
    box-shadow:
        inset 0 3px 8px rgba(0, 0, 0, 0.38),
        0 1px 0 #5c2d04,
        0 4px 14px rgba(0, 0, 0, 0.48),
        0 0 16px rgba(217, 119, 6, 0.45);
}

@media (max-width: 1100px) {
    .app-container .sidebar {
        position: relative;
        top: auto;
    }
}


.filters-search-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 240px;
    max-width: 420px;
    flex: 1 1 280px;
    padding: 0 10px;
    border: 1px solid rgba(107, 163, 245, 0.26);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(107, 163, 245, 0.12), rgba(76, 94, 126, 0.12));
}

.filters-search-wrap__icon {
    color: #a8c7f5;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.filters-search-wrap__input {
    border: 0 ;
    background: transparent ;
    box-shadow: none ;
    min-width: 0;
    flex: 1;
    padding: 9px 0 ;
    cursor: text;
}

.filters-search-wrap__input:focus {
    border: 0 ;
    outline: none;
}

.filters-search-wrap__input::placeholder {
    color: #9db6d9;
}

.filters-search-wrap__clear {
    border: 0;
    background: transparent;
    color: #bcd4f6;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filters-search-wrap__clear:hover {
    background: rgba(255, 255, 255, 0.08);
}

.filters-search-panel {
    border-radius: var(--radius-lg);
    padding: 10px;
    margin-bottom: 10px;
    background: linear-gradient(160deg, rgba(19,23,34,0.9) 0%, rgba(15,20,29,0.96) 100%);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 120;
    overflow: visible;
}

.filters-search-panel__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filters-type-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    max-width: 240px;
    flex: 0 1 240px;
    padding: 0 10px;
    border: 1px solid rgba(107, 163, 245, 0.26);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(107, 163, 245, 0.12), rgba(76, 94, 126, 0.12));
    position: relative;
    z-index: 121;
}

.filters-search-type-btn {
    width: 100%;
    border: 0;
    background: transparent;
    color: #eaf2ff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    padding: 9px 28px 9px 0;
    cursor: pointer;
}

.filters-search-type-btn:focus {
    outline: none;
}

.filters-type-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 130;
    max-height: 280px;
    overflow: auto;
    border: 1px solid rgba(107, 163, 245, 0.34);
    border-radius: 10px;
    background: rgba(15, 26, 48, 0.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    padding: 4px;
}

.filters-type-menu__item {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #e8f1ff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 10px;
    cursor: pointer;
}

.filters-type-menu__item:hover {
    background: rgba(107, 163, 245, 0.18);
}

.filters-type-menu__item.is-selected {
    background: rgba(107, 163, 245, 0.34);
    color: #ffffff;
}

.filters-type-wrap__clear {
    border: 0;
    background: transparent;
    color: #bcd4f6;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
}

.filters-type-wrap__clear:hover {
    background: rgba(255, 255, 255, 0.08);
}


.btn:hover:not(:disabled),
.btn:active:not(:disabled),
.bulk-actions__btn:hover:not(:disabled):not(.bulk-actions__btn--refresh),
.bulk-actions__btn:active:not(:disabled):not(.bulk-actions__btn--refresh),
.inv-mini-btn:hover:not(:disabled),
.inv-mini-btn:active:not(:disabled),
.btn-refresh-id:hover:not(:disabled),
.btn-refresh-id:active:not(:disabled) {
    transform: none ;
}


.bulk-actions__btn,
.inv-mini-btn,
.btn-refresh-id {
    border-width: 2px;
    border-style: solid;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    animation: none;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition), opacity var(--transition), transform var(--transition);
}

.bulk-actions__btn::before,
.inv-mini-btn::before,
.btn-refresh-id::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 55%);
    opacity: 0.14;
}

.bulk-actions__btn:hover:not(:disabled):not(.bulk-actions__btn--refresh),
.inv-mini-btn:hover:not(:disabled),
.btn-refresh-id:hover:not(:disabled) {
    box-shadow: 0 10px 22px rgba(8, 14, 28, 0.45), 0 0 0 1px rgba(214, 226, 255, 0.16);
}


.bulk-actions__btn {
    font-weight: 800;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border-width: 2px;
    border-style: solid;
    color: #e8f1ff;
    background: linear-gradient(180deg, #4a5d78 0%, #354458 42%, #252f3d 100%);
    border-color: rgba(148, 174, 214, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 0 #0a0e14,
        0 6px 16px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(100, 140, 200, 0.2);
    animation: none;
}

.bulk-actions__btn--ghost {
    color: #e0f2fe;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border-color: #67e8f9;
    background: linear-gradient(180deg, #22d3ee 0%, #0891b2 45%, #0e7490 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 2px 0 #083344,
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(6, 182, 212, 0.35);
    animation: none;
}

.bulk-actions__btn--primary {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-color: #6ee7b7;
    background: linear-gradient(180deg, #34d399 0%, #059669 45%, #047857 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 2px 0 #042f24,
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 22px rgba(16, 185, 129, 0.4);
    animation: none;
}

.bulk-actions__btn--primary:hover:not(:disabled) {
    border-color: #a7f3d0;
    color: #ffffff;
    background: linear-gradient(180deg, #4ade80 0%, #10b981 44%, #059669 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 0 #042f24,
        0 8px 22px rgba(0, 0, 0, 0.48),
        0 0 28px rgba(52, 211, 153, 0.48);
}

#inventory-refresh-action.bulk-actions__btn,
.bulk-actions__btn.bulk-actions__btn--refresh {
    animation: none;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
    border-width: 2px;
    border-style: solid;
    border-color: #4ade80;
    background: linear-gradient(180deg, #2dd47a 0%, #16a34a 42%, #15803d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 2px 0 #0f3d26,
        0 6px 18px rgba(0, 0, 0, 0.5),
        0 0 22px rgba(34, 197, 94, 0.55);
}

#inventory-refresh-action.bulk-actions__btn::before,
.bulk-actions__btn.bulk-actions__btn--refresh::before {
    opacity: 0.1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 50%);
}

#inventory-refresh-action:hover:not(:disabled),
.bulk-actions__btn.bulk-actions__btn--refresh:hover:not(:disabled) {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    border-color: #86efac;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 45%, #166534 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 0 #0f3d26,
        0 8px 24px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(74, 222, 128, 0.7);
    animation: none;
}

#inventory-refresh-action:active:not(:disabled),
.bulk-actions__btn.bulk-actions__btn--refresh:active:not(:disabled) {
    transform: translateY(1px);
}

.inv-mini-btn {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #e8f1ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    border-width: 2px;
    border-style: solid;
    border-color: rgba(148, 174, 214, 0.5);
    background: linear-gradient(180deg, #4a5d78 0%, #354458 42%, #252f3d 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 0 #0a0e14,
        0 4px 14px rgba(0, 0, 0, 0.38),
        0 0 16px rgba(100, 140, 200, 0.18);
    animation: none;
}

.inv-mini-btn:hover:not(:disabled) {
    border-color: rgba(186, 210, 255, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 2px 0 #0a0e14,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(130, 165, 220, 0.28);
}

.btn-refresh-id {
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1a0f05;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    border-width: 2px;
    border-style: solid;
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 45%, #b45309 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 0 #5c2d04,
        0 4px 14px rgba(0, 0, 0, 0.4),
        0 0 18px rgba(245, 158, 11, 0.35);
    animation: none;
}

.btn-refresh-id:hover:not(:disabled) {
    border-color: #fde68a;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 2px 0 #5c2d04,
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(251, 191, 36, 0.45);
}


.main > .header-stats {
    margin: 0 0 12px;
}


.btn,
.bulk-actions__btn,
.inv-mini-btn,
.btn-refresh-id {
    animation: none ;
}

.btn-primary::after {
    animation: none ;
    opacity: 0;
}

.btn:hover:not(:disabled) {
    animation: none;
}

.inv-mini-btn:hover:not(:disabled),
.btn-refresh-id:hover:not(:disabled) {
    animation: none;
}

.bulk-actions__btn:hover:not(:disabled):not(.bulk-actions__btn--refresh) {
    animation: none;
}

.btn-primary:hover:not(:disabled)::after {
    animation: none;
    opacity: 0;
}


.sidebar__nav {
    display: grid ;
    grid-template-columns: repeat(3, minmax(0, 1fr)) ;
    gap: 8px ;
    padding: 4px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(12, 18, 29, 0.52), rgba(10, 15, 24, 0.34));
    border: 1px solid rgba(118, 149, 196, 0.16);
}

.sidebar__nav a.nav-item {
    text-decoration: none;
    cursor: pointer;
}

.sidebar__nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center ;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    text-align: center;
    border-radius: 12px ;
    border-width: 2px;
    border-style: solid;
    border-color: rgba(130, 165, 210, 0.4);
    background: linear-gradient(180deg, #3d4e66 0%, #2a3648 45%, #1c2432 100%);
    color: #d6e8ff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 0 #0a0e14,
        0 5px 14px rgba(0, 0, 0, 0.36),
        0 0 16px rgba(100, 140, 200, 0.18);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.sidebar__nav .nav-item:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
    background: linear-gradient(180deg, #5a6d88 0%, #3d5270 44%, #2a3d52 100%);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 2px 0 #0a0e14,
        0 8px 20px rgba(0, 0, 0, 0.42),
        0 0 22px rgba(130, 165, 220, 0.28);
}

.sidebar__nav .nav-item.is-active {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #7eb8fc 0%, #3b82f6 45%, #1d4ed8 100%);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 2px 0 #0b1524,
        0 8px 22px rgba(0, 0, 0, 0.4),
        0 0 26px rgba(59, 130, 246, 0.45);
}

.sidebar__nav .nav-item__ico {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 8px ;
    border: 1px solid rgba(152, 191, 255, 0.28) ;
    background: linear-gradient(135deg, rgba(93, 144, 220, 0.24), rgba(74, 104, 150, 0.2)) ;
    color: #d6e7ff ;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar__nav .nav-item__ico i {
    display: block;
    font-size: 1rem;
    line-height: 1;
    text-rendering: geometricPrecision;
}

.sidebar__nav .nav-item:hover .nav-item__ico {
    border-color: rgba(184, 218, 255, 0.56) ;
    background: linear-gradient(135deg, rgba(114, 169, 248, 0.36), rgba(85, 125, 187, 0.32)) ;
    color: #ecf5ff ;
}

.sidebar__nav .nav-item.is-active .nav-item__ico {
    border-color: rgba(206, 237, 255, 0.86) ;
    background: linear-gradient(135deg, rgba(190, 227, 255, 0.42), rgba(160, 245, 209, 0.3)) ;
    color: #ffffff ;
    box-shadow: 0 0 0 1px rgba(222, 244, 255, 0.4), 0 0 16px rgba(120, 182, 255, 0.34) ;
}

.sidebar__nav .nav-item__txt {
    font-size: 0.96rem ;
    font-weight: 800;
    letter-spacing: 0.06em ;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .sidebar__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) ;
    }
}

@media (max-width: 768px) {
    .filters-search-panel {
        padding: 10px;
    }
    .filters-search-wrap {
        max-width: none;
        width: 100%;
    }
    .filters-search-type-btn {
        max-width: none;
        width: 100%;
    }
    .filters-type-wrap {
        max-width: none;
        width: 100%;
        flex-basis: 100%;
    }
}

@media (max-width: 560px) {
    .sidebar__nav {
        grid-template-columns: 1fr ;
        gap: 7px ;
    }
    .sidebar__nav .nav-item {
        justify-content: flex-start ;
        text-align: left;
        padding: 10px 12px;
    }
    .sidebar__nav .nav-item__txt {
        font-size: 0.8rem ;
    }
}

.backpack-only-badge {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(20, 83, 45, 0.18)) ;
    border: 1px solid rgba(110, 231, 183, 0.44) ;
    color: #d1fae5 ;
}

.status-id-cell--yes .status-id-label {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.16)) ;
    border: 1px solid rgba(110, 231, 183, 0.42) ;
    color: #d1fae5 ;
    box-shadow: 0 0 0 1px rgba(110, 231, 183, 0.12);
}


body {
    font-size: 15px;
}

.guide-panel__desc,
.guide-panel__steps li,
.settings-row__desc,
.site-footer__text {
    font-size: 0.8rem;
}

.btn,
.bulk-actions__btn,
.inv-mini-btn,
.btn-refresh-id {
    padding: 8px 13px;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
}

.btn-icon {
    width: 1.05rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.98rem;
    margin-right: 2px;
}

.btn i,
.inv-mini-btn i,
.bulk-actions__btn i,
.nav-item__ico i,
.site-footer__chip i,
.site-footer__link i {
    vertical-align: middle;
}


