:root{
    --bg:#120904;                         /* Coklat tua tembaga mewah */
    --bg-soft:#1a0e07;                    /* Coklat sedikit lebih lembut */
    --bg-card:rgba(255,255,255,.055);
    --green:#ffc72c;                      /* Aksen Emas / Kuning Cerah */
    --green-2:#d91b1b;                    /* Aksen Merah Berani */
    --green-dark:#2a1408;                 /* Coklat pekat gelap */
    --text:#fff8eb;                       /* Teks krem hangat */
    --muted:#cfb397;                      /* Teks sekunder coklat keemasan */
    --border:rgba(212,160,60,.22);        /* Garis batas coklat emas transparan */
    --danger:#f87171;
    --shadow:0 18px 45px rgba(0,0,0,.45);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    font-family:'Segoe UI',Arial,Helvetica,sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at top left, rgba(255,199,44,.15), transparent 32%),
        radial-gradient(circle at top right, rgba(217,27,27,.12), transparent 28%),
        linear-gradient(180deg,#120904 0%,#1a0e07 48%,#120904 100%);
    overflow-x:hidden;
}

a{
    color:inherit;
}

p a {
    text-decoration: none;
    color: var(--green-2);
    font-weight: bold;
}

img{
    max-width:100%;
}

/* TOPBAR */
.topbar{
    width:100%;
    position:sticky;
    top:0;
    z-index:9999;
    background:rgba(18,9,4,.84);
    backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(212,160,60,.20);
    box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.topbar-inner{
    max-width:1280px;
    margin:0 auto;
    padding:14px 18px;
    display:flex;
    align-items:center;
    gap:16px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:max-content;
    text-decoration:none;
}

.brand-icon{
    width:42px;
    height:42px;
    border-radius:14px;
    display:grid;
    place-items:center;
    color:#260800;
    font-weight:900;
}

.brand-text strong{
    display:block;
    color:var(--green);
    font-size:23px;
    letter-spacing:1.5px;
    line-height:1;
    text-shadow:0 0 14px rgba(255,199,44,.58);
}

.brand-text span{
    display:block;
    margin-top:4px;
    color:#fff0d4;
    font-size:11px;
    font-weight:800;
    letter-spacing:1px;
}

.search-box{
    flex:1;
    max-width:390px;
    position:relative;
    margin-left:auto;
}

.search-box input{
    width:100%;
    padding:13px 46px 13px 16px;
    border-radius:999px;
    border:1px solid rgba(212,160,60,.20);
    background:rgba(255,255,255,.055);
    color:white;
    outline:none;
    font-size:14px;
    transition:.25s ease;
}

.search-box input:focus{
    border-color:rgba(255,199,44,.65);
    box-shadow:0 0 0 3px rgba(255,199,44,.12);
}

.search-box input::placeholder{
    color:#bfa182;
}

.search-box i{
    position:absolute;
    right:17px;
    top:50%;
    transform:translateY(-50%);
    color:var(--green);
}

.navbar{
    display:flex;
    align-items:center;
    gap:8px;
}

.nav-item{
    position:relative;
}

.nav-link{
    border:none;
    cursor:pointer;
    color:#fff8eb;
    text-decoration:none;
    font-size:14px;
    font-weight:800;
    display:flex;
    align-items:center;
    gap:7px;
    padding:10px 13px;
    border-radius:999px;
    background:rgba(255,255,255,.045);
    transition:.25s ease;
    width: 100%;
}

.nav-link:hover{
    color:#260800;
    background:var(--green);
    box-shadow:0 0 18px rgba(255,199,44,.35);
}

.dropdown-menu{
    position:absolute;
    top:48px;
    left:0;
    width:320px;
    max-height:420px;
    overflow-y:auto;
    display:none;
    padding:10px;
    border-radius:18px;
    background:rgba(24,13,7,.98);
    border:1px solid rgba(212,160,60,.22);
    box-shadow:var(--shadow);
}

.dropdown-menu.show{
    display:block;
}

.dropdown-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:14px;
    text-decoration:none;
    color:white;
    transition:.25s;
}

.dropdown-item:hover{
    background:rgba(212,160,60,.12);
}

.dropdown-item img{
    width:40px;
    height:40px;
    border-radius:999px;
    object-fit:contain;
    background:#fff;
    padding:3px;
}

.dropdown-info{
    flex:1;
    min-width:0;
}

