@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #03050c;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #a855f7;
    --secondary-glow: rgba(168, 85, 247, 0.3);
    --accent: #ffffff;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-surface: rgba(15, 23, 42, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-inner-glow: inset 0 0 25px rgba(255, 255, 255, 0.03);
    --glass-refraction: blur(60px) saturate(220%) contrast(1.1) brightness(1.1);
    --card-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9);
    --spring-easing: cubic-bezier(0.3, 1.5, 0.6, 1);
    --shimmer-gradient: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    --elite-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --mesh-gradient: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    --prism-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2), rgba(255, 255, 255, 0.1));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.4s var(--spring-easing);
}

*::selection {
    background: var(--primary);
    color: white;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --- Aero Glass & Mesh Background --- */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/feTurbulence%3E%3C/svg%3E");
}

.blob-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(120px);
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.yellow {
    background: var(--primary);
    top: -10%;
    left: -10%;
}

.red {
    background: var(--accent);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.green {
    background: var(--secondary);
    top: 40%;
    left: 40%;
    width: 600px;
    animation-delay: -10s;
}

/* --- Aura Background & Mouse Glow --- */
.mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--spring-easing), height 0.6s var(--spring-easing);
    mix-blend-mode: plus-lighter;
}

.luxe-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
}

.luxe-cursor.hover {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
}


@keyframes move {
    from {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    to {
        transform: translate(150px, 150px) scale(1.3) rotate(10deg);
    }
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    position: fixed;
    top: 1.5rem;
    left: 0;
    width: 100%;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-surface);
    backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    box-shadow: var(--glass-inner-glow);
    animation: navAppear 1s var(--spring-easing) backwards;
}

@keyframes navAppear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.8px;
    color: var(--accent);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.glass-pill {
    background: var(--glass-surface);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--glass-inner-glow);
}

.glass-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 12rem 0 6rem;
}

h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -3px;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.reveal-text {
    display: inline-block;
    animation: reveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(40px) rotateX(-10deg);
        filter: blur(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
}

/* --- Elite Components --- */
.elite-portal {
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(60px) saturate(220%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 100px -20px rgba(0, 0, 0, 1), inset 0 0 20px rgba(255, 255, 255, 0.02);
    border-radius: 48px;
    transition: all 0.6s var(--spring-easing);
}

.identity-input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.4s var(--spring-easing) !important;
}

.identity-input:focus {
    background: rgba(0, 0, 0, 0.5) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 30px -10px var(--primary-glow), inset 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-2px);
}

.kinetic-text {
    background: linear-gradient(to bottom, #fff 30%, rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: all 0.4s var(--spring-easing);
    z-index: 50;
}

.portal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.pulse-bg {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    top: -25%;
    left: -25%;
    z-index: -1;
    animation: portalPulse 8s infinite alternate ease-in-out;
    opacity: 0.5;
}

@keyframes portalPulse {
    from {
        transform: scale(0.8) translate(0, 0);
        opacity: 0.3;
    }

    to {
        transform: scale(1.1) translate(10%, 10%);
        opacity: 0.6;
    }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid #10b981;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}


.subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-weight: 500;
}

.fade-in {
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 0.2s;
}

/* --- Upload Card --- */
.upload-section {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: var(--glass-surface);
    backdrop-filter: blur(40px) saturate(200%) contrast(1.1);
    border: 1px solid var(--glass-border);
    border-radius: 48px;
    width: 100%;
    max-width: 700px;
    padding: 5rem 4rem;
    text-align: center;
    box-shadow: var(--card-shadow), var(--glass-inner-glow);
    position: relative;
    transition: 0.8s var(--spring-easing);
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: var(--shimmer-gradient);
    transform: skewX(-25deg);
    transition: 0.7s;
}

.glass-card:hover::before {
    left: 150%;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.1);
}

.glass-card:active {
    transform: translateY(-4px) scale(0.98);
}

/* --- Hyper-Modern Spotlight --- */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.spotlight-card:hover::after {
    opacity: 1;
}

