:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --background-color: #f9f9f9;
    --card-bg: #ffffff;
    --text-color: #333333;
    --accent-color: #fd79a8;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

.dark-theme {
    --primary-color: #8257e5;
    --secondary-color: #7159c1;
    --background-color: #121214;
    --card-bg: #1f1f23;
    --text-color: #e1e1e6;
    --accent-color: #fd79a8;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 20px 0;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.header-active nav a,
.header-active .logo h1,
.header-active .logo-icon {
    color: white;
}

.header-active nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 28px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    transition: all 0.3s ease;
}

.logo-icon {
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

nav a:hover, nav a.active {
    background-color: var(--primary-color);
    color: white;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s;
}

nav a:hover::after, nav a.active::after {
    width: 80%;
    left: 10%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    position: relative;
}

.search-bar input {
    padding: 10px 40px 10px 15px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background-color: var(--card-bg);
    color: var(--text-color);
    width: 200px;
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.theme-toggle, .cart-btn, .auth-btn, .mobile-menu-toggle {
    background: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}

.theme-toggle:hover, .cart-btn:hover, .auth-btn:hover, .mobile-menu-toggle:hover {
    transform: scale(1.05);
}

.header-active .theme-toggle, 
.header-active .cart-btn, 
.header-active .auth-btn, 
.header-active .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.2);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
}

section {
    padding: 80px 0;
    transition: background 0.5s ease;
}

