:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --bg-dark: #000;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #22c55e;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    background: #000;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dashboard {
    width: 100%;
    max-width: 900px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.5rem;
}

.status-online {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-offline {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.125rem;
    font-weight: 600;
}

.file-list-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.file-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.file-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.file-icon {
    margin-right: 1rem;
    color: var(--primary-color);
}

.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}

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

.dashboard {
    animation: fadeIn 0.6s ease-out;
}

/* SaaS Specific Styles */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: var(--bg-dark);
}

.sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: all 0.3s;
}

.main-content {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .layout-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 1rem 2rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .sidebar .logo {
        margin: 0;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        gap: 1.5rem;
        padding-bottom: 0.5rem;
    }
    
    .nav-item a span {
        display: none;
    }
    
    .main-content {
        padding: 1.5rem;
    }
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-item a:hover, .nav-item.active a {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

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

.game-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.5rem 0;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    opacity: 0.9;
}

.auth-card {
    width: 450px;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Advanced Professional Landing Page Styles */
:root {
    --fs-h1: clamp(2.5rem, 8vw, 5rem);
    --fs-h2: clamp(2rem, 5vw, 3.5rem);
    --fs-body: clamp(1rem, 2vw, 1.125rem);
}

/* Ultra-Premium Minimalist Style */
body {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Animated Mesh Gradient Background */
.bg-glow {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate;
}

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

.hero {
    width: 100%;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin-bottom: 2.5rem;
    color: #fff;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #94a3b8;
    max-width: 650px;
    margin: 0 auto 4rem;
    font-weight: 400;
}

.btn-primary {
    background: #fff;
    color: #000;
    padding: 1.5rem 4rem;
    border-radius: 100px;
    font-size: 1.125rem;
    font-weight: 800;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255,255,255,0.1);
}

.feature-section {
    padding: 12rem 5%;
    position: relative;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: left;
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: block;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.feature-card p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Ticker Style */
.live-wins {
    background: rgba(255,255,255,0.03);
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    white-space: nowrap;
}

.ticker-wrap {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

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

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.85rem;
    color: #4ade80;
    font-weight: 600;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating-element {
    position: absolute;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
    opacity: 0.2;
}

.game-showcase {
    padding: 10rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card-3d {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 3rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.game-card-3d:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-20px);
}

.game-card-3d img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    transition: transform 0.5s;
}

/* Comprehensive Responsiveness Fix */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

@media (max-width: 768px) {
    .nav-glass {
        padding: 1rem 1.5rem;
        flex-direction: row; /* Manter logo e botões na mesma linha se possível */
        justify-content: space-between;
    }
    
    .nav-glass nav {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-content div[style*="display: flex"] {
        flex-direction: column !important;
        padding: 0 2rem;
    }

    .game-card-3d img {
        width: 120px;
        height: 120px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
}