/* --- Scanner Line Animation --- */
.scanning-nexus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 15px var(--primary);
    z-index: 20;
    animation: scanLine 3s infinite linear;
    pointer-events: none;
}

@keyframes scanLine {
    0% {
        top: 0;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* --- Mesh Background --- */
.mesh-bg {
    position: absolute;
    inset: 0;
    background-image: var(--mesh-gradient);
    opacity: 0.15;
    z-index: -1;
}


.glass-card.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02);
}

/* --- Upload Idle State --- */
.visual-indicator {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.upload-idle h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-idle p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--primary-glow);
    transition: 0.3s;
}

.action-btn:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

/* --- Cyber-Luxe Refinement --- */
.glass-reflex {
    position: relative;
    overflow: hidden;
}

.glass-reflex::before {
    content: '';
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.05) 45%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.05) 55%,
            transparent 100%);
    transform: rotate(45deg);
    transition: all 0.8s var(--spring-easing);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.glass-reflex:hover::before {
    top: -50%;
    left: -50%;
    opacity: 1;
}

/* --- 3D Perspective Base --- */
.tilt-card {
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.tilt-inner {
    transform: translateZ(50px);
}

/* --- Spatial Depth & Orbital --- */
.spatial-container {
    perspective: 2000px;
}

.spatial-depth {
    transform-style: preserve-3d;
    transition: transform 0.6s var(--spring-easing);
}

.orbital-shell {
    position: absolute;
    inset: -50px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
    animation: orbitPulse 10s linear infinite;
}

@keyframes orbitPulse {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.3;
    }

    100% {
        transform: scale(1) rotate(360deg);
        opacity: 0.1;
    }
}

/* --- Prism Refraction Layer --- */
.prism-layer {
    position: absolute;
    inset: 0;
    background: var(--prism-glow);
    filter: blur(20px);
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 10;
    opacity: 0.4;
}

/* --- Kinetic Card Refinement --- */
.kinetic-card {
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(80px) saturate(250%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 40px 120px -30px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(255, 255, 255, 0.02) !important;
}

/* --- Magnetic Link/Button --- */
.magnetic {
    transition: transform 0.3s var(--spring-easing);
    display: inline-block;
}

/* --- Liquid Button --- */
.btn-liquid {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-liquid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--spring-easing), height 0.6s var(--spring-easing);
    z-index: -1;
}

.btn-liquid:hover::before {
    width: 300%;
    height: 300%;
}

