/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary: #FFBF00;
    --secondary: #1a1a1a;
    --accent: #1B5E20;
    --dark: #0a0a0a;
    --dark-light: #121212;
    --dark-card: #1a1a1a;
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --gradient-primary: linear-gradient(135deg, #FFBF00 0%, #FFD700 100%);
    --gradient-gold: linear-gradient(135deg, #FFBF00 0%, #CC9900 100%);
    --shadow-glow: 0 0 30px rgba(255, 191, 0, 0.3);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 191, 0, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(27, 94, 32, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 191, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.app-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow-x: hidden;
}

/* Header */
.header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 191, 0, 0.2);
    padding: 12px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    flex-shrink: 0;
}

.logo span {
    white-space: nowrap;
}

.logo i {
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.logo .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-deposit {
    background: var(--gradient-gold);
    color: #1a1a1a;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 191, 0, 0.3);
    white-space: nowrap;
}

.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 191, 0, 0.5);
}

.user-profile {
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    filter: drop-shadow(0 0 10px var(--primary));
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px 15px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    padding: 0 10px;
    line-height: 1.5;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.game-card {
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 191, 0, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.game-card:hover::before {
    opacity: 0.05;
}

.game-image {
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.game-card:hover .game-img {
    transform: scale(1.1);
}

.game-icon {
    font-size: 3.5rem;
    z-index: 2;
    transition: all 0.4s ease;
}

.game-card:hover .game-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px currentColor);
}

.bacbo-icon {
    color: #FFBF00;
}

.aviator-icon {
    color: #FFD700;
}

.baccarat-icon {
    color: #1B5E20;
}

.roleta-icon {
    color: #FFBF00;
}

/* Mini Chart */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
    margin-top: 10px;
    padding: 5px 0;
}

.chart-bar {
    flex: 1;
    background: rgba(255, 191, 0, 0.3);
    border-radius: 2px;
    transition: height 0.8s ease, background 0.3s ease, box-shadow 0.3s ease;
    min-width: 8px;
    height: 50%;
}

.chart-bar.active {
    background: var(--primary);
    box-shadow: 0 0 8px rgba(255, 191, 0, 0.5);
}

.game-card:hover .chart-bar {
    background: rgba(255, 191, 0, 0.5);
}

.game-card:hover .chart-bar.active {
    background: var(--primary);
    box-shadow: 0 0 12px rgba(255, 191, 0, 0.7);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, var(--dark-card) 100%);
}

.game-info {
    padding: 12px 15px;
    position: relative;
    z-index: 2;
}

.game-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin-bottom: 3px;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.btn-enter {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    padding: 12px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-enter {
    color: #1a1a1a;
}

.btn-enter:hover {
    box-shadow: 0 0 20px rgba(255, 191, 0, 0.5);
    transform: scale(1.02);
}

/* Tutorial Section */
.tutorial-section {
    text-align: center;
    margin-top: 30px;
}

.btn-tutorial {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-tutorial:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 25px rgba(255, 191, 0, 0.4);
}

/* Tutorial Page Content */
.tutorial-page-content {
    max-width: 800px;
    margin: 0 auto;
}

.tutorial-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.tutorial-important {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 191, 0, 0.1);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.tutorial-important h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutorial-important ul {
    list-style: none;
    padding: 0;
}

.tutorial-important li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.tutorial-important li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
}

.tutorial-cta {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.tutorial-cta p {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 20px;
}

.btn-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-start:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 191, 0, 0.5);
}

/* Tutorial Content (legacy) */
.tutorial-content {
    margin-top: 40px;
    padding: 30px 20px;
    background: var(--dark-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 191, 0, 0.15);
}

.tutorial-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tutorial-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.tutorial-step {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(255, 191, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-content h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tutorial-video {
    text-align: center;
    padding: 25px;
    background: rgba(255, 191, 0, 0.05);
    border-radius: 15px;
    border: 1px dashed rgba(255, 191, 0, 0.3);
}

.video-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.video-description i {
    color: var(--primary);
}

.btn-video {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    border-radius: 12px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-video:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

.btn-video i {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .tutorial-steps {
        grid-template-columns: 1fr;
    }
    
    .tutorial-title {
        font-size: 1.2rem;
    }
    
    .step-content h4 {
        font-size: 0.9rem;
    }
    
    .step-content p {
        font-size: 0.8rem;
    }
    
    .video-description {
        flex-direction: column;
        font-size: 0.85rem;
    }
}

/* Footer */
.footer {
    background: var(--dark-card);
    border-top: 3px solid var(--primary);
    padding: 25px 15px;
    margin-top: 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stat-item i {
    color: var(--primary);
    font-size: 1rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 191, 0, 0.3), transparent);
    margin: 15px 0;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }
    
    .logo {
        font-size: 1rem;
        gap: 6px;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .btn-deposit {
        padding: 8px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .btn-deposit i {
        font-size: 0.8rem;
    }
    
    .user-profile {
        font-size: 1.5rem;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .games-grid {
        gap: 12px;
    }
    
    .game-image {
        height: 100px;
    }
    
    .game-icon {
        font-size: 2.8rem;
    }
    
    .game-info {
        padding: 10px 12px;
    }
    
    .game-info h3 {
        font-size: 0.9rem;
    }
    
    .game-info p {
        font-size: 0.7rem;
    }
    
    .mini-chart {
        height: 25px;
        margin-top: 8px;
    }
    
    .btn-enter {
        padding: 10px;
        font-size: 0.85rem;
        margin: 0 10px 10px;
    }
    
    .footer {
        padding: 20px 12px;
    }
    
    .footer-stats {
        gap: 15px;
    }
    
    .stat-item {
        font-size: 0.75rem;
    }
    
    .stat-item i {
        font-size: 0.85rem;
    }
}