/* =====================================================
   KEJU4D FAN PAGE
   YELLOW EDITION
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background: #0e0d0c;

    color: #292929;

    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    min-height: 170px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;

    background:
        linear-gradient(
            180deg,
            #ffe44d 0%,
            #ffd51a 100%
        );

    border-bottom:
        1px solid #e0bd00;

    box-shadow:
        0 8px 25px rgba(205, 165, 0, .18);
}

.logo {
    width: min(360px, 75vw);

    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 7px 8px rgba(0,0,0,.12)
        );

    transition: transform .3s ease;
}

.logo:hover {
    transform: scale(1.04);
}


/* =====================================================
   TICKER
===================================================== */

.ticker {
    width: 100%;

    overflow: hidden;

    background: #292929;

    border-bottom:
        3px solid #f4cc00;

    white-space: nowrap;
}

.ticker-track {
    width: max-content;

    display: flex;

    gap: 70px;

    padding: 13px 0;

    animation:
        tickerMove 24s linear infinite;
}

.ticker-track span {
    color: #ffffff;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.5px;
}

.ticker-track span::first-letter {
    color: #ffd500;
}

@keyframes tickerMove {

    from {
        transform: translateX(100vw);
    }

    to {
        transform: translateX(-100%);
    }

}


/* =====================================================
   HERO
===================================================== */

.hero {
    width:
        min(
            1180px,
            calc(100% - 30px)
        );

    margin: 30px auto 0;
}

.slider {
    position: relative;

    width: 100%;

    height: 520px;

    overflow: hidden;

    border-radius: 18px;

    background: #ddd;

    box-shadow:
        0 18px 45px
        rgba(0,0,0,.12);
}

.slide {
    position: absolute;

    inset: 0;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .7s ease,
        visibility .7s ease;
}

.slide.active {
    opacity: 1;

    visibility: visible;
}

.slide > img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 6s ease;
}

.slide.active > img {
    transform: scale(1.04);
}


/* =====================================================
   SLIDE OVERLAY
===================================================== */

.slide-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    padding-left: 65px;

    background:
        linear-gradient(
            90deg,
            rgba(20,20,20,.72),
            rgba(20,20,20,.35) 45%,
            transparent 80%
        );
}

.slide-content {
    max-width: 520px;

    color: white;
}

.slide-content > span {
    display: inline-block;

    margin-bottom: 12px;

    color: #ffdb17;

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 4px;
}

.slide-content h2 {
    font-size:
        clamp(
            38px,
            5vw,
            68px
        );

    line-height: .95;

    letter-spacing: -2px;
}

.slide-content h2 strong {
    display: block;

    color: #ffd000;
}

.slide-content p {
    max-width: 420px;

    margin-top: 18px;

    color: #f1f1f1;

    font-size: 13px;

    line-height: 1.7;
}


/* =====================================================
   SLIDER BUTTON
===================================================== */

.slider-btn {
    position: absolute;

    z-index: 5;

    top: 50%;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border:
        1px solid
        rgba(255,255,255,.6);

    border-radius: 50%;

    color: white;

    background:
        rgba(20,20,20,.35);

    font-size: 29px;

    cursor: pointer;

    transition: .25s ease;
}

.slider-btn:hover {
    color: #292929;

    background: #ffd000;

    transform:
        translateY(-50%)
        scale(1.08);
}

.slider-btn.prev {
    left: 18px;
}

.slider-btn.next {
    right: 18px;
}


/* =====================================================
   DOTS
===================================================== */

.dots {
    position: absolute;

    z-index: 6;

    left: 50%;
    bottom: 18px;

    display: flex;

    gap: 8px;

    transform:
        translateX(-50%);
}

.dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: 0;

    border-radius: 20px;

    background:
        rgba(255,255,255,.65);

    cursor: pointer;

    transition: .3s ease;
}

.dot.active {
    width: 30px;

    background: #ffd000;
}


/* =====================================================
   ACTION BUTTON
===================================================== */

.action {
    width:
        min(
            760px,
            calc(100% - 30px)
        );

    margin: 35px auto 0;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;
}

.action-button {
    min-height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 900;

    letter-spacing: 1px;

    transition: .25s ease;
}

.action-button:hover {
    transform: translateY(-4px);
}

.register {
    color: #292929;

    background:
        linear-gradient(
            135deg,
            #ffe94f,
            #f3c600
        );

    box-shadow:
        0 8px 22px
        rgba(226,183,0,.25);
}

.login {
    color: #292929;

    background: white;

    border:
        2px solid #f0c600;

    box-shadow:
        0 7px 20px
        rgba(0,0,0,.06);
}


/* =====================================================
   HEADLINE
===================================================== */

.headline {
    width:
        min(
            800px,
            calc(100% - 30px)
        );

    margin: 85px auto 0;

    text-align: center;
}

.small-title {
    display: block;

    margin-bottom: 12px;

    color: #c19e00;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 4px;
}

.headline h1 {
    color: #292929;

    font-size:
        clamp(
            70px,
            12vw,
            145px
        );

    line-height: .8;

    letter-spacing: -7px;

    font-weight: 1000;
}

.headline h1 span {
    color: #e0b900;
}

.headline h2 {
    margin-top: 25px;

    color: #292929;

    font-size:
        clamp(
            20px,
            4vw,
            35px
        );

    letter-spacing: 1px;
}

.headline p {
    max-width: 580px;

    margin: 20px auto 0;

    color: #777;

    font-size: 13px;

    line-height: 1.8;
}


/* =====================================================
   SOCIAL
===================================================== */