.dropdown-info strong{
    display:block;
    font-size:14px;
    margin-bottom:6px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.dropdown-meta{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.badge{
    display:inline-flex;
    align-items:center;
    padding:4px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
}

.badge.buka{
    background:rgba(250,204,21,.16);
    color:#facc15;
    border:1px solid rgba(250,204,21,.32);
}

.badge.tutup{
    background:rgba(220,38,38,.16);
    color:#f87171;
    border:1px solid rgba(220,38,38,.30);
}

.dropdown-info small{
    color:#cfb397;
    font-size:11px;
}

.auth-buttons{
    display:flex;
    gap:10px;
    min-width:max-content;
}

.btn-login,
.btn-register{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:11px 16px;
    border-radius:999px;
    text-decoration:none;
    font-size:14px;
    font-weight:900;
    transition:.25s ease;
}

.btn-login{
    color:#fff0d4;
    border:1px solid rgba(212,160,60,.25);
    background:rgba(255,255,255,.045);
}

.btn-register{
    color:#260800;
    background:linear-gradient(135deg,var(--green),var(--green-2));
    box-shadow:0 0 20px rgba(217,27,27,.30);
}

.btn-login:hover,
.btn-register:hover{
    transform:translateY(-2px);
    filter:brightness(1.08);
}

.mobile-menu-btn{
    display:none;
    width:43px;
    height:43px;
    border:none;
    border-radius:14px;
    color:var(--green);
    background:rgba(212,160,60,.12);
    font-size:21px;
    cursor:pointer;
}

/* HERO */
.hero{
    position:relative;
    overflow:hidden;
    padding:34px 16px 20px;
}

.hero::before{
    content:var(--b4d-setting-brand,"BAMBU4D");
    position:absolute;
    top:70px;
    right:-70px;
    font-size:145px;
    font-weight:1000;
    letter-spacing:9px;
    color:rgba(212,160,60,.045);
    pointer-events:none;
    white-space:nowrap;
}

.hero-inner{
    position:relative;
    max-width:1280px;
    margin:0 auto;
}

.slider{
    position:relative;
    min-height:420px;
    border-radius:30px;
    overflow:hidden;
    border:1px solid rgba(212,160,60,.25);
    box-shadow:0 25px 70px rgba(0,0,0,.50);
    background:#120904;
}

.slide{
    position:absolute;
    inset:0;
    opacity:0;
    pointer-events:none;
    transition:opacity .75s ease;
    display:grid;
    align-items:center;
    padding:54px 46px;
    background:
        linear-gradient(105deg,rgba(0,0,0,.75) 0%,rgba(42,20,8,.75) 45%,rgba(0,0,0,.40) 100%),
        radial-gradient(circle at 80% 28%,rgba(255,199,44,.20),transparent 33%),
        repeating-linear-gradient(45deg,rgba(212,160,60,.04) 0,rgba(212,160,60,.04) 2px,transparent 2px,transparent 13px);
}

.slide.active{
    opacity:1;
    pointer-events:auto;
}

.slide-content{
    max-width:720px;
    animation:slideUp .7s ease both;
}

@keyframes slideUp{
    from{opacity:0;transform:translateY(18px);}
    to{opacity:1;transform:translateY(0);}
}

.hero-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:15px;
    padding:8px 16px;
    border-radius:999px;
    color:var(--green);
    font-size:12px;
    font-weight:1000;
    letter-spacing:1px;
    background:rgba(255,199,44,.12);
    border:1px solid rgba(212,160,60,.35);
}

.slide h1{
    max-width:760px;
    margin-bottom:15px;
    color:white;
    font-size:48px;
    line-height:1.12;
    font-weight:1000;
    letter-spacing:-1.5px;
    text-shadow:0 0 22px rgba(255,199,44,.25);
}

.slide p{
    max-width:640px;
    color:#fff0d4;
    font-size:16px;
    line-height:1.75;
}

.hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:25px;
}

.btn-main,
.btn-line{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-width:165px;
    padding:14px 20px;
    border-radius:15px;
    text-decoration:none;
    font-size:14px;
    font-weight:1000;
    transition:.25s ease;
}

.btn-main{
    color:#260800;
    background:linear-gradient(135deg,var(--green),var(--green-2));
    box-shadow:0 0 22px rgba(217,27,27,.34);
}

.btn-line{
    color:var(--green);
    border:1px solid rgba(255,199,44,.65);
    background:rgba(0,0,0,.35);
}

.btn-main:hover,
.btn-line:hover{
    transform:translateY(-3px);
    filter:brightness(1.1);
}

.slider-dots{
    position:absolute;
    left:46px;
    bottom:15px;
    display:flex;
    gap:8px;
    z-index:5;
}

.slider-dots button{
    width:10px;
    height:10px;
    border:none;
    padding:0;
    border-radius:999px;
    cursor:pointer;
    background:rgba(255,255,255,.32);
    transition:.25s ease;
}

.slider-dots button.active{
    width:34px;
    background:var(--green);
    box-shadow:0 0 14px rgba(255,199,44,.8);
}

.hero-stats{
    position:relative;
    z-index:4;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin:10px 24px 0;
}

@media (max-width: 600px) {
    .hero-stats{
        display:none;
    }
}

.stat-card{
    padding:18px;
    border-radius:20px;
    background:rgba(255,255,255,.075);
    border:1px solid rgba(212,160,60,.20);
    box-shadow:0 18px 42px rgba(0,0,0,.32);
    backdrop-filter:blur(10px);
}

.stat-card strong{
    display:block;
    margin-bottom:5px;
    color:var(--green);
    font-size:17px;
}

.stat-card span{
    display:block;
    color:#eed5b7;
    font-size:13px;
    line-height:1.55;
}

/* CONTENT */
.container{
    max-width:1280px;
    margin:auto;
    padding:10px 18px;
}

.section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    margin-bottom:24px;
}

.section-title{
    font-size:30px;
    font-weight:1000;
    line-height:1.25;
}

