/* GXTiming branded loading — shared across all apps */

.gx-branded-loading {
    opacity: 0;
    animation: gx-branded-fade-in 0.35s ease forwards;
}

.gx-branded-loading--overlay,
.gx-branded-loading--fullpage {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gx-branded-loading--fullpage {
    position: fixed;
    min-height: 100vh;
    min-height: 100dvh;
}

.gx-branded-loading--inline {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 1.25rem 0.5rem;
    min-height: 140px;
}

.gx-branded-loading__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(15, 23, 42, 0.92) 0%, rgba(5, 8, 22, 0.96) 70%);
    backdrop-filter: blur(4px);
}

.gx-branded-loading--fullpage .gx-branded-loading__backdrop {
    background:
        radial-gradient(ellipse 120% 80% at 50% -10%, rgba(249, 115, 22, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #050816 0%, #0b1220 45%, #050816 100%);
    backdrop-filter: none;
}

.gx-branded-loading__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 320px;
    animation: gx-branded-scale-in 0.4s ease 0.05s both;
}

.gx-branded-loading--inline .gx-branded-loading__panel {
    max-width: 280px;
}

.gx-branded-loading--inline .gx-branded-loading__logo {
    width: 48px;
    height: 48px;
}

.gx-branded-loading--inline .gx-branded-loading__brand {
    font-size: 0.95rem;
}

.gx-branded-loading--inline .gx-branded-loading__app {
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
}

.gx-branded-loading__speedlines {
    position: absolute;
    inset: -40% -20%;
    background: repeating-linear-gradient(
        -12deg,
        transparent,
        transparent 18px,
        rgba(255, 255, 255, 0.015) 18px,
        rgba(255, 255, 255, 0.015) 19px
    );
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

.gx-branded-loading__track-svg {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 280px);
    height: 48px;
    opacity: 0.35;
    pointer-events: none;
}

.gx-branded-loading__track-path {
    fill: none;
    stroke: rgba(56, 189, 248, 0.35);
    stroke-width: 2;
    stroke-dasharray: 6 8;
    animation: gx-track-dash 3s linear infinite;
}

.gx-branded-loading__logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.25);
    margin-bottom: 0.65rem;
}

.gx-branded-loading__brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--gx-text-primary);
    line-height: 1.2;
}

.gx-branded-loading__app {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gx-primary);
    margin-bottom: 0.5rem;
}

.gx-branded-loading__primary {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gx-text-primary);
    margin-bottom: 0.85rem;
    min-height: 1.25rem;
}

.gx-branded-loading__anim {
    position: relative;
    width: 100%;
    max-width: 260px;
    height: 28px;
    margin-bottom: 0.65rem;
}

.gx-branded-loading__detection-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), var(--gx-primary), rgba(56, 189, 248, 0.5), transparent);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.gx-branded-loading__transponder {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background: var(--gx-primary);
    box-shadow: 0 0 14px var(--gx-primary), 0 0 4px #fff;
    animation: gx-transponder-scan 2.2s ease-in-out infinite;
}

.gx-branded-loading__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.gx-branded-loading__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gx-primary), var(--gx-primary-hover));
    border-radius: 2px;
    transition: width 0.2s ease;
}

.gx-branded-loading__secondary {
    font-size: 0.78rem;
    color: var(--gx-text-secondary);
    min-height: 1.1rem;
    animation: gx-branded-fade-in 0.3s ease;
}

.gx-branded-loading__percent {
    margin-top: 0.35rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gx-primary);
    font-variant-numeric: tabular-nums;
}

@keyframes gx-branded-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gx-branded-scale-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes gx-transponder-scan {
    0% { left: 0; opacity: 0.55; }
    50% { opacity: 1; }
    100% { left: calc(100% - 14px); opacity: 0.55; }
}

@keyframes gx-track-dash {
    to { stroke-dashoffset: -28; }
}

.gx-skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: gx-branded-fade-in 0.3s ease;
}

.gx-skeleton-card {
    background: var(--gx-card);
    border: 1px solid var(--gx-border-subtle);
    border-radius: 12px;
    padding: 0.85rem;
    overflow: hidden;
}

.gx-skeleton-line {
    height: 0.65rem;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        var(--gx-card-hover) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        var(--gx-card-hover) 100%
    );
    background-size: 200% 100%;
    animation: gx-skeleton-shimmer 1.4s ease-in-out infinite;
    margin-bottom: 0.45rem;
}

.gx-skeleton-line:last-child {
    margin-bottom: 0;
}

.gx-skeleton-line--title {
    height: 0.85rem;
    width: 65%;
}

.gx-skeleton-line--subtitle {
    width: 45%;
}

.gx-skeleton-line--chip {
    width: 30%;
    height: 0.55rem;
    margin-top: 0.35rem;
}

@keyframes gx-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gx-branded-splash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 120% 80% at 50% -10%, rgba(249, 115, 22, 0.1) 0%, transparent 55%),
        linear-gradient(180deg, #050816 0%, #0b1220 50%, #050816 100%);
    z-index: 9999;
    padding: 1.5rem;
    animation: gx-branded-fade-in 0.25s ease;
}

.gx-branded-splash__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.gx-branded-splash__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 0 28px rgba(249, 115, 22, 0.3);
    margin-bottom: 0.75rem;
}

.gx-branded-splash__brand {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.gx-branded-splash__app {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #F97316;
    margin-bottom: 0.65rem;
}

.gx-branded-splash__primary {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    min-height: 1.25rem;
}

.gx-branded-splash__anim {
    position: relative;
    width: 100%;
    max-width: 260px;
    height: 28px;
    margin-bottom: 0.75rem;
}

.gx-branded-splash__line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), #F97316, rgba(56, 189, 248, 0.45), transparent);
}

.gx-branded-splash__dot {
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background: #F97316;
    box-shadow: 0 0 14px #F97316;
    animation: gx-transponder-scan 2.2s ease-in-out infinite;
}

.gx-branded-splash__secondary {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.78rem;
    color: #CBD5E1;
    min-height: 1.1rem;
    transition: opacity 0.25s ease;
}

.gx-branded-splash__percent {
    margin-top: 0.5rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #F97316;
    font-variant-numeric: tabular-nums;
}

.gx-branded-splash__percent::after {
    content: var(--blazor-load-percentage-text, "0%");
}
