/* Push Permission Modal */
.push-permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 18, 28, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--cuboro-ease, ease), visibility 0.3s var(--cuboro-ease, ease);
    padding: calc(20px + var(--cuboro-safe-top, 0px)) calc(20px + var(--cuboro-safe-right, 0px)) calc(20px + var(--cuboro-safe-bottom, 0px)) calc(20px + var(--cuboro-safe-left, 0px));
}

.push-permission-modal.visible {
    opacity: 1;
    visibility: visible;
}

.push-permission-content {
    background: var(--cuboro-cream, #fbf6ee);
    border: 1px solid var(--cuboro-sand, rgba(58, 44, 32, 0.14));
    border-radius: var(--cuboro-radius, 14px);
    box-shadow: var(--cuboro-shadow-lg, 0 4px 8px rgba(58,44,32,.10), 0 18px 48px rgba(58,44,32,.16));
    max-width: 400px;
    width: 100%;
    padding: 32px;
    text-align: center;
    color: var(--cuboro-wenge, #3a2c20);
    transform: scale(0.9);
    transition: transform 0.3s var(--cuboro-spring, ease);
}

.push-permission-modal.visible .push-permission-content {
    transform: scale(1);
}

.push-permission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--cuboro-walnut, #6b5340) 0%, var(--cuboro-wenge, #3a2c20) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.push-permission-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--cuboro-wenge, #3a2c20);
    margin-bottom: 12px;
}

.push-permission-description {
    font-size: 15px;
    color: var(--lam-muted, #5c5c5c);
    line-height: 1.5;
    margin-bottom: 24px;
}

.push-permission-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.push-permission-button {
    padding: 12px 24px;
    border-radius: var(--cuboro-radius-sm, 10px);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s var(--cuboro-spring, ease), box-shadow 0.18s var(--cuboro-ease, ease), filter 0.15s var(--cuboro-ease, ease), background 0.15s var(--cuboro-ease, ease);
    border: none;
    flex: 1;
    -webkit-tap-highlight-color: transparent;
}

.push-permission-button.primary {
    background: linear-gradient(135deg, var(--cuboro-walnut, #6b5340) 0%, var(--cuboro-wenge, #3a2c20) 100%);
    color: white;
}

.push-permission-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 44, 32, 0.4);
}

.push-permission-button:active {
    transform: scale(0.96);
}

.push-permission-button.secondary {
    background: var(--cuboro-beige, #f3ece0);
    color: var(--cuboro-walnut, #6b5340);
    border: 1px solid var(--cuboro-sand, rgba(58, 44, 32, 0.14));
}

.push-permission-button.secondary:hover {
    background: var(--cuboro-sand, #e8ddc9);
}

/* Push Permission Shade (альтернативный вариант - шторка) */
.push-permission-shade {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--cuboro-walnut, #6b5340) 0%, var(--cuboro-wenge, #3a2c20) 100%);
    color: white;
    padding: calc(16px + var(--cuboro-safe-top, 0px)) calc(20px + var(--cuboro-safe-right, 0px)) 16px calc(20px + var(--cuboro-safe-left, 0px));
    z-index: 10001;
    box-shadow: var(--cuboro-shadow-md, 0 2px 4px rgba(58,44,32,.08), 0 10px 28px rgba(58,44,32,.12));
    transition: top 0.4s var(--cuboro-ease, cubic-bezier(0.4, 0, 0.2, 1));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.push-permission-shade.visible {
    top: 0;
}

.push-permission-shade-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.push-permission-shade-text {
    flex: 1;
}

.push-permission-shade-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.push-permission-shade-description {
    font-size: 13px;
    opacity: 0.9;
}

.push-permission-shade-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.push-permission-shade-button {
    background: var(--cuboro-gold, #efc23e);
    color: var(--cuboro-wenge, #3a2c20);
    border: none;
    padding: 8px 16px;
    border-radius: var(--cuboro-radius-sm, 10px);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s var(--cuboro-spring, ease), box-shadow 0.18s var(--cuboro-ease, ease), filter 0.15s var(--cuboro-ease, ease);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.push-permission-shade-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--cuboro-shadow-sm, 0 1px 2px rgba(58,44,32,.06), 0 4px 14px rgba(58,44,32,.08));
    filter: brightness(1.06);
}

.push-permission-shade-button:active {
    transform: scale(0.96);
}

.push-permission-shade-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: var(--cuboro-touch, 44px);
    height: var(--cuboro-touch, 44px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s var(--cuboro-ease, ease), transform 0.18s var(--cuboro-spring, ease);
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.push-permission-shade-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.push-permission-shade-close:active {
    transform: scale(0.92);
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .push-permission-content {
        padding: 24px;
    }

    .push-permission-title {
        font-size: 20px;
    }

    .push-permission-description {
        font-size: 14px;
    }

    .push-permission-shade {
        padding: 12px 16px;
    }

    .push-permission-shade-title {
        font-size: 14px;
    }

    .push-permission-shade-description {
        font-size: 12px;
    }
}
