/*
 * TURKONFED Premium Loading Screen
 * Interactive, Animated, Professional
 */

/* TEMPORARILY DISABLED */
.page-loader {
    display: none !important;
}

/* ============================================
   VARIABLES
   ============================================ */

:root {
    --loader-red: #ed1b2f;
    --loader-red-glow: rgba(237, 27, 47, 0.5);
    --loader-dark: #0a0d12;
}

/* ============================================
   MAIN LOADER
   ============================================ */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: var(--z-loader);
    background: var(--loader-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ============================================
   BACKGROUND EFFECTS - Premium Corporate
   ============================================ */

.loader-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* ============================================
   MEMORY STRIP - Infinite Scrolling Photos
   ============================================ */

.loader-memories {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 1rem 0;
    opacity: 0;
    animation: memoriesReveal 1s ease-out 0.5s forwards;
}

@keyframes memoriesReveal {
    to { opacity: 1; }
}

/* Each row of photos */
.memory-row {
    display: flex;
    gap: 1rem;
    animation: scrollRow 40s linear infinite;
    width: max-content;
}

/* Alternate directions for rows */
.memory-row:nth-child(even) {
    animation-direction: reverse;
}

.memory-row:nth-child(1) { animation-duration: 45s; }
.memory-row:nth-child(2) { animation-duration: 38s; }
.memory-row:nth-child(3) { animation-duration: 42s; }
.memory-row:nth-child(4) { animation-duration: 35s; }
.memory-row:nth-child(5) { animation-duration: 40s; }

@keyframes scrollRow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.memory-photo {
    flex-shrink: 0;
    width: clamp(80px, 10vw, 120px);
    aspect-ratio: 16/10;
    background: transparent;
    padding: 0;
    border: none;
    opacity: 0.12;
}

.memory-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: grayscale(60%) brightness(0.4) contrast(1.1);
}

/* Base gradient */
.loader-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% 20%, rgba(237, 27, 47, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(237, 27, 47, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(237, 27, 47, 0.03) 0%, transparent 40%),
        linear-gradient(180deg, #06080a 0%, #0a0d12 40%, #0f1318 100%);
}

/* Central glow */
.loader-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(237, 27, 47, 0.2) 0%, rgba(237, 27, 47, 0.05) 40%, transparent 70%);
    filter: blur(60px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

/* Geometric grid pattern */
.loader-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
}

/* Diagonal accent lines */
.loader-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 40%, rgba(237, 27, 47, 0.03) 50%, transparent 60%),
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.01) 50%, transparent 60%);
    background-size: 100% 100%;
}

/* Particles container */
.loader-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Floating particles - refined */
.loader-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
}

/* Red accent particles */
.loader-particle:nth-child(odd) {
    width: 3px;
    height: 3px;
    background: var(--loader-red);
    box-shadow: 0 0 10px var(--loader-red-glow);
    animation: particleRise 12s ease-in-out infinite;
}

/* White subtle particles */
.loader-particle:nth-child(even) {
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    animation: particleDrift 15s ease-in-out infinite;
}

/* Position particles strategically */
.loader-particle:nth-child(1) { left: 8%; top: 85%; animation-delay: 0s; }
.loader-particle:nth-child(2) { left: 15%; top: 90%; animation-delay: 2s; }
.loader-particle:nth-child(3) { left: 25%; top: 88%; animation-delay: 4s; }
.loader-particle:nth-child(4) { left: 35%; top: 92%; animation-delay: 1s; }
.loader-particle:nth-child(5) { left: 45%; top: 87%; animation-delay: 3s; }
.loader-particle:nth-child(6) { left: 55%; top: 91%; animation-delay: 5s; }
.loader-particle:nth-child(7) { left: 65%; top: 86%; animation-delay: 1.5s; }
.loader-particle:nth-child(8) { left: 75%; top: 89%; animation-delay: 3.5s; }
.loader-particle:nth-child(9) { left: 85%; top: 93%; animation-delay: 0.5s; }
.loader-particle:nth-child(10) { left: 92%; top: 88%; animation-delay: 2.5s; }
.loader-particle:nth-child(11) { left: 20%; top: 95%; animation-delay: 4.5s; }
.loader-particle:nth-child(12) { left: 70%; top: 94%; animation-delay: 1.2s; }

@keyframes particleRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    5% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1);
    }
    50% {
        opacity: 0.3;
    }
    95% {
        opacity: 0.6;
        transform: translateY(-400px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-450px) scale(0.5);
    }
}

@keyframes particleDrift {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    10% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.2;
        transform: translate(30px, -200px) scale(1);
    }
    90% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translate(-20px, -400px) scale(0.5);
    }
}

