:root {
    --primary-bg: #0F1012;
    --accent-yellow: #FFD700;
    --accent-red: #E31B23;
    --accent-blue: #007BFF;
    --dark-blue: #001F3F;
    --text-white: #FFFFFF;
    --text-muted: #A0A0A0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --header-height: 70px;
    --bottom-nav-height: 65px;
    --max-width: 1400px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Three.js Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    height: var(--header-height);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(15, 16, 18, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo-container .logo {
    height: 45px;
    object-fit: contain;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.95);
}

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

.btn-blog {
    background-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-blog:hover {
    background-color: #0069d9;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-signup {
    background-color: var(--accent-yellow);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-signup:hover {
    background-color: #e6c200;
}

.btn-login {
    background-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(227, 27, 35, 0.3);
}

.btn-login:hover {
    background-color: #c8161d;
}

/* Main Layout */
.main-layout {
    display: flex;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

/* Sidebar Section (Left Column) */
.sidebar-section {
    flex: 0 0 380px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* News Ticker */
.news-ticker {
    display: flex;
    background: linear-gradient(90deg, #001F3F 0%, #000 100%);
    border-radius: 8px;
    overflow: hidden;
    height: 40px;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.news-label {
    background: var(--dark-blue);
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    white-space: nowrap;
    position: relative;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
}

.news-content {
    padding: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    flex: 1;
}

.news-content p {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
    font-size: 0.9rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Banner Carousel */
.banner-carousel {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    aspect-ratio: 16/9;
}

.banner-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--accent-yellow);
    width: 24px;
    border-radius: 10px;
}

/* Live Sports Card */
.live-sports-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.live-header {
    background: rgba(0, 31, 63, 0.8);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-indicator {
    color: var(--accent-red);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulsing-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(227, 27, 35, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(227, 27, 35, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(227, 27, 35, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(227, 27, 35, 0); }
}

.sports-list {
    list-style: none;
    padding: 10px;
}

.sport-item {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s;
    cursor: pointer;
}

.sport-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sport-count {
    background: #444;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.live-footer {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-play-now {
    background: var(--accent-yellow);
    color: #000;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Casino Grid */
.casino-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.casino-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/5;
}

.casino-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.card-overlay i {
    font-size: 3rem;
    color: var(--accent-yellow);
}

/* Content Section (Right Column) */
.content-section {
    flex: 1;
    background: linear-gradient(rgba(15, 16, 18, 0.7), rgba(15, 16, 18, 0.9)), 
                url('casino_background_woman_gold_dress_1775033270334.webp');
    background-size: cover;
    background-position: center;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.seo-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent-yellow);
}

.seo-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    color: var(--accent-yellow);
    opacity: 0.9;
}

.seo-content p {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Social Section */
.follow-us h3 {
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.social-btn {
    text-decoration: none;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.whatsapp { background: #25D366; }
.facebook { background: #1877F2; }
.x-twitter { background: #000000; }
.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.telegram { background: #0088cc; }
.youtube { background: #FF0000; }

/* Footer Links */
.text-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.text-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.text-links a:hover {
    color: #fff;
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(15, 16, 18, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    gap: 4px;
    flex: 1;
}

.nav-item i {
    font-size: 1.4rem;
}

.nav-item.active {
    color: var(--accent-yellow);
}

.nav-home-icon {
    width: 50px;
    height: 50px;
    background: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -30px;
    border: 3px solid var(--primary-bg);
    box-shadow: 0 -5px 10px rgba(0,0,0,0.3);
}

.nav-home-icon i {
    color: var(--accent-yellow);
}

/* IPL Matches Section */
.ipl-matches-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}

.ipl-matches-section .section-header {
    background: rgba(0, 31, 63, 0.9);
    padding: 12px 15px;
    border-bottom: 1px solid var(--glass-border);
}

.ipl-matches-section h3 {
    font-size: 1.1rem;
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.match-list-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-height: 800px;
    overflow-y: auto;
    padding: 10px;
}

.match-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.match-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-yellow);
    z-index: 10;
}

.match-thumb {
    width: 100%;
    height: 85px;
    object-fit: contain;
    background: #000;
    display: block;
}

.match-info {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.match-teams {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--accent-yellow);
    line-height: 1.2;
}

.match-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-bet-btn {
    width: 100%;
    background: #25D366;
    color: #fff;
    padding: 6px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    font-size: 0.75rem;
    transition: background 0.3s;
    margin-top: auto;
}

.whatsapp-bet-btn:hover {
    background: #1eb954;
}

/* Floating Support Button */
.floating-support {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 9999;
    animation: pulse-whatsapp 2s infinite;
}

.floating-support i {
    font-size: 2rem;
}

.support-text {
    font-size: 0.65rem;
    font-weight: 700;
}

/* Floating Telegram Button */
.floating-telegram {
    position: fixed;
    bottom: 115px; /* Above WhatsApp */
    right: 30px;
    background: #0088cc;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 9999;
}

.floating-telegram i {
    font-size: 1.8rem;
}

.telegram-text {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 992px) {
    .main-layout {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }
    .sidebar-section {
        flex: none;
        width: 100%;
    }
    .content-section {
        padding: 20px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    .app-container {
        padding-bottom: var(--bottom-nav-height);
    }
    .main-header {
        padding: 0 15px;
    }
    .logo-container .logo {
        height: 35px;
    }
    .auth-buttons {
        gap: 8px;
    }
    .btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    .btn i {
        display: none;
    }
    .floating-support {
        bottom: 85px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    .floating-telegram {
        bottom: 155px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    .match-list-container, .casino-grid {
        grid-template-columns: 1fr;
    }
    .match-thumb {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 15px;
    }
    .seo-content h1 {
        font-size: 1.6rem;
    }
    .auth-buttons .btn-blog {
        display: none;
    }
    .news-ticker {
        height: 35px;
    }
    .news-label {
        padding: 0 10px;
        font-size: 0.8rem;
    }
}
