/* First-visit welcome + floating hub + soft push bar */

/* Critical: [hidden] must fully remove the layer. A bare `display: grid` on the host
   overrides the HTML hidden UA rule in many themes, leaving a dim “stuck” overlay. */
.alx-flagship-welcome {
  position: fixed;
  inset: 0;
  z-index: 100050;
  box-sizing: border-box;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  place-items: center;
}

.alx-flagship-welcome:not([hidden]) {
  display: grid;
  pointer-events: auto;
}

.alx-flagship-welcome[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.alx-flagship-welcome--open,
html.alx-flagship-welcome--open body {
  overflow: hidden !important;
}

.alx-flagship-welcome__veil {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: radial-gradient(ellipse at 50% 20%, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.92));
  backdrop-filter: blur(6px);
}

.alx-flagship-welcome__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  max-height: min(88dvh, 640px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(18, 18, 18, 0.98), rgba(6, 6, 6, 0.98));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}

.alx-flagship-welcome__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(250, 247, 240, 0.92);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.alx-flagship-welcome__close:hover,
.alx-flagship-welcome__close:focus-visible {
  border-color: rgba(212, 175, 55, 0.45);
  color: #fff;
  outline: none;
}

.alx-flagship-welcome__aurora {
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.18), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.alx-flagship-welcome__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 248, 220, 0.35) 0, transparent 2px),
    radial-gradient(circle at 78% 18%, rgba(212, 175, 55, 0.45) 0, transparent 2px),
    radial-gradient(circle at 64% 72%, rgba(255, 255, 255, 0.2) 0, transparent 2px),
    radial-gradient(circle at 30% 80%, rgba(212, 175, 55, 0.3) 0, transparent 2px);
  background-size: 100% 100%;
  animation: alxSparkDrift 4.5s ease-in-out infinite alternate;
  opacity: 0.55;
}

@keyframes alxSparkDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6px, -8px, 0) scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .alx-flagship-welcome__sparkles {
    animation: none;
  }
}

.alx-flagship-welcome__kicker {
  position: relative;
  margin: 0 0 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(212, 175, 55, 0.85);
}

.alx-flagship-welcome__title {
  position: relative;
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", "Instrument Serif", serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  color: #faf7f0;
}

.alx-flagship-welcome__body {
  position: relative;
  margin: 0 0 24px;
  color: rgba(250, 247, 240, 0.78);
  font-size: 1.05rem;
  line-height: 1.55;
}

.alx-flagship-welcome__cta {
  position: relative;
  min-width: 200px;
}

/* Floating support hub */
.alx-float-hub {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 100040;
  font-family: Inter, system-ui, sans-serif;
}

.alx-float-hub__fab {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: radial-gradient(circle at 30% 25%, rgba(212, 175, 55, 0.35), #0a0a0a 70%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #faf7f0;
}

.alx-float-hub__fab-inner {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(250, 247, 240, 0.9);
  position: relative;
}

.alx-float-hub__fab-inner::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  background: rgba(212, 175, 55, 0.85);
}

.alx-float-hub__panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(300px, calc(100vw - 32px));
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(8, 8, 8, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
}

.alx-float-hub__panel[hidden] {
  display: none;
}

.alx-float-hub__kicker {
  margin: 0 0 10px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.85);
}

.alx-float-hub__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alx-float-hub__link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  color: #f4f1ea;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.alx-float-hub__link:hover,
.alx-float-hub__link:focus-visible {
  border-color: rgba(212, 175, 55, 0.35);
  outline: none;
}

.alx-float-hub__link--wa {
  color: #faf7f0;
  background: linear-gradient(120deg, rgba(212, 175, 55, 0.18), rgba(255, 255, 255, 0.04));
}

/* Soft push prompt */
.alx-soft-push {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(96px, env(safe-area-inset-bottom));
  z-index: 100030;
  max-width: 420px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.alx-soft-push[hidden] {
  display: none;
}

.alx-soft-push__title {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #faf7f0;
}

.alx-soft-push__lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(250, 247, 240, 0.72);
}

.alx-soft-push__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alx-soft-push__row .al-btn {
  flex: 1 1 auto;
  min-width: 120px;
}