.section-title span{
    display:block;
    margin-top:7px;
    color:var(--muted);
    font-size:14px;
    font-weight:600;
}

.section-pill{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 14px;
    border-radius:999px;
    border:1px solid rgba(212,160,60,.25);
    color:#fff0d4;
    background:rgba(212,160,60,.10);
    font-size:13px;
    font-weight:900;
    white-space:nowrap;
}

.grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:22px;
}

.card{
    position:relative;
    overflow:hidden;
    padding:24px;
    border-radius:26px;
    background:
        linear-gradient(145deg,rgba(255,255,255,.055),rgba(212,160,60,.06)),
        rgba(0,0,0,.22);
    border:1px solid rgba(212,160,60,.18);
    box-shadow:var(--shadow);
    transition:.32s ease;
}

.card::before{
    content:"";
    position:absolute;
    inset:-1px;
    background:radial-gradient(circle at top,rgba(255,199,44,.15),transparent 38%);
    opacity:.75;
    pointer-events:none;
}

.card:hover{
    transform:translateY(-8px);
    border-color:rgba(255,199,44,.38);
    box-shadow:0 28px 60px rgba(0,0,0,.48),0 0 25px rgba(255,199,44,.14);
}

.card > *{
    position:relative;
    z-index:2;
}

span.\32 d-card {
    font-weight: 900;
    display: block;
    color: #572a08; /* Aksen angka 2D perunggu gelap */
    font-size: 60px;
    position: absolute;
    right: 5px;
    top: -5px;
    opacity: 0.5;
    border-bottom-left-radius: 20px;
}

.logo-wrap{
    width:94px;
    height:94px;
    margin:0 auto;
    border-radius:50%;
    background:linear-gradient(145deg,rgba(212,160,60,.20),rgba(0,0,0,.30));
    padding:8px;
    border:2px solid rgba(255,199,44,.30);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    box-shadow:0 0 24px rgba(255,199,44,.14);
}

.logo-wrap img{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius:9999px;
    background:white;
}

.market-name{
    text-align:center;
    font-size:19px;
    font-weight:1000;
    margin-top:18px;
    min-height:48px;
    color:#fff;
}

.status{
    width:max-content;
    margin:14px auto;
    padding:8px 16px;
    border-radius:999px;
    font-weight:1000;
    font-size:13px;
}

.status.buka{
    background:rgba(250,204,21,.16);
    color:#facc15;
    border:1px solid rgba(250,204,21,.32);
}

.status.tutup{
    background:rgba(220,38,38,.16);
    color:#f87171;
    border:1px solid rgba(220,38,38,.28);
}

.date-label,
.hariaktif{
    text-align:center;
    color:#cfb397;
    font-size:12px;
    margin-top:8px;
    margin-bottom:7px;
    font-weight:900;
    letter-spacing:.8px;
}

.tanggal{
    text-align:center;
    color:#ffffff;
    font-size:19px;
    margin-bottom:17px;
    font-weight:1000;
}

.time-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin:17px 0;
    text-align:center;
}

.time-box{
    padding:13px 10px;
    border-radius:16px;
    background:rgba(0,0,0,.28);
    border:1px solid rgba(212,160,60,.14);
}

.time-box small{
    display:block;
    color:#cfb397;
    margin-bottom:5px;
    font-size:11px;
    font-weight:900;
}

.time-box strong{
    color:#fff;
    font-size:24px;
}

.days{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    justify-content:center;
    margin:15px 0 19px;
}

.day{
    padding:6px 9px;
    border-radius:9px;
    font-size:12px;
    font-weight:900;
}

.active-day{
    background:rgba(250,204,21,.16);
    color:#facc15;
    border:1px solid rgba(250,204,21,.32);
}

.off-day{
    background:rgba(220,38,38,.14);
    color:#f87171;
    border:1px solid rgba(220,38,38,.28);
    opacity:.58;
}

.link-btn{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-align:center;
    padding:12px;
    border-radius:14px;
    border:1px solid rgba(212,160,60,.25);
    color:var(--green);
    text-decoration:none;
    margin-bottom:13px;
    font-weight:900;
    background:rgba(212,160,60,.08);
    transition:.25s ease;
}

.link-btn:hover{
    color:#260800;
    background:var(--green);
}

.action-row{
    display:flex;
    gap:10px;
}

.join-btn{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-align:center;
    color:#260800;
    background:linear-gradient(135deg,var(--green),var(--green-2));
    padding:14px;
    border-radius:15px;
    text-decoration:none;
    font-weight:1000;
    box-shadow:0 12px 24px rgba(217,27,27,.24);
    transition:.25s ease;
}

.info-btn{
    width:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:15px;
    border:1px solid rgba(255,255,255,.10);
    color:#fff0d4;
    background:rgba(255,255,255,.055);
    text-decoration:none;
    font-size:18px;
    transition:.25s ease;
}

.join-btn:hover,
.info-btn:hover{
    transform:translateY(-2px);
    filter:brightness(1.08);
}

/* POPUP */
.popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.78);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
    padding:20px;
}

.popup.show{
    display:flex;
}

