.baksal-pwa-admin-slot {
    clear: both;
    width: 100%;
    padding-top: 14px;
}

.baksal-pwa-install {
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 9px 12px;
    border: 1px solid rgba(58, 231, 208, 0.48);
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #061c4f 0%, #0a2f78 100%);
    box-shadow: 0 14px 34px rgba(6, 28, 79, 0.3);
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.35;
    text-align: right;
    cursor: pointer;
    direction: rtl;
    -webkit-tap-highlight-color: transparent;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.baksal-pwa-install.is-visible { display: flex; }

.baksal-pwa-install--inline {
    width: 100%;
    position: relative;
}

.baksal-pwa-install--floating {
    position: fixed;
    right: 18px;
    bottom: 18px;
    max-width: min(360px, calc(100vw - 36px));
}

.baksal-pwa-install:hover,
.baksal-pwa-install:focus {
    color: #ffffff;
    border-color: #3ae7d0;
    outline: 3px solid rgba(58, 231, 208, 0.28);
    outline-offset: 2px;
    box-shadow: 0 18px 42px rgba(6, 28, 79, 0.38);
    transform: translateY(-2px);
}

.baksal-pwa-install__icon,
.baksal-pwa-dialog__icon {
    display: block;
    flex: 0 0 auto;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.82);
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.baksal-pwa-install__icon {
    width: 42px;
    height: 42px;
}

.baksal-pwa-install__icon--fallback {
    display: grid;
    place-items: center;
    color: #061c4f;
    background: #3ae7d0;
    font-size: 22px;
    font-weight: 900;
}

.baksal-pwa-install__text {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
}

.baksal-pwa-install__text strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.baksal-pwa-install__text small {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.baksal-pwa-install__arrow {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    flex: 0 0 28px;
    border-radius: 50%;
    color: #061c4f;
    background: #3ae7d0;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
}

.baksal-pwa-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 12, 40, 0.72);
    backdrop-filter: blur(5px);
    direction: rtl;
}

.baksal-pwa-dialog.is-visible { display: flex; }

.baksal-pwa-dialog__card {
    width: min(100%, 440px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid rgba(6, 28, 79, 0.08);
    border-radius: 22px;
    color: #172033;
    background: #ffffff;
    box-shadow: 0 26px 80px rgba(0, 12, 40, 0.4);
    font-family: Tahoma, Arial, sans-serif;
    text-align: right;
}

.baksal-pwa-dialog__header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 17px;
}

.baksal-pwa-dialog__icon {
    width: 58px;
    height: 58px;
    border-color: #edf1f8;
}

.baksal-pwa-dialog__card h2 {
    margin: 0 0 5px;
    color: #061c4f;
    font-size: 21px;
    font-weight: 800;
}

.baksal-pwa-dialog__badge {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    color: #075f54;
    background: #d8fbf5;
    font-size: 11px;
    font-weight: 700;
}

.baksal-pwa-dialog__copy {
    margin: 0 0 12px;
    color: #48536a;
    font-size: 14px;
    line-height: 1.8;
}

.baksal-pwa-dialog__steps {
    margin: 0 0 20px;
    padding: 0 24px 0 0;
}

.baksal-pwa-dialog__steps li {
    margin-bottom: 9px;
    padding-right: 4px;
    color: #26324a;
    font-size: 14px;
    line-height: 1.65;
}

.baksal-pwa-dialog__steps li::marker {
    color: #087f70;
    font-weight: 800;
}

.baksal-pwa-dialog__close {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    color: #061c4f;
    background: #3ae7d0;
    box-shadow: 0 8px 18px rgba(58, 231, 208, 0.26);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.baksal-pwa-dialog__close:hover,
.baksal-pwa-dialog__close:focus {
    background: #62eedb;
    outline: 3px solid rgba(6, 28, 79, 0.14);
}

@media (max-width: 600px) {
    .baksal-pwa-install--floating {
        right: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
    }

    .baksal-pwa-dialog {
        align-items: flex-end;
        padding: 12px;
    }

    .baksal-pwa-dialog__card {
        width: 100%;
        padding: 20px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .baksal-pwa-install { transition: none; }
}

@media (display-mode: standalone) {
    .baksal-pwa-admin-slot,
    .baksal-pwa-install { display: none !important; }
}
