/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ffd700;
    --primary-dark: #ccac00;
    --secondary: #1e90ff;
    --accent: #ff4d4d;
    --background: #0f0f1a;
    --surface: #1a1a2e;
    --surface-light: #252542;
    --text: #ffffff;
    --text-muted: #9999aa;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(30, 144, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 10%, rgba(255, 107, 53, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a15 0%, #1a1a2e 100%);
    min-height: 100vh;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

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

/* Navigation */
.main-nav {
    background: rgba(10, 10, 21, 0.95);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), rgba(0, 212, 255, 0.3), transparent) 1;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.3),
        0 2px 10px rgba(255, 215, 0, 0.1) inset;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.2), 
        rgba(30, 144, 255, 0.2), 
        transparent
    );
}

.logo {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ff6b35, #00d4ff, #ffd700);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    position: relative;
    transition: all 0.3s ease;
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { 
        background-position: 0% 50%; 
        text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    }
    50% { 
        background-position: 100% 50%; 
        text-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 60px rgba(0, 212, 255, 0.3);
    }
}

.logo:hover {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
}

.balance {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 15px 30px;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 2px 10px rgba(255, 215, 0, 0.1) inset;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.balance:hover::before {
    left: 100%;
}

.balance:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.2);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a, .nav-links button {
    color: var(--text);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.nav-links a:hover, .nav-links button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

/* Auth styles */
.auth-box {
    max-width: 450px;
    margin: 30px auto;
    background: linear-gradient(145deg, 
        rgba(26, 26, 46, 0.95),
        rgba(37, 37, 66, 0.9),
        rgba(26, 26, 46, 0.95)
    );
    padding: 40px;
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.auth-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ffd700, #ff6b35, #00d4ff, #ffd700, 
        #ff6b35, #00d4ff, #ffd700
    );
    background-size: 400% 400%;
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 6s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Casino Background Elements */
.casino-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.floating-chips {
    position: absolute;
    width: 100%;
    height: 100%;
}

.chip {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.chip-1 { top: 10%; left: 10%; animation-delay: 0s; animation-duration: 20s; }
.chip-2 { top: 20%; right: 15%; animation-delay: 2s; animation-duration: 18s; }
.chip-3 { bottom: 30%; left: 20%; animation-delay: 4s; animation-duration: 22s; }
.chip-4 { top: 60%; right: 10%; animation-delay: 6s; animation-duration: 16s; }
.chip-5 { bottom: 10%; right: 30%; animation-delay: 8s; animation-duration: 24s; }
.chip-6 { top: 40%; left: 5%; animation-delay: 10s; animation-duration: 19s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.05;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg); 
        opacity: 0.15;
    }
    50% { 
        transform: translateY(-40px) rotate(180deg); 
        opacity: 0.1;
    }
    75% { 
        transform: translateY(-20px) rotate(270deg); 
        opacity: 0.15;
    }
}

.neon-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.neon-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    animation: neonMove 8s infinite linear;
}

.line-1 {
    top: 20%;
    height: 2px;
    width: 100%;
    animation-delay: 0s;
}

.line-2 {
    top: 50%;
    height: 1px;
    width: 100%;
    animation-delay: 3s;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
}

.line-3 {
    top: 80%;
    height: 1px;
    width: 100%;
    animation-delay: 6s;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
}

@keyframes neonMove {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Casino Header */
.casino-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.logo-casino {
    margin-bottom: 10px;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ffd700, #ff6b35, #00d4ff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: logoShimmer 3s ease-in-out infinite;
    display: block;
    letter-spacing: 3px;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 215, 0, 0.8);
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 5px;
}

@keyframes logoShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.casino-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.casino-icons .icon {
    font-size: 1.5rem;
    opacity: 0.6;
    animation: iconPulse 2s ease-in-out infinite;
}

.casino-icons .icon:nth-child(1) { animation-delay: 0s; }
.casino-icons .icon:nth-child(2) { animation-delay: 0.5s; }
.casino-icons .icon:nth-child(3) { animation-delay: 1s; }

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1),
        rgba(0, 212, 255, 0.1)
    );
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.welcome-message h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.welcome-message p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Enhanced Tabs */
.tabs {
    display: flex;
    margin-bottom: 30px;
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.8),
        rgba(37, 37, 66, 0.6)
    );
    padding: 8px;
    border-radius: 50px;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 215, 0, 0.1);
}

.tab {
    flex: 1;
    padding: 15px 10px;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-icon {
    font-size: 1.1rem;
}

.tab.active {
    color: var(--surface);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.tabs::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(50% - 8px);
    height: calc(100% - 16px);
    background: linear-gradient(135deg, #ffd700, #ff6b35, #00d4ff);
    border-radius: 50px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tabs[data-tab="register"]::after {
    transform: translateX(100%);
}

/* Enhanced Form Inputs */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    z-index: 1;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.form-content input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.8),
        rgba(37, 37, 66, 0.6)
    );
    color: var(--text);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.1),
        0 0 0 rgba(255, 215, 0, 0);
}