.popup-box{
    width:100%;
    max-width:720px;
    color:white;
    overflow:hidden;
    border-radius:24px;
    background:#180d07;
    border:1px solid rgba(212,160,60,.25);
    box-shadow:0 30px 80px rgba(0,0,0,.60);
    animation:popup .2s ease;
}

@keyframes popup{
    from{transform:scale(.92);opacity:0;}
    to{transform:scale(1);opacity:1;}
}

.popup-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    padding:20px 24px;
    border-bottom:1px solid rgba(212,160,60,.18);
    background:linear-gradient(90deg,rgba(212,160,60,.14),rgba(0,0,0,.25));
}

.popup-header h2{
    font-size:22px;
    line-height:1.3;
}

.popup-close{
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border-radius:12px;
    cursor:pointer;
    color:#fff0d4;
    background:rgba(255,255,255,.06);
}

.popup-tabs{
    display:flex;
    border-bottom:1px solid rgba(212,160,60,.14);
}

.tab-btn{
    flex:1;
    padding:16px;
    background:none;
    border:none;
    color:#cfb397;
    font-size:15px;
    font-weight:1000;
    cursor:pointer;
}

.tab-btn.active{
    color:var(--green);
    border-bottom:3px solid var(--green);
}

.popup-content{
    max-height:430px;
    overflow-y:auto;
    padding:24px;
}

.tab-content{
    display:none;
}

.tab-content.active-tab{
    display:block;
}

.rule-box{
    background:rgba(212,160,60,.12);
    border:1px solid rgba(212,160,60,.20);
    padding:14px 18px;
    border-radius:14px;
    font-weight:1000;
    margin-bottom: 10px;
    margin-top: 10px;
    color:#fff0d4;
}

.rule-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.rule-item{
    border-left:3px solid var(--green);
    padding:12px 14px;
    border-radius:0 12px 12px 0;
    line-height:1.65;
    color:#fff3e2;
    font-weight:650;
    background:rgba(255,255,255,.04);
}

.hadiah-table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:14px;
}

.hadiah-table th{
    background:linear-gradient(135deg,var(--green),var(--green-2));
    color:#260800;
    padding:14px;
}

.hadiah-table td{
    padding:14px;
    text-align:center;
    background:rgba(255,255,255,.055);
    border-bottom:1px solid rgba(212,160,60,.14);
    font-weight:800;
}

.popup-footer{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:18px 20px;
    border-top:1px solid rgba(212,160,60,.14);
    background:rgba(0,0,0,.25);
}

.join-popup-btn,
.close-popup-btn{
    border:none;
    text-decoration:none;
    padding:14px 22px;
    border-radius:14px;
    font-weight:1000;
    cursor:pointer;
}

.join-popup-btn{
    color:#260800;
    background:linear-gradient(135deg,var(--green),var(--green-2));
}

.close-popup-btn{
    color:white;
    background:rgba(255,255,255,.08);
}

/* ARTICLE */
.b4d-artikel{
    padding:38px 16px;
}

.b4d-artikel-box{
    max-width:980px;
    margin:0 auto;
    padding:28px 24px;
    border-radius:24px;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(212,160,60,.25);
    box-shadow:0 0 32px rgba(255,199,44,.10);
    color:#fff8eb;
    text-align:center;
}

.b4d-artikel-label{
    display:inline-block;
    margin-bottom:12px;
    padding:7px 15px;
    border-radius:999px;
    background:rgba(255,199,44,.12);
    border:1px solid rgba(212,160,60,.35);
    color:var(--green);
    font-size:12px;
    font-weight:1000;
    letter-spacing:1px;
}

.b4d-artikel h2{
    margin:0 0 14px;
    color:var(--green);
    font-size:28px;
    line-height:1.3;
    text-shadow:0 0 12px rgba(255,199,44,.45);
}

.b4d-artikel p{
    margin:10px auto;
    max-width:850px;
    color:#fff0d4;
    font-size:15px;
    line-height:1.75;
}

.b4d-artikel-note{
    margin:22px auto 0;
    padding:13px 15px;
    max-width:720px;
    border-radius:15px;
    background:rgba(212,160,60,.10);
    border:1px solid rgba(212,160,60,.22);
    color:#eed5b7;
    font-size:14px;
    font-weight:800;
}

