:root {
    --bg-dark: #121212;
    --bg-black: #000000;
    --yellow-main: #ff9900;
    --yellow-dark: #cc7a00;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --blue-btn: #1a96f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overscroll-behavior: none;
}

body {
    background-color: var(--text-white);
    color: var(--text-white);
}

/* Placeholder Utility */
.placeholder-img {
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border: 1px dashed #555;
    position: relative;
    overflow: hidden;
}

.placeholder-img::after {
    content: attr(data-label);
    padding: 10px;
}

/* Topbar */
.topbar {
    background-color: #000000;
    padding: 8px 24px;
    border-bottom: 1px solid #141414;
}
.topbar-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.topbar-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}
.topbar-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}
.topbar-divider {
    color: #999999;
    margin-left: 8px;
    font-weight: 300;
    font-size: 16px;
}

/* Header */
.header {
    background: linear-gradient(180deg, #2d2d2d 0%, #1e1e1e 40%, #101010 75%, #050505 100%);
    padding: 5px 24px;
    border-top: 1px solid #3a3a3a;
    border-bottom: 1px solid #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
}
.logo {
    display: flex;
    align-items: center;
    margin-left: 8px;
}
.logo-img {
    height: 58px;
    max-height: 62px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn {
    padding: 11px 32px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 19px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-login {
    background: linear-gradient(180deg, #2ea3f2 0%, #1783d6 55%, #1072bd 100%);
    color: #ffffff;
    border: 1px solid #0f6bb3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-login:hover {
    background: linear-gradient(180deg, #3bb0ff 0%, #1c8ee6 55%, #137ecf 100%);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-signup {
    background: linear-gradient(180deg, #ffa000 0%, #ff8800 55%, #e67600 100%);
    color: #ffffff;
    border: 1px solid #cf6600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-signup:hover {
    background: linear-gradient(180deg, #ffac1a 0%, #ff9514 55%, #f2820c 100%);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    background-color: var(--bg-dark);
    position: relative;
    user-select: none;
    overflow: hidden;
}
.slider-wrapper {
    width: 100%;
    position: relative;
    cursor: grab;
    overflow: hidden;
}
.slider-wrapper:active {
    cursor: grabbing;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    pointer-events: none;
    transform: translateX(100%);
}
.slide.active {
    position: relative;
    transform: translateX(0);
    z-index: 1;
}
.slide.slide-in {
    animation: slideInRight 0.6s ease forwards;
}
.slide.slide-out {
    animation: slideOutLeft 0.6s ease forwards;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}
@keyframes slideOutLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0;
    background-color: transparent;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background-color: #ffffff;
    border-color: #ffffff;
    transform: scale(1.15);
}

/* Main Nav */
.main-nav {
    background-color: var(--yellow-main);
}
.nav-list {
    list-style: none;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-list li {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.nav-list li:last-child {
    border-right: none;
}
.nav-list a {
    display: block;
    padding: 15px 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
}
.nav-list a.active {
    color: black;
}

/* Games Grid */
.games-section {
    padding: 40px 20px;
    background-color: #fff;
    max-width: 1250px;
    margin: 0 auto;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.card-img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: none;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* Promo Section */
.promo-section {
    padding: 0 20px;
    background-color: #fff;
    max-width: 1250px;
    margin: 0 auto;
}
.promo-container {
    display: flex;
    gap: 34px;
    align-items: flex-start;
}
.promo-card {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}
/* 2nd box - clean, no border, no shadow */
.promo-card-empty {
    background-color: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.promo-card-empty .promo-header {
    background-color: #f4f4f4;
    border-bottom: none;
    padding: 14px 18px;
    font-size: 16px;
    color: #333;
    font-weight: normal;
}
.promo-header {
    background-color: #f4f4f4;
    color: #333;
    padding: 14px 18px;
    font-weight: normal;
    font-size: 16px;
    border-bottom: none;
}
.promo-content-placeholder {
    height: 57px;
    background-color: #fff;
}
/* Promo Slider */
.promo-slider {
    width: 100%;
    overflow: hidden;
    cursor: grab;
    position: relative;
    min-height: 100px;
}
.promo-slider:active {
    cursor: grabbing;
}
/* Inactive slides - completely hidden */
.promo-slide {
    width: 100%;
    display: none;
    user-select: none;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
}
/* Active slide - visible */
.promo-slide.active {
    display: block;
    position: relative;
    z-index: 1;
}
/* Animation classes (reuse from hero slider) */
.promo-slide.slide-in {
    display: block;
    animation: slideInRight 0.5s ease forwards;
}
.promo-slide.slide-out {
    display: block;
    animation: slideOutLeft 0.5s ease forwards;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}
.promo-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    background-color: #f9f9f9;
}
.promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
.promo-dot.active {
    background-color: var(--yellow-main);
    transform: scale(1.3);
}

/* Footer */
.footer {
    background-color: var(--bg-black);
    color: var(--text-gray);
    padding: 25px 20px 40px;
}
.footer-container {
    max-width: 1250px;
    margin: 0 auto;
}
.footer-top {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding-bottom: 18px;
    border-bottom: 1px solid #fff;
}
.support-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.support-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: contain;
}
.support-text h4 {
    color: var(--yellow-main);
    margin-bottom: 4px;
    font-size: 18px;
    white-space: nowrap;
}
.support-text p {
    font-size: 15px;
    margin-bottom: 4px;
    color: #999;
}
.support-text a {
    color: var(--yellow-main);
    text-decoration: none;
    font-size: 15px;
}

.footer-middle {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    padding: 12px 0;
    border-bottom: 1px solid #fff;
    align-items: flex-start;
}
.footer-col h4 {
    margin-bottom: 14px;
    color: #fff; /* Changed back to white as requested */
    font-weight: normal;
    font-size: 16px;
    letter-spacing: 0.5px;
}
.resp-gaming {
    width: 170px;
}
.pay-methods {
    flex-grow: 1;
}
.logos-img {
    width: 100%;
    height: 30px;
    background: transparent;
    border: none;
    justify-content: flex-start;
    font-size: 12px;
}
.resp-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.resp-icon {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.pay-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
/* White by default, original color on hover */
.pay-icon {
    height: 30px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
    cursor: pointer;
}
.pay-icon:hover {
    filter: none;
}

.footer-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #fff;
}
.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.phone {
    color: var(--yellow-main);
    font-size: 16px;
}
.social-icons {
    display: flex;
    gap: 10px;
}
.s-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
}
.app-links {
    display: flex;
    gap: 12px;
}
.app-btn {
    height: 52px;
    width: auto;
    object-fit: contain;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}
.curacao-btn {
    height: 50px;
    margin-top: 2px;
}

.footer-bottom {
    text-align: right;
    padding-top: 14px;
    padding-bottom: 4px;
    font-size: 13px;
    color: #aaa;
}
.footer-links {
    margin-right: 4px;
}
.footer-links a {
    color: var(--yellow-main);
    text-decoration: none;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.footer-links a:first-child {
    margin-left: 0;
}
.copyright {
    color: #fff;
    font-size: 13px;
    font-weight: 400;
}
.copyright-year {
    color: #fff;
    margin-right: 2px;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 10px;
    z-index: 1001;
    display: flex;
    align-items: center;
}
.wa-icon-link {
    display: block;
    text-decoration: none;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}
.float-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    cursor: pointer;
    display: block;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}
.float-icon-img:hover {
    transform: scale(1.05);
}

/* Popup pill - perfectly sized to reference */
.wa-popup {
    position: absolute;
    left: 20px; /* Sits behind icon */
    z-index: 1; /* Behind icon */
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #34c759;
    color: white;
    font-size: 14px;
    font-weight: 500;
    /* Padding to clear the 64px icon (left: 20px, icon right edge at 74px) */
    padding: 10px 14px 10px 54px;
    border-radius: 30px;
    line-height: 1.3;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    max-width: 40px; 
    width: 260px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    /* When hiding, it slides back under the icon very slowly (1.5s) AND fades out gradually */
    transition: max-width 1.5s ease-in-out, opacity 1.5s ease-in-out;
}
.wa-popup.visible {
    max-width: 260px; /* Fully revealed */
    opacity: 1;
    pointer-events: auto;
    transition: max-width 0.1s ease-in-out, opacity 0.1s ease-in-out;
}
.wa-popup span:first-child {
    display: block;
    white-space: normal;
    width: 190px; 
    min-width: 190px;
}
.wa-popup-arrow {
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    /* Topbar */
    .topbar {
        display: none; /* Hide topbar on mobile to save space, usually standard */
    }
    
    /* Header */
    .header {
        padding: 4px 10px 4px 6px; /* Compact patti, original jaisi */
    }
    .header-container {
        flex-direction: row; /* Keep on one line */
        justify-content: space-between;
        gap: 5px;
    }
    .logo-img {
        max-height: 38px; /* Original jaisa chhota size */
    }
    .btn {
        padding: 6px 16px;
        font-size: 14px;
    }
    
    /* Hero Slider */
    .slide {
        height: 250px;
        object-fit: cover;
        object-position: center;
    }
    
    /* Main Nav */
    .nav-list {
        overflow-x: visible;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    .nav-list li {
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    .nav-list a {
        padding: 10px 5px;
        font-size: 13px;
        font-weight: normal;
    }
    
    /* Games Grid */
    .games-section {
        padding: 15px 15px 25px;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* Promo Section - spacing original jaisi */
    .promo-section {
        padding: 0 15px 45px;
    }
    .promo-container {
        flex-direction: column;
        gap: 20px;
    }
    .promo-card {
        width: 100%; /* Ensure it takes full width */
    }
    .promo-header {
        padding: 9px 12px;
        font-size: 15px;
    }
    /* Mobile par sirf placeholder hide - header "Swastik111" dikhega */
    .promo-card-empty .promo-content-placeholder {
        display: none;
    }
    
    /* Floating WhatsApp - Show on mobile too, normal bottom position */
    .floating-whatsapp {
        display: flex;
        bottom: 20px; /* Normal floating position */
    }
    .wa-popup {
        font-size: 13px;
        padding: 10px 14px 10px 54px;
        max-width: 240px;
    }

    /* Footer Adjustments */
    body {
        overflow-x: clip;
    }
    .footer {
        padding: 15px 15px 40px;
        overflow-x: clip;
    }
    .footer-top {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: min(26px, 3.5vw);
        padding-bottom: 12px;
    }
    .footer-top .support-item {
        min-width: 0;
        flex-direction: row; /* Icon left, text right - original jaisa */
        align-items: center;
        gap: 10px;
    }
    .support-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }
    .support-text h4 {
        font-size: 13.5px;
        margin-bottom: 2px;
        white-space: nowrap;
    }
    .support-text p {
        font-size: 11.5px;
        white-space: nowrap;
        margin-bottom: 2px;
    }
    .support-text a {
        font-size: 12px;
    }
    .footer-middle {
        flex-direction: column;
        gap: 12px;
        overflow: hidden; /* Prevent page scroll */
        width: 100%;
    }
    .pay-methods {
        width: 100%;
        overflow: hidden; /* Prevent page scroll */
    }
    /* Horizontal scroll for Payment Methods on mobile */
    .pay-icons {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding-bottom: 8px; /* Native scrollbar ke liye space */
        width: 100%;
        max-width: 100%;
        gap: 15px;
        overscroll-behavior-x: contain;
    }
    
    .footer-contact-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .social-icons img:nth-child(2),
    .social-icons img:nth-child(4) {
        display: none; /* Original: sirf WhatsApp + Instagram */
    }
    .footer-bottom {
        max-width: 100%;
        overflow-x: clip;
        text-align: center;
    }
    .footer-links a {
        white-space: normal;
        margin-left: 8px;
        margin-right: 2px;
    }
    .footer-links a:first-child {
        margin-left: 0;
    }
    .copyright {
        display: block;
        margin-top: 8px;
    }
    
    /* Floating WhatsApp - normal position on mobile */
    .floating-whatsapp {
        bottom: 20px;
        left: 10px;
        z-index: 999;
    }
}

/* Mobile Bottom Nav Styles */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: none; /* Bottom nav bar poora hata diya (Chat, Affiliate, Cricket Fight...) */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(90deg, #25183f 0%, #461440 50%, #9e1436 100%);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        height: 54px;
        border-top: none;
    }
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: white;
        font-size: 9px;
        flex: 1;
        position: relative;
        height: 100%;
        gap: 1px; /* Tiny gap between icon and text */
    }
    .nav-icon {
        width: 36px;
        height: 36px;
        background-color: transparent;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }
    /* Cricket Fight center item */
    .nav-item.main-action {
        flex: 1.2;
        position: relative;
        height: 100%;
        justify-content: center;
        overflow: visible;
    }
    /* Dark trapezoid behind Cricket Fight */
    .nav-item.main-action::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, #0d0612 0%, #4a0e28 60%, #7a1535 100%);
        clip-path: polygon(12% 0%, 88% 0%, 100% 100%, 0% 100%);
        z-index: 0;
    }
    .nav-item.main-action .nav-icon {
        width: 40px;
        height: 40px;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.8));
    }
    .nav-item.main-action span {
        position: relative;
        z-index: 2;
        white-space: nowrap;
        font-size: 9px;
        line-height: 1;
        letter-spacing: -0.2px;
    }
}

/* Very small phones - footer support items fit in one row */
@media (max-width: 400px) {
    .footer-top { gap: 16px; }
    .footer-top .support-item { gap: 8px; }
    .support-icon { width: 34px; height: 34px; }
    .support-text h4 { font-size: 13px; }
    .support-text p { font-size: 11px; }
    .support-text a { font-size: 11.5px; }
}


