:root {
  --amarq-loader-bg-a: #071629;
  --amarq-loader-bg-b: #0d2844;
  --amarq-loader-accent: #20dfcf;
  --amarq-loader-accent-soft: rgba(32, 223, 207, 0.34);
  --amarq-loader-gold: #f0bb4b;
  --amarq-loader-text: #e9f4ff;
  --amarq-loader-subtle: rgba(218, 234, 255, 0.82);
}

.amarq-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 280ms ease, transform 340ms ease;
  background:
    radial-gradient(65rem 42rem at 14% 12%, rgba(34, 145, 255, 0.22), transparent 70%),
    radial-gradient(55rem 40rem at 85% 78%, rgba(27, 210, 190, 0.19), transparent 70%),
    linear-gradient(120deg, var(--amarq-loader-bg-a), var(--amarq-loader-bg-b));
}

.amarq-welcome-overlay.is-visible {
  opacity: 1;
  transform: scale(1);
}

.amarq-welcome-overlay.is-exit {
  opacity: 0;
  transform: scale(0.992);
}

.amarq-welcome-card {
  width: min(92vw, 42rem);
  border-radius: 1.1rem;
  padding: 2rem 2rem 1.55rem;
  border: 1px solid rgba(102, 169, 239, 0.28);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  background: linear-gradient(135deg, rgba(3, 12, 25, 0.78), rgba(10, 30, 52, 0.82));
  backdrop-filter: blur(8px);
}

.amarq-welcome-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.amarq-welcome-emblem {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.42rem;
  background: linear-gradient(140deg, rgba(32, 223, 207, 0.9), rgba(72, 137, 255, 0.94));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.11), 0 0 18px var(--amarq-loader-accent-soft);
  transform: rotate(12deg);
}

.amarq-welcome-title {
  margin: 0;
  color: var(--amarq-loader-text);
  font-size: clamp(1.3rem, 1.3rem + 1.6vw, 2.05rem);
  letter-spacing: 0.02em;
  line-height: 1.12;
  font-weight: 730;
}

.amarq-welcome-subtitle {
  margin: 0;
  color: var(--amarq-loader-subtle);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.amarq-welcome-progress {
  margin-top: 1.4rem;
  height: 0.36rem;
  border-radius: 999px;
  background: rgba(143, 185, 231, 0.17);
  overflow: hidden;
  border: 1px solid rgba(132, 186, 243, 0.2);
}

.amarq-welcome-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amarq-loader-accent), var(--amarq-loader-gold), #7ee8ff);
  box-shadow: 0 0 14px rgba(32, 223, 207, 0.4);
  transition: width 2300ms cubic-bezier(0.2, 0.79, 0.18, 1);
}

.amarq-welcome-foot {
  margin-top: 0.92rem;
  font-size: 0.83rem;
  color: rgba(190, 215, 243, 0.86);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .amarq-welcome-overlay,
  .amarq-welcome-progress-fill {
    transition: none;
  }
}

.amarq-connection-pill {
  position: fixed;
  left: 0.95rem;
  right: auto;
  bottom: 0.95rem;
  z-index: 2147482500;
  border: 1px solid rgba(119, 171, 232, 0.45);
  border-radius: 999px;
  padding: 0.48rem 0.8rem;
  font-size: 0.76rem;
  line-height: 1.1;
  text-decoration: none;
  color: rgba(224, 241, 255, 0.95);
  background:
    radial-gradient(circle at 82% 18%, rgba(60, 162, 238, 0.24), transparent 52%),
    rgba(5, 18, 35, 0.92);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  box-shadow: 0 10px 24px rgba(2, 9, 18, 0.46);
  transition: bottom 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.amarq-connection-pill:hover {
  border-color: rgba(141, 199, 245, 0.65);
  box-shadow: 0 12px 28px rgba(2, 9, 18, 0.54);
}

.amarq-connection-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #43e0b7;
  box-shadow: 0 0 0 1px rgba(10, 30, 48, 0.8), 0 0 12px rgba(67, 224, 183, 0.5);
  flex: 0 0 auto;
}

.amarq-connection-pill.is-online .amarq-connection-dot {
  background: #43e0b7;
  box-shadow: 0 0 0 1px rgba(10, 30, 48, 0.8), 0 0 12px rgba(67, 224, 183, 0.55);
}

.amarq-connection-label {
  color: rgba(226, 242, 255, 0.96);
  letter-spacing: 0.01em;
}

.amarq-connection-pill.is-offline {
  border-color: rgba(56, 214, 199, 0.58);
  box-shadow: 0 0 18px rgba(29, 195, 179, 0.34);
  background:
    radial-gradient(circle at 84% 16%, rgba(45, 190, 174, 0.24), transparent 52%),
    rgba(5, 18, 35, 0.94);
}

.amarq-connection-pill.is-offline .amarq-connection-dot {
  background: #18ccb2;
  box-shadow: 0 0 0 1px rgba(10, 30, 48, 0.8), 0 0 12px rgba(24, 204, 178, 0.5);
}

.amarq-connection-pill.is-degraded {
  border-color: rgba(255, 193, 107, 0.62);
  box-shadow: 0 0 18px rgba(255, 193, 107, 0.32);
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 185, 96, 0.24), transparent 52%),
    rgba(5, 18, 35, 0.94);
}

.amarq-connection-pill.is-degraded .amarq-connection-dot {
  background: #ffc467;
  box-shadow: 0 0 0 1px rgba(10, 30, 48, 0.8), 0 0 12px rgba(255, 196, 103, 0.5);
}

@media (max-width: 760px) {
  .amarq-connection-pill {
    left: 0.75rem;
    right: auto;
    bottom: 0.75rem;
    font-size: 0.72rem;
    padding: 0.44rem 0.72rem;
  }
}