/* FOOTER */
.b4d-footer{
    position:relative;
    padding:38px 18px 18px;
    background:linear-gradient(180deg,#1a0e07 0%,#100703 100%);
    color:#fff8eb;
    overflow:hidden;
    border-top:1px solid rgba(212,160,60,.35);
}

.b4d-footer-glow{
    position:absolute;
    top:-90px;
    left:50%;
    width:440px;
    height:440px;
    transform:translateX(-50%);
    background:radial-gradient(circle,rgba(255,199,44,.18),transparent 65%);
    pointer-events:none;
}

.b4d-footer-wrap{
    position:relative;
    z-index:2;
    max-width:1280px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr;
    gap:22px;
}

.b4d-footer-brand,
.b4d-footer-menu,
.b4d-footer-info{
    background:rgba(255,255,255,.045);
    border:1px solid rgba(212,160,60,.22);
    border-radius:20px;
    padding:22px;
    box-shadow:0 0 22px rgba(212,160,60,.08);
}

.b4d-footer-brand h2{
    margin:0;
    font-size:31px;
    letter-spacing:2px;
    color:var(--green);
    text-shadow:0 0 12px rgba(255,199,44,.6);
}

.b4d-footer-brand p{
    margin:6px 0 10px;
    font-weight:1000;
    color:#ffffff;
    font-size:15px;
}

.b4d-footer-brand span{
    display:block;
    color:#cfb397;
    line-height:1.65;
    font-size:14px;
}

.b4d-footer h3{
    margin:0 0 12px;
    color:var(--green);
    font-size:17px;
}

.b4d-footer-menu a{
    display:block;
    color:#fff0d4;
    text-decoration:none;
    margin:9px 0;
    padding:10px 12px;
    border-radius:12px;
    background:rgba(212,160,60,.10);
    transition:.25s ease;
    font-weight:800;
}

.b4d-footer-menu a:hover{
    background:linear-gradient(90deg,var(--green-2),var(--green));
    color:#260800;
    transform:translateX(4px);
}

.b4d-footer-info p{
    margin:9px 0;
    color:#fff0d4;
    font-size:14px;
}

.b4d-footer-bottom{
    position:relative;
    z-index:2;
    max-width:1280px;
    margin:22px auto 0;
    padding-top:15px;
    text-align:center;
    border-top:1px solid rgba(212,160,60,.20);
    color:#cfb397;
    font-size:13px;
}

.b4d-footer-bottom strong{
    color:var(--green);
}

/* EMPTY STATE */
.empty-state{
    grid-column:1/-1;
    text-align:center;
    padding:35px 20px;
    border-radius:22px;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(212,160,60,.18);
    color:#eed5b7;
    display:none;
}

/* RESPONSIVE */
@media(max-width:1080px){
    .topbar-inner{
        flex-wrap:wrap;
    }

    .mobile-menu-btn{
        display:grid;
        place-items:center;
        margin-left:auto;
    }

    .search-box{
        order:3;
        width:100%;
        max-width:none;
        flex:1 0 100%;
        margin-left:0;
    }

    .navbar{
        order:4;
        display:none;
        width:100%;
        flex-direction:column;
        align-items:stretch;
        gap:10px;
        padding-top:8px;
    }

    .navbar.show{
        display:flex;
    }

    .nav-link{
        justify-content:space-between;
        border-radius:14px;
    }

    .dropdown-menu{
        position:relative;
        top:8px;
        width:100%;
        max-height:300px;
    }

    .auth-buttons{
        margin-left:0;
    }
}

@media(max-width:768px){
    .topbar-inner{
        padding:12px;
    }

    .brand-text strong{
        font-size:20px;
    }

    .auth-buttons{
        width:100%;
        order:5;
    }

    .btn-login,
    .btn-register{
        flex:1;
    }

    .hero{
        padding:22px 12px 10px;
    }

    .hero::before{
        top:120px;
        right:-105px;
        font-size:78px;
    }

    .slider{
        min-height:460px;
        border-radius:23px;
    }

    .slide{
        padding:36px 22px 70px;
        text-align:center;
        justify-items:center;
    }

    .slide h1{
        font-size:31px;
        letter-spacing:-.6px;
    }

    .slide p{
        font-size:14px;
    }

    .hero-actions{
        justify-content:center;
    }

    .btn-main,
    .btn-line{
        width:100%;
    }

    .slider-dots{
        left:50%;
        transform:translateX(-50%);
        bottom:10px;
    }

    .hero-stats{
        margin:12px 12px 0;
        grid-template-columns:1fr;
    }

    .container{
        padding:28px 12px;
    }

    .section-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .section-title{
        font-size:24px;
    }

    .grid{
        grid-template-columns:1fr;
        gap:16px;
    }

    .card{
        border-radius:22px;
        padding:21px;
    }

    .popup-content{
        padding:18px;
    }

    .popup-footer{
        flex-direction:column;
    }

    .join-popup-btn,
    .close-popup-btn{
        width:100%;
        text-align:center;
    }

    .b4d-artikel{
        padding:28px 12px;
    }

    .b4d-artikel-box{
        padding:23px 16px;
        border-radius:18px;
    }

    .b4d-artikel h2{
        font-size:23px;
    }

    .b4d-artikel p{
        font-size:14px;
    }

    .b4d-footer{
        padding:30px 14px 16px;
        text-align:center;
    }

    .b4d-footer-wrap{
        grid-template-columns:1fr;
        gap:14px;
    }

    .b4d-footer-menu a:hover{
        transform:none;
    }
}

@media(max-width:420px){
    .brand-icon{
        width:38px;
        height:38px;
    }

    .brand-text span{
        font-size:10px;
    }

    .slide h1{
        font-size:28px;
    }

    .time-box strong{
        font-size:21px;
    }
}

/* MARQUEE */
.b4d-marquee-wrap {
    position: relative;
    z-index: 6;
    max-width: 1150px;
    margin: 8px auto 0;
    padding: 0 16px;
    font-family: Arial, Helvetica, sans-serif;
}

.b4d-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(217, 27, 27, 0.22), rgba(255, 199, 44, 0.16), rgba(217, 27, 27, 0.22));
    border: 1px solid rgba(212, 160, 60, 0.35);
    box-shadow:
        0 0 18px rgba(255, 199, 44, 0.16),
        inset 0 0 18px rgba(255, 199, 44, 0.08);
}

