/* Synthwave Pyramid Background */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, #180935 0%, #301052 20%, #681d8c 40%, #05070a 60%);
}

.ambient-background::after {
    content: '';
    position: absolute;
    bottom: 40%;
    left: 45%;
    width: 35vw;
    height: 35vw;
    max-height: 45vh;
    background: linear-gradient(135deg, #37185e 0%, #0d051e 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: translateX(-50%);
}

.orb {
    position: absolute;
}

.orb-1 {
    width: 25vw;
    height: 25vw;
    max-height: 30vh;
    background: linear-gradient(135deg, #270e47 0%, #08030f 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    bottom: 40%;
    right: 15%;
}

.orb-2 {
    width: 18vw;
    height: 18vw;
    max-height: 22vh;
    background: linear-gradient(135deg, #1b0a33 0%, #05020a 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    bottom: 40%;
    left: 15%;
}

.orb-3 {
    width: 100vw;
    height: 45vh;
    background: linear-gradient(180deg, rgba(5, 7, 10, 0) 0%, rgba(5, 7, 10, 1) 20%, #05070a 100%);
    bottom: 0;
    left: 0;
    z-index: 2;
}

/* Glass & Neon Effects */
.glass-panel {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.neon-glow {
    position: relative;
}

.neon-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    z-index: -1;
    border-radius: 14px;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
}

.neon-glow:hover::before {
    opacity: 1;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 20%, var(--primary-color) 60%, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-text {
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-color);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-15deg);
}

/* Hero Section Refinements */
.hero {
    position: relative;
    padding: 12rem 5% 8rem;
    text-align: center;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Feature Grid Improvements */
.game-features {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.game-card.premium-hover {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
}

.game-card.premium-hover:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 210, 255, 0.1);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
    border-radius: 24px 24px 0 0;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(5, 7, 10, 1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.game-card.premium-hover:hover .overlay-gradient {
    opacity: 1;
}

.game-card.premium-hover:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.game-info {
    padding: 2rem;
}

.game-info h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.game-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cyber-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s;
}

.cyber-btn svg {
    transition: transform 0.3s;
}

.game-card:hover .cyber-btn {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

.game-card:hover .cyber-btn svg {
    transform: translateX(4px);
}

/* News Section Refinements */
.dark-section {
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.4) 20%, rgba(15, 23, 42, 0.4) 80%, transparent);
    padding: 8rem 0;
}

.news-grid.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
}

.news-card.glass-effect {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.news-card.glass-effect:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.news-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img-container img {
    transform: scale(1.05);
}

.news-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content {
    padding: 2rem;
}

.news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s;
    display: inline-block;
}

.read-more:hover {
    color: var(--text-main);
}

.read-more:hover::after {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 1rem;
    }

    .hero {
        padding: 8rem 5% 4rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-desc {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .news-grid.modern-grid,
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .dark-section {
        padding: 4rem 0;
    }

    .game-features {
        padding: 4rem 0;
    }

    .ad-container {
        margin: 2rem auto;
    }
}

@media (max-width: 480px) {
    .glass-panel {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .game-info {
        padding: 1.5rem;
    }

    .game-info h3 {
        font-size: 1.25rem;
    }

    .news-content {
        padding: 1.5rem;
    }

    .card-img-wrapper,
    .news-img-container {
        height: 200px;
    }
}

/* New UI Styles for Updated Layout */
.text-muted-light {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.btn-green {
    background: #00e676;
    color: #000;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s;
}

.btn-green:hover {
    background: #00c853;
    transform: translateY(-2px);
    color: #000;
}

.btn-yellow {
    background: #ffca28;
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s;
}

.btn-yellow:hover {
    background: #ffb300;
    transform: translateY(-2px);
    color: #000;
}

.hero-pyramid-bg {
    position: relative;
    z-index: 1;
    padding: 10rem 5% 5rem;
    text-align: center;
}

.hero-pyramid-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(88, 28, 135, 0) 0%, rgba(5, 7, 10, 1) 100%);
    z-index: -1;
}

.cards-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cards-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dark-panel-bg {
    background: #11141a;
    padding: 40px;
    border-radius: 20px;
}

.border-top-dark {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pay-logo {
    height: 30px;
    object-fit: contain;
}

.dot-btn {
    background: #333;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
    font-weight: bold;
    padding-bottom: 8px;
}

.dot-btn:hover {
    background: #555;
    color: white;
}

.game-card {
    background: #1a1d24;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.fb-share-inner {
    background: #37123c;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.countdown .cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown .num {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.countdown .label {
    font-size: 0.75rem;
    color: #ffca28;
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: bold;
    letter-spacing: 1px;
}

.countdown .colon {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    line-height: 1;
    margin: 0 5px;
}

.text-green {
    color: #00e676;
}

.text-white {
    color: #ffffff;
}

@media (max-width: 992px) {

    .cards-3-col,
    .cards-4-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        flex-direction: column;
        gap: 2rem !important;
    }

    .info-img {
        width: 100% !important;
    }

    .payment-bar {
        flex-direction: column;
        gap: 20px;
    }

    .hero-pyramid-bg {
        padding: 6rem 5% 3rem;
    }

    .ambient-background::after {
        width: 60vw;
        height: 60vw;
        bottom: 35%;
    }

    .orb-1 {
        width: 40vw;
        height: 40vw;
        bottom: 35%;
        right: 5%;
    }

    .orb-2 {
        width: 30vw;
        height: 30vw;
        bottom: 35%;
        left: 5%;
    }
}

@media (max-width: 576px) {

    .cards-3-col,
    .cards-4-col {
        grid-template-columns: 1fr;
    }

    .fb-share-inner {
        flex-direction: column;
        text-align: center;
        padding: 2rem !important;
    }

    .hero h1 {
        font-size: 2rem !important;
    }

    .countdown .num {
        font-size: 1.5rem;
    }

    .countdown .colon {
        font-size: 1.5rem;
    }

    .payment-bar .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-register-banner .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-register-banner h3 {
        font-size: 1.2rem;
    }
}

/* Flexbox and Layout Utilities */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.gap-5 {
    gap: 3rem;
}

.flex-grow-1 {
    flex-grow: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Spacing Utilities */
.m-0 {
    margin: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.ms-auto {
    margin-left: auto;
}

.p-0 {
    padding: 0 !important;
}

.p-3 {
    padding: 1rem;
}

.p-5 {
    padding: 3rem;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-4 {
    padding-top: 1.5rem;
}

.pb-4 {
    padding-bottom: 1.5rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

.px-5 {
    padding-left: 3rem;
    padding-right: 3rem;
}

/* Typography and Other Utilities */
.text-center {
    text-align: center;
}

.text-start {
    text-align: left;
}

.fw-bold {
    font-weight: bold;
}

.fs-5 {
    font-size: 1.25rem;
}

.d-inline-block {
    display: inline-block;
}

.border-0 {
    border: none !important;
}

.background-none {
    background: none !important;
}

.d-none {
    display: none;
}

@media (min-width: 768px) {
    .d-md-block {
        display: block;
    }
}