/* ============================================================
   GOLEX — App Tour Overlay Styles
============================================================ */

/* ═══════════════════════════════════════════════════════════════
   GX TOUR — Sleek, dark, minimal
   ═══════════════════════════════════════════════════════════════ */

#gx-tour {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #09090D;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  font-family: var(--font-display, system-ui, sans-serif);
}
#gx-tour.gx-visible {
  opacity: 1;
  pointer-events: all;
}

/* Slides */
.gx-slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  will-change: transform, opacity;
}
.gx-slide.gx-active {
  display: flex;
  animation: gxSlideIn 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.gx-slide.gx-out-left  { display: flex; animation: gxSlideOutLeft  280ms cubic-bezier(0.4,0,1,1) both; }
.gx-slide.gx-in-right  { display: flex; animation: gxSlideInRight  460ms cubic-bezier(0.22,1,0.36,1) both; }
.gx-slide.gx-out-right { display: flex; animation: gxSlideOutRight 280ms cubic-bezier(0.4,0,1,1) both; }
.gx-slide.gx-in-left   { display: flex; animation: gxSlideInLeft   460ms cubic-bezier(0.22,1,0.36,1) both; }

@keyframes gxSlideIn      { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
@keyframes gxSlideInRight { from { opacity:0; transform:translateX(56px); } to { opacity:1; transform:none; } }
@keyframes gxSlideInLeft  { from { opacity:0; transform:translateX(-56px); } to { opacity:1; transform:none; } }
@keyframes gxSlideOutLeft  { from { opacity:1; transform:none; } to { opacity:0; transform:translateX(-36px) scale(0.97); } }
@keyframes gxSlideOutRight { from { opacity:1; transform:none; } to { opacity:0; transform:translateX(36px)  scale(0.97); } }

/* Progress bar */
#gx-tour-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 22px 0;
  z-index: 20;
  display: flex;
  gap: 5px;
  pointer-events: none;
}
.gx-prog {
  flex: 1;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}
.gx-prog-fill {
  height: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,0.80);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms cubic-bezier(0.4,0,0.2,1);
}
.gx-prog.done .gx-prog-fill,
.gx-prog.current .gx-prog-fill { transform: scaleX(1); }

/* Skip */
#gx-tour-skip {
  position: absolute;
  z-index: 20;
  top: calc(env(safe-area-inset-top, 0px) + 32px);
  right: 22px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.28);
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.3px;
  padding: 6px 0;
  cursor: pointer;
  transition: color 180ms ease;
}
#gx-tour-skip:hover { color: rgba(255,255,255,0.55); }

/* Visual zone */
.gx-visual {
  flex: 0 0 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.gx-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 55% at 50% 50%, rgba(255,255,255,0.035) 0%, transparent 70%);
  pointer-events: none;
}

/* SVG art */
.gx-art {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gx-art svg {
  animation: gxBreathe 8s ease-in-out infinite;
  overflow: visible;
}
@keyframes gxBreathe {
  0%, 100% { transform: scale(1) translateY(0px); }
  50%       { transform: scale(1.028) translateY(-7px); }
}

/* Content zone */
.gx-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 34px 28px 0;
}

.gx-heading {
  font-size: clamp(26px, 6vw, 32px);
  font-weight: 600;
  color: #fff;
  line-height: 1.13;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  font-family: var(--font-brand, var(--font-display, inherit));
}

.gx-sub {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
}

/* Nav row — shared class, used in all 4 slides */
.gx-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 calc(env(safe-area-inset-bottom, 0px) + 34px);
  margin-top: auto;
}

/* Dots */
.gx-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.gx-dot {
  height: 2.5px;
  width: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  transition: width 340ms cubic-bezier(0.34,1.56,0.64,1), background 260ms ease;
}
.gx-dot.active {
  width: 26px;
  background: rgba(255,255,255,0.85);
}

/* Back button */
.gx-btn-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 160ms ease, color 160ms ease;
}
.gx-btn-back:hover {
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.65);
}
.gx-btn-back.gx-hidden { opacity: 0; pointer-events: none; }

/* Next / Enter button */
.gx-btn-next {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 22px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  color: #09090D;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.05px;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 160ms ease, transform 120ms ease;
}
.gx-btn-next:hover   { background: #fff; transform: translateY(-1px); }
.gx-btn-next:active  { transform: scale(0.97); }
.gx-btn-next.is-enter { padding: 0 26px; }
