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

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    padding-bottom:82px;
    background:
        radial-gradient(circle at 50% -10%,rgba(15,112,255,.13),transparent 38%),
        #02060c;
    color:#edf6ff;
    font-family:"Audiowide",sans-serif;
    overflow-x:hidden;
}

button,
input{
    font-family:"Audiowide",sans-serif;
}

button{
    cursor:pointer;
}

svg{
    display:block;
}

/* =====================================================
   GLOBAL ANIMATION
===================================================== */

@keyframes rotate{
    to{transform:rotate(360deg)}
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(14px);
    }
    to{
        opacity:1;
        transform:none;
    }
}

@keyframes modalIn{
    from{
        opacity:0;
        transform:translateY(25px) scale(.96);
    }
    to{
        opacity:1;
        transform:none;
    }
}

@keyframes pulse{
    0%,100%{
        opacity:.3;
        transform:scale(.8);
    }
    50%{
        opacity:1;
        transform:scale(1);
    }
}

/* =====================================================
   INITIAL LOADING
===================================================== */

#loading{
    position:fixed;
    inset:0;
    z-index:99999;
    background:#02060c;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    transition:.5s;
}

.loader-ring{
    width:76px;
    height:76px;
    border-radius:50%;
    border:2px solid #10233b;
    border-top-color:#1688ff;
    border-right-color:#1688ff;
    animation:rotate .75s linear infinite;
    box-shadow:0 0 35px rgba(22,136,255,.2);
    display:flex;
    align-items:center;
    justify-content:center;
}

.loader-ring svg{
    width:27px;
    fill:#1688ff;
}

.loading-title{
    margin-top:20px;
    font-size:14px;
    letter-spacing:1.5px;
    text-align:center;
}

.loading-sub{
    margin-top:9px;
    color:#5c7189;
    font-size:8px;
    letter-spacing:1px;
}

.progress-box{
    width:185px;
    height:3px;
    margin-top:20px;
    border-radius:10px;
    background:#0c1724;
    overflow:hidden;
}

.progress{
    height:100%;
    width:0;
    background:#1688ff;
    box-shadow:0 0 14px #1688ff;
}

/* =====================================================
   WHATSAPP POPUP
===================================================== */

.popup-bg{
    position:fixed;
    inset:0;
    z-index:9000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(0,0,0,.78);
    backdrop-filter:blur(9px);
}

.popup{
    position:relative;
    width:100%;
    max-width:370px;
    padding:25px 20px 20px;
    border-radius:22px;
    background:#07111d;
    border:1px solid #173b60;
    box-shadow:0 20px 80px rgba(0,0,0,.6);
    text-align:center;
    animation:modalIn .3s ease;
}

.close{
    position:absolute;
    right:11px;
    top:11px;
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    border:1px solid #17314d;
    background:#081421;
    color:#7990a8;
}

.close svg{
    width:15px;
}

.wa-logo{
    width:64px;
    height:64px;
    margin:auto;
    border-radius:18px;
    background:#071b30;
    border:1px solid #195181;
    display:flex;
    align-items:center;
    justify-content:center;
}

.wa-logo svg{
    width:34px;
    fill:#1688ff;
}

.popup h2{
    margin-top:16px;
    font-size:16px;
}

.popup p{
    margin:10px 0 18px;
    color:#70859d;
    font-size:9px;
    line-height:1.8;
}

.join-btn{
    width:100%;
    border:0;
    border-radius:12px;
    padding:13px;
    background:linear-gradient(135deg,#087fff,#164dbb);
    color:white;
    font-size:9px;
}

/* =====================================================
   HEADER
===================================================== */

header{
    max-width:920px;
    margin:auto;
    padding:17px;
}

.brand{
    display:flex;
    align-items:center;
    gap:11px;
}

.brand-icon{
    width:43px;
    height:43px;
    flex-shrink:0;
    border-radius:13px;
    background:#07192b;
    border:1px solid #164a78;
    display:flex;
    align-items:center;
    justify-content:center;
}

.brand-icon svg{
    width:22px;
    fill:#1688ff;
}

.brand-title{
    font-size:12px;
}

.brand-sub{
    margin-top:5px;
    color:#587089;
    font-size:7px;
}

/* =====================================================
   MAIN
===================================================== */

main{
    max-width:920px;
    margin:auto;
    padding:0 16px 30px;
}

.page{
    display:none;
}

.page.active{
    display:block;
    animation:fadeUp .3s ease;
}

/* =====================================================
   VIDEO
===================================================== */

.signal{
    display:flex;
    gap:6px;
    margin:3px 12px 8px;
}

.signal i{
    width:6px;
    height:6px;
    border-radius:50%;
    background:#1688ff;
    box-shadow:0 0 11px #1688ff;
    animation:pulse 1s infinite;
}

.signal i:nth-child(2){animation-delay:.15s}
.signal i:nth-child(3){animation-delay:.3s}
.signal i:nth-child(4){animation-delay:.45s}

.video-wrap{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    background:#000;
}

.video{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    display:block;
    pointer-events:none;
}

/* membuat bagian bawah video menyatu dengan clockbar */
.video-wrap::after{
    content:"";
    position:absolute;
    left:-10px;
    right:-10px;
    bottom:38px;
    height:38%;
    pointer-events:none;
    background:linear-gradient(
        to bottom,
        transparent 0%,
        rgba(3,10,18,.28) 35%,
        rgba(5,12,21,.86) 82%,
        #050c15 100%
    );
    filter:blur(7px);
    transform:translateY(8px);
    z-index:1;
}
.video-wrap .clockbar{z-index:2}


.clockbar{
    position:relative;
    z-index:2;
    height:42px;
    margin-top:-1px;
    padding:0 13px;
    background:#050c15;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.live{
    display:flex;
    align-items:center;
    gap:6px;
    color:#318fff;
    font-size:7px;
    letter-spacing:1px;
}

.live-dot{
    width:5px;
    height:5px;
    border-radius:50%;
    background:#1688ff;
    box-shadow:0 0 9px #1688ff;
}

.clock{
    color:#8095aa;
    font-size:8px;
}

/* =====================================================
   HEADING
===================================================== */

.heading{
    margin:27px 0 13px;
}

.heading h1{
    font-size:18px;
}

.heading p{
    margin-top:7px;
    color:#647a91;
    font-size:8px;
    line-height:1.8;
}

/* =====================================================
   GENERAL CARD
===================================================== */

.card{
    padding:16px;
    border-radius:18px;
    border:1px solid #122c47;
    background:linear-gradient(145deg,#081522,#040b13);
}

.label{
    display:block;
    margin-bottom:7px;
    color:#70869d;
    font-size:8px;
}

.input{
    width:100%;
    outline:none;
    border-radius:11px;
    border:1px solid #18324d;
    background:#030911;
    color:#fff;
    padding:13px;
    font-size:9px;
}

.input:focus{
    border-color:#1688ff;
    box-shadow:0 0 0 3px rgba(22,136,255,.08);
}

.btn{
    width:100%;
    margin-top:11px;
    padding:13px;
    border:0;
    border-radius:11px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:linear-gradient(135deg,#087fff,#174db9);
    color:white;
    font-size:8px;
}

.btn svg{
    width:16px;
    fill:currentColor;
}

.btn:disabled{
    opacity:.5;
}

/* =====================================================
   LOADER
===================================================== */

.action-loader{
    display:none;
    margin-top:11px;
    padding:17px;
    text-align:center;
    border-radius:13px;
    background:#040b13;
    border:1px solid #122a43;
}

.action-loader.show{
    display:block;
}

.spinner{
    width:27px;
    height:27px;
    margin:auto;
    border:3px solid #13283d;
    border-top-color:#1688ff;
    border-radius:50%;
    animation:rotate .7s linear infinite;
}

.loader-text{
    margin-top:9px;
    color:#71879d;
    font-size:7px;
}

/* =====================================================
   RESULT
===================================================== */

.result{
    display:none;
    margin-top:12px;
}

.result.show{
    display:block;
    animation:fadeUp .3s ease;
}

/* =====================================================
   NUMBER RESULT
===================================================== */

.number-card{
    padding:16px;
    border-radius:16px;
    border:1px solid #185589;
    background:linear-gradient(135deg,#071c32,#06111c);
}

.result-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.mini{
    color:#657c94;
    font-size:7px;
}

.country{
    color:#a7b8c9;
    font-size:7px;
}

.number-row{
    display:flex;
    gap:8px;
    align-items:center;
    margin-top:12px;
}

.number{
    flex:1;
    font-size:18px;
    word-break:break-all;
}

.copy{
    width:41px;
    height:41px;
    flex-shrink:0;
    border-radius:11px;
    border:1px solid #194b77;
    background:#07182a;
    color:#4da8ff;
    display:flex;
    align-items:center;
    justify-content:center;
}

.copy svg{
    width:17px;
    fill:currentColor;
}

.meta{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
    margin-top:13px;
}

.meta-box{
    padding:10px;
    border-radius:9px;
    background:#040b13;
    border:1px solid rgba(255,255,255,.04);
}

.meta-box small{
    color:#597088;
    font-size:6px;
}

.meta-box b{
    display:block;
    margin-top:4px;
    font-size:8px;
}

/* =====================================================
   INFO
===================================================== */

.info{
    margin-top:11px;
    padding:15px;
    border-radius:16px;
    background:#050d16;
    border:1px solid rgba(255,255,255,.05);
}

.info h3{
    font-size:10px;
    margin-bottom:8px;
}

.info p,
.info li{
    color:#6e8298;
    font-size:7px;
    line-height:1.9;
}

.info ul{
    padding-left:15px;
}

/* =====================================================
   TOOLS GRID
===================================================== */

.tools-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.tool-card{
    position:relative;
    min-height:145px;
    padding:14px;
    border-radius:17px;
    border:1px solid #122d47;
    background:
        radial-gradient(circle at 90% 10%,rgba(19,123,255,.08),transparent 40%),
        linear-gradient(145deg,#081522,#040b13);
    overflow:hidden;
    transition:.25s;
}

.tool-card:hover{
    transform:translateY(-2px);
    border-color:#1c5487;
}

.tool-icon{
    width:38px;
    height:38px;
    margin-bottom:12px;
    border-radius:11px;
    background:#071a2d;
    border:1px solid #164873;
    display:flex;
    align-items:center;
    justify-content:center;
}

.tool-icon svg{
    width:19px;
    fill:#1988ff;
}

.tool-card h3{
    font-size:9px;
    line-height:1.5;
}

.tool-card p{
    margin-top:6px;
    color:#61768d;
    font-size:6px;
    line-height:1.7;
}

.tool-open{
    position:absolute;
    right:11px;
    bottom:11px;
    width:27px;
    height:27px;
    border-radius:8px;
    border:1px solid #174a77;
    background:#061526;
    color:#4ba6ff;
    display:flex;
    align-items:center;
    justify-content:center;
}

.tool-open svg{
    width:12px;
    fill:currentColor;
}

/* =====================================================
   FEATURE GUIDE / EXAMPLE
===================================================== */
.feature-guide{
    margin-top:16px;
    padding:13px;
    border-radius:13px;
    background:linear-gradient(145deg,#071727,#040b13);
    border:1px solid #12334f;
}
.feature-guide h3{
    font-size:8px;
    letter-spacing:.5px;
}
.feature-guide p{
    margin-top:6px;
    color:#71879d;
    font-size:6.5px;
    line-height:1.7;
}
.feature-example{
    margin-top:9px;
    display:grid;
    gap:6px;
}
.example-row{
    padding:8px 9px;
    border-radius:9px;
    background:#030911;
    border:1px solid rgba(255,255,255,.05);
}
.example-row small{
    display:block;
    color:#536c84;
    font-size:5.5px;
    margin-bottom:3px;
}
.example-row code{
    color:#8fc8ff;
    font-family:monospace;
    font-size:7px;
    word-break:break-all;
}
.tool-card{cursor:pointer}
.tool-card:focus-visible{outline:2px solid #1688ff;outline-offset:2px}

/* =====================================================
   MODAL
===================================================== */

.modal-bg{
    position:fixed;
    inset:0;
    z-index:7000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(0,0,0,.75);
    backdrop-filter:blur(10px);
}

.modal-bg.show{
    display:flex;
}

.modal{
    position:relative;
    width:100%;
    max-width:430px;
    max-height:90vh;
    overflow-y:auto;
    padding:20px;
    border-radius:21px;
    border:1px solid #173a5d;
    background:
        radial-gradient(circle at top right,rgba(20,125,255,.1),transparent 38%),
        #06101a;
    box-shadow:0 25px 90px rgba(0,0,0,.7);
    animation:modalIn .28s ease;
}

.modal-title{
    display:flex;
    align-items:center;
    gap:10px;
    padding-right:35px;
}

.modal-title-icon{
    width:37px;
    height:37px;
    flex-shrink:0;
    border-radius:10px;
    background:#071b2e;
    border:1px solid #174b79;
    color:#1688ff;
    display:flex;
    align-items:center;
    justify-content:center;
}

.modal-title-icon svg{
    width:18px;
    fill:currentColor;
}

.modal-title h2{
    font-size:11px;
}

.modal-title p{
    margin-top:4px;
    color:#627991;
    font-size:6px;
}

.modal .close{
    top:13px;
    right:13px;
}

/* =====================================================
   MODAL RESULTS
===================================================== */

.status-box{
    padding:14px;
    margin-top:12px;
    border-radius:14px;
    background:#050d15;
    border:1px solid rgba(255,255,255,.05);
}

.status-row{
    display:flex;
    align-items:center;
    gap:9px;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,.045);
}

.status-row:last-child{
    border-bottom:0;
}

.status-icon{
    width:31px;
    height:31px;
    flex-shrink:0;
    border-radius:9px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#071a2c;
    color:#1688ff;
}

.status-icon svg{
    width:15px;
    fill:currentColor;
}

.status-text{
    flex:1;
}

.status-text b{
    display:block;
    font-size:7px;
}

.status-text span{
    display:block;
    margin-top:3px;
    color:#61778e;
    font-size:6px;
    line-height:1.5;
}

.status-ok{
    color:#35d995;
}

.status-bad{
    color:#ff5d70;
}

/* =====================================================
   OTP
===================================================== */

.otp-card{
    padding:15px;
    margin-bottom:8px;
    border-radius:14px;
    background:#071b2f;
    border:1px solid #175181;
}

.otp-code{
    margin-top:7px;
    color:#4ba8ff;
    font-size:20px;
    letter-spacing:4px;
}

/* =====================================================
   ZIP RESULT
===================================================== */

.download-box{
    margin-top:13px;
    padding:17px;
    text-align:center;
    border-radius:15px;
    background:#061a2c;
    border:1px solid #185486;
}

.download-icon{
    width:46px;
    height:46px;
    margin:auto;
    border-radius:13px;
    background:#071e34;
    border:1px solid #18588e;
    color:#2493ff;
    display:flex;
    align-items:center;
    justify-content:center;
}

.download-icon svg{
    width:22px;
    fill:currentColor;
}

.download-box h3{
    margin-top:11px;
    font-size:10px;
}

.download-box p{
    margin-top:5px;
    color:#657b92;
    font-size:6px;
}

.download-btn{
    width:100%;
    margin-top:13px;
    padding:13px;
    border:0;
    border-radius:11px;
    background:linear-gradient(135deg,#087fff,#164dbb);
    color:#fff;
    font-size:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.download-btn svg{
    width:15px;
    fill:currentColor;
}

/* =====================================================
   FOOTER
===================================================== */

footer{
    max-width:920px;
    margin:auto;
    padding:22px 16px;
    text-align:center;
    border-top:1px solid rgba(255,255,255,.05);
}

footer strong{
    font-size:9px;
}

footer p{
    margin-top:6px;
    color:#53677d;
    font-size:6px;
}

/* =====================================================
   BOTTOM NAV
===================================================== */

.bottom-nav{
    position:fixed;
    z-index:500;
    left:0;
    right:0;
    bottom:0;
    height:70px;
    background:rgba(2,7,13,.96);
    backdrop-filter:blur(15px);
    border-top:1px solid #10263d;
}

.nav{
    max-width:600px;
    height:100%;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(3,1fr);
}

.nav button{
    border:0;
    background:none;
    color:#5b7189;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    font-size:6px;
    transition:.2s;
}

.nav button svg{
    width:20px;
    height:20px;
    fill:currentColor;
}

.nav button.active{
    color:#218cff;
}

@media(min-width:650px){

    .tools-grid{
        grid-template-columns:repeat(3,1fr);
    }

}
