/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: #141b1c;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4);
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-box {
    background-color: rgba(46, 56, 57, 0.9);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 150px;
}

.loading-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===== APP CONTAINER ===== */
.app-container {
    background-color: rgba(46, 56, 57, 0.9);
    border-radius: 25px;
    padding: 30px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.app-image {
    width: 120px;
    height: 120px;
    border-radius: 22px;
    margin: 0 auto 20px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.app-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* ===== DOWNLOAD BUTTON ===== */
.download-button {
    background-color: rgb(36, 47, 49);
    color: white;
    border: none;
    padding: 12px 0;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 180px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(36, 47, 49, 0.5);
    transition: transform 0.1s;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.download-button:active {
    transform: scale(0.98);
}

.download-button.loading {
    color: transparent;
}

.download-button.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #34C759;
    animation: fillBar 2s linear forwards;
    z-index: 0;
}

@keyframes fillBar {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ===== SPINNER ===== */
.ispinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    z-index: 1;
}

.loading-box .ispinner {
    display: block;
    width: 24px;
    height: 24px;
}

.download-button.loading .ispinner {
    display: block;
}

.ispinner-blade {
    position: absolute;
    top: 6.5px;
    left: 8.5px;
    width: 2.5px;
    height: 6.5px;
    background-color: white;
    border-radius: 1.25px;
    animation: iSpinnerBlade 1s linear infinite;
}

.ispinner-blade:nth-child(1) { transform: rotate(45deg) translateY(-6.5px); animation-delay: -1.625s; }
.ispinner-blade:nth-child(2) { transform: rotate(90deg) translateY(-6.5px); animation-delay: -1.5s; }
.ispinner-blade:nth-child(3) { transform: rotate(135deg) translateY(-6.5px); animation-delay: -1.375s; }
.ispinner-blade:nth-child(4) { transform: rotate(180deg) translateY(-6.5px); animation-delay: -1.25s; }
.ispinner-blade:nth-child(5) { transform: rotate(225deg) translateY(-6.5px); animation-delay: -1.125s; }
.ispinner-blade:nth-child(6) { transform: rotate(270deg) translateY(-6.5px); animation-delay: -1s; }
.ispinner-blade:nth-child(7) { transform: rotate(315deg) translateY(-6.5px); animation-delay: -0.875s; }
.ispinner-blade:nth-child(8) { transform: rotate(360deg) translateY(-6.5px); animation-delay: -0.75s; }

@keyframes iSpinnerBlade {
    0% { opacity: 0.85; }
    50% { opacity: 0.25; }
    100% { opacity: 0.25; }
}

/* ===== CONTENT LOCKER ===== */
.content-locker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.locker-container {
    background-color: rgba(46, 56, 57, 0.95);
    border-radius: 25px;
    padding: 25px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.locker-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #34C759;
}

.locker-description {
    margin: 15px 0;
    line-height: 1.5;
    font-size: 15px;
}

.locker-button {
    background: #34C759;
    color: white;
    border: none;
    padding: 12px 0;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    transition: transform 0.1s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.locker-button:active {
    transform: scale(0.98);
}

.locker-waiting {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 480px) {
    .app-container,
    .locker-container {
        padding: 25px;
    }
    
    .app-title,
    .locker-title {
        font-size: 20px;
    }
    
    .locker-description {
        font-size: 14px;
    }
    
    .download-button,
    .locker-button {
        padding: 12px 0;
        font-size: 15px;
    }
}