/* --- Glitch Text Utility --- */
.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: -2px 0 var(--primary), 2px 0 var(--secondary);
    }

    25% {
        transform: translate(-2px, 2px);
    }

    50% {
        transform: translate(2px, -2px);
        text-shadow: 2px 0 var(--primary), -2px 0 var(--secondary);
    }

    75% {
        transform: translate(-2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* --- Refraction Ornaments --- */
.refraction-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: -1;
    pointer-events: none;
}

/* --- Holographic Icon --- */
.holographic-icon {
    filter: drop-shadow(0 0 10px var(--primary-glow));
    animation: holoPulse 4s infinite alternate ease-in-out;
}

@keyframes holoPulse {
    0% {
        filter: drop-shadow(0 0 5px var(--primary-glow)) saturate(1);
    }

    100% {
        filter: drop-shadow(0 0 20px var(--secondary-glow)) saturate(1.5);
        transform: translateY(-3px);
    }
}

@keyframes dataStream {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}


.w-full {
    width: 100%;
}

/* --- Auth UI --- */
.auth-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.email-display {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
    line-height: 1;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.text-btn:hover {
    color: var(--text-main);
}

.active-glow {
    box-shadow: 0 0 15px var(--primary-glow);
    background: var(--primary) !important;
}

/* --- Modals --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
}

.premium-modal {
    max-width: 480px !important;
    padding: 3.5rem 3rem !important;
    border-radius: 42px !important;
    background: rgba(15, 23, 42, 0.3) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        var(--card-shadow),
        inset 0 0 30px rgba(255, 255, 255, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    overflow: hidden;
    position: relative;
    animation: modalSpring 0.8s var(--spring-easing);
}

@keyframes modalSpring {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(40px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-dim);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--spring-easing);
    z-index: 10;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.modal-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    z-index: -1;
    pointer-events: none;
}

.deco-blob {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(40px);
    animation: blobFloat 10s infinite alternate;
}

@keyframes blobFloat {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(-40px, 40px) rotate(45deg);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    box-shadow: var(--glass-inner-glow);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modern-input label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem !important;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
}

.modern-input input {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.1rem !important;
    border-radius: 18px !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.modern-input input:focus {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-1px);
}

.auth-actions {
    margin-top: 2.5rem;
}

.action-btn.w-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 60px;
    font-size: 1.1rem;
    border-radius: 20px;
}

.action-btn i {
    transition: transform 0.3s var(--spring-easing);
}

.action-btn:hover i {
    transform: translateX(4px);
}

.toggle-auth {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-dim);
    text-align: center;
}

.toggle-auth span {
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    position: relative;
    padding-bottom: 2px;
}

.toggle-auth span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.toggle-auth span:hover::after {
    width: 100%;
}

/* --- Advanced Settings --- */
.advanced-settings-container {
    margin-top: 3rem;
    position: relative;
    padding-top: 1rem;
}

.divider {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-weight: 700;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.setting-item {
    text-align: left;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.setting-item input,
.setting-item select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
    outline: none;
}

.ip-input-group {
    display: flex;
    gap: 0.5rem;
}

.small-btn {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.small-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.small-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Overlays --- */
.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.auth-overlay.active {
    display: flex;
}

.overlay-content {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

.overlay-content p {
    font-size: 0.9rem;
    margin: 1rem 0;
}

.text-btn-accent {
    background: none;
    border: none;
    color: var(--primary-light);
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
}


/* --- Active Upload State --- */
.upload-list {
    margin-bottom: 2rem;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 10px;
}

.upload-list::-webkit-scrollbar {
    width: 4px;
}

.upload-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin-bottom: 0.75rem;
    text-align: left;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.file-row i {
    color: var(--secondary);
}

.file-row .name {
    flex: 1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-row .size {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.total-progress {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 700;
}

.progress-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* --- Success State --- */
.success-check {
    width: 100px;
    height: 100px;
    background: var(--glass-surface);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
    color: #10b981;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1), var(--glass-inner-glow);
}

.upload-success h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
}

.share-box {
    margin: 2.5rem 0;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    padding-left: 1.25rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 64px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.share-box input {
    background: none;
    border: none;
    color: var(--text-main);
    flex: 1;
    outline: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.share-box button {
    background: var(--primary);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.share-box button:hover {
    background: #4f46e5;
    transform: scale(1.05);
}

.secondary-btn {
    background: none;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* --- History Section --- */
.recent-section {
    padding: 6rem 0;
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.history-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
}

.history-card {
    background: var(--glass-surface);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    transition: 0.6s var(--spring-easing);
    box-shadow: var(--glass-inner-glow);
    position: relative;
    overflow: hidden;
}

/* Spotlight Effect for Cards */
.history-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.history-card:hover::before {
    opacity: 1;
}

.history-card * {
    position: relative;
    z-index: 2;
}

/* Bento Grid Spanning */
.history-card.large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 400px;
}

.history-card.wide {
    grid-column: span 2;
}

.history-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px) scale(1.01);
    background: rgba(255, 255, 255, 0.04);
}

.history-card:active {
    transform: translateY(-5px) scale(0.98);
}

.file-icon {
    width: 54px;
    height: 54px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.05);
}

.file-meta h4 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.file-meta span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 6rem;
    text-align: center;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    border-radius: 40px;
    transition: 0.3s;
}

.empty-state:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.03);
}

.empty-state i {
    margin-bottom: 1rem;
}

/* --- Footer --- */
footer {
    padding: 10rem 0 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand p {
    color: var(--text-dim);
    margin-top: 1.5rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

.link-col h4 {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.link-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.link-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .glass-card {
        padding: 3rem 1.5rem;
    }
}