html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #F8FAFC;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

.vn-body {
    min-height: 100vh;
    background-color: #F8FAFC;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

@media (min-width: 960px) {
    .vn-body {
        display: block;
    }
}

.vn-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 1.25rem;
    padding: 1.5rem;
}

.vn-loading-logo {
    animation: pulse 2s ease-in-out infinite;
    display: flex;
    justify-content: center;
}

.vn-loading-image {
    width: 190px;
    height: 190px;
    object-fit: contain;
    border-radius: 1.5rem;
    box-shadow: 0 16px 36px -8px rgba(15, 37, 55, 0.15);
}

.vn-loading-text {
    color: #64748B;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.vn-logo-box {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
}

.vn-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.vn-viewport {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background-color: #F8FAFC;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@media (min-width: 960px) {
    .vn-viewport {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
        border: none;
        margin: 0;
    }
}

.vn-main {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.vn-main::-webkit-scrollbar {
    display: none;
}

@media (min-width: 960px) {
    .vn-main {
        padding-bottom: 2rem;
        scrollbar-width: auto;
    }

    .vn-main::-webkit-scrollbar {
        display: block;
        width: 8px;
    }

    .vn-main::-webkit-scrollbar-thumb {
        background-color: #CBD5E1;
        border-radius: 4px;
    }
}

.font-mono {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace !important;
}

.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

#blazor-error-ui {
    background: #DC2626;
    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;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

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

.mud-appbar.vn-appbar {
    background: rgba(248, 250, 252, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    color: #0F2537 !important;
}

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

.mud-main-content {
    padding-top: 0 !important;
}

.vn-fab {
    position: fixed;
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    right: max(calc(1.25rem + env(safe-area-inset-right, 0px)), calc(50% - 200px));
    z-index: 45;
}

@media (min-width: 640px) and (max-width: 959.98px) {
    .vn-fab {
        right: calc(50% - 200px + 1.25rem);
    }
}

@media (min-width: 960px) {
    .vn-fab {
        display: none;
    }
}