/* Reset & Viewport setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: #0d0d0d;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Container matching mobile device scale */
.landing-viewport {
    position: relative;
    width: 100%;
    max-width: 414px;
    height: 100vh;
    max-height: 896px;
    background-color: #121212;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 415px) {
    .landing-viewport {
        height: 88vh;
        border-radius: 24px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
}

/* Background Offer Image Layer */
.bg-offer-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.offer-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modal Overlay Wrapper */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.15);
}

/* iOS Alert Box matching exact proportions */
.ios-alert-box {
    width: 82%;
    max-width: 320px;
    background-color: #f9f9f9;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    text-align: center;
    overflow: hidden;
    animation: fadeInScale 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.25) forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.alert-content {
    padding: 22px 16px 18px 16px;
}

.alert-title {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.alert-desc {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: 1.38;
    letter-spacing: -0.1px;
}

.alert-line {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
}

.alert-btn {
    width: 100%;
    height: 48px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 17px;
    font-weight: 600;
    color: #007aff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: background-color 0.12s ease;
}

.alert-btn:active {
    background-color: #ececec;
}

/* Spinner Loader */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(0, 122, 255, 0.2);
    border-top-color: #007aff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Toast */
.toast-bar {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(28, 28, 30, 0.96);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 20;
    transition: bottom 0.35s ease;
    width: 90%;
    max-width: 360px;
}

.toast-bar.active {
    bottom: 24px;
}

.toast-badge {
    width: 22px;
    height: 22px;
    background-color: #34c759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}
