:root {
    --bg-color: #000000;
    --popup-bg: rgba(44, 44, 46, 0.7);
    --text-primary: #ffffff;
    --text-secondary: rgba(235, 235, 245, 0.6);
    --accent-blue: #0A84FF;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    /* Block scrolling */
    height: 100vh;
    width: 100vw;
}

/* Background Simulation */
.background-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(40px);
    z-index: 0;
    opacity: 0.6;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px;
}

.app-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1d1d1f, #3a3a3c);
    border-radius: 13px;
}

/* Blocker Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Popup Container */
.popup-container {
    padding: 20px;
    width: 100%;
    max-width: 320px;
    animation: popupAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup {
    background: var(--popup-bg);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-align: center;
}

.glass {
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.popup-header {
    padding: 20px 20px 10px;
}

.warning-icon {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 5px;
}

.popup-body {
    padding: 0 20px 20px;
}

p {
    font-size: 13px;
    line-height: normal;
    margin-bottom: 4px;
}

.secondary {
    color: var(--text-secondary);
}

/* Footer Buttons */
.popup-footer {
    display: flex;
    border-top: 0.5px solid var(--border-color);
}

.btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--accent-blue);
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: block;
    /* Ensure full button area is clickable */
}

.btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.btn.primary {
    font-weight: 600;
}

.popup-footer .btn:first-child {
    border-right: 0.5px solid var(--border-color);
}

/* Animations */
@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(1.15);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Prevent text selection */
* {
    user-select: none;
    -webkit-user-select: none;
}