/* THVAX - GLOBAL STYLES (Synthar Design System) */

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #146ef5;
    --primary-glow: rgba(20, 110, 245, 0.5);
    --accent: #146ef5;
    --accent-rgb: 20, 110, 245;
    --accent-glow: rgba(20, 110, 245, 0.4);
    --accent-dim: rgba(20, 110, 245, 0.12);
    --bg-dark: #030105;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(3, 1, 5, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(35px);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% -20%, var(--accent-dim) 0%, transparent 70%),
                      radial-gradient(circle at 10% 90%, rgba(20, 110, 245, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

canvas#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- UNIVERSAL WATERFALL BACKGROUND (From Mods) --- */
.waterfall-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -100;
    background-color: #030105;
}

.animated-glow {
    animation: waterfall 12s linear infinite;
    transition: animation-duration 0.8s ease;
}

.waterfall-bg.fast-mode .animated-glow {
    animation-duration: 4s !important;
    filter: brightness(1.5) blur(120px) !important;
}

@keyframes waterfall {
    0% { transform: translate(30%, -30%) scale(1); opacity: 0; }
    20% { opacity: 0.25; }
    80% { opacity: 0.2; }
    100% { transform: translate(-100%, 100%) scale(1.5); opacity: 0; }
}

/* Ensure all main content is above canvas */
.navbar, .page-content-reveal, .split-dashboard, .info-section, .footer, main {
    position: relative;
    z-index: 10;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; /* Increased from 56px */
    z-index: 1000;
    background: rgba(3, 1, 5, 0.45); /* High transparency for dreamy look */
    backdrop-filter: var(--glass-blur) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-logo img {
    height: 44px; /* Increased from 38px */
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px; /* Increased from 32px */
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem; /* Increased from 0.78rem */
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px; /* Increased padding */
    border-radius: 8px;
    letter-spacing: 0.3px;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-cta {
    background: var(--primary);
    color: #fff;
    padding: 10px 24px; /* Increased from 6px 16px */
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem; /* Increased from 0.85rem */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.nav-btn-login {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem; /* Increased from 0.78rem */
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 14px;
}

.nav-btn-login:hover {
    color: #fff;
}

/* --- LANGUAGE SWITCHER PREMIUM --- */
.lang-switcher-premium {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.lang-switcher-premium:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(15, 81, 213, 0.2);
}

.lang-flag-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.lang-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* --- DYNAMIC ISLAND (NAV PILL) --- */
.nav-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 99px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- FOOTER --- */
/* --- UPDATED FOOTER STYLE (Synthar Premium) --- */
.footer.mod-style {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding: 80px 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.footer.mod-style .footer-starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 1; /* High visibility blue snow */
}

.footer.mod-style .footer-grid {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 80px;
}

@media (max-width: 900px) {
    .footer.mod-style .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        left: 0;
    }
}

.footer.mod-style .footer-nav-box,
.footer.mod-style .footer-communities {
    margin-top: 45px;
}

.footer.mod-style .footer-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(15, 81, 213, 0.8));
    transition: transform 0.3s;
}

.footer.mod-style .footer-logo:hover {
    transform: scale(1.05);
}

.footer.mod-style p {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.6);
}

.footer.mod-style h3 {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer.mod-style .social-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.7);
    width: 44px;
    height: 44px;
    box-sizing: border-box;
}

.footer.mod-style .social-link:hover {
    background: rgba(77, 143, 255, 0.15);
    border-color: rgba(77, 143, 255, 0.4);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(77, 143, 255, 0.3);
    color: #ffffff;
}

.footer.mod-style .social-link svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    display: block;
    fill: currentColor;
    transition: fill 0.3s;
}

.footer.mod-style .social-link:hover svg {
    fill: currentColor;
}

.footer.mod-style .footer-nav-box h3,
.footer.mod-style .footer-links a {
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
    font-family: inherit;
    margin-bottom: 12px;
    display: block;
}

.footer.mod-style .footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer.mod-style .footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s, transform 0.3s;
}