.b4d-marquee::before,
.b4d-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 70px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.b4d-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #120904, transparent);
}

.b4d-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #120904, transparent);
}

.b4d-marquee-track {
    display: flex;
    width: max-content;
    gap: 34px;
    padding: 11px 0;
    animation: b4dMarquee 28s linear infinite;
}

.b4d-marquee:hover .b4d-marquee-track {
    animation-play-state: paused;
}

.b4d-marquee-track span {
    white-space: nowrap;
    color: #fff8eb;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-shadow: 0 0 8px rgba(255, 199, 44, 0.55);
}

@keyframes b4dMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .b4d-marquee-wrap {
        padding: 0 12px;
        margin-top: 6px;
    }

    .b4d-marquee-track {
        gap: 24px;
        padding: 10px 0;
        animation-duration: 22s;
    }

    .b4d-marquee-track span {
        font-size: 12px;
    }
}

img.img-hero {
    width: 30%;
    opacity: 0.1;
    position: absolute;
    right: 5px;
    top: 15px;
}

.status.libur, .badge.libur{
    background: rgba(180, 83, 9, .16);
    color: #fcd34d;
    border: 1px solid rgba(217, 119, 6, .30);
}

.countdown-box{
    margin:16px 0 14px;
    padding:14px 12px;
    border-radius:16px;
    text-align:center;
    position:relative;
    overflow:hidden;
    border:1px solid rgba(239, 68, 68, .22);
    background:linear-gradient(145deg,rgba(255,255,255,.04),rgba(239, 68, 68, .08));
    box-shadow:
        0 8px 22px rgba(0,0,0,.25),
        0 0 20px rgba(212, 160, 60, .08);
}

.countdown-box::before{
    content:"";
    position:absolute;
    inset:0;
    background:radial-gradient(circle at top, rgba(212, 160, 60, .16), transparent 55%);
    pointer-events:none;
}

.countdown-label{
    position:relative;
    z-index:2;
    color:#eed5b7;
    font-size:13px;
    font-weight:800;
    letter-spacing:.4px;
    text-transform:uppercase;
    margin-bottom:6px;
}

.countdown-label i{
    color:#ff4d4d;
    margin-right:5px;
}

.countdown-time{
    position:relative;
    z-index:2;
    font-size:24px;
    font-weight:900;
    color:#ff4d4d;
    text-shadow:0 0 12px rgba(239,68,68,.45);
    letter-spacing:1px;
}

.countdown-box.open{
    border-color:rgba(239,68,68,.35);
}

.countdown-box.waiting{
    border-color:rgba(250,204,21,.35);
    background:linear-gradient(145deg,rgba(255,255,255,.04),rgba(250,204,21,.10));
}

.countdown-box.waiting .countdown-label i,
.countdown-box.waiting .countdown-time{
    color:#facc15;
    text-shadow:0 0 12px rgba(250,204,21,.42);
}

.countdown-box.off{
    border-color:rgba(220,38,38,.30);
    background:linear-gradient(145deg,rgba(255,255,255,.04),rgba(220,38,38,.08));
}

.countdown-box.off .countdown-label i,
.countdown-box.off .countdown-time{
    color:#f87171;
    text-shadow:0 0 12px rgba(248,113,113,.38);
}

@media(max-width:600px){
    .countdown-time{
        font-size:21px;
    }
}