/* Light beam effects */
.loader-beam {
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(237, 27, 47, 0.3), transparent);
    opacity: 0;
    animation: beamSweep 8s ease-in-out infinite;
}

.loader-beam:nth-child(1) {
    left: 20%;
    top: 0;
    height: 40%;
    animation-delay: 0s;
    transform: rotate(15deg);
}

.loader-beam:nth-child(2) {
    right: 25%;
    top: 0;
    height: 35%;
    animation-delay: 2.5s;
    transform: rotate(-10deg);
}

.loader-beam:nth-child(3) {
    left: 40%;
    top: 0;
    height: 30%;
    animation-delay: 5s;
    transform: rotate(5deg);
}

@keyframes beamSweep {
    0%, 100% {
        opacity: 0;
        transform: translateY(-100%) rotate(var(--rotation, 0deg));
    }
    20% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
        transform: translateY(200%) rotate(var(--rotation, 0deg));
    }
    80% {
        opacity: 0.5;
    }
}

/* Hexagon pattern overlay */
.loader-hex-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='%23ed1b2f' fill-opacity='0.02' d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9z'/%3E%3C/svg%3E");
    opacity: 0.5;
    animation: hexFade 6s ease-in-out infinite;
}

@keyframes hexFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Connection lines - network effect */
.loader-connections {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.loader-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(237, 27, 47, 0.2), transparent);
    transform-origin: left center;
    opacity: 0;
    animation: connectionPulse 6s ease-in-out infinite;
}

.loader-connection:nth-child(1) {
    top: 30%;
    left: 10%;
    width: 25%;
    transform: rotate(25deg);
    animation-delay: 0s;
}

.loader-connection:nth-child(2) {
    top: 50%;
    right: 15%;
    width: 20%;
    transform: rotate(-15deg);
    animation-delay: 1.5s;
}

.loader-connection:nth-child(3) {
    top: 70%;
    left: 20%;
    width: 30%;
    transform: rotate(10deg);
    animation-delay: 3s;
}

.loader-connection:nth-child(4) {
    top: 40%;
    left: 60%;
    width: 25%;
    transform: rotate(-20deg);
    animation-delay: 4.5s;
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0;
        transform: scaleX(0) rotate(var(--rotation, 0deg));
    }
    20% {
        opacity: 0.8;
        transform: scaleX(1) rotate(var(--rotation, 0deg));
    }
    80% {
        opacity: 0.4;
        transform: scaleX(1) rotate(var(--rotation, 0deg));
    }
}

/* ============================================
   CONTENT WRAPPER
   ============================================ */

.loader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* ============================================
   LOGO UNIT - THE STAR
   ============================================ */

.loader-logo-unit {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer orbital ring */
.loader-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    animation: orbitSpin 8s linear infinite;
}

.loader-ring-outer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--loader-red);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--loader-red-glow), 0 0 40px var(--loader-red-glow);
}

.loader-ring-outer::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Middle spinning ring */
.loader-ring-middle {
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--loader-red);
    border-right-color: rgba(237, 27, 47, 0.5);
    border-bottom-color: rgba(237, 27, 47, 0.2);
    animation: spinFast 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow:
        0 0 30px rgba(237, 27, 47, 0.2),
        inset 0 0 30px rgba(237, 27, 47, 0.05);
}

/* Inner ring */
.loader-ring-inner {
    position: absolute;
    inset: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    animation: spinSlow 4s linear infinite reverse;
}

.loader-ring-inner::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px dashed rgba(237, 27, 47, 0.3);
    animation: spinSlow 6s linear infinite;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinFast {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Logo glow background */
.loader-logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(237, 27, 47, 0.3) 0%, transparent 70%);
    filter: blur(30px);
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Logo image */
.loader-logo img {
    position: relative;
    width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
    transform: scale(0.8);
    animation: logoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: brightness(0) invert(1) blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(0) invert(1) blur(0);
    }
}

/* ============================================
   LOADING TEXT
   ============================================ */

.loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.5s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.loader-message-container {
    position: relative;
    height: 24px;
    min-width: 300px;
    overflow: hidden;
}

.loader-message {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-message.active {
    opacity: 1;
    transform: translateY(0);
}

.loader-message.exit {
    opacity: 0;
    transform: translateY(-20px);
}

/* Animated dots */
.loader-dots {
    display: flex;
    gap: 8px;
}

.loader-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(1);
        background: rgba(255, 255, 255, 0.2);
    }
    40% {
        transform: scale(1.5);
        background: var(--loader-red);
        box-shadow: 0 0 20px var(--loader-red-glow);
    }
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.loader-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.6s ease-out 0.7s forwards;
}

