* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0a0c15;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #0f172a, #020617);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.loading-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.premium-loader {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 40px;
}

.premium-loader svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.premium-loader circle {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
}

.premium-loader .bg-circle {
    stroke: rgba(59, 130, 246, 0.2);
}

.premium-loader .progress-circle {
    stroke: url(#gradientStroke);
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 0.08s linear;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.8));
}

.brand-glow {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #06b6d4, #14b8a6, #3b82f6);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 30px;
    letter-spacing: 3px;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.loading-percentage {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 20px;
    font-family: monospace;
    letter-spacing: 3px;
}

.loading-sub {
    color: #475569;
    margin-top: 15px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.progress-bar-premium {
    width: 300px;
    height: 3px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    margin-top: 30px;
    overflow: hidden;
}

.progress-fill-premium {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #14b8a6);
    width: 0%;
    transition: width 0.2s ease;
    border-radius: 10px;
}

.floating-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6), transparent);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 12s ease-in-out infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-20vh) translateX(50px) scale(1); opacity: 0; }
}

@media (max-width: 640px) {
    .brand-glow { font-size: 36px; letter-spacing: 2px; }
    .loading-percentage { font-size: 24px; }
    .progress-bar-premium { width: 250px; }
    .premium-loader { width: 100px; height: 100px; margin-bottom: 30px; }
    .loading-sub { font-size: 10px; }
}