/* Full-screen dimmed backdrop */
.internet-alert {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(16, 24, 40, 0.5);
    z-index: 9999;
}

/* Hide when online (JS toggles this class) */
.internet-alert.hidden {
    display: none;
}

/* Card */
.ica-card {
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.18);
    padding: 24px 24px 20px;
    text-align: center;
    color: #1f2937; /* slate-800 */
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* Icon circle */
.ica-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff1f1;
    color: #ef4444; /* red-500 */
    display: grid;
    place-items: center;
}

/* Title + body */
.ica-title {
    margin: 8px 0 6px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: #111827; /* gray-900 */
}

.ica-desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280; /* gray-500 */
}

/* Status row */
.ica-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
}

/* Spinner */
.ica-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;       /* light track */
    border-top-color: #ef4444;        /* red indicator */
    border-radius: 50%;
    animation: ica-spin 0.9s linear infinite;
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    .ica-spinner {
        animation: none;
        border-top-color: #e5e7eb;
    }
}

@keyframes ica-spin {
    to { transform: rotate(360deg); }
}