.loader-progress-track {
    width: 240px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--loader-red) 0%, #ff4757 50%, var(--loader-red) 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation:
        progressGrow 2.5s ease-out forwards,
        progressShimmer 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px var(--loader-red-glow);
}

@keyframes progressGrow {
    0% { width: 0%; }
    15% { width: 15%; }
    30% { width: 35%; }
    50% { width: 55%; }
    70% { width: 75%; }
    85% { width: 90%; }
    100% { width: 100%; }
}

@keyframes progressShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loader-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--loader-red);
    letter-spacing: 2px;
    font-family: var(--font-family-heading);
}

/* ============================================
   STATS - BRUTAL DATA TERMINAL
   Sharp. Bold. Memorable.
   ============================================ */

.loader-stats {
    display: flex;
    align-items: stretch;
    gap: 2px;
    opacity: 0;
    animation: statsContainerReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
    position: relative;
}

@keyframes statsContainerReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scaleY(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

/* Red line on top of entire stats block */
.loader-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--loader-red);
    box-shadow: 0 0 20px var(--loader-red-glow), 0 2px 10px var(--loader-red-glow);
    z-index: 2;
}

.loader-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 24px 28px 20px;
    min-width: 130px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    border-radius: 0; /* BRUTAL: No softness */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered entrance for each stat */
.loader-stat:nth-child(1) {
    animation: statSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.1s both;
}
.loader-stat:nth-child(2) {
    animation: statSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.25s both;
}
.loader-stat:nth-child(3) {
    animation: statSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.4s both;
}

@keyframes statSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left accent bar - appears on hover */
.loader-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--loader-red);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background fill on hover */
.loader-stat::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(237, 27, 47, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.loader-stat:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(237, 27, 47, 0.2);
}

.loader-stat:hover::before {
    transform: scaleY(1);
}

.loader-stat:hover::after {
    opacity: 1;
}

/* Icon - Hidden for cleaner look */
.loader-stat-icon {
    display: none;
}

/* Value - MASSIVE */
.loader-stat-value {
    position: relative;
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-family-heading);
    line-height: 1;
    letter-spacing: -2px;
    z-index: 1;
    transition: all 0.3s ease;
}

.loader-stat:hover .loader-stat-value {
    color: var(--loader-red);
    text-shadow: 0 0 30px var(--loader-red-glow);
}

/* Label - Sharp, uppercase */
.loader-stat-label {
    position: relative;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
    z-index: 1;
    transition: color 0.3s ease;
}

.loader-stat:hover .loader-stat-label {
    color: rgba(255, 255, 255, 0.7);
}

/* Glow - removed, using cleaner approach */
.loader-stat-glow {
    display: none;
}

/* Divider - not needed */
.loader-stat-divider {
    display: none;
}


/* ============================================
   CORNER DECORATIONS
   ============================================ */

.loader-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0;
    animation: cornerReveal 0.8s ease-out forwards;
}

.loader-corner::before,
.loader-corner::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, var(--loader-red), transparent);
}

.loader-corner-tl {
    top: 40px;
    left: 40px;
    animation-delay: 0.2s;
}
.loader-corner-tl::before { top: 0; left: 0; width: 40px; height: 2px; }
.loader-corner-tl::after { top: 0; left: 0; width: 2px; height: 40px; background: linear-gradient(180deg, var(--loader-red), transparent); }

.loader-corner-tr {
    top: 40px;
    right: 40px;
    animation-delay: 0.3s;
}
.loader-corner-tr::before { top: 0; right: 0; width: 40px; height: 2px; background: linear-gradient(270deg, var(--loader-red), transparent); }
.loader-corner-tr::after { top: 0; right: 0; width: 2px; height: 40px; background: linear-gradient(180deg, var(--loader-red), transparent); }

.loader-corner-bl {
    bottom: 40px;
    left: 40px;
    animation-delay: 0.4s;
}
.loader-corner-bl::before { bottom: 0; left: 0; width: 40px; height: 2px; }
.loader-corner-bl::after { bottom: 0; left: 0; width: 2px; height: 40px; background: linear-gradient(0deg, var(--loader-red), transparent); }

.loader-corner-br {
    bottom: 40px;
    right: 40px;
    animation-delay: 0.5s;
}
.loader-corner-br::before { bottom: 0; right: 0; width: 40px; height: 2px; background: linear-gradient(270deg, var(--loader-red), transparent); }
.loader-corner-br::after { bottom: 0; right: 0; width: 2px; height: 40px; background: linear-gradient(0deg, var(--loader-red), transparent); }

