.se-net {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 2400;
    transform: translate(-50%, 12px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: min(360px, calc(100vw - 28px));
    padding: 10px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
    font: 700 0.84rem/1.25 system-ui, -apple-system, "Segoe UI", sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.se-net.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.se-net--online {
    background: #047857;
}

.se-net--offline {
    background: #991b1b;
}

.se-net__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.se-pwa-prompt {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 2450;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    width: min(390px, calc(100vw - 28px));
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.se-pwa-prompt.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.se-pwa-prompt__icon {
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 12px;
    background: #4f46e5;
}

.se-pwa-prompt__icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.se-pwa-prompt__title {
    font: 800 0.98rem/1.25 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.se-pwa-prompt__text {
    margin-top: 3px;
    color: #475569;
    font: 500 0.84rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.se-pwa-prompt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.se-pwa-prompt__btn {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    font: 800 0.84rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.se-pwa-prompt__btn--primary {
    background: #4f46e5;
    color: #fff;
}

.se-pwa-prompt__btn--secondary {
    background: #eef2f7;
    color: #334155;
}

.se-sync-prompt {
    position: fixed;
    left: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 2450;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    width: min(410px, calc(100vw - 28px));
    padding: 14px;
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.se-sync-prompt.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.se-sync-prompt__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 1.25rem;
}

.se-sync-prompt__title {
    font: 800 0.98rem/1.25 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.se-sync-prompt__text {
    margin-top: 3px;
    color: #475569;
    font: 500 0.84rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.se-sync-prompt__error {
    display: none;
    margin-top: 8px;
    color: #b91c1c;
    font: 700 0.8rem/1.35 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.se-sync-prompt__error.is-visible {
    display: block;
}

.se-sync-prompt__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.se-sync-prompt__btn {
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    font: 800 0.84rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.se-sync-prompt__btn--primary {
    background: #0369a1;
    color: #fff;
}

.se-sync-prompt__btn--primary:disabled {
    opacity: 0.68;
}

.se-sync-prompt__btn--secondary {
    background: #eef2f7;
    color: #334155;
}

.se-offline-page {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f5f7fb;
    color: #0f172a;
    font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans Myanmar", sans-serif;
}

.se-offline-card {
    width: min(420px, 100%);
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.se-offline-logo {
    width: 120px;
    height: auto;
    margin-bottom: 18px;
}

.se-offline-card h1 {
    margin: 0 0 10px;
    font-size: 1.35rem;
}

.se-offline-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.se-offline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 20px;
    padding: 0 18px;
    border-radius: 12px;
    background: #4f46e5;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

@media (max-width: 768px) {
    .se-net {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .se-pwa-prompt {
        right: 14px;
        bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }

    .se-sync-prompt {
        left: 14px;
        bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    }
}