.hero {
    text-align: center;
    color: white;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: var(--card-bg);
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--text-color);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    animation: slideUp 0.5s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.game-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-platform {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.game-genre {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.game-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #777;
    margin-right: 5px;
}

.add-to-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.account-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.account-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 24px;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h4 {
    margin-bottom: 10px;
    font-size: 16px;
    opacity: 0.9;
}

.stat-card p {
    font-size: 24px;
    font-weight: 700;
}

.purchase-history {
    margin-bottom: 30px;
}

.purchase-history h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 15px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.history-item:hover {
    background-color: rgba(108, 92, 231, 0.05);
}

.history-item:last-child {
    border-bottom: none;
}

.history-item-info h5 {
    margin-bottom: 5px;
    font-size: 16px;
}

.history-item-date {
    color: #777;
    font-size: 14px;
}

.history-item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

.empty-history {
    text-align: center;
    color: #777;
    padding: 30px;
    font-style: italic;
}

.logout-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

footer {
    background-color: var(--card-bg);
    padding: 50px 0 20px;
    margin-top: 50px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
}

.newsletter {
    display: flex;
    margin-top: 15px;
}

.newsletter input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.newsletter button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow);
    position: relative;
    animation: slideUp 0.5s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.modal-title {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.cart-item-details h4 {
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 18px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.empty-cart {
    text-align: center;
    padding: 30px;
    color: #777;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    z-index: 3000;
    box-shadow: var(--shadow);
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-actions {
        margin-left: auto;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-bar input {
        width: 150px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .filters {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .account-stats {
        grid-template-columns: 1fr;
    }
    
    .account-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .search-bar input {
        width: 120px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .game-card {
        max-width: 100%;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

.cases-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.case-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.case-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.case-card:hover .case-glow {
    opacity: 0.6;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.case-chance {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.case-info {
    padding: 20px;
}

.case-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.open-case-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.open-case-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.case-opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.case-opening-modal {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-case-opening {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

.spinning-case {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border: 5px solid;
    border-radius: 15px;
    animation: spin 1s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinning-case img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-radius: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.opening-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.won-game-card {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.won-game-image {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-right: 15px;
}

.claim-game-btn {
    width: 100%;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.claim-game-btn:hover {
    background: #45a049;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.inventory-game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.inventory-game-image {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.inventory-game-info {
    padding: 15px;
}

.download-btn {
    width: 100%;
    padding: 10px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #1976D2;
}

.cases-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.cases-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
}

.stat-item i {
    color: #ffd700;
    margin-right: 10px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card:hover::before {
    opacity: 1;
}

.case-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.case-image-container {
    position: relative;
    overflow: hidden;
}

.case-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image {
    transform: scale(1.1);
}

.case-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.case-card:hover .case-glow {
    opacity: 0.6;
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.case-chance {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.case-info {
    padding: 25px;
}

.case-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.case-bonus {
    text-align: center;
    color: #ffd700;
    margin: 10px 0;
    font-size: 0.9rem;
}

.case-bonus i {
    margin-right: 5px;
}

.open-case-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.open-case-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;
}

.open-case-btn:hover::before {
    left: 100%;
}

.open-case-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.case-opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.case-opening-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 95%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.case-opening-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, #ff0000, #ff9900, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    animation: rotate 4s linear infinite;
    opacity: 0.1;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.close-case-opening {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    z-index: 1;
}

.case-opening-header h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

.spinning-wheel {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.wheel-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transition: transform 0.1s ease;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.wheel-item {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 50%;
    transform-origin: bottom left;
}

.wheel-item-content {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.wheel-rarity {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.wheel-rarity.common { background: #808080; }
.wheel-rarity.rare { background: #0070dd; }
.wheel-rarity.epic { background: #a335ee; }
.wheel-rarity.legendary { background: #ff8000; }

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #ff0000;
    z-index: 2;
}

.opening-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.won-game {
    text-align: center;
    position: relative;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 20px;
    background: #ff0000;
    top: -20px;
    animation: confettiFall 3s ease-in-out infinite;
}

.confetti:nth-child(2) { background: #00ff00; left: 25%; animation-delay: 0.5s; }
.confetti:nth-child(3) { background: #0000ff; left: 50%; animation-delay: 1s; }
.confetti:nth-child(4) { background: #ffff00; left: 75%; animation-delay: 1.5s; }
.confetti:nth-child(5) { background: #ff00ff; left: 90%; animation-delay: 2s; }

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(500px) rotate(360deg); opacity: 0; }
}

.won-game h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 30px;
}

.won-game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.won-game-card.common { border-color: #808080; }
.won-game-card.rare { border-color: #0070dd; }
.won-game-card.epic { border-color: #a335ee; }
.won-game-card.legendary { border-color: #ff8000; }

.won-game-image {
    width: 100px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
}

.rarity-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 12px;
    opacity: 0.3;
    animation: glowPulse 2s ease-in-out infinite;
}

.rarity-glow.common { box-shadow: 0 0 20px #808080; }
.rarity-glow.rare { box-shadow: 0 0 20px #0070dd; }
.rarity-glow.epic { box-shadow: 0 0 20px #a335ee; }
.rarity-glow.legendary { box-shadow: 0 0 20px #ff8000; }

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.won-game-info {
    flex: 1;
    text-align: left;
}

.won-game-info h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.won-game-info p {
    color: #ccc;
    margin-bottom: 10px;
}

.won-game-rarity {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.won-game-rarity.common { background: #808080; color: white; }
.won-game-rarity.rare { background: #0070dd; color: white; }
.won-game-rarity.epic { background: #a335ee; color: white; }
.won-game-rarity.legendary { background: #ff8000; color: white; }

.bonus-points-earned {
    color: #ffd700;
    font-size: 1rem;
}

.claim-game-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.claim-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.inventory-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.inventory-game-image {
    width: 60px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.inventory-game-info {
    flex: 1;
}

.inventory-game-info h4 {
    color: white;
    margin-bottom: 5px;
}

.inventory-game-info p {
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.rarity-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.rarity-badge.common { background: #808080; color: white; }
.rarity-badge.rare { background: #0070dd; color: white; }
.rarity-badge.epic { background: #a335ee; color: white; }
.rarity-badge.legendary { background: #ff8000; color: white; }

.download-btn {
    padding: 8px 15px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.8rem;
}

.download-btn:hover {
    background: #1976D2;
}

.slot-machine {
    position: relative;
    width: 100%;
    height: 140px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.slot-track {
    display: flex;
    height: 100%;
    transition: transform 3s cubic-bezier(0.2, 0.8, 0.3, 1);
    will-change: transform;
}

.slot-item {
    flex: 0 0 120px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.slot-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.slot-rarity {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.slot-rarity.common { background: #808080; }
.slot-rarity.rare { background: #0070dd; }
.slot-rarity.epic { background: #a335ee; }
.slot-rarity.legendary { background: #ff8000; }

.slot-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 100%;
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
    z-index: 2;
}

.slot-pointer::before {
    content: '▼';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff0000;
    font-size: 20px;
    text-shadow: 0 0 10px #ff0000;
}

.spin-btn {
    width: 200px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.spin-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.slot-machine {
    position: relative;
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    border-radius: 15px;
    overflow: hidden;
    margin: 30px 0;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.slot-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.slot-item {
    flex: 0 0 120px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.slot-item:hover {
    transform: scale(1.05);
    z-index: 1;
}

.slot-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.slot-rarity {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px currentColor;
}

.slot-rarity.common { background: #808080; }
.slot-rarity.rare { background: #0070dd; }
.slot-rarity.epic { background: #a335ee; }
.slot-rarity.legendary { background: #ff8000; }

.slot-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #ff0000, transparent);
    box-shadow: 0 0 20px #ff0000;
    z-index: 10;
}

.slot-pointer::before {
    content: '▼';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff0000;
    font-size: 24px;
    text-shadow: 0 0 15px #ff0000;
    animation: pointerGlow 1s ease-in-out infinite alternate;
}

@keyframes pointerGlow {
    0% { text-shadow: 0 0 10px #ff0000; }
    100% { text-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000; }
}

.spin-btn {
    width: 200px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff6b6b, #ff0000);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.spin-btn::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.5s;
}

.spin-btn:hover::before {
    left: 100%;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

.spin-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.spin-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(500px) rotate(360deg);
        opacity: 0;
    }
}

.confetti {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #ff0000;
    top: -50px;
    opacity: 0;
}

.confetti:nth-child(1) { 
    background: #ff0000; 
    left: 20%; 
}
.confetti:nth-child(2) { 
    background: #00ff00; 
    left: 40%; 
}
.confetti:nth-child(3) { 
    background: #0000ff; 
    left: 60%; 
}
.confetti:nth-child(4) { 
    background: #ffff00; 
    left: 80%; 
}

.slot-track.rolling {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.download-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.download-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.download-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.download-header h2 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

.close-download {
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-download:hover {
    color: #ff6b6b;
}

.download-info {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.game-cover {
    width: 150px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.download-details {
    flex: 1;
}

.download-details h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.activation-key {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.activation-key strong {
    color: #ffd700;
    display: block;
    margin-bottom: 10px;
}

.key-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #4CAF50;
    text-align: center;
    margin-bottom: 10px;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.copy-key-btn {
    width: 100%;
    padding: 10px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.copy-key-btn:hover {
    background: #1976D2;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.download-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.download-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.download-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.download-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.download-note {
    background: rgba(255, 193, 7, 0.1);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.download-note p {
    color: #ffc107;
    margin: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .download-info {
        flex-direction: column;
        text-align: center;
    }
    
    .game-cover {
        align-self: center;
    }
    
    .download-modal {
        padding: 20px;
    }
}