.social {
    width:
        min(
            650px,
            calc(100% - 30px)
        );

    margin: 80px auto 90px;

    text-align: center;
}

.social h2 {
    font-size: 35px;

    color: #292929;
}

.social h2 span {
    color: #d5ad00;
}

.social-list {
    display: flex;

    flex-direction: column;

    gap: 13px;

    margin-top: 25px;
}

.social-button {
    min-height: 75px;

    display: flex;

    align-items: center;

    padding: 0 20px;

    border:
        1px solid #ead47b;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 7px 20px
        rgba(0,0,0,.05);

    font-size: 13px;

    font-weight: 900;

    transition: .25s ease;
}

.social-button:hover {
    transform: translateY(-4px);

    border-color: #e3bc00;

    box-shadow:
        0 13px 28px
        rgba(0,0,0,.10);
}

.social-logo {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-right: 16px;

    border-radius: 10px;

    color: #292929;

    background:
        linear-gradient(
            135deg,
            #ffe84a,
            #f1c500
        );

    font-size: 11px;

    font-weight: 900;
}

.social-arrow {
    margin-left: auto;

    color: #c29e00;

    font-size: 22px;

    transition: .25s ease;
}

.social-button:hover .social-arrow {
    transform: translateX(6px);
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    padding: 40px 20px 25px;

    text-align: center;

    background: #292929;

    border-top:
        4px solid #f1c700;
}

.footer img {
    width: 170px;

    margin: 0 auto 15px;
}

.footer p {
    color: #aaa;

    font-size: 10px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 800px) {

    .header {
        min-height: 145px;
    }

    .logo {
        width: 290px;
    }

    .slider {
        height: 420px;
    }

    .slide-overlay {
        padding-left: 45px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 550px) {

    .header {
        min-height: 125px;

        padding:
            22px 15px;
    }

    .logo {
        width: 230px;
    }

    .ticker-track {
        gap: 45px;

        padding: 11px 0;
    }

    .ticker-track span {
        font-size: 8px;
    }

    .hero {
        width:
            calc(100% - 20px);

        margin-top: 18px;
    }

    .slider {
        height: 330px;

        border-radius: 12px;
    }

    .slide-overlay {
        align-items: flex-end;

        padding:
            30px 25px 45px;
    }

    .slide-content h2 {
        font-size: 38px;
    }

    .slide-content p {
        margin-top: 10px;

        font-size: 10px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;

        font-size: 23px;
    }

    .action {
        width:
            calc(100% - 20px);

        gap: 8px;

        margin-top: 18px;
    }

    .action-button {
        min-height: 58px;

        font-size: 11px;
    }

    .headline {
        margin-top: 60px;
    }

    .headline h1 {
        font-size: 78px;

        letter-spacing: -5px;
    }

    .headline h2 {
        font-size: 20px;
    }

    .headline p {
        font-size: 11px;
    }

    .social {
        margin-top: 60px;

        margin-bottom: 65px;
    }

    .social h2 {
        font-size: 27px;
    }

    .social-button {
        min-height: 65px;

        font-size: 11px;
    }

    .social-logo {
        width: 38px;
        height: 38px;

        margin-right: 12px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 360px) {

    .logo {
        width: 200px;
    }

    .slider {
        height: 270px;
    }

    .slide-content h2 {
        font-size: 30px;
    }

    .headline h1 {
        font-size: 65px;
    }

}
/* ==================================== */
/* PASTIKAN PASTE DI PALING BAWAH FILE .CSS */
/* ==================================== */

/* Styling Marquee Pengumuman */
.marquee-container {
    display: flex;
    align-items: center;
    background: #111;
    border: 1px solid #ffcc00;
    border-radius: 6px;
    padding: 5px 10px;
    margin: 15px 0;
    color: #fff;
    font-size: 14px;
}
.marquee-badge {
    background: #ffcc00;
    color: #000;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 10px;
    white-space: nowrap;
}
.marquee-text {
    width: 100%;
    overflow: hidden;
    color: #fff;
}

/* Styling Live Member Status */
.live-member-box {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #28a745;
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    margin: 10px 0;
}
.live-dot {
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #28a745;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* Styling Recent Winner Feed */
.winner-feed-container {
    background: #111;
    border: 1px solid #ffcc00;
    border-radius: 8px;
    padding: 12px;
    max-width: 400px;
    margin: 15px auto;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.2);
}
.winner-feed-header {
    font-weight: bold;
    color: #ffcc00;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
.winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #222;
}
.winner-user {
    font-weight: bold;
    color: #fff;
}
.winner-game {
    font-size: 12px;
    color: #aaa;
}
.winner-amount {
    color: #28a745;
    font-weight: bold;
}

/* Overlay Latar Belakang Gelap */
.popup-overlay {
    display: flex; /* Ditampilkan saat halaman terbuka */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Effect latar gelap transparan */
    z-index: 99999; /* Memastikan banner ada di paling depan */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Kotak Konten Popup */
.popup-content {
    position: relative;
    max-width: 600px; /* Lebar maksimal banner */
    width: 90%;
    background: #000;
    border: 2px solid #ffcc00; /* Border warna emas */
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.5);
    overflow: visible;
}

/* Gambar Banner */
.popup-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Tombol Close (X) */
.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ffcc00;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, background 0.2s;
    z-index: 10;
}

.popup-close:hover {
    background: #ffffff;
    transform: scale(1.1);
}

/* Animasi Muncul */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.btn-vip {
    background: linear-gradient(45deg, #ffcc00, #ff8800);
    color: #000;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
}