* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1.2rem 0.8rem 3rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255,255,255,0.1);
}

.search-box i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: #ccc;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #ff6b6b;
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
}

.btn-outline:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.energy-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border: 1px solid rgba(255, 193, 7, 0.4);
    border-radius: 50px;
    color: #ffc107;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.energy-balance:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.3));
    border-color: rgba(255, 193, 7, 0.6);
    color: #ffca28;
}

.energy-balance i {
    font-size: 1rem;
}

.energy-plus-icon {
    font-size: 0.7rem;
    margin-left: 4px;
    opacity: 0.8;
}

.energy-balance:hover .energy-plus-icon {
    opacity: 1;
}

.current-balance-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffc107;
}

.balance-preview {
    color: #4ade80;
    font-weight: 700;
    display: none;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.package-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.package-btn:hover {
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(255, 107, 107, 0.1);
}

.package-btn.selected {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

.package-btn .package-price {
    color: #888;
    font-size: 0.85rem;
}

.package-btn i {
    color: #ffc107;
    font-size: 1rem;
}

.package-btn .package-energy {
    color: #ffc107;
    font-weight: 700;
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ccc;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '\2713';
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.checkbox-label a {
    color: #ff6b6b;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #ff8e53;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

@media (max-width: 600px) {
    .modal-overlay {
        padding: 0 !important;
        align-items: stretch !important;
    }

    .modal-content {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 1rem !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
        border: none !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .package-btn {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }

    .package-btn .package-price {
        font-size: 0.75rem;
    }

    .package-btn i {
        font-size: 0.9rem;
    }

    .package-btn .package-energy {
        font-size: 0.85rem;
    }

    .current-balance-row {
        font-size: 1rem;
    }

    .modal-content .form-group label {
        font-size: 0.85rem;
    }

    .modal-content input {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .checkbox-label {
        font-size: 0.8rem;
        gap: 0.5rem;
    }

    .custom-checkbox {
        width: 14px;
        height: 14px;
    }

    .checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after {
        font-size: 9px;
    }

    .submit-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 300px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.section-title h2 i {
    margin-right: 0.5rem;
    color: #ff6b6b;
}

.view-more {
    color: #ff6b6b;
    font-weight: 500;
    transition: color 0.3s;
}

.view-more:hover {
    color: #ff8e53;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255, 107, 107, 0.3);
}

.game-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

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

.game-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s ease;
}

.game-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1);
}

.game-card-energy {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 20px;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.game-card:hover .game-card-energy {
    opacity: 1;
    transform: translateY(0);
}

.game-card-energy i {
    color: #ffc107;
    font-size: 0.8rem;
}

.game-card-energy span {
    color: #ffc107;
    font-weight: 700;
    font-size: 0.85rem;
}

.game-card-energy small {
    color: #aaa;
    font-size: 0.7rem;
}

.game-card-rating {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.game-card:hover .game-card-rating {
    opacity: 1;
    transform: translateY(0);
}

.game-card-rating i {
    color: #ffc107;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-card-info {
    padding: 1rem;
}

.game-card-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-info .plays {
    font-size: 0.8rem;
    color: #888;
}

.game-card-info .plays i {
    margin-right: 0.3rem;
}

.categories-strip {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories-strip::-webkit-scrollbar {
    display: none;
}

.category-chip {
    padding: 0.6rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    color: #ccc;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.category-chip:hover,
.category-chip.active {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    border-color: transparent;
}

.footer {
    background: rgba(10, 10, 20, 0.98);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #ff6b6b;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo .game {
    color: #ff6b6b;
}

.footer-logo .zone {
    color: #4facfe;
}

.footer-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-contact {
    margin-bottom: 1.5rem;
}

.footer-contact p {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.footer-contact a {
    display: inline;
    color: #ff6b6b;
    font-size: 0.9rem;
}

.footer-address {
    margin-bottom: 1.5rem;
}

.footer-address p {
    color: #777;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    line-height: 1.5;
}

.footer-address a {
    display: inline;
    color: #ff6b6b;
}

.footer-payments {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-payments i {
    font-size: 2rem;
    color: #666;
    transition: color 0.3s;
}

.footer-payments i:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.copyright {
    color: #555;
    font-size: 0.8rem;
}

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

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255,107,107,0.2);
    color: #ff6b6b;
}

.modal-content .form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.modal-content label {
    display: block;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: #666;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255,255,255,0.08);
}

.modal-content textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-content small {
    color: #666;
    font-size: 0.8rem;
    text-align: right;
    display: block;
    margin-top: 0.3rem;
}

.modal-content .submit-btn {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 0.5rem;
}

.modal-content .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,107,107,0.4);
}

#contact-success h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

#contact-success p {
    color: #aaa;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-company {
        text-align: center;
    }
    
    .footer-payments {
        justify-content: center;
    }
    
    .footer-col {
        text-align: center;
    }
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-select {
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #ff6b6b;
}

.results-count {
    color: #888;
    margin-bottom: 1rem;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-wrapper nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.pagination-wrapper nav ul li {
    list-style: none;
}

.pagination-wrapper nav span,
.pagination-wrapper nav a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-wrapper nav a:hover {
    background: rgba(255,255,255,0.2);
}

.pagination-wrapper nav span[aria-current],
.pagination-wrapper nav .active span {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

.pagination-wrapper nav .disabled span {
    opacity: 0.5;
    cursor: not-allowed;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 107, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.category-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.category-info span {
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .container {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1rem;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
        margin-top: 0.5rem;
    }
    
    .search-box input {
        padding: 0.7rem 1rem 0.7rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .main-content {
        padding-top: 120px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .section-title h2 {
        font-size: 1.2rem;
    }
    
    .categories-strip {
        gap: 0.5rem;
    }
    
    .category-chip {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0.8rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .nav-links .btn-outline {
        display: none;
    }
    
    .nav-links > a:not(.btn):not(.user-avatar) {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .game-card-info {
        padding: 0.8rem;
    }
    
    .game-card-info h3 {
        font-size: 0.85rem;
    }
    
    .game-card-info .plays {
        font-size: 0.7rem;
    }
    
    .section-title h2 {
        font-size: 1.1rem;
    }
    
    .main-content {
        padding-top: 110px;
    }
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.cookie-bar {
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 2rem;
}

.cookie-content span {
    color: #fff;
    font-size: 0.9rem;
}

.cookie-content a {
    color: #ff6b6b;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cookie-accept {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    border: none;
    color: #fff;
}

.cookie-accept:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem;
    }
    
    .cookie-content span {
        font-size: 0.85rem;
    }
}