/* FITUR TAMBAHAN HOMEPAGE */
.b4d-feature-section{
    max-width:1200px;
    margin:26px auto 0;
    padding:0 18px;
}
.b4d-feature-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:14px;
}
.b4d-feature-title{
    color:#fff;
    font-size:24px;
    font-weight:950;
    text-shadow:0 0 18px rgba(255,199,44,.24);
}
.b4d-feature-title span{
    display:block;
    color:#cfb397;
    font-size:13px;
    font-weight:700;
    margin-top:4px;
}
.b4d-feature-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:14px;
}
.b4d-feature-card{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    padding:16px;
    background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(212,160,60,.07));
    border:1px solid rgba(212,160,60,.18);
    box-shadow:0 10px 24px rgba(0,0,0,.28),0 0 18px rgba(212,160,60,.08);
    color:#fff8eb;
}
.b4d-feature-card::before{
    content:"";
    position:absolute;
    width:120px;
    height:120px;
    border-radius:50%;
    top:-75px;
    right:-50px;
    background:rgba(255,199,44,.12);
}
.b4d-feature-card strong{
    position:relative;
    z-index:2;
    display:block;
    color:var(--green);
    font-size:17px;
    margin-bottom:8px;
    text-shadow:0 0 12px rgba(255,199,44,.35);
}
.b4d-feature-card p,
.b4d-feature-card small{
    position:relative;
    z-index:2;
    color:#fff0d4;
    line-height:1.5;
}
.b4d-result-number{
    position:relative;
    z-index:2;
    display:inline-flex;
    padding:8px 12px;
    border-radius:999px;
    background:rgba(250,204,21,.16);
    border:1px solid rgba(250,204,21,.35);
    color:#ffc72c;
    font-size:20px;
    font-weight:950;
    letter-spacing:1px;
    margin-top:8px;
}
.b4d-winner-rank{
    display:inline-flex;
    padding:5px 9px;
    border-radius:999px;
    background:rgba(255,199,44,.12);
    border:1px solid rgba(212,160,60,.25);
    color:var(--green);
    font-weight:900;
    margin-bottom:6px;
}
.b4d-empty-mini{
    border-radius:18px;
    padding:18px;
    background:rgba(255,255,255,.035);
    border:1px solid rgba(212,160,60,.16);
    color:#cfb397;
    text-align:center;
    font-weight:800;
}
.b4d-filter-bar {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 0 18px;
}
@media(max-width:600px){
    .b4d-filter-bar {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
        margin: 0 0 18px;
    }
}
/* Buka Sekarang (Kuning Emas) */
.b4d-filter-btn[data-filter="buka"].active{
    background:linear-gradient(135deg,#d97706,#f59e0b,#ffc72c);
    color:#260800;
}

/* Libur (Coklat Emas Hangat) */
.b4d-filter-btn[data-filter="libur"].active{
    background:linear-gradient(135deg,#854d0e,#d97706);
    color:#ffffff;
}

/* Tutup (Merah Pekat) */
.b4d-filter-btn[data-filter="tutup"].active{
    background:linear-gradient(135deg,#7f0000,#c40000,#ff2d2d);
    color:#ffffff;
}
.b4d-filter-btn{
    border:none;
    cursor:pointer;
    padding:11px 15px;
    border-radius:999px;
    color:#fff0d4;
    background:rgba(255,255,255,.055);
    border:1px solid rgba(212,160,60,.18);
    font-weight:900;
    transition:.22s ease;
}
.b4d-filter-btn:hover,
.b4d-filter-btn.active{
    color:#260800;
    background:linear-gradient(135deg,var(--green-2),var(--green));
    box-shadow:0 10px 22px rgba(217,27,27,.28);
    transform:translateY(-2px);
}
@media(max-width:600px){
    .b4d-feature-title{font-size:21px;}
    .b4d-filter-btn{width:100%;}
}

.detail-pasaran-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:100%;
    margin:10px 0 0;
    padding:12px 14px;
    border-radius:14px;
    color:#260800;
    text-decoration:none;
    font-weight:900;
    background:linear-gradient(135deg,#d91b1b,#ffc72c);
    border:1px solid rgba(255,255,255,.22);
    box-shadow:0 10px 22px rgba(217,27,27,.22);
    transition:.22s ease;
    margin-bottom: 10px;
}
.detail-pasaran-btn:hover{
    transform:translateY(-2px);
    filter:brightness(1.06);
}

.b4d-result-title{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    gap:9px;
    margin-bottom:7px;
}

.b4d-result-logo-small{
    width:32px;
    height:32px;
    object-fit:contain;
    border-radius:9px;
    padding:4px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(212,160,60,.22);
    box-shadow:0 0 12px rgba(255,199,44,.14);
    flex-shrink:0;
}

.b4d-result-title strong{
    margin-bottom:0;
}

/* RESULT HARI INI DI CARD PASARAN */
.result-today-box {
    width: 80%;
    margin: 10px 0 10px;
    padding: 10px 10px;
    border-radius: 18px;
    text-align: center;
    justify-self: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(212, 160, 60, .08)), rgba(26, 14, 7, .82);
    border: 1px solid rgba(212, 160, 60, .25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 22px rgba(0, 0, 0, .25);
}

.result-today-box small{
    display:block;
    margin-bottom:6px;
    font-size:12px;
    font-weight:900;
    letter-spacing:.7px;
    color:#eed5b7;
}

.result-today-box strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 5px 15px;
    border-radius: 999px;
    background: rgba(250, 204, 21, .16);
    border: 1px solid rgba(250, 204, 21, .35);
    color: #ffc72c;
    font-size: 20px;
    font-weight: 950;
}

.result-today-box span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 16px;
    border-radius:999px;
    font-size:13px;
    font-weight:900;
    color:#fff0d4;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12);
}

/* AUTO POPUP RULES BAMBU4D */
.b4d-rules-overlay{
    position:fixed;
    inset:0;
    z-index:999999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:
        radial-gradient(circle at top, rgba(212,160,60,.20), transparent 38%),
        rgba(10,5,2,.82);
    backdrop-filter:blur(8px);
}

.b4d-rules-overlay.show{
    display:flex;
}

.b4d-rules-modal{
    position:relative;
    width:100%;
    max-width:640px;
    max-height:92vh;
    overflow:hidden;
    border-radius:28px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.055), rgba(212,160,60,.08)),
        #180d07;
    border:1px solid rgba(212,160,60,.30);
    box-shadow:
        0 30px 90px rgba(0,0,0,.60),
        0 0 45px rgba(212,160,60,.16);
    animation:b4dRulesZoom .35s ease;
}