@keyframes cornerReveal {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 0.6; transform: scale(1); }
}

/* ============================================
   TOP PROGRESS BAR
   ============================================ */

.top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: calc(var(--z-loader) - 1);
    pointer-events: none;
}

.top-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--loader-red);
    box-shadow: 0 0 10px var(--loader-red-glow);
    transition: width 0.2s ease-out;
}

.top-progress-bar.loading::before {
    animation: topProgress 2s ease-in-out infinite;
}

@keyframes topProgress {
    0% { width: 0%; left: 0; }
    50% { width: 50%; left: 25%; }
    100% { width: 0%; left: 100%; }
}

/* ============================================
   SKELETON
   ============================================ */

.skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.03) 25%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .loader-content {
        gap: 32px;
    }

    .loader-logo-unit {
        width: 220px;
        height: 220px;
    }

    .loader-ring-middle {
        inset: 20px;
    }

    .loader-ring-inner {
        inset: 40px;
    }

    .loader-logo img {
        width: 110px;
    }

    .loader-logo::before {
        width: 120px;
        height: 120px;
    }

    .loader-message {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .loader-message-container {
        min-width: 240px;
    }

    .loader-progress-track {
        width: 200px;
    }

    .loader-stat {
        padding: 18px 20px 16px;
        min-width: 100px;
    }

    .loader-stat-value {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .loader-stat-label {
        font-size: 9px;
        letter-spacing: 2px;
    }

    .loader-glow {
        width: 450px;
        height: 450px;
    }

    .loader-beam {
        display: none;
    }

    .loader-connection {
        width: 15% !important;
    }

    .loader-corner {
        width: 40px;
        height: 40px;
    }

    .loader-corner::before { width: 30px !important; }
    .loader-corner::after { height: 30px !important; }

    .loader-corner-tl, .loader-corner-tr { top: 24px; }
    .loader-corner-bl, .loader-corner-br { bottom: 24px; }
    .loader-corner-tl, .loader-corner-bl { left: 24px; }
    .loader-corner-tr, .loader-corner-br { right: 24px; }

    /* Memory strip - smaller on tablet */
    .memory-photo {
        width: clamp(70px, 9vw, 100px);
        opacity: 0.1;
    }

    .loader-memories {
        gap: 0.75rem;
    }

    .memory-row {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .loader-logo-unit {
        width: 180px;
        height: 180px;
    }

    .loader-logo img {
        width: 90px;
    }

    .loader-stats {
        flex-direction: row;
        gap: 1px;
    }

    .loader-stats::before {
        height: 2px;
    }

    .loader-stat {
        padding: 14px 16px 12px;
        min-width: 80px;
        flex: 1;
    }

    .loader-stat::before {
        width: 2px;
    }

    .loader-stat-value {
        font-size: 28px;
        letter-spacing: -1px;
    }

    .loader-stat-label {
        font-size: 8px;
        letter-spacing: 1.5px;
        margin-top: 6px;
    }

    /* Memory strip - smaller on mobile */
    .memory-photo {
        width: clamp(50px, 12vw, 70px);
        opacity: 0.08;
    }

    .loader-memories {
        gap: 0.5rem;
    }

    .memory-row {
        gap: 0.5rem;
        animation-duration: 25s;
    }

    .memory-row:nth-child(2) {
        animation-duration: 22s;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .page-loader {
        transition: opacity 0.3s ease;
    }

    .loader-ring-outer,
    .loader-ring-middle,
    .loader-ring-inner,
    .loader-ring-inner::before,
    .loader-glow,
    .loader-logo::before,
    .loader-dot,
    .loader-progress-fill,
    .loader-particle,
    .loader-beam,
    .loader-connection,
    .loader-hex-pattern,
    .loader-bg::before,
    .memory-row,
    .loader-memories {
        animation: none !important;
    }

    .loader-memories {
        opacity: 1;
    }

    .memory-photo {
        opacity: 0.1;
    }

    .loader-beam,
    .loader-connection {
        opacity: 0.3;
    }

    .loader-hex-pattern {
        opacity: 0.4;
    }

    .loader-logo img {
        opacity: 1;
        transform: none;
        filter: brightness(0) invert(1);
        animation: none;
    }

    .loader-text,
    .loader-progress,
    .loader-stats,
    .loader-corner {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .loader-message.active {
        opacity: 1;
        transform: none;
    }

    .loader-progress-fill {
        width: 100%;
    }

    .loader-dot {
        background: var(--loader-red);
    }

    .loader-corner {
        opacity: 0.6;
    }
}
