:root {
  --ax-bg: #070b12;
  --ax-surface: rgba(15, 23, 42, 0.86);
  --ax-border: rgba(45, 212, 191, 0.22);
  --ax-accent: #2dd4bf;
  --ax-accent-strong: #14b8a6;
  --ax-text: #f8fafc;
  --ax-muted: #94a3b8;
  --ax-danger: #f87171;
  --ax-ok: #34d399;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: clip;
  background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 48%),
    radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.12), transparent 52%),
    var(--ax-bg);
  color: var(--ax-text);
  font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
}

.ax-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  gap: 1.25rem;
}

.ax-card {
  width: 100%;
  max-width: 420px;
  background: var(--ax-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ax-border);
  border-radius: 28px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ax-brand-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.ax-logo {
  border-radius: 14px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px;
  flex-shrink: 0;
}

.ax-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ax-brand-name {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ax-accent);
}

.ax-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ax-text);
}

.ax-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.is-hidden {
  display: none !important;
}

.ax-skeleton-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.ax-skeleton {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(45, 212, 191, 0.2), rgba(148, 163, 184, 0.12));
  background-size: 200% 100%;
  animation: axPulse 1.4s ease-in-out infinite;
  border-radius: 9999px;
}

.ax-skeleton-pill {
  width: 150px;
  height: 26px;
}

.ax-skeleton-line {
  width: 220px;
  height: 18px;
}

.ax-skeleton-btn {
  width: 300px;
  max-width: 100%;
  height: 44px;
}

.ax-skeleton-btn-sm {
  width: 140px;
  height: 36px;
}

@keyframes axPulse {
  0% {
    background-position: 200% 0;
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: -200% 0;
    opacity: 0.65;
  }
}

.ax-target-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.ax-target-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ax-muted);
}

.ax-app-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--ax-text);
  word-break: break-word;
}

.ax-origin-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.28);
  color: var(--ax-accent);
  font-size: 0.78rem;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ax-google-slot {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0.25rem 0;
}

.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.ax-btn:hover {
  transform: translateY(-2px);
}

.ax-btn:active {
  transform: translateY(0);
}

.ax-btn-primary {
  background: linear-gradient(135deg, var(--ax-accent), var(--ax-accent-strong));
  color: #042f2e;
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.25);
}

.ax-btn-secondary {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--ax-text);
}

.ax-btn-ghost {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.2);
  color: var(--ax-muted);
}

.ax-btn-ghost:hover {
  color: var(--ax-text);
  background: rgba(148, 163, 184, 0.16);
}

.ax-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.ax-status-ok {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--ax-ok);
}

.ax-status-err {
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--ax-danger);
}

.ax-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--ax-ok);
}

.ax-status-text,
.ax-home-summary,
.ax-error-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ax-muted);
  line-height: 1.6;
}

.ax-error-text {
  color: #fecaca;
}

.ax-home-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ax-legal-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.ax-link-pill {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--ax-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ax-link-pill:hover {
  color: var(--ax-text);
  border-color: var(--ax-accent);
}

.ax-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ax-muted);
}

.ax-footer a {
  color: var(--ax-muted);
  text-decoration: none;
}

.ax-footer a:hover {
  color: var(--ax-accent);
}

.ax-footer-brand {
  color: var(--ax-text) !important;
  font-weight: 800;
}
