* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2BB0B5;
    --primary-dark: #1a8a8e;
    --primary-light: #e8f8f9;
    --accent: #22c4c9;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;

    --text: #111827;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --border: #e5e7eb;
    --bg: #f3f4f6;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-md: 15px;
    --text-lg: 17px;
    --text-xl: 20px;
    --text-2xl: 24px;

    --font-normal: 400;
    --font-medium: 500;
    --font-semi: 600;
    --font-bold: 700;

    --leading-tight: 1.3;
    --leading-normal: 1.6;
    --leading-relaxed: 1.7;
}

@media(max-width:768px) {
    :root {
        --text-xs: 11px;
        --text-sm: 12px;
        --text-base: 13px;
        --text-md: 14px;
        --text-lg: 16px;
        --text-xl: 19px;
        --text-2xl: 22px;
    }
}

@media(max-width:480px) {
    :root {
        --text-xs: 10px;
        --text-sm: 11px;
        --text-base: 12px;
        --text-md: 13px;
        --text-lg: 15px;
        --text-xl: 18px;
        --text-2xl: 21px;
    }
}

body {
    font-family: var(--font);
    font-size: var(--text-base);
    color: var(--text);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#nc-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#nc-loader[data-hidden] {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nc-loader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nc-loader-brand-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nc-loader-brand-text h2 {
    color: var(--text);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    font-family: var(--font);
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.nc-loader-brand-text h2 sup {
    font-size: var(--text-xs);
    font-weight: var(--font-normal);
    vertical-align: super;
}

.nc-loader-brand-text p {
    color: var(--text-light);
    font-size: 10px;
    font-family: var(--font);
    line-height: 1;
    margin: 0;
    letter-spacing: 0.5px;
}

.nc-progress {
    width: 100%;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.nc-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.nc-progress-fill {
    height: 100%;
    width: 40%;
    background: var(--primary);
    border-radius: 2px;
    animation: ncProgressIndeterminate 1.2s ease-in-out infinite;
}

@keyframes ncProgressIndeterminate {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

@keyframes ncSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ncSpin {
    to {
        transform: rotate(360deg);
    }
}

.offline-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    z-index: 9998;
    background: var(--text);
    color: white;
    padding: 10px 16px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    font-family: var(--font);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
    white-space: nowrap;
}

.offline-bar.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.offline-bar svg {
    flex-shrink: 0;
    opacity: 0.8;
}