* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A9EFF;
    --secondary-color: #00D9FF;
    --accent-color: #8B5CF6;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    background-image:
        linear-gradient(135deg, rgba(10, 10, 15, 0.95) 0%, rgba(5, 5, 8, 0.98) 100%);
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0f 0%, #050508 50%, #0a0a0f 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: welcomeFadeOut 0.8s ease-out 2.5s forwards;
    overflow: hidden;
}

.welcome-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(74, 158, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 217, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: welcomePulse 2s ease-in-out infinite;
    z-index: -1;
}

.welcome-content {
    text-align: center;
    z-index: 1;
    animation: welcomeSlideUp 1s ease-out;
}

.welcome-logo {
    margin-bottom: 3rem;
}

.logo-glow {
    font-size: 8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.logo-glow i {
    display: block;
}

.welcome-title {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
    position: relative;
}

.glitch-welcome {
    position: relative;
}

.glitch-welcome::before,
.glitch-welcome::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: glitchWelcome 0.3s ease-in-out infinite;
}

.glitch-welcome::before {
    left: -2px;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    animation-delay: 0.1s;
}

.glitch-welcome::after {
    left: 2px;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    animation-delay: 0.2s;
}

.welcome-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    letter-spacing: 0.1em;
    animation: subtitleFade 1.5s ease-out;
}

.welcome-loading {
    margin-top: 3rem;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 158, 255, 0.4), transparent);
    animation: loadingShine 1.5s ease-in-out infinite;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: 0%;
    animation: loadingProgress 2.5s ease-out forwards;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.4);
}

.loading-text {
    color: var(--text-gray);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    animation: loadingTextPulse 1s ease-in-out infinite;
}

@keyframes welcomeSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes welcomeFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes welcomePulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(74, 158, 255, 0.4),
            0 0 40px rgba(74, 158, 255, 0.25),
            0 0 60px rgba(0, 217, 255, 0.2);
    }

    50% {
        text-shadow: 0 0 30px rgba(74, 158, 255, 0.6),
            0 0 60px rgba(74, 158, 255, 0.4),
            0 0 90px rgba(0, 217, 255, 0.3);
    }
}

@keyframes glitchWelcome {

    0%,
    100% {
        opacity: 0;
    }

    10%,
    90% {
        opacity: 0.3;
    }
}

@keyframes subtitleFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@keyframes loadingShine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes loadingTextPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Hide main content during welcome */
body.welcome-active #mainHeader,
body.welcome-active #mainContent {
    opacity: 0 !important;
    pointer-events: none;
}

body.welcome-complete #mainHeader,
body.welcome-complete #mainContent {
    opacity: 1 !important;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }

    .logo-glow {
        font-size: 5rem;
    }

    .welcome-subtitle {
        font-size: 1.2rem;
    }

    .welcome-loading {
        width: 250px;
    }
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 0;
    overflow: hidden;
}

@keyframes backgroundShift {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    25% {
        opacity: 0.8;
        transform: scale(1.05);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }

    75% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* Particles Animation */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    animation: fall linear infinite;
    opacity: 0.6;
}

.particle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh) translateX(var(--drift, 0px));
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.particle.slow {
    animation-duration: 8s;
    width: 3px;
    height: 3px;
}

.particle.medium {
    animation-duration: 6s;
    width: 4px;
    height: 4px;
}

.particle.fast {
    animation-duration: 4s;
    width: 5px;
    height: 5px;
}

.particle.secondary {
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color);
}