.footer.mod-style .footer-links a:hover {
    color: #fff !important;
    transform: translateX(4px);
}

.footer.mod-style .copyright-bar {
    position: relative;
    z-index: 2;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 25px;
    text-align: center;
}


/* --- REVEAL ANIMATIONS --- */
.reveal, .reveal-slow, .reveal-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.visible, .reveal-slow.visible, .reveal-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slow { transition-duration: 1.2s; }
/* --- HERO SPLIT SECTION --- */
.mods-hero-split {
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.hero-left {
    max-width: 600px;
}

.hero-logo-text {
    font-size: clamp(3.2rem, 7vw, 5.2rem);
    font-weight: 900;
    line-height: 0.88;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    flex-direction: column;
    letter-spacing: -2px;
}

.hero-logo-text span:first-child {
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    letter-spacing: -1px;
}

.hero-logo-text span {
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-logo-text span:nth-child(2) {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 800;
    font-size: 0.85em;
    margin-top: 4px;
}

.gradient-text {
    background: linear-gradient(to right, #fff 20%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    font-weight: 900;
}

.hero-logo-text:hover span:first-child {
    transform: translateX(10px);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}

.hero-logo-text:hover span:nth-child(2) {
    transform: translateX(20px);
}

.hero-logo-text:hover .gradient-text {
    transform: translateX(30px);
    filter: drop-shadow(0 0 30px var(--primary));
}

.hero-subtitle-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 28px 0 44px;
    max-width: 520px;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.2px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-btn.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 25px var(--primary-glow);
}

.hero-btn.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hero-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.15);
}

/* --- BENTO GRID SYSTEM --- */
.info-section {
    padding: 120px 40px;
    background: #000;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
    max-width: 1400px;
    margin: 60px auto 0;
}

.bento-card {
    grid-column: span 6;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    overflow: hidden;
}

.bento-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
}

.bento-card.large-gradient {
    background: linear-gradient(135deg, #0f51d5, #08328c);
    border: none;
}

.bento-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- 3D ORBITALS & ANIMATIONS --- */
.hero-orb-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-core {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at 30% 30%, #4d8fff, #0f51d5);
    border-radius: 50%;
    box-shadow: 0 0 60px var(--primary-glow);
    animation: orbPulse 4s infinite alternate;
}

@keyframes orbPulse {
    from { transform: scale(1); filter: brightness(1); }
    to { transform: scale(1.1); filter: brightness(1.3); }
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }
    .hero-left {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .bento-card {
        grid-column: span 12 !important;
    }
}

/* --- MOD CARD USER ROW --- */
.card-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}
.card-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(15, 81, 213, 0.2);
    border: 1px solid rgba(15, 81, 213, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary, #0f51d5);
    overflow: hidden;
}
.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-username {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}
.card-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    margin-left: auto;
}
.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 10;
}
.card-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}
.card-action-btn svg {
    width: 16px;
    height: 16px;
}
.card-action-btn:hover {
    transform: translateY(-2px);
}
.card-action-btn.blue-btn:hover {
    background: var(--primary, #0f51d5);
    border-color: var(--primary, #0f51d5);
    color: #fff;
    box-shadow: 0 4px 15px rgba(15, 81, 213, 0.4);
}
.card-action-btn.delete-btn {
    border-color: rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 0.8);
}
.card-action-btn.delete-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* --- CONTAINER CENTERING --- */
.store-section, .mods-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- BASE MODS GRID & CARDS (Synthar System) --- */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.mod-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: var(--glass-blur) saturate(160%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(160%);
    position: relative;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mod-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 30px var(--accent-glow);
}

.card-img, .card-img-box {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #0a0a0c;
}

.card-img img, .card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mod-card:hover .card-img img, .mod-card:hover .card-img-box img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 5;
}

.card-body, .card-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title, .card-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc, .card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-row, .card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-uploader {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.uploader-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.uploader-name {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    pointer-events: none;
}
.mod-card:hover .play-overlay {
    opacity: 1;
}
.play-btn-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 81, 213, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(15, 81, 213, 0.5);
}

.play-btn-circle svg {
    width: 20px;
    height: 20px;
    color: #000;
    margin-left: 3px;
}

.mod-card:hover .play-btn-circle {
    transform: scale(1);
}

/* --- SHARE PAGE & UPLOAD INTERFACE --- */
.share-page {
    padding: 120px 40px 80px;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at 50% 0%, rgba(15, 81, 213, 0.15), transparent 70%);
}

.share-header {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.share-header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #fff;
}

.share-header h1 span {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur) saturate(150%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 50px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 40px var(--accent-dim);
}

.form-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    width: 100%;
}

.form-left, .form-right {
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .form-grid { grid-template-columns: 1fr; gap: 40px; }
    .glass-card { padding: 30px; }
}

.form-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 81, 213, 0.3), transparent);
}

.input-wrapper {
    margin-bottom: 25px;
}

.input-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.chic-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 16px 20px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.chic-input:focus {
    border-color: var(--primary);
    background: rgba(15, 81, 213, 0.05);
    box-shadow: 0 0 20px rgba(15, 81, 213, 0.1);
}

.chic-textarea {
    min-height: 140px;
    resize: vertical;
}

.link-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.02);
    border-radius: 14px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,0.05);
}

.link-item svg {
    width: 20px;
    color: rgba(255,255,255,0.3);
}

.link-item .chic-input {
    background: transparent;
    border: none;
    padding-left: 0;
}

.chic-upload {
    background: rgba(255,255,255,0.02);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.chic-upload:hover {
    background: rgba(15, 81, 213, 0.04);
    border-color: var(--primary);
}

.chic-upload svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    opacity: 0.6;
}

.chic-upload span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}

.file-selected-text {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 99px;
    display: none;
}

.action-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
}

.premium-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 18px 60px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px var(--primary-glow);
}

.premium-submit:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px var(--primary-glow);
    filter: brightness(1.1);
}

/* --- LOADING OVERLAY & PROGRESS --- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 1, 5, 0.98);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.load-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(15, 81, 213, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 30px;
}

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

.load-text {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #fff;
}

.progress-container {
    width: 300px;
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

.progress-percent {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary);
}

#miniUploadWidget, .thvax-notification {
    position: relative; /* Changed from fixed to allow stacking in container */
    width: 340px;
    background: rgba(8, 8, 12, 0.7);
    border: 1px solid rgba(15, 81, 213, 0.4);
    border-left: 5px solid #0f51d5;
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 20px;
    padding: 22px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.6), 
        0 0 40px rgba(15, 81, 213, 0.1),
        inset 0 0 20px rgba(15, 81, 213, 0.05);
    animation: thvax-notification-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: all;
    font-family: 'Outfit', sans-serif;
    margin-top: 10px; /* Gap between stacked notifications */
}

/* Ensure global upload widget still has fixed positioning as it might be standalone */
#thvax-global-upload-widget {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
}

@keyframes thvax-notification-enter {
    0% { 
        transform: translate(50px, 150%) scale(0.5) rotate(15deg); 
        opacity: 0; 
        filter: blur(20px) brightness(3); 
    }
    50% {
        transform: translate(-20px, -15px) scale(1.05) rotate(-3deg);
        filter: blur(5px) brightness(1.5);
    }
    80% {
        transform: translate(5px, 5px) scale(0.98) rotate(1deg);
    }
    100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
        opacity: 1; 
        filter: blur(0) brightness(1); 
    }
}

@keyframes thvax-notification-exit {
    0% { transform: scale(1); opacity: 1; filter: blur(0); }
    100% { transform: translateY(50px) scale(0.8); opacity: 0; filter: blur(20px); }
}

.thvax-notification.closing {
    animation: thvax-notification-exit 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.thvax-notification-title {
    color: #0f51d5;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thvax-notification-msg {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}


/* --- SHARE PAGE BACKGROUND STYLES --- */
.bg-elements {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: transparent;
}

.bg-icon {
    position: absolute;
    bottom: -10vh;
    color: var(--primary);
    opacity: 0.1;
    animation: floatUp var(--d) linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
    20% { opacity: 0.15; }
    80% { opacity: 0.15; }
    100% { transform: translateY(-110vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* --- REVEAL ANIMATIONS (GLOBAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slow {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-slow.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MOBILE HAMBURGER MENU — GLOBAL
   ============================================ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 1100;
    flex-shrink: 0;
}

.nav-hamburger:hover {
    background: rgba(20, 110, 245, 0.15);
    border-color: rgba(20, 110, 245, 0.4);
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* X state when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay drawer */
.nav-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 990;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-mobile-overlay.open {
    opacity: 1;
}

.nav-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(5, 5, 8, 0.97);
    border-left: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(40px) saturate(180%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    padding: 90px 28px 40px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.nav-mobile-drawer.open {
    transform: translateX(0);
}

.nav-mobile-drawer .mob-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.nav-mobile-drawer .mob-nav-link:hover,
.nav-mobile-drawer .mob-nav-link.active {
    background: rgba(20, 110, 245, 0.1);
    border-color: rgba(20, 110, 245, 0.25);
    color: #fff;
}

.nav-mobile-drawer .mob-nav-link i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 0.9rem;
}

.nav-mobile-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 10px 0;
}

.nav-mobile-drawer .mob-cta {
    display: block;
    background: var(--primary);
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    margin-top: 8px;
    box-shadow: 0 8px 25px rgba(20, 110, 245, 0.35);
    transition: all 0.3s ease;
}

.nav-mobile-drawer .mob-cta:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.nav-mobile-drawer .mob-lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
    margin-top: 4px;
}

.nav-mobile-drawer .mob-lang-btn:hover {
    background: rgba(20,110,245,0.1);
    border-color: rgba(20,110,245,0.3);
}

/* ============================================
   RESPONSIVE — MOBILE BREAKPOINTS
   ============================================ */

@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .nav-hamburger { display: flex; }
    .nav-links { display: none !important; }
    .nav-right .nav-btn-login,
    .nav-right .nav-cta,
    .nav-right .lang-switcher-premium { display: none !important; }

    .nav-inner { padding: 0 18px; }

    /* Hero sections */
    .mods-hero-split { height: auto; padding: 100px 0 60px; }
    .hero-container { padding: 0 20px; gap: 40px; }
    .hero-logo-text { font-size: clamp(2.4rem, 10vw, 3.5rem); }
    .hero-subtitle-desc { font-size: 0.95rem; margin: 20px 0 30px; }
    .hero-orb-wrapper { width: 260px; height: 260px; }
    .orb-core { width: 100px; height: 100px; }

    /* Bento grid */
    .bento-grid { gap: 16px; }
    .bento-card { padding: 28px 20px; }

    /* Info / share */
    .info-section { padding: 60px 20px; }
    .share-page { padding: 90px 16px 60px; }
    .glass-card { padding: 24px 18px; border-radius: 20px; }
    .share-header h1 { font-size: 2rem; }

    /* Mod grid */
    .mods-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
    .store-section, .mods-section { padding: 24px 14px; }

    /* Footer */
    .footer.mod-style { padding: 50px 20px 30px; }
    .footer.mod-style .footer-grid { padding: 0; }

    /* Buttons */
    .hero-btn { padding: 13px 22px; font-size: 0.9rem; }
    .premium-submit { padding: 15px 30px; width: 100%; }
    .action-footer { flex-direction: column; align-items: center; }

    /* Lang switcher (keep in desktop nav-right hidden, mobile uses drawer) */
}

@media (max-width: 480px) {
    .mods-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-btn { width: 100%; justify-content: center; }
    .card-img, .card-img-box { height: 180px; }
    .bento-card h3 { font-size: 1.2rem; }
    .bento-card p { font-size: 0.85rem; }
    .nav-logo span { font-size: 1rem; }
    .nav-logo img { height: 34px; }
}