@keyframes b4dRulesZoom{
    from{
        opacity:0;
        transform:scale(.88) translateY(18px);
    }
    to{
        opacity:1;
        transform:scale(1) translateY(0);
    }
}

.b4d-rules-close{
    position:absolute;
    top:14px;
    right:14px;
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    color:#ffffff;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.15);
    z-index:5;
    transition:.2s ease;
}

.b4d-rules-close:hover{
    background:#dc2626;
    transform:rotate(90deg);
}

.b4d-rules-header{
    display:flex;
    gap:14px;
    align-items:center;
    padding:24px 58px 20px 24px;
    background:
        linear-gradient(135deg, rgba(217,27,27,.35), rgba(255,199,44,.15)),
        rgba(255,255,255,.04);
    border-bottom:1px solid rgba(212,160,60,.22);
}

.b4d-rules-icon{
    width:58px;
    height:58px;
    min-width:58px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#260800;
    font-size:26px;
    background:linear-gradient(135deg,#d91b1b,#ffc72c);
    box-shadow:0 12px 28px rgba(217,27,27,.28);
}

.b4d-rules-header span{
    display:inline-flex;
    margin-bottom:5px;
    padding:5px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:1000;
    color:#260800;
    background:#ffc72c;
}

.b4d-rules-header h2{
    margin:0;
    color:#ffffff;
    font-size:24px;
    font-weight:1000;
    line-height:1.15;
}

.b4d-rules-header p{
    margin:6px 0 0;
    color:#ffd9ad;
    font-size:14px;
}

.b4d-rules-body{
    max-height:56vh;
    overflow-y:auto;
    padding:20px 24px;
}

.b4d-rules-body::-webkit-scrollbar{
    width:6px;
}

.b4d-rules-body::-webkit-scrollbar-thumb{
    background:#ffc72c;
    border-radius:20px;
}

.b4d-rules-alert{
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom:14px;
    padding:12px 14px;
    border-radius:16px;
    color:#fff8d6;
    font-weight:800;
    background:rgba(250,204,21,.12);
    border:1px solid rgba(250,204,21,.25);
}

.b4d-rules-list{
    display:grid;
    gap:10px;
}

.b4d-rules-item{
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:12px;
    border-radius:16px;
    color:#fff3e2;
    background:rgba(255,255,255,.045);
    border:1px solid rgba(212,160,60,.18);
}

.b4d-rules-item b{
    width:28px;
    height:28px;
    min-width:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    color:#260800;
    background:linear-gradient(135deg,#d91b1b,#ffc72c);
    font-weight:1000;
}

.b4d-rules-item span{
    font-size:14px;
    line-height:1.45;
}

.b4d-rules-item strong{
    color:#ffc72c;
}

.b4d-rules-prize{
    margin-top:16px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
}

.b4d-rules-prize div{
    text-align:center;
    padding:12px 8px;
    border-radius:16px;
    background:rgba(212,160,60,.08);
    border:1px solid rgba(212,160,60,.22);
}

.b4d-rules-prize small{
    display:block;
    margin-bottom:5px;
    color:#eed5b7;
    font-weight:800;
}

.b4d-rules-prize strong{
    color:#ffffff;
    font-size:14px;
}

.b4d-rules-footer{
    display:grid;
    gap:10px;
    padding:16px 24px;
    border-top:1px solid rgba(212,160,60,.20);
    background:rgba(0,0,0,.25);
}

.b4d-rules-understand,
.b4d-rules-register{
    min-height:46px;
    border:none;
    border-radius:999px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-decoration:none;
    font-size:14px;
    font-weight:1000;
    transition:.2s ease;
}

.b4d-rules-understand{
    color:#260800;
    background:linear-gradient(135deg,#d91b1b,#ffc72c);
}

.b4d-rules-register{
    color:#ffffff;
    background:linear-gradient(135deg,#854d0e,#d97706);
    border:1px solid rgba(255,199,44,.35);
}

.b4d-rules-understand:hover,
.b4d-rules-register:hover{
    transform:translateY(-2px);
    filter:brightness(1.08);
}

.b4d-rules-countdown{
    padding:0 24px 14px;
    text-align:center;
    color:#ffd9ad;
    font-size:13px;
    font-weight:800;
}

.b4d-rules-countdown strong{
    color:#ffc72c;
}

.b4d-rules-progress{
    width:100%;
    height:5px;
    background:rgba(255,255,255,.08);
}

.b4d-rules-progress span{
    display:block;
    width:100%;
    height:100%;
    background:linear-gradient(90deg,#d91b1b,#ffc72c);
    transition:width 1s linear;
}

@media(max-width:600px){
    .b4d-rules-modal{
        border-radius:22px;
    }

    .b4d-rules-header{
        padding:22px 52px 18px 18px;
    }

    .b4d-rules-icon{
        width:50px;
        height:50px;
        min-width:50px;
        font-size:22px;
    }

    .b4d-rules-header h2{
        font-size:19px;
    }

    .b4d-rules-body{
        padding:16px;
    }

    .b4d-rules-prize{
        grid-template-columns:repeat(2,1fr);
    }

    .b4d-rules-footer{
        grid-template-columns:1fr;
        padding:14px 16px;
    }
}