.form-content input:focus {
    border-color: #ffd700;
    outline: none;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.1),
        0 0 25px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.9),
        rgba(37, 37, 66, 0.8)
    );
}

.form-content input:focus + .input-icon,
.input-group:hover .input-icon {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    color: #ffd700;
}

/* Enhanced Casino Button */
.casino-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ffd700, #ff6b35);
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
}

.casino-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #ffeb3b, #ff8f00);
}

.casino-button:hover .button-glow {
    left: 100%;
}

.casino-button:active {
    transform: translateY(0);
}

/* Casino Footer */
.casino-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.casino-tagline {
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(255, 215, 0, 0.8);
    margin-bottom: 10px;
    font-weight: 300;
}

.security-badge {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Form Content */
.form-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-content.hidden {
    display: none;
}

/* Games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.game-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 25px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 2px 10px rgba(255, 215, 0, 0.1) inset;
    backdrop-filter: blur(10px);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary),
        var(--secondary),
        transparent
    );
}

.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 5px 20px rgba(255, 215, 0, 0.3) inset,
        0 0 80px rgba(255, 215, 0, 0.2);
    border-color: var(--primary);
    animation: gameCardPulse 2s ease-in-out infinite;
}

@keyframes gameCardPulse {
    0%, 100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 5px 20px rgba(255, 215, 0, 0.3) inset, 0 0 80px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 8px 30px rgba(255, 215, 0, 0.4) inset, 0 0 100px rgba(255, 215, 0, 0.3); }
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.game-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.play-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--surface);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Profile styles */
.profile-section, .history-section {
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.profile-section::before, .history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary),
        var(--secondary),
        transparent
    );
}

.user-info {
    margin: 25px 0;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.user-info p {
    padding: 20px;
    background: var(--surface);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-info span {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
}

th {
    padding: 15px;
    text-align: left;
    background: var(--surface);
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

tr:hover td {
    background: rgba(255, 215, 0, 0.05);
}

th:first-child, td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

th:last-child, td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Add win/loss colors */
.win {
    color: #2ecc71 !important;
}

.lose {
    color: #e74c3c !important;
}

/* Animations */
@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-100%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(0); opacity: 1; }
    to { transform: translateX(-50%) translateY(-100%); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Add floating animation to game cards */
.game-card {
    animation: float 6s ease-in-out infinite;
}

/* Add pulse animation to buttons on hover */
.play-btn:hover,
.form-content button:hover {
    animation: pulse 1s ease-in-out infinite;
}

/* Add shimmer effect to headings */
h1, h2, h3 {
    background: linear-gradient(
        90deg,
        var(--text) 0%,
        var(--primary) 50%,
        var(--text) 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Improve notifications */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    border: 1px solid var(--primary);
    color: var(--text);
    font-weight: 500;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideDown 0.3s ease-out forwards;
}

.notification.success {
    border-color: #2ecc71;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(46, 204, 113, 0.1));
}

.notification.error {
    border-color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(231, 76, 60, 0.1));
}

/* Admin panel styles */
.search-box {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    background: #333;
    border: 1px solid #404040;
    color: #fff;
    border-radius: 5px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
}

.hidden {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-nav {
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .balance {
        padding: 10px 20px;
        font-size: 1rem;
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .nav-links {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .nav-links a, .nav-links button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }
    
    .game-card {
        padding: 20px;
    }
    
    .game-card h3 {
        font-size: 1.3rem;
    }
    
    .auth-box {
        margin: 20px auto;
        padding: 30px 20px;
    }
    
    .user-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 8px 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        position: relative;
    }
    
    .logo {
        font-size: 18px;
        text-align: center;
        letter-spacing: 1px;
        padding: 5px 0;
    }
    
    .balance {
        padding: 8px 15px;
        font-size: 0.85rem;
        margin-top: 0;
        order: 2;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-links {
        order: 3;
        justify-content: space-between;
        width: 100%;
        gap: 5px;
    }
    
    .nav-links a, .nav-links button {
        padding: 8px 10px;
        font-size: 0.75rem;
        flex: 1;
        text-align: center;
        min-width: 0;
        border-radius: 20px;
    }
    
    .container {
        padding: 10px;
    }
    
    .game-card {
        padding: 15px;
        border-radius: 15px;
    }
    
    .game-card img {
        height: 120px;
        margin: 15px 0;
    }
    
    .auth-box {
        margin: 15px auto;
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .form-content input {
        padding: 12px 15px 12px 45px;
        font-size: 0.9rem;
    }

    .input-icon {
        left: 15px;
        font-size: 1rem;
    }

    .form-content button {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 8px 6px;
    }
    
    .user-info p {
        padding: 15px;
    }
}
