:root {
    --primary: #00ffcc; /* Neon Mint */
    --secondary: #ff00ff; /* Electric Magenta */
    --accent: #7000ff; /* Deep Violet */
    --bg-dark: #08080c;
    --bg-card: rgba(15, 15, 25, 0.4);
    --glass-bg: rgba(10, 10, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f5;
    --text-muted: #8e8e9c;
    --font-main: 'Inter', sans-serif;
    --font-title: 'Syncopate', sans-serif;
}

/* Background Animation Container */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation: orbMove1 35s infinite ease-in-out alternate;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: var(--secondary);
    bottom: -15%;
    right: -10%;
    animation: orbMove2 45s infinite ease-in-out alternate-reverse;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: 30%;
    left: 40%;
    animation: orbMove3 40s infinite linear alternate;
}

@keyframes orbMove1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    25% { transform: translate3d(80vw, 20vh, 0) scale(1.2); }
    50% { transform: translate3d(40vw, 80vh, 0) scale(0.8); }
    75% { transform: translate3d(-10vw, 40vh, 0) scale(1.1); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes orbMove2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(-70vw, -50vh, 0) scale(1.3); }
    66% { transform: translate3d(-20vw, -80vh, 0) scale(0.9); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes orbMove3 {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(30vw, -30vh, 0) rotate(180deg) scale(1.5); }
    100% { transform: translate3d(-30vw, 30vh, 0) rotate(360deg) scale(1); }
}

/* Digital Scanline Effect */
.bg-animation::after {
    display: none;
}

/* Digital Grid with Motion */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 204, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    animation: gridScroll 60s linear infinite;
}

@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Remove old body::before grid */
body::before { display: none; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

/* Header & Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary);
}

/* Title Section */
.header-section {
    padding: 80px 0 40px;
    text-align: center;
}

.title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 8vw, 5rem);
    text-transform: uppercase;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 0.3));
    margin-bottom: 20px;
    letter-spacing: -2px;
}

/* Platform Buttons */
.platform-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.platform-btn {
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.platform-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.platform-btn:hover::before {
    left: 100%;
}

.platform-btn:hover {
    background: var(--glass-border);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    transform: translateY(-2px);
}

.platform-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

.sales-btn {
    background: linear-gradient(45deg, #ff0088, #ff8c00) !important;
    border: none !important;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 80px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 255, 0.1);
}

.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-title {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    margin: 0;
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 0 15px var(--accent);
    text-transform: uppercase;
}

/* Admin Button */
.admin-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 20px var(--secondary);
    transform: rotate(90deg);
}

/* Sell Link Button Styling */
.sell-link {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px;
}

.sell-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sell-btn-modern i {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.sell-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.sell-btn-modern:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 255, 204, 0.4);
    color: white;
}

.sell-btn-modern:hover i {
    transform: rotate(90deg) scale(1.2);
}

.sell-btn-modern:hover::before {
    left: 100%;
}

.sell-btn-modern:active {
    transform: translateY(-2px) scale(0.98);
}

/* Modal Styling */
img:not([src]), img[src=""], img[src="undefined"] {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-overlay.active {
    display: flex !important;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 100px rgba(112, 0, 255, 0.2);
    padding: 40px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal-title {
    font-family: var(--font-title);
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
}

.game-price {
    color: #ff8c00 !important;
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 1.3rem !important;
    padding: 12px !important;
    margin: 10px 15px 15px !important;
    background: rgba(255, 140, 0, 0.1) !important;
    border: 1px solid rgba(255, 140, 0, 0.2) !important;
    border-radius: 12px !important;
    display: block !important;
}

.modal-price {
    background: rgba(255, 140, 0, 0.1);
    color: #ff8c00;
    border: 1px solid rgba(255, 140, 0, 0.2);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 10px;
    border-radius: 12px;
    margin: 15px 0;
}

.modal-link {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    border: none;
    border-radius: 12px;
}

/* About Page Styles */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 40px;
}

.content-block {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.content-block.glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.update-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    text-align: center;
    font-family: var(--font-title);
    color: var(--primary);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin: 40px 0 30px;
    text-transform: uppercase;
}

.content-block h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-family: var(--font-title);
    font-size: 1.5rem;
}

.highlight {
    color: var(--accent);
}

.contact-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .top-nav { padding: 12px 16px; flex-direction: column; gap: 12px; top: env(safe-area-inset-top); }
    .nav-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .nav-links a { font-size: 0.8rem; letter-spacing: 0.5px; padding: 4px 0; }
    .nav-social { gap: 10px; }
    .social-icon { width: 32px; height: 32px; }
    .header-section { padding: 50px 0 24px; }
    .games-grid { grid-template-columns: 1fr; }
    .content-block { padding: 25px; }
    .admin-btn { width: 44px; height: 44px; bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .top-nav { padding: 10px 12px; }
    .nav-links { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; gap: 14px; justify-content: flex-start; width: 100%; padding-bottom: 6px; }
    .nav-links::-webkit-scrollbar { height: 0; }
    .nav-social { display: none; }
}

/* Digital Effects */
@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary); }
    50% { box-shadow: 0 0 20px var(--primary); }
    100% { box-shadow: 0 0 5px var(--primary); }
}

.loading {
    color: var(--primary);
    font-family: var(--font-title);
    letter-spacing: 4px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}
