:root {
    --bg-main: #050505;
    --bg-dark: #121212;
    --bg-light: #1f1f1f;
    --brand-red: #e50914;
    --brand-red-hover: #b80710;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border-color: #1f1f1f;
    --border-hover: #333333;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red);
}

/* === LAYOUT === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
}

.text-brand-red {
    color: var(--brand-red);
}

.text-muted {
    color: var(--text-muted);
}

.font-black {
    font-weight: 900;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* === COMPONENTS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--brand-red);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--brand-red-hover);
}

.btn-white {
    background-color: #fff;
    color: #000;
}

.btn-white:hover {
    background-color: #e0e0e0;
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-muted);
}

.glass-panel {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clean-input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.clean-input:focus {
    border-color: var(--brand-red);
    outline: none;
    box-shadow: 0 0 0 1px var(--brand-red);
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    height: 80px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    cursor: pointer;
}

.logo svg {
    width: 32px;
    height: 32px;
    color: var(--brand-red);
    transition: var(--transition);
}

.logo:hover svg {
    transform: scale(1.1);
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 30px;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }

    .nav-mobile-btn {
        display: none;
    }
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #d1d5db;
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
}

.nav-link.reward {
    color: var(--brand-red);
}

.nav-link.reward:hover {
    color: #fca5a5;
}

.nav-divider {
    width: 1px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 10px;
}

.nav-mobile-btn {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    font-size: 20px;
    color: #d1d5db;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #d1d5db;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link.reward {
    color: var(--brand-red);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-blur-red {
    position: absolute;
    top: 10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background-color: var(--brand-red);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.1;
    animation: pulse 4s infinite alternate;
}

.hero-blur-blue {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background-color: #2563eb;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.1;
}

@keyframes pulse {
    0% {
        opacity: 0.05;
    }

    100% {
        opacity: 0.15;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
    }
}

.hero-text {
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 50px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-red);
}

.hero-title {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 70px;
    }
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

.hero-image {
    flex: 1;
    display: none;
}

@media (min-width: 768px) {
    .hero-image {
        display: block;
    }
}

.hero-image-wrapper {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    aspect-ratio: 1/1;
}

.hero-image-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transform: rotate(3deg) scale(1.05);
    transition: transform 0.7s;
}

.hero-image-wrapper:hover .hero-image-border {
    transform: rotate(6deg) scale(1.05);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    filter: grayscale(100%);
    transition: filter 0.7s;
}

.hero-image-wrapper:hover .hero-img {
    filter: grayscale(0%);
}

/* === REWARD BANNER === */
.reward-section {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

.reward-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

@media (min-width: 768px) {
    .reward-content {
        flex-direction: row;
    }
}

.reward-info {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .reward-info {
        text-align: left;
    }
}

.reward-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background-color: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    font-size: 24px;
    flex-shrink: 0;
}

/* === CATEGORY SECTION === */
.section-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    gap: 20px;
}

@media (min-width: 768px) {
    .section-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.section-subtitle {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
}

.search-box {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .search-box {
        width: 250px;
    }
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    padding-left: 40px;
    border-radius: 50px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.game-card {
    display: block;
    background-color: var(--bg-dark);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.game-card:hover {
    border-color: var(--text-muted);
}

.game-img-box {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.game-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: var(--transition);
}

.game-card:hover .game-img-box img {
    filter: brightness(1);
    transform: scale(1.1);
}

.game-info {
    padding: 16px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.game-title {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === NEWS SECTION === */
.bg-dark-section {
    background-color: var(--bg-dark);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background-color: var(--bg-main);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--text-muted);
}

.news-img-box {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: var(--transition);
}

.news-card:hover .news-img-box img {
    filter: brightness(1);
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: var(--transition);
}

.news-card:hover .news-title {
    color: var(--brand-red);
}

.news-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* === CONTACT SECTION === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

.contact-info {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    font-size: 18px;
}

.contact-form-box {
    background-color: var(--bg-dark);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
}

.form-group {
    margin-bottom: 16px;
}

.contact-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.contact-success.active {
    visibility: visible;
    opacity: 1;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    color: var(--text-muted);
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a:hover {
    color: #fff;
}

/* === MODALS === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.btn-close {
    font-size: 20px;
    color: var(--text-muted);
}

.btn-close:hover {
    color: #fff;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .modal-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Form elements in modal */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #d1d5db;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.select-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    text-align: left;
    transition: var(--transition);
}

.select-btn:hover {
    border-color: var(--text-muted);
}

.select-btn.active {
    border-color: var(--brand-red);
    background: rgba(229, 9, 20, 0.05);
}

.select-btn .name {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}

.select-btn .price {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.pay-btn {
    text-align: center;
}

.pay-btn .name {
    font-weight: 700;
    font-size: 14px;
}

.pay-btn.active {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.auth-modal {
    max-width: 400px;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.btn-google {
    background: #fff;
    color: #000;
}

.btn-google:hover {
    background: #e0e0e0;
}

.btn-fb {
    background: #1877F2;
    color: #fff;
}

.btn-fb:hover {
    background: #145dbf;
}

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    margin: 0 16px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Error/Success text */
.text-error {
    color: var(--brand-red);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    margin-bottom: 8px;
    display: none;
}

.text-error.active {
    display: block;
}