html, body {
    margin: 0;
    height: 100%;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #F3F5F9;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(160deg, #EEF3FC 0%, #F7F5FF 100%);
}

.loading-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2F6FED, #22C58B);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    animation: pulse 1.4s ease-in-out infinite;
}

.loading-text {
    color: #6B7280;
    font-size: 0.9rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.75; }
}

/* Dashboard-specific helpers */
.bb-shell {
    background: #F3F5F9;
    min-height: 100vh;
    padding: 16px;
}

@media (min-width: 960px) {
    .bb-shell {
        padding: 24px;
    }
}

.bb-sidebar {
    background: #FFFFFF;
    border-right: 1px solid #EEF0F3;
}

.bb-logo-card {
    background: #F6F8FC;
    border-radius: 16px;
}

.bb-nav-link {
    border-radius: 10px !important;
    margin-bottom: 4px;
}

.bb-nav-link.active {
    background: linear-gradient(90deg, #2F6FED, #4C8CF5) !important;
    color: #fff !important;
}

.bb-nav-link.active .mud-icon-root {
    color: #fff !important;
}

.bb-stat-card {
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}

.bb-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-panel {
    border-radius: 16px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}

.bb-promo-card {
    border-radius: 16px !important;
    background: linear-gradient(135deg, #1F8A5F, #22A56B) !important;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.bb-avatar-sm {
    width: 40px;
    height: 40px;
}

.bb-rank-chip {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: #EEF2FF;
    color: #4C6FF5;
    font-weight: 700;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-product-list-item {
    border-radius: 12px !important;
    margin-bottom: 6px;
    padding: 14px !important;
}

.bb-product-list-item:hover {
    background: #F6F8FC;
}

.w-100 {
    width: 100% !important;
}
