/* ======================== LAYOUT TOGGLE ======================== */
.web-layout { display: block; }
.mobile-layout { display: none; }

@media (max-width: 768px) {
    .web-layout { display: none !important; }
    .mobile-layout { display: block !important; }
}

/* ======================== WEB — tab transition ======================== */
.tab-button { transition: all 0.2s ease-in-out; }

/* ======================== MOBILE — only custom styles that Tailwind can't handle ======================== */
@media (max-width: 768px) {

    /* --- Scrollable container (background merah) --- */
    .mob-login-scroll {
        background-color: #960000;
        width: 100%;
        min-height: 100vh;
        overflow-y: auto;
        scroll-behavior: smooth;
    }

    /* --- Background image layers (position trick dari mobile asli) --- */
    .mob-gradient {
        background: url('../assets/images/mob/login/gradient.png') no-repeat;
        background-size: contain;
        position: relative;
        z-index: 2;
        width: 100%;
        height: 150px;
    }
    .mob-login-bg {
        background: url('../assets/images/mob/login/login-bg.png') top center / cover no-repeat;
        position: relative;
        top: -150px;
        z-index: 1;
        width: 100%;
        height: 650px;
    }

    /* --- Welcoming (positioned over background) --- */
    .mob-welcoming {
        margin-top: -655px;
        position: relative;
        z-index: 3;
    }

    /* --- Login option (positioned below welcoming) --- */
    .mob-login-option {
        margin-top: 360px;
        position: relative;
        z-index: 3;
    }

    /* --- Option button (rounded corner khas Alfamart) --- */
    .mob-btn-option {
        background: #fff;
        border: none;
        border-radius: 15px 0 15px 0;
        padding: 16px;
        cursor: pointer;
        display: block;
    }

    /* --- Blue button (rounded corner khas Alfamart) --- */
    .mob-btn-blue {
        background-color: #145FB8;
        color: #fff;
        border: none;
        border-radius: 15px 0 15px 0;
        padding: 12px 16px;
        height: 48px;
        font-size: 14px;
        cursor: pointer;
    }

    /* --- Step info cards (4 Langkah) --- */
    .mob-step-info {
        position: relative;
        margin: 24px 0;
        padding: 20px 16px 16px;
        background: rgba(255,255,255,0.08);
        border-radius: 16px;
        border: 1px solid rgba(255,255,255,0.12);
    }
    .mob-step-number {
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        width: 28px;
        height: 28px;
        background: #FFDD2D;
        color: #960000;
        font-size: 14px;
        font-weight: 800;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mob-step-img {
        width: 120px;
        height: 120px;
        object-fit: contain;
        margin: 8px auto 0;
        display: block;
    }
    .mob-step-desc {
        color: #fff;
        font-size: 0.8rem;
        margin-top: 8px;
        opacity: 0.75;
        line-height: 1.6;
    }

    /* --- Yellow text for "Franchise" --- */
    .mob-text-yellow { color: #FFDD2D; }

    /* --- Tailwind Preflight overrides (h2/h5/p/a/img reset) --- */
    .mobile-layout h2 { font-size: 1.875rem; font-weight: 700; }
    .mobile-layout h3 { font-size: 1.25rem; }
    .mobile-layout h5 { font-size: 1.125rem; }
    .mobile-layout a { text-decoration: none; }
    .mobile-layout img { display: inline-block; }

    /* ======================== BOTTOM SHEET ======================== */
    .mob-bottom-sheet {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        display: flex;
        opacity: 0;
        pointer-events: none;
        flex-direction: column;
        justify-content: flex-end;
        transition: opacity 0.1s linear;
        z-index: 1000;
    }
    .mob-bottom-sheet.show {
        opacity: 1;
        pointer-events: auto;
    }
    .mob-sheet-overlay {
        position: fixed;
        top: 0; left: 0;
        z-index: -1;
        width: 100%; height: 100%;
        opacity: 0.5;
        background: #000;
    }
    .mob-sheet-content {
        width: 100%;
        position: relative;
        background: #fff;
        max-height: 100vh;
        height: 50vh;
        padding: 25px 30px;
        transform: translateY(100%);
        border-radius: 12px 12px 0 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.03);
        transition: transform 0.3s ease;
    }
    .mob-bottom-sheet.show .mob-sheet-content {
        transform: translateY(0%);
    }
    .mob-bottom-sheet.dragging .mob-sheet-content {
        transition: none;
    }
    .mob-bottom-sheet.fullscreen .mob-sheet-content {
        border-radius: 0;
        overflow-y: hidden;
    }
    .mob-drag-icon {
        cursor: grab;
        user-select: none;
        padding: 15px;
        margin-top: -32px;
    }
    .mob-drag-icon span {
        height: 4px;
        width: 100px;
        display: block;
        background: #C7D0E1;
        border-radius: 50px;
    }
    .mob-sheet-body {
        height: 100%;
        overflow-y: auto;
        padding: 15px 0 40px;
        scrollbar-width: none;
    }
    .mob-sheet-body::-webkit-scrollbar { width: 0; }

} /* end @media */