body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f3f4f6; /* Light gray desktop background */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- MOBILE VIEW (Default) --- */
.iphone-mockup {
    width: 100%;
    height: 100vh;
    background: #ffffff;
    position: relative;
}
.iphone-screen {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}
/* Hide realistic hardware elements on actual mobile devices */
.dynamic-island, .iphone-buttons, .home-indicator { display: none; }

/* --- DESKTOP VIEW (iPhone 17 Realistic Frame) --- */
@media (min-width: 600px) {
    .iphone-mockup {
        width: 380px;
        height: 820px;
        background: #000000;
        border-radius: 55px;
        box-shadow: 
            inset 0 0 2px 2px #000000, 
            inset 0 0 0 6px #e5e5ea, 
            0 0 0 2px #d1d1d6, 
            0 30px 60px -15px rgba(0, 0, 0, 0.4);
        padding: 14px;
        position: relative;
        margin: 2rem 0;
    }

    .iphone-screen {
        background-color: #ffffff;
        width: 100%;
        height: 100%;
        border-radius: 40px;
        overflow-y: auto;
        position: relative;
        scrollbar-width: none; 
    }
    .iphone-screen::-webkit-scrollbar { display: none; }

    /* Hardware: Dynamic Island */
    .dynamic-island {
        display: block;
        position: absolute;
        top: 26px;
        left: 50%;
        transform: translateX(-50%);
        width: 110px;
        height: 32px;
        background-color: #000000;
        border-radius: 20px;
        z-index: 50;
    }

    /* Hardware: Home Bar Indicator */
    .home-indicator {
        display: block;
        position: absolute;
        bottom: 22px;
        left: 50%;
        transform: translateX(-50%);
        width: 130px;
        height: 5px;
        background-color: #000000;
        border-radius: 10px;
        z-index: 50;
        opacity: 0.2;
    }

    /* Hardware: Power Button (Right) */
    .iphone-mockup::after {
        content: '';
        position: absolute;
        top: 220px;
        right: -4px;
        width: 4px;
        height: 70px;
        background: #d1d1d6;
        border-radius: 0 4px 4px 0;
        box-shadow: inset 1px 0 2px rgba(0,0,0,0.2);
    }

    /* Hardware: Action & Volume Buttons (Left) */
    .iphone-buttons {
        display: block;
        position: absolute;
        top: 130px;
        left: -4px;
        width: 4px;
        height: 25px;
        background: #d1d1d6;
        border-radius: 4px 0 0 4px;
        box-shadow: 
            inset -1px 0 2px rgba(0,0,0,0.2),
            0 60px 0 0px #d1d1d6, 
            0 60px 0 0px inset -1px 0 2px rgba(0,0,0,0.2),
            0 130px 0 0px #d1d1d6, 
            0 130px 0 0px inset -1px 0 2px rgba(0,0,0,0.2);
    }
}

/* Utility class used by JavaScript */
.hidden { display: none !important; }