/* Premium Loading Engine */
:root {
    --loader-backdrop: rgba(0, 0, 0, 0.35);
    --loader-panel-bg: rgba(26, 26, 26, 0.7);
    --loader-border: rgba(255, 255, 255, 0.08);
}

#app-loading-layer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--loader-backdrop);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#app-loading-layer.active {
    display: flex;
    opacity: 1;
}

.loader-panel {
    background: var(--loader-panel-bg);
    border: 1px solid var(--loader-border);
    border-radius: 24px;
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.loader-logo-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.loader-logo {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8380d, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 8px 24px rgba(232, 56, 13, 0.4);
    animation: loader-pulse 1.5s infinite ease-in-out alternate;
}

@keyframes loader-pulse {
    0% { transform: scale(0.95); box-shadow: 0 4px 12px rgba(232, 56, 13, 0.2); }
    100% { transform: scale(1.05); box-shadow: 0 12px 32px rgba(232, 56, 13, 0.6); }
}

.loader-spinner {
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    border: 3px solid transparent;
    border-top-color: #f97316;
    border-right-color: #e8380d;
    animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.loader-subtext {
    font-size: 13px;
    color: #a0a0a0;
}
