.xseo-pwa-install {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #0754b8;
    border-radius: 999px;
    background: #ffffff;
    color: #0754b8;
    font: 800 14px/1.2 "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 10px 22px rgba(7, 84, 184, .12);
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.xseo-pwa-install:hover,
.xseo-pwa-install:focus {
    background: #0754b8;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(7, 84, 184, .22);
    outline: none;
}

.xseo-pwa-install:focus-visible {
    outline: 3px solid rgba(7, 84, 184, .28);
    outline-offset: 2px;
}

.xseo-pwa-install[disabled],
.xseo-pwa-install.is-installed {
    color: #166534;
    border-color: #86efac;
    background: #f0fdf4;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.xseo-pwa-notify.is-active,
.xseo-pwa-notify.is-active:hover {
    color: #166534;
    border-color: #86efac;
    background: #f0fdf4;
    box-shadow: none;
    transform: none;
}

.xseo-pwa-notify.is-blocked,
.xseo-pwa-notify.is-blocked:hover {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fff7f7;
    transform: none;
}

.xseo-pwa-notify:not(.is-active) .xseo-pwa-icon {
    animation: xseoBellPulse 2.4s ease-in-out infinite;
    transform-origin: 50% 12%;
}

@keyframes xseoBellPulse {
    0%, 78%, 100% { transform: rotate(0deg); }
    83% { transform: rotate(12deg); }
    88% { transform: rotate(-10deg); }
    93% { transform: rotate(7deg); }
}

.xseo-pwa-login-button {
    width: 100%;
    margin-top: 12px;
    border-radius: 15px;
}

.xseo-pwa-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.xseo-pwa-modal {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 31, 70, .62);
    box-sizing: border-box;
}

.xseo-pwa-modal.is-open {
    display: flex;
}

.xseo-pwa-dialog {
    width: 100%;
    max-width: 430px;
    overflow: hidden;
    border: 1px solid #dbe8f7;
    border-radius: 22px;
    background: #ffffff;
    color: #071f46;
    font-family: "Segoe UI", Arial, sans-serif;
    box-shadow: 0 26px 80px rgba(7, 31, 70, .3);
}

.xseo-pwa-dialog-head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 22px 22px 16px;
    background: linear-gradient(135deg, #eef6ff, #ffffff);
}

.xseo-pwa-dialog-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
}

.xseo-pwa-dialog-title {
    margin: 0;
    color: #071f46;
    font-size: 20px;
    font-weight: 900;
}

.xseo-pwa-dialog-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.xseo-pwa-dialog-body {
    padding: 5px 22px 20px;
    color: #334155;
    font-size: 15px;
    line-height: 1.65;
}

.xseo-pwa-dialog-body ol {
    margin: 10px 0 0;
    padding-left: 22px;
}

.xseo-pwa-dialog-body li + li {
    margin-top: 6px;
}

.xseo-pwa-dialog-actions {
    padding: 0 22px 22px;
    text-align: right;
}

.xseo-pwa-dialog-close {
    min-width: 96px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: #0754b8;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 480px) {
    .xseo-pwa-modal { padding: 12px; }
    .xseo-pwa-dialog { border-radius: 18px; }
    .xseo-pwa-dialog-head { padding: 18px 18px 14px; }
    .xseo-pwa-dialog-body { padding: 4px 18px 18px; }
    .xseo-pwa-dialog-actions { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .xseo-pwa-install { transition: none; }
    .xseo-pwa-notify .xseo-pwa-icon { animation: none; }
}