.particle.accent {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(74, 158, 255, 0.3);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes headerGlow {

    0%,
    100% {
        border-bottom-color: rgba(74, 158, 255, 0.3);
        box-shadow:
            0 4px 25px rgba(74, 158, 255, 0.15),
            0 0 50px rgba(74, 158, 255, 0.08);
    }

    50% {
        border-bottom-color: rgba(74, 158, 255, 0.6);
        box-shadow:
            0 4px 40px rgba(74, 158, 255, 0.3),
            0 0 80px rgba(74, 158, 255, 0.2),
            0 0 120px rgba(0, 217, 255, 0.1);
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.logo h1 {
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 1.5rem;
    position: relative;
    padding: 0.5rem 1.5rem;
    border-radius: 15px;
    background: rgba(74, 158, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(74, 158, 255, 0.25);
}

@keyframes navGlow {

    0%,
    100% {
        box-shadow:
            0 0 25px rgba(74, 158, 255, 0.15),
            inset 0 0 25px rgba(74, 158, 255, 0.08);
        border-color: rgba(74, 158, 255, 0.3);
    }

    50% {
        box-shadow:
            0 0 40px rgba(74, 158, 255, 0.3),
            0 0 70px rgba(0, 217, 255, 0.25),
            inset 0 0 40px rgba(74, 158, 255, 0.2);
        border-color: rgba(74, 158, 255, 0.6);
    }
}

/* Keyframe cho hiệu ứng chữ phát sáng */
@keyframes textGlowAnimation {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Keyframe cho hiệu ứng flicker của nút */
@keyframes buttonFlicker {

    0%,
    19%,
    21%,
    100% {
        box-shadow: 0 0 15px var(--button-glow-color, var(--primary-color)),
            0 0 30px var(--button-glow-color-light, rgba(74, 158, 255, 0.4));
        border-color: var(--button-glow-color, var(--primary-color));
    }

    20% {
        box-shadow: 0 0 5px var(--button-glow-color, var(--primary-color)),
            0 0 10px var(--button-glow-color-light, rgba(74, 158, 255, 0.4));
        border-color: var(--button-glow-color-light, rgba(74, 158, 255, 0.4));
    }

    40% {
        box-shadow: 0 0 20px var(--button-glow-color, var(--primary-color)),
            0 0 40px var(--button-glow-color-light, rgba(74, 158, 255, 0.4));
        border-color: var(--button-glow-color, var(--primary-color));
    }

    60% {
        box-shadow: 0 0 10px var(--button-glow-color, var(--primary-color)),
            0 0 20px var(--button-glow-color-light, rgba(74, 158, 255, 0.4));
        border-color: var(--button-glow-color-light, rgba(74, 158, 255, 0.4));
    }
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.nav a:hover {
    color: var(--primary-color);
}

.nav a:active {
    transform: translateY(0);
}


/* Hero Section */
.hero {
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

h2 {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 1rem 0;
    font-weight: 300;
}

.description {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Executor Box */
.hero-visual {
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.executor-box {
    position: relative;
}

.code-window {
    background: rgba(5, 5, 8, 0.98);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.2);
}

@keyframes glow {

    0%,
    100% {
        box-shadow:
            0 0 30px rgba(74, 158, 255, 0.3),
            inset 0 0 30px rgba(74, 158, 255, 0.1);
    }

    50% {
        box-shadow:
            0 0 50px rgba(74, 158, 255, 0.5),
            inset 0 0 50px rgba(74, 158, 255, 0.2);
    }
}

.code-header {
    background: rgba(74, 158, 255, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(74, 158, 255, 0.2);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-title {
    margin-left: auto;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.code-content {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line {
    margin: 0.5rem 0;
}

.keyword {
    color: #ff79c6;
}

.function {
    color: #50fa7b;
}

.string {
    color: #f1fa8c;
}

.comment {
    color: #6272a4;
    font-style: italic;
}

.cursor {
    display: inline-block;
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Download Section */
.download-section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.download-card {
    background: rgba(5, 5, 8, 0.95);
    border: 2px solid rgba(74, 158, 255, 0.5);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.15);
}


.download-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.2);
}

.download-card.featured {
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 4px 25px rgba(139, 92, 246, 0.2);
}

.download-card.featured:hover {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-icon i {
    filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.3));
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.version {
    background: rgba(74, 158, 255, 0.2);
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.size {
    background: rgba(0, 217, 255, 0.2);
    color: var(--secondary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
}

.card-description {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.download-count {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.btn-download {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #3B82F6, #06B6D4);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: none;
}


.btn-download:hover {
    opacity: 0.85;
    border-color: rgba(74, 158, 255, 0.5);
}

.btn-download.premium:hover {
    border-color: rgba(139, 92, 246, 0.5);
}

.btn-download.premium {
    background: linear-gradient(90deg, #8B5CF6, #6366F1);
    border-color: rgba(139, 92, 246, 0.3);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(5, 5, 8, 0.9);
    border: 2px solid rgba(74, 158, 255, 0.4);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.1);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-icon i {
    filter: drop-shadow(0 0 10px rgba(74, 158, 255, 0.4));
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(5, 5, 8, 0.98);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid rgba(74, 158, 255, 0.4);
    color: var(--text-gray);
    box-shadow: 0 -4px 20px rgba(74, 158, 255, 0.1);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: -400px;
    background: rgba(74, 158, 255, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.4);
    z-index: 1000;
    transition: right 0.3s;
    font-weight: bold;
}

.notification.show {
    right: 20px;
}

/* Shop Game Banner */
.shop-game-banner {
    position: relative;
    padding: 4rem 0;
    background: rgba(74, 158, 255, 0.05);
    overflow: hidden;
    margin: 3rem 0;
    border-top: 1px solid rgba(74, 158, 255, 0.3);
    border-bottom: 1px solid rgba(74, 158, 255, 0.3);
}

@keyframes shopBannerGlow {

    0%,
    100% {
        box-shadow:
            0 0 50px rgba(74, 158, 255, 0.2),
            inset 0 0 50px rgba(74, 158, 255, 0.1);
        border-top-color: rgba(74, 158, 255, 0.5);
        border-bottom-color: rgba(74, 158, 255, 0.5);
    }

    50% {
        box-shadow:
            0 0 100px rgba(74, 158, 255, 0.4),
            0 0 150px rgba(0, 217, 255, 0.3),
            inset 0 0 80px rgba(74, 158, 255, 0.2);
        border-top-color: rgba(74, 158, 255, 0.8);
        border-bottom-color: rgba(74, 158, 255, 0.8);
    }
}


@keyframes shopBannerPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.shop-game-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.shop-game-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.shop-game-icon i {
    display: block;
}

@keyframes shopIconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-10px) rotate(5deg) scale(1.05);
    }

    50% {
        transform: translateY(-15px) rotate(0deg) scale(1.1);
    }

    75% {
        transform: translateY(-10px) rotate(-5deg) scale(1.05);
    }
}

.shop-game-title {
    position: relative;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.shop-title-text {
    position: relative;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 2;
    display: inline-block;
}

@keyframes shopTitleShine {

    0%,
    100% {
        filter: brightness(1) drop-shadow(0 0 20px rgba(74, 158, 255, 0.5));
    }

    50% {
        filter: brightness(1.5) drop-shadow(0 0 40px rgba(74, 158, 255, 0.8)) drop-shadow(0 0 60px rgba(0, 217, 255, 0.6));
    }
}

.shop-title-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            var(--primary-color) 0%,
            var(--secondary-color) 50%,
            var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    filter: blur(15px);
    z-index: 1;
    animation: shopTitleGlow 2s ease-in-out infinite;
}

@keyframes shopTitleGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.shop-game-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

@keyframes shopDescriptionPulse {

    0%,
    100% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
    }
}

.shop-game-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.shop-feature {
    padding: 0.8rem 1.5rem;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-feature i {
    color: var(--primary-color);
}

.shop-feature:nth-child(1) {
    animation-delay: 0s;
}

.shop-feature:nth-child(2) {
    animation-delay: 0.3s;
}

.shop-feature:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes shopFeatureFloat {

    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 20px rgba(74, 158, 255, 0.2);
    }

    50% {
        transform: translateY(-5px);
        box-shadow: 0 5px 30px rgba(74, 158, 255, 0.4);
    }
}

.shop-game-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

@keyframes shopBtnPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 30px rgba(74, 158, 255, 0.5),
            0 0 60px rgba(74, 158, 255, 0.3),
            inset 0 0 30px rgba(255, 255, 255, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 50px rgba(74, 158, 255, 0.8),
            0 0 100px rgba(74, 158, 255, 0.5),
            0 0 150px rgba(0, 217, 255, 0.3),
            inset 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

.shop-game-btn:hover {
    opacity: 0.9;
}

.shop-btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shopBtnGlowRotate 3s linear infinite;
    z-index: -1;
}

@keyframes shopBtnGlowRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.shop-btn-text {
    position: relative;
    z-index: 2;
}

.shop-btn-arrow {
    position: relative;
    z-index: 2;
    font-size: 1.5rem;
}

@keyframes shopArrowMove {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

.shop-game-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shop-game-particles .particle {
    position: absolute;
    font-size: 2rem;
    animation: shopParticleFloat 4s ease-in-out infinite;
    opacity: 0.6;
    filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.3));
    color: var(--primary-color);
}

.shop-game-particles .particle i {
    display: block;
}

.shop-game-particles .particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shop-game-particles .particle:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 0.8s;
}

.shop-game-particles .particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 1.6s;
}

.shop-game-particles .particle:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 2.4s;
}

.shop-game-particles .particle:nth-child(5) {
    top: 50%;
    left: 5%;
    animation-delay: 3.2s;
}

@keyframes shopParticleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translateY(-20px) rotate(90deg) scale(1.2);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-30px) rotate(180deg) scale(1.1);
        opacity: 1;
    }

    75% {
        transform: translateY(-20px) rotate(270deg) scale(1.2);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .shop-game-title {
        font-size: 2.5rem;
    }

    .shop-game-icon {
        font-size: 4rem;
    }

    .shop-game-btn {
        font-size: 1.2rem;
        padding: 1.2rem 2rem;
    }

    .shop-game-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: rgba(5, 5, 8, 0.8);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(74, 158, 255, 0.15);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(74, 158, 255, 0.3));
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.info-card p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.contact-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    word-break: break-all;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.contact-form-wrapper {
    background: rgba(5, 5, 8, 0.8);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 15px;
    padding: 2.5rem;
}

.contact-form-wrapper h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.2);
    background: rgba(10, 10, 15, 0.95);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem;
}


.btn-submit:hover {
    opacity: 0.9;
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    position: relative;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: 1px solid rgba(74, 158, 255, 0.3);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    overflow: hidden;
    box-shadow: none;
}

.btn-login:hover {
    opacity: 0.85;
    border-color: rgba(74, 158, 255, 0.5);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Admin Button */
.btn-admin {
    --button-glow-color: var(--accent-color);
    --button-glow-color-light: rgba(139, 92, 246, 0.4);
    position: relative;
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-block;
    margin-right: 0.5rem;
}

.btn-admin:hover {
    background: rgba(139, 92, 246, 0.3);
    opacity: 0.9;
}

.btn-logout {
    --button-glow-color: #ff4757;
    --button-glow-color-light: rgba(255, 71, 87, 0.4);
    position: relative;
    background: rgba(255, 0, 0, 0.2);
    color: #ff4757;
    border: 2px solid #ff4757;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.btn-logout:hover {
    background: #ff4757;
    color: white;
    opacity: 0.9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(5, 5, 8, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(74, 158, 255, 0.3);
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(74, 158, 255, 0.2);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-form .form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.8);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

.auth-form .form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.2);
    background: rgba(10, 10, 15, 0.95);
}

.auth-form .form-group input::placeholder {
    color: var(--text-gray);
}

.auth-form .btn-submit {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-form .btn-submit:hover {
    opacity: 0.9;
}

.auth-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .glitch {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav {
        display: none;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .auth-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .user-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
}

/* Music Player */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: rgba(5, 5, 8, 0.95);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(74, 158, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    min-width: 200px;
}

.music-player:hover {
    border-color: var(--primary-color);
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.music-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 3px 15px rgba(74, 158, 255, 0.4);
}

.music-toggle:hover {
    opacity: 0.9;
}

.music-toggle:active {
    transform: scale(0.95);
}

.music-toggle.paused {
    background: rgba(255, 255, 255, 0.2);
}

.music-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.music-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

#volumeControl {
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: rgba(74, 158, 255, 0.2);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

#volumeControl::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

#volumeControl::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

@media (max-width: 768px) {
    .music-player {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        padding: 0.8rem;
    }

    .music-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .music-title {
        font-size: 0.8rem;
    }
}

/* Profile Section */
.profile-section {
    padding: 6rem 0;
}

.profile-content {
    max-width: 900px;
    margin: 0 auto;
}

.profile-card {
    background: rgba(5, 5, 8, 0.9);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(74, 158, 255, 0.2);
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(74, 158, 255, 0.2);
}

.profile-avatar {
    font-size: 5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 12px rgba(74, 158, 255, 0.3));
}

.profile-header h3 {
    font-size: 2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.profile-role {
    margin-top: 1rem;
}

.badge-admin {
    display: inline-block;
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    font-weight: bold;
}

.badge-user {
    display: inline-block;
    background: rgba(74, 158, 255, 0.2);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--primary-color);
    font-weight: bold;
}

.profile-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.profile-form-card {
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s;
}

.profile-form-card:hover {
    border-color: var(--primary-color);
}

.profile-form-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-form-card .form-group {
    margin-bottom: 1.5rem;
}

.profile-form-card .form-group label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.profile-form-card .form-group input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(5, 5, 8, 0.8);
    border: 2px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
}

.profile-form-card .form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.2);
    background: rgba(5, 5, 8, 0.95);
}

.profile-form-card .form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.profile-form-card .form-group input::placeholder {
    color: var(--text-gray);
}

.btn-profile {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-profile:hover {
    opacity: 0.9;
}

.btn-profile:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 768px) {
    .profile-card {
        padding: 2rem 1.5rem;
    }

    .profile-forms {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-avatar {
        font-size: 4rem;
    }
}