/* /Shared/BeINAssistantChat.razor.rz.scp.css */
/* ── Root & Backdrop ── */
.ai-assist[b-1abebk20sh] {
    height: 0;
    overflow: visible;
    z-index: 1080;
}

.ai-assist-backdrop[b-1abebk20sh] {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 30, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1079;
    animation: ai-backdrop-in-b-1abebk20sh 0.3s ease forwards;
}

@keyframes ai-backdrop-in-b-1abebk20sh {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── FAB Button ── */
.ai-assist-fab[b-1abebk20sh] {
    position: fixed;
    inset-inline-end: 1.25rem;
    inset-block-end: 1.25rem;
    width: 3.6rem;
    height: 3.6rem;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #400579 0%, #7c3aed 50%, #a855f7 100%);
    color: #fff;
    font-size: 1.25rem;
    box-shadow:
        0 8px 32px -4px rgba(64, 5, 121, 0.55),
        0 0 0 0 rgba(124, 58, 237, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1081;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                background 0.3s ease;
    animation: ai-fab-glow-b-1abebk20sh 2.5s ease-in-out infinite;
}

.ai-assist-fab:hover[b-1abebk20sh] {
    transform: scale(1.1) rotate(-5deg);
    box-shadow:
        0 12px 40px -4px rgba(64, 5, 121, 0.65),
        0 0 0 6px rgba(124, 58, 237, 0.15);
}

.ai-assist-fab:active[b-1abebk20sh] {
    transform: scale(0.95);
}

.ai-assist-fab.is-open[b-1abebk20sh] {
    background: linear-gradient(135deg, #374151, #4b5563);
    box-shadow: 0 6px 20px -4px rgba(55, 65, 81, 0.5);
    animation: none;
}

.ai-assist-fab.is-open:hover[b-1abebk20sh] {
    transform: scale(1.05) rotate(0deg);
}

.ai-assist-fab-icon[b-1abebk20sh] {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-assist-fab-logo[b-1abebk20sh] {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

.ai-assist-fab.is-open .ai-assist-fab-icon[b-1abebk20sh] {
    transform: rotate(90deg);
}

.ai-assist-fab-ring[b-1abebk20sh] {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.5);
    animation: ai-ring-pulse-b-1abebk20sh 2.5s ease-out infinite;
    pointer-events: none;
}

.ai-assist-fab-ring--delay[b-1abebk20sh] {
    animation-delay: 1.25s;
}

.ai-assist-fab.is-open .ai-assist-fab-ring[b-1abebk20sh] {
    display: none;
}

@keyframes ai-fab-glow-b-1abebk20sh {
    0%, 100% { box-shadow: 0 8px 32px -4px rgba(64, 5, 121, 0.55), 0 0 0 0 rgba(124, 58, 237, 0.35); }
    50%      { box-shadow: 0 8px 32px -4px rgba(64, 5, 121, 0.55), 0 0 0 10px rgba(124, 58, 237, 0); }
}

@keyframes ai-ring-pulse-b-1abebk20sh {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ── AI Logo Icon ── */
.ai-assist-logo[b-1abebk20sh] {
    display: block;
    flex-shrink: 0;
}

.ai-assist-logo--default .ai-assist-logo__bubble[b-1abebk20sh] {
    fill: #fff;
}

.ai-assist-logo--default .ai-assist-logo__dot[b-1abebk20sh] {
    fill: #7c3aed;
}

.ai-assist-logo--default .ai-assist-logo__sparkle[b-1abebk20sh] {
    fill: #f59e0b;
}

.ai-assist-logo--default .ai-assist-logo__sparkle--sm[b-1abebk20sh],
.ai-assist-logo--default .ai-assist-logo__sparkle--xs[b-1abebk20sh] {
    opacity: 0.85;
}

.ai-assist-logo--on-brand .ai-assist-logo__bubble[b-1abebk20sh] {
    fill: #fff;
}

.ai-assist-logo--on-brand .ai-assist-logo__dot[b-1abebk20sh] {
    fill: #5b21b6;
}

.ai-assist-logo--on-brand .ai-assist-logo__sparkle[b-1abebk20sh] {
    fill: #fde68a;
}

.ai-assist-logo--on-brand .ai-assist-logo__sparkle--sm[b-1abebk20sh],
.ai-assist-logo--on-brand .ai-assist-logo__sparkle--xs[b-1abebk20sh],
.ai-assist-logo--on-brand .ai-assist-logo__sparkle--in[b-1abebk20sh] {
    opacity: 0.92;
}

/* ── Panel ── */
.ai-assist-panel[b-1abebk20sh] {
    position: fixed;
    inset-inline-end: 1.25rem;
    inset-block-end: 5.4rem;
    width: min(400px, calc(100vw - 1.5rem));
    height: min(560px, calc(100vh - 7.5rem));
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 1.25rem;
    box-shadow:
        0 24px 64px -12px rgba(64, 5, 121, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1080;
    font-family: Almarai, Helvetica, Arial, sans-serif;
    animation: ai-panel-in-b-1abebk20sh 0.4s cubic-bezier(0.34, 1.3, 0.64, 1) forwards;
    transform-origin: bottom right;
}

@keyframes ai-panel-in-b-1abebk20sh {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Header ── */
.ai-assist-head[b-1abebk20sh] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, #400579 0%, #6b21a8 45%, #9333ea 100%);
    color: #fff;
    overflow: hidden;
}

.ai-assist-head-glow[b-1abebk20sh] {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 70%
    );
    animation: ai-head-shimmer-b-1abebk20sh 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ai-head-shimmer-b-1abebk20sh {
    0%   { transform: translateX(-100%) skewX(-15deg); }
    100% { transform: translateX(350%) skewX(-15deg); }
}

.ai-assist-title[b-1abebk20sh] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.ai-assist-avatar[b-1abebk20sh] {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ai-assist-avatar-ring[b-1abebk20sh] {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    animation: ai-avatar-spin-b-1abebk20sh 3s linear infinite;
}

@keyframes ai-avatar-spin-b-1abebk20sh {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.ai-assist-title strong[b-1abebk20sh] {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.ai-assist-status[b-1abebk20sh] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    opacity: 0.88;
    margin-top: 0.1rem;
}

.ai-assist-status-dot[b-1abebk20sh] {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
    animation: ai-status-blink-b-1abebk20sh 2s ease-in-out infinite;
}

@keyframes ai-status-blink-b-1abebk20sh {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.ai-assist-icon-btn[b-1abebk20sh] {
    position: relative;
    z-index: 1;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ai-assist-icon-btn:hover[b-1abebk20sh] {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

/* ── Body ── */
.ai-assist-body[b-1abebk20sh] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background:
        radial-gradient(ellipse at top right, rgba(124, 58, 237, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, #f8f7ff 0%, #f4f6fb 100%);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    scroll-behavior: smooth;
}

.ai-assist-body[b-1abebk20sh]::-webkit-scrollbar {
    width: 5px;
}

.ai-assist-body[b-1abebk20sh]::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.25);
    border-radius: 99px;
}

/* ── Welcome / Empty State ── */
.ai-assist-welcome[b-1abebk20sh] {
    text-align: center;
    padding: 0.5rem 0 1rem;
    animation: ai-welcome-in-b-1abebk20sh 0.6s ease 0.15s both;
}

@keyframes ai-welcome-in-b-1abebk20sh {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ai-assist-welcome-icon[b-1abebk20sh] {
    width: 3.2rem;
    height: 3.2rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ai-welcome-float-b-1abebk20sh 3s ease-in-out infinite;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}

@keyframes ai-welcome-float-b-1abebk20sh {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-5px); }
}

.ai-assist-welcome h3[b-1abebk20sh] {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    color: #1e1b4b;
    font-weight: 800;
}

.ai-assist-welcome p[b-1abebk20sh] {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.ai-assist-empty-label[b-1abebk20sh] {
    margin: 0 0 0.55rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── Suggestion Chips ── */
.ai-assist-chip[b-1abebk20sh] {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    text-align: start;
    border: 1px solid rgba(124, 58, 237, 0.15);
    background: rgba(255, 255, 255, 0.85);
    color: #334155;
    border-radius: 0.85rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.45rem;
    font-size: 0.86rem;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1),
                border-color 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease;
    animation: ai-chip-in-b-1abebk20sh 0.4s ease both;
}

.ai-assist-chip:nth-child(2)[b-1abebk20sh] { animation-delay: 0.05s; }
.ai-assist-chip:nth-child(3)[b-1abebk20sh] { animation-delay: 0.1s; }
.ai-assist-chip:nth-child(4)[b-1abebk20sh] { animation-delay: 0.15s; }
.ai-assist-chip:nth-child(5)[b-1abebk20sh] { animation-delay: 0.2s; }
.ai-assist-chip:nth-child(6)[b-1abebk20sh] { animation-delay: 0.25s; }
.ai-assist-chip:nth-child(7)[b-1abebk20sh] { animation-delay: 0.3s; }
.ai-assist-chip:nth-child(8)[b-1abebk20sh] { animation-delay: 0.35s; }
.ai-assist-chip:nth-child(9)[b-1abebk20sh] { animation-delay: 0.4s; }
.ai-assist-chip:nth-child(10)[b-1abebk20sh] { animation-delay: 0.45s; }

@keyframes ai-chip-in-b-1abebk20sh {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.ai-assist-chip i[b-1abebk20sh] {
    color: #7c3aed;
    transition: transform 0.25s ease;
}

.ai-assist-chip:hover[b-1abebk20sh] {
    border-color: #7c3aed;
    color: #400579;
    background: #fff;
    transform: translateX(-4px);
    box-shadow: 0 4px 16px -4px rgba(124, 58, 237, 0.25);
}

.ai-assist-chip:hover i[b-1abebk20sh] {
    transform: scale(1.15);
}

.ai-assist-chip:active[b-1abebk20sh] {
    transform: translateX(-2px) scale(0.98);
}

.ai-assist-chip--delivery[b-1abebk20sh] {
    border-color: rgba(13, 148, 136, 0.22);
}

.ai-assist-chip--delivery i[b-1abebk20sh] { color: #0d9488; }
.ai-assist-chip--delivery:hover[b-1abebk20sh] { border-color: #0d9488; color: #0f766e; }

.ai-assist-chip--inventory[b-1abebk20sh] {
    border-color: rgba(217, 119, 6, 0.22);
}

.ai-assist-chip--inventory i[b-1abebk20sh] { color: #d97706; }
.ai-assist-chip--inventory:hover[b-1abebk20sh] { border-color: #d97706; color: #b45309; }

.ai-assist-chip--serial[b-1abebk20sh] {
    border-color: rgba(102, 126, 234, 0.28);
}

.ai-assist-chip--serial i[b-1abebk20sh] { color: #667eea; }
.ai-assist-chip--serial:hover[b-1abebk20sh] { border-color: #667eea; color: #4338ca; }

.ai-assist-chip--devices[b-1abebk20sh] {
    border-color: rgba(21, 101, 192, 0.22);
}

.ai-assist-chip--devices i[b-1abebk20sh] { color: #1565c0; }
.ai-assist-chip--devices:hover[b-1abebk20sh] { border-color: #1565c0; color: #0d47a1; }

.ai-assist-chip--unsold[b-1abebk20sh] {
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.9) 0%, rgba(224, 231, 255, 0.9) 100%);
    border-color: #667eea;
    color: #4338ca;
}

.ai-assist-chip--journal[b-1abebk20sh] {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.9) 0%, rgba(209, 250, 229, 0.9) 100%);
    border-color: #059669;
    color: #047857;
}

.ai-assist-chip--journal i[b-1abebk20sh] { color: #059669; }
.ai-assist-chip--journal:hover[b-1abebk20sh] { border-color: #059669; color: #065f46; }

.ai-assist-chip--cash[b-1abebk20sh] {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.95) 100%);
    border-color: rgba(16, 185, 129, 0.35);
    color: #047857;
}

.ai-assist-chip--cash i[b-1abebk20sh] { color: #10b981; }
.ai-assist-chip--cash:hover[b-1abebk20sh] { border-color: #10b981; color: #065f46; }

/* ── Cash accounts card ── */
.ai-card-cash[b-1abebk20sh] {
    border-inline-start: 4px solid #10b981;
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 55%);
}

.ai-card-cash .ai-card-kicker[b-1abebk20sh] { color: #047857; }

.ai-card-stats--cash div[b-1abebk20sh] {
    background: #ecfdf5;
}

.ai-card-stats--cash strong[b-1abebk20sh] {
    color: #047857;
    font-size: 0.82rem;
}

.ai-cash-chart-block[b-1abebk20sh] {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px dashed rgba(16, 185, 129, 0.2);
}

.ai-cash-chart-title[b-1abebk20sh] {
    font-size: 0.78rem;
    font-weight: 700;
    color: #047857;
    margin-bottom: 0.45rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ai-cash-chart-wrap[b-1abebk20sh] {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.12);
    padding: 0.5rem;
}

.ai-cash-chart-wrap--doughnut[b-1abebk20sh] {
    height: 220px;
}

.ai-cash-chart-wrap--bar[b-1abebk20sh] {
    height: 200px;
}

.ai-cash-chart-wrap--hbar[b-1abebk20sh] {
    height: min(280px, calc(40px * var(--ai-bar-count, 5) + 60px));
    min-height: 180px;
}

.ai-cash-chart-canvas[b-1abebk20sh] {
    width: 100% !important;
    height: 100% !important;
}

.ai-cash-accounts-list[b-1abebk20sh] {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.ai-cash-accounts-list li[b-1abebk20sh] {
    padding: 0.4rem 0;
    border-bottom: 1px solid #ecfdf5;
}

.ai-cash-accounts-list .ai-inv-row strong[b-1abebk20sh] {
    color: #047857;
}

/* ── Personal accounts card ── */
.ai-assist-chip--personal[b-1abebk20sh] {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.95) 0%, rgba(254, 215, 170, 0.95) 100%);
    border-color: rgba(234, 88, 12, 0.35);
    color: #c2410c;
}

.ai-assist-chip--personal i[b-1abebk20sh] { color: #ea580c; }
.ai-assist-chip--personal:hover[b-1abebk20sh] { border-color: #ea580c; color: #9a3412; }

.ai-card-personal[b-1abebk20sh] {
    border-inline-start: 4px solid #ea580c;
    background: linear-gradient(180deg, #fff7ed 0%, #fff 55%);
}

.ai-card-personal .ai-card-kicker[b-1abebk20sh] { color: #c2410c; }

.ai-card-stats--personal div[b-1abebk20sh] {
    background: #fff7ed;
}

.ai-card-stats--personal strong[b-1abebk20sh] {
    color: #c2410c;
    font-size: 0.82rem;
}

.ai-card-personal .ai-cash-chart-title[b-1abebk20sh] { color: #c2410c; }
.ai-card-personal .ai-cash-chart-wrap[b-1abebk20sh] { border-color: rgba(234, 88, 12, 0.15); }
.ai-card-personal .ai-cash-accounts-list .ai-inv-row strong[b-1abebk20sh] { color: #c2410c; }

/* ── Fixed assets card ── */
.ai-assist-chip--fixed[b-1abebk20sh] {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(167, 243, 208, 0.95) 100%);
    border-color: rgba(38, 156, 120, 0.35);
    color: #047857;
}

.ai-assist-chip--fixed i[b-1abebk20sh] { color: #269c78; }
.ai-assist-chip--fixed:hover[b-1abebk20sh] { border-color: #269c78; color: #065f46; }

.ai-card-fixed[b-1abebk20sh] {
    border-inline-start: 4px solid #269c78;
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 55%);
}

.ai-card-fixed .ai-card-kicker[b-1abebk20sh] { color: #047857; }

.ai-card-stats--fixed div[b-1abebk20sh] {
    background: #ecfdf5;
}

.ai-card-stats--fixed strong[b-1abebk20sh] {
    color: #047857;
    font-size: 0.82rem;
}

.ai-card-fixed .ai-cash-chart-title[b-1abebk20sh] { color: #047857; }
.ai-card-fixed .ai-cash-chart-wrap[b-1abebk20sh] { border-color: rgba(38, 156, 120, 0.15); }
.ai-card-fixed .ai-cash-accounts-list .ai-inv-row strong[b-1abebk20sh] { color: #047857; }

/* ── Messages ── */
.ai-msg-enter[b-1abebk20sh] {
    animation: ai-msg-in-b-1abebk20sh 0.35s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes ai-msg-in-b-1abebk20sh {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-assist-msg[b-1abebk20sh] {
    max-width: 92%;
    padding: 0.7rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    transition: box-shadow 0.2s ease;
}

.ai-assist-msg.is-user[b-1abebk20sh] {
    align-self: flex-start;
    background: linear-gradient(135deg, #400579, #7c3aed);
    color: #fff;
    border-bottom-right-radius: 0.3rem;
    box-shadow: 0 4px 16px -4px rgba(64, 5, 121, 0.4);
}

.ai-assist-msg.is-bot[b-1abebk20sh] {
    align-self: flex-end;
    background: #fff;
    color: #1f2937;
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-bottom-left-radius: 0.3rem;
    box-shadow: 0 2px 12px -4px rgba(15, 23, 42, 0.1);
}

.ai-assist-bot[b-1abebk20sh] {
    align-self: stretch;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.ai-assist-bot.is-error .ai-assist-msg.is-bot[b-1abebk20sh] {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

/* ── Typing Indicator ── */
.ai-assist-typing[b-1abebk20sh] {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    align-self: flex-end;
}

.ai-assist-typing-avatar[b-1abebk20sh] {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ede9fe, #c4b5fd);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: ai-typing-bounce-b-1abebk20sh 1s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}

@keyframes ai-typing-bounce-b-1abebk20sh {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.ai-assist-msg.is-loading[b-1abebk20sh] {
    display: flex;
    gap: 0.32rem;
    align-items: center;
    min-height: 2.4rem;
    padding-inline: 1rem;
}

.ai-assist-dot[b-1abebk20sh] {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    animation: ai-dot-bounce-b-1abebk20sh 1.2s infinite ease-in-out;
}

.ai-assist-dot:nth-child(2)[b-1abebk20sh] { animation-delay: 0.18s; }
.ai-assist-dot:nth-child(3)[b-1abebk20sh] { animation-delay: 0.36s; }

@keyframes ai-dot-bounce-b-1abebk20sh {
    0%, 60%, 100% { opacity: 0.35; transform: translateY(0) scale(0.85); }
    30%           { opacity: 1;   transform: translateY(-6px) scale(1.1); }
}

/* ── Cards ── */
.ai-card[b-1abebk20sh] {
    background: #fff;
    border: 1px solid rgba(124, 58, 237, 0.08);
    border-radius: 1rem;
    padding: 0.9rem 1rem 1rem;
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: ai-card-in-b-1abebk20sh 0.45s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes ai-card-in-b-1abebk20sh {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-card:hover[b-1abebk20sh] {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.25);
}

.ai-card-kicker[b-1abebk20sh] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.ai-card-period[b-1abebk20sh] {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #64748b;
}

.ai-card-value[b-1abebk20sh] {
    margin-top: 0.35rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.2;
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-card-hint[b-1abebk20sh] {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.55rem;
}

.ai-card-meta[b-1abebk20sh] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #e5e7eb;
    font-size: 0.8rem;
    color: #64748b;
}

.ai-card-meta strong[b-1abebk20sh] { color: #0f172a; }

.ai-card-stats[b-1abebk20sh] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.ai-card-stats div[b-1abebk20sh] {
    background: #f4eefb;
    border-radius: 0.7rem;
    padding: 0.5rem 0.4rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.ai-card-stats div:hover[b-1abebk20sh] {
    transform: scale(1.04);
}

.ai-card-stats span[b-1abebk20sh] {
    display: block;
    font-size: 0.68rem;
    color: #64748b;
}

.ai-card-stats strong[b-1abebk20sh] {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.9rem;
    color: #400579;
}

/* Card variants */
.ai-card-subscribers[b-1abebk20sh] {
    border-inline-start: 4px solid #7c3aed;
    background: linear-gradient(180deg, #faf7ff 0%, #fff 55%);
}

.ai-card-subscribers .ai-card-kicker[b-1abebk20sh] { color: #400579; }

.ai-card-delivery[b-1abebk20sh] {
    border-inline-start: 4px solid #0d9488;
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 50%);
}

.ai-card-delivery .ai-card-kicker[b-1abebk20sh] { color: #0f766e; }
.ai-card-delivery .ai-card-stats div[b-1abebk20sh] { background: #ecfdf5; }
.ai-card-delivery .ai-card-stats strong[b-1abebk20sh] { color: #0f766e; }

.ai-status em[b-1abebk20sh] {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    font-style: normal;
    opacity: 0.85;
}

.ai-delivery-section-title[b-1abebk20sh] {
    margin-top: 0.65rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f766e;
}

.ai-delivery-companies[b-1abebk20sh],
.ai-delivery-sales[b-1abebk20sh] {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
}

.ai-delivery-companies li[b-1abebk20sh],
.ai-delivery-sales li[b-1abebk20sh] {
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e8edf5;
    transition: background 0.2s ease;
}

.ai-delivery-companies li:hover[b-1abebk20sh],
.ai-delivery-sales li:hover[b-1abebk20sh] {
    background: #f1f5f9;
}

.ai-delivery-co-stats[b-1abebk20sh] {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
}

.ai-co-pending[b-1abebk20sh] { color: #c2410c; }
.ai-co-done[b-1abebk20sh] { color: #047857; }
.ai-co-rejected[b-1abebk20sh] { color: #b91c1c; }

.ai-delivery-sale-sub[b-1abebk20sh] {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.2rem;
    font-size: 0.68rem;
    color: #64748b;
}

.ai-delivery-track[b-1abebk20sh] {
    margin-top: 0.15rem;
    font-size: 0.68rem;
    color: #475569;
}

.ai-delivery-sales li.is-pending[b-1abebk20sh] { border-inline-start: 3px solid #f59e0b; }
.ai-delivery-sales li.is-done[b-1abebk20sh]    { border-inline-start: 3px solid #10b981; }
.ai-delivery-sales li.is-rejected[b-1abebk20sh] { border-inline-start: 3px solid #ef4444; }

.ai-card-inventory[b-1abebk20sh] {
    border-inline-start: 4px solid #d97706;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
}

.ai-card-inventory .ai-card-kicker[b-1abebk20sh] { color: #b45309; }
.ai-card-inventory .ai-card-stats div[b-1abebk20sh] { background: #fff7ed; }
.ai-card-inventory .ai-card-stats strong[b-1abebk20sh] { color: #b45309; }

.ai-card-inventories[b-1abebk20sh] {
    border-inline-start: 4px solid #92400e;
    background: linear-gradient(180deg, #fef3c7 0%, #fff 60%);
}

.ai-card-inventories .ai-card-kicker[b-1abebk20sh] { color: #92400e; }

.ai-card-serial[b-1abebk20sh] {
    border-inline-start: 4px solid #667eea;
    background: linear-gradient(180deg, #eef2ff 0%, #fff 55%);
}

.ai-card-serial .ai-card-kicker[b-1abebk20sh] { color: #4338ca; }
.ai-card-serial .ai-card-stats div[b-1abebk20sh] { background: #eef2ff; }
.ai-card-serial .ai-card-stats strong[b-1abebk20sh] { color: #4338ca; font-size: 0.72rem; word-break: break-word; }

.ai-serial-section-title[b-1abebk20sh] {
    margin-top: 0.65rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4338ca;
}

.ai-serial-events[b-1abebk20sh] {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}

.ai-serial-events li[b-1abebk20sh] {
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e8edf5;
}

.ai-serial-event-desc[b-1abebk20sh] {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.45;
}

.ai-serial-event-meta[b-1abebk20sh] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    color: #64748b;
}

.ai-serial-events li.is-entry[b-1abebk20sh]       { border-inline-start: 3px solid #667eea; }
.ai-serial-events li.is-transfer[b-1abebk20sh]    { border-inline-start: 3px solid #0ea5e9; }
.ai-serial-events li.is-distributer[b-1abebk20sh]  { border-inline-start: 3px solid #f59e0b; }
.ai-serial-events li.is-activation[b-1abebk20sh]  { border-inline-start: 3px solid #10b981; }
.ai-serial-events li.is-blocked[b-1abebk20sh]     { border-inline-start: 3px solid #ef4444; }

.ai-serial-activation-box[b-1abebk20sh] {
    margin-top: 0.65rem;
    padding: 0.65rem 0.7rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e8edf5;
}

.ai-serial-activation-box.is-active[b-1abebk20sh] {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.ai-card-value--sm[b-1abebk20sh] {
    font-size: 1.15rem;
    margin-top: 0.25rem;
}

.ai-serial-act-stats[b-1abebk20sh] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin-top: 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
}

.ai-serial-activations[b-1abebk20sh] {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
}

.ai-serial-activations li[b-1abebk20sh] {
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 0.65rem;
    background: #fff;
    border: 1px solid #e8edf5;
}

.ai-serial-activations li.is-accepted[b-1abebk20sh] { border-inline-start: 3px solid #10b981; }
.ai-serial-activations li.is-rejected[b-1abebk20sh] { border-inline-start: 3px solid #ef4444; }
.ai-serial-activations li.is-pending[b-1abebk20sh] { border-inline-start: 3px solid #f59e0b; }

.ai-card-devices[b-1abebk20sh] {
    border-inline-start: 4px solid #1565c0;
    background: linear-gradient(180deg, #e3f2fd 0%, #fff 55%);
}

.ai-card-devices .ai-card-kicker[b-1abebk20sh] { color: #1565c0; }
.ai-card-devices .ai-card-stats div[b-1abebk20sh] { background: #e3f2fd; }
.ai-card-devices .ai-card-stats strong[b-1abebk20sh] { color: #1565c0; }

.ai-devices-section-title[b-1abebk20sh] {
    margin-top: 0.65rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1565c0;
}

.ai-devices-breakdown[b-1abebk20sh],
.ai-devices-samples[b-1abebk20sh] {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.ai-devices-breakdown li[b-1abebk20sh],
.ai-devices-samples li[b-1abebk20sh] {
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 0.65rem;
    background: #f8fafc;
    border: 1px solid #e8edf5;
}

.ai-devices-sample-sub[b-1abebk20sh] {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.2rem;
    font-size: 0.68rem;
    color: #64748b;
}

.ai-devices-samples li.is-activated[b-1abebk20sh] { border-inline-start: 3px solid #10b981; }
.ai-devices-samples li.is-sold[b-1abebk20sh]      { border-inline-start: 3px solid #f59e0b; }
.ai-devices-samples li.is-unsold[b-1abebk20sh]     { border-inline-start: 3px solid #1565c0; }

.ai-inv-filter[b-1abebk20sh] {
    display: inline-block;
    margin: 0.35rem 0 0.55rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #fed7aa;
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 700;
}

.ai-inv-list[b-1abebk20sh] {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
}

.ai-inv-list li[b-1abebk20sh] { padding: 0.35rem 0; }

.ai-inv-main[b-1abebk20sh] { min-width: 0; }

.ai-inv-row[b-1abebk20sh] {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.ai-inv-row span[b-1abebk20sh] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-inv-row strong[b-1abebk20sh] {
    flex-shrink: 0;
    color: #9a3412;
}

.ai-inv-bar[b-1abebk20sh] {
    height: 0.32rem;
    background: #ffedd5;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 0.28rem;
}

.ai-inv-bar span[b-1abebk20sh] {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    border-radius: 99px;
    animation: ai-bar-grow-b-1abebk20sh 0.8s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes ai-bar-grow-b-1abebk20sh {
    from { width: 0 !important; }
}

.ai-inv-names[b-1abebk20sh] {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.ai-inv-names li[b-1abebk20sh] {
    padding: 0.4rem 0.55rem;
    margin-bottom: 0.3rem;
    border-radius: 0.55rem;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.82rem;
    font-weight: 600;
}

.ai-card-empty[b-1abebk20sh] {
    padding: 0.6rem 0 0.2rem;
    color: #64748b;
    font-size: 0.85rem;
}

.ai-delivery-statuses[b-1abebk20sh] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin: 0.7rem 0 0.35rem;
}

.ai-status[b-1abebk20sh] {
    border-radius: 0.75rem;
    padding: 0.55rem 0.35rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.ai-status:hover[b-1abebk20sh] { transform: scale(1.03); }

.ai-status span[b-1abebk20sh] {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
}

.ai-status strong[b-1abebk20sh] {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.ai-status-pending[b-1abebk20sh]  { background: #fff7ed; color: #c2410c; }
.ai-status-done[b-1abebk20sh]     { background: #ecfdf5; color: #047857; }
.ai-status-rejected[b-1abebk20sh] { background: #fef2f2; color: #b91c1c; }

/* ── Form / Input ── */
.ai-assist-form[b-1abebk20sh] {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(124, 58, 237, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.ai-assist-input-wrap[b-1abebk20sh] {
    flex: 1;
    position: relative;
}

.ai-assist-input[b-1abebk20sh] {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.85rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    outline: none;
    font-family: inherit;
    background: #f9fafb;
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease,
                background 0.25s ease;
}

.ai-assist-input:focus[b-1abebk20sh] {
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.ai-assist-input:disabled[b-1abebk20sh] {
    opacity: 0.6;
}

.ai-assist-send[b-1abebk20sh] {
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #400579, #7c3aed);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.3, 0.64, 1),
                box-shadow 0.25s ease,
                opacity 0.2s ease;
    box-shadow: 0 4px 12px -2px rgba(64, 5, 121, 0.4);
}

.ai-assist-send:not(:disabled):hover[b-1abebk20sh] {
    transform: scale(1.08);
    box-shadow: 0 6px 20px -2px rgba(64, 5, 121, 0.5);
}

.ai-assist-send:not(:disabled):active[b-1abebk20sh] {
    transform: scale(0.95);
}

.ai-assist-send:disabled[b-1abebk20sh] {
    opacity: 0.4;
    cursor: default;
    box-shadow: none;
}

/* ── Unsold cards ── */
.ai-card-unsold[b-1abebk20sh] {
    border-top: 3px solid #667eea;
}

.ai-card-unsold .ai-card-kicker[b-1abebk20sh] { color: #667eea; }
.ai-card-unsold .ai-inv-row strong[b-1abebk20sh] { color: #667eea; }

.ai-card-journal[b-1abebk20sh] {
    border-top: 3px solid #059669;
}

.ai-card-journal .ai-card-kicker[b-1abebk20sh] { color: #059669; }
.ai-card-journal .ai-inv-row strong[b-1abebk20sh] { color: #047857; }

.ai-unsold-section-title[b-1abebk20sh] {
    margin-top: 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
}

.ai-unsold-list[b-1abebk20sh],
.ai-unsold-serials[b-1abebk20sh] {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
}

.ai-unsold-list li[b-1abebk20sh],
.ai-unsold-serials li[b-1abebk20sh] {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.ai-unsold-alerts[b-1abebk20sh] {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ai-unsold-alert[b-1abebk20sh] {
    padding: 0.35rem 0.5rem;
    border-radius: 0.45rem;
    font-size: 0.72rem;
    line-height: 1.4;
    animation: ai-alert-in-b-1abebk20sh 0.4s ease both;
}

@keyframes ai-alert-in-b-1abebk20sh {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.ai-unsold-alert.is-warning[b-1abebk20sh] { background: #fef3c7; color: #92400e; }
.ai-unsold-alert.is-error[b-1abebk20sh]   { background: #fee2e2; color: #991b1b; }
.ai-unsold-alert.is-info[b-1abebk20sh]    { background: #e0f2fe; color: #075985; }

/* ── Mobile ── */
@media (max-width: 576px) {
    .ai-assist-panel[b-1abebk20sh] {
        inset-inline-end: 0.5rem;
        inset-inline-start: 0.5rem;
        width: auto;
        inset-block-end: 5rem;
        height: min(520px, calc(100vh - 6rem));
        border-radius: 1.1rem;
    }

    .ai-assist-fab[b-1abebk20sh] {
        inset-inline-end: 0.75rem;
        inset-block-end: 0.75rem;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .ai-assist-panel[b-1abebk20sh],
    .ai-assist-backdrop[b-1abebk20sh],
    .ai-msg-enter[b-1abebk20sh],
    .ai-assist-chip[b-1abebk20sh],
    .ai-card[b-1abebk20sh],
    .ai-assist-welcome[b-1abebk20sh],
    .ai-assist-fab[b-1abebk20sh],
    .ai-assist-fab-ring[b-1abebk20sh],
    .ai-assist-avatar-ring[b-1abebk20sh],
    .ai-assist-status-dot[b-1abebk20sh],
    .ai-assist-welcome-icon[b-1abebk20sh],
    .ai-assist-typing-avatar[b-1abebk20sh],
    .ai-assist-dot[b-1abebk20sh],
    .ai-assist-head-glow[b-1abebk20sh],
    .ai-inv-bar span[b-1abebk20sh],
    .ai-unsold-alert[b-1abebk20sh] {
        animation: none !important;
        transition: none !important;
    }
}
/* /Shared/MainLayout.razor.rz.scp.css */
/* Floating pill MudAppBar positioning */
[b-ejcki2ulxt] .app-bar.app-bar--floating.mud-appbar {
    position: fixed;
    top: var(--app-bar-top, 12px);
    inset-inline-start: var(--app-bar-inset, 16px);
    inset-inline-end: var(--app-bar-inset, 16px);
    width: auto;
    max-width: calc(100% - 2 * var(--app-bar-inset, 16px));
    height: var(--app-bar-height, 56px);
    min-height: var(--app-bar-height, 56px);
    padding-inline: 8px 12px;
    color: #fff;
    z-index: 1300;
    background: linear-gradient(135deg, var(--app-primary, #400579) 0%, var(--app-primary-light, #6d43b6) 55%, var(--app-accent, #8b5cf6) 100%) !important;
}

[b-ejcki2ulxt] .app-bar--floating .mud-toolbar {
    position: relative;
    z-index: 1;
    min-height: var(--app-bar-height, 56px);
    height: var(--app-bar-height, 56px);
    padding: 0 4px;
    gap: 4px;
    background: transparent;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* Main content offset below floating bar */
[b-ejcki2ulxt] .mud-main-content {
    padding-top: calc(var(--app-bar-top, 12px) + var(--app-bar-height, 56px) + 16px) !important;
}

/* Drawer — single scroll lives inside NavMenu */
[b-ejcki2ulxt] .app-drawer.mud-drawer {
    border: none;
    box-shadow: 4px 0 24px rgba(64, 5, 121, 0.12);
    overflow: hidden !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

[b-ejcki2ulxt] .app-drawer .mud-drawer-content {
    padding: 0 !important;
    overflow: hidden !important;
    height: 100% !important;
    max-height: 100% !important;
}

[b-ejcki2ulxt] .app-drawer .mud-drawer-content > .nav-sidebar {
    height: 100%;
    max-height: 100%;
}

[b-ejcki2ulxt] .app-drawer .mud-drawer-header {
    display: none;
}
/* /Shared/NavMenu.razor.rz.scp.css */
/* ── Sidebar shell — single scroll container, no flex stretch gap ── */
.nav-sidebar[b-ydc8gf1p2n] {
    display: block;
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(180deg, #faf8ff 0%, #f3f0fa 45%, #ece8f5 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(64, 5, 121, 0.25) transparent;
}

.nav-sidebar[b-ydc8gf1p2n]::-webkit-scrollbar {
    width: 5px;
}

.nav-sidebar[b-ydc8gf1p2n]::-webkit-scrollbar-track {
    background: transparent;
}

.nav-sidebar[b-ydc8gf1p2n]::-webkit-scrollbar-thumb {
    background: rgba(64, 5, 121, 0.22);
    border-radius: 999px;
}

.nav-sidebar[b-ydc8gf1p2n]::-webkit-scrollbar-thumb:hover {
    background: rgba(64, 5, 121, 0.38);
}

/* ── Brand header ── */
.nav-sidebar__brand[b-ydc8gf1p2n] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: var(--app-bar-height, 56px);
    min-height: var(--app-bar-height, 56px);
    padding: 6px 14px;
    background: linear-gradient(135deg, #400579 0%, #6d43b6 52%, #8b5cf6 100%);
    position: sticky;
    top: 0;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(64, 5, 121, 0.22);
}

.nav-sidebar__brand[b-ydc8gf1p2n]::before,
.nav-sidebar__brand[b-ydc8gf1p2n]::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.nav-sidebar__brand[b-ydc8gf1p2n]::before {
    width: 82px;
    height: 82px;
    top: -38px;
    inset-inline-start: -18px;
    background: rgba(255, 255, 255, 0.1);
}

.nav-sidebar__brand[b-ydc8gf1p2n]::after {
    width: 58px;
    height: 58px;
    bottom: -24px;
    inset-inline-end: -6px;
    background: rgba(251, 191, 36, 0.15);
}

.nav-sidebar__brand-icon[b-ydc8gf1p2n] {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    padding: 2px;
}

.nav-sidebar__logo[b-ydc8gf1p2n] {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

.nav-sidebar__brand-text[b-ydc8gf1p2n] {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.nav-sidebar__title[b-ydc8gf1p2n] {
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.nav-sidebar__subtitle[b-ydc8gf1p2n] {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* ── Menu — content height only, sits directly under brand ── */
.nav-sidebar__menu[b-ydc8gf1p2n] {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 6px 8px 20px !important;
    background: transparent !important;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-navmenu {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-item,
.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group,
.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link {
    flex: none !important;
    height: auto !important;
}

/* ── Nav links ── */
.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link {
    border-radius: 10px !important;
    margin-bottom: 2px;
    padding: 8px 12px !important;
    min-height: 40px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #3d3550 !important;
    transition: background-color 0.18s ease, color 0.18s ease, padding-inline-start 0.15s ease, box-shadow 0.18s ease;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link .mud-nav-link-icon {
    color: #6d43b6 !important;
    opacity: 0.85;
    transition: opacity 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link:hover {
    background: rgba(64, 5, 121, 0.08) !important;
    color: #400579 !important;
    padding-inline-start: 14px !important;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link:hover .mud-nav-link-icon {
    opacity: 1;
    color: #400579 !important;
    transform: scale(1.06);
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link.active {
    background: linear-gradient(135deg, rgba(64, 5, 121, 0.14) 0%, rgba(109, 67, 182, 0.12) 100%) !important;
    color: #400579 !important;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #400579;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link.active .mud-nav-link-icon {
    color: #400579 !important;
    opacity: 1;
}

/* ── Nav groups ── */
.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group {
    margin-bottom: 2px;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group > .mud-nav-link {
    border-radius: 10px !important;
    padding: 8px 12px !important;
    min-height: 40px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d2640 !important;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group > .mud-nav-link .mud-nav-link-icon {
    color: #400579 !important;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group > .mud-nav-link:hover {
    background: rgba(64, 5, 121, 0.07) !important;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group .mud-nav-group-items {
    padding-inline-start: 8px;
    margin-top: 2px;
    border-inline-start: 2px solid rgba(64, 5, 121, 0.12);
    margin-inline-start: 18px;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group .mud-nav-group-items .mud-nav-link {
    font-size: 0.84rem;
    font-weight: 450;
    min-height: 36px;
    padding: 6px 10px !important;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group .mud-nav-group .mud-nav-group-items {
    margin-inline-start: 12px;
    border-inline-start-color: rgba(64, 5, 121, 0.08);
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group .mud-nav-group > .mud-nav-link {
    font-size: 0.82rem;
    font-weight: 550;
    min-height: 34px;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group > .mud-nav-link .mud-nav-link-expand-icon {
    color: rgba(64, 5, 121, 0.5) !important;
    transition: transform 0.2s ease, color 0.18s ease;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group > .mud-nav-link:hover .mud-nav-link-expand-icon {
    color: #400579 !important;
}

.nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link .mud-tooltip-root {
    width: 100%;
}

/* ── Dark mode ── */
.mud-theme-dark .nav-sidebar[b-ydc8gf1p2n] {
    background: linear-gradient(180deg, #1a1228 0%, #151020 45%, #110d1a 100%);
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
}

.mud-theme-dark .nav-sidebar__brand[b-ydc8gf1p2n] {
    background: linear-gradient(135deg, #2d0460 0%, #4a2d8a 55%, #5b3fa8 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.mud-theme-dark .nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
}

.mud-theme-dark .nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link .mud-nav-link-icon {
    color: rgba(167, 139, 250, 0.85) !important;
}

.mud-theme-dark .nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link:hover {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #e9d5ff !important;
}

.mud-theme-dark .nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link.active {
    background: rgba(139, 92, 246, 0.18) !important;
    color: #e9d5ff !important;
    box-shadow: inset 3px 0 0 #a78bfa;
}

.mud-theme-dark .nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group > .mud-nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
}

.mud-theme-dark .nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-group .mud-nav-group-items {
    border-inline-start-color: rgba(139, 92, 246, 0.2);
}

@media (max-width: 600px) {
    .nav-sidebar__brand[b-ydc8gf1p2n] {
        padding: 6px 12px;
        gap: 8px;
    }

    .nav-sidebar__brand-icon[b-ydc8gf1p2n] {
        width: 40px;
        height: 40px;
    }

    .nav-sidebar__title[b-ydc8gf1p2n] {
        font-size: 0.96rem;
    }

    .nav-sidebar__menu[b-ydc8gf1p2n]  .mud-nav-link {
        font-size: 0.84rem;
        min-height: 38px;
    }
}
