/* Connectivity guard — minimal overlay aligned with app dialog + design tokens */

@font-face {
  font-family: 'Yekan Bakh';
  src: url('../assets/font/yekanbakh/woff2/YekanBakh-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yekan Bakh';
  src: url('../assets/font/yekanbakh/woff2/YekanBakh-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

#fn-connectivity-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  direction: rtl;
  font-family: 'Yekan Bakh', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fn-cg-panel {
  width: min(100%, 22rem);
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, rgba(238, 234, 248, 0.11) 80%, transparent);
  background: color-mix(in srgb, #0a0818 88%, #f2f0f9 12%);
  background: var(--surface-elevated, color-mix(in srgb, #0a0818 88%, #f2f0f9 12%));
  color: #e2e0ec;
  color: var(--ink, #e2e0ec);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  text-align: right;
}

.fn-cg-title {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: #f2f0f9;
  color: var(--color-text-bright, #f2f0f9);
}

.fn-cg-desc {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(178, 172, 198, 0.72);
  color: var(--ink-3, rgba(178, 172, 198, 0.72));
}

.fn-cg-actions {
  display: flex;
  gap: 0.5rem;
}

.fn-cg-btn {
  flex: 1;
  cursor: pointer;
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.fn-cg-btn--primary {
  border: 0;
  background: #5b43ea;
  background: var(--brand, #5b43ea);
  color: #f2f0f9;
  color: var(--color-text-bright, #f2f0f9);
}

.fn-cg-btn--primary:hover {
  background: #4a36d1;
  background: var(--brand-hover, #4a36d1);
}

.fn-cg-btn--ghost {
  border: 1px solid rgba(238, 234, 248, 0.11);
  border-color: var(--border, rgba(238, 234, 248, 0.11));
  background: transparent;
  color: rgba(226, 222, 238, 0.84);
  color: var(--ink-2, rgba(226, 222, 238, 0.84));
}

.fn-cg-btn--ghost:hover {
  background: rgba(238, 234, 248, 0.09);
  background: var(--surface, rgba(238, 234, 248, 0.09));
}
