/* GO! Express hero engine â€” scoped so Bootstrap/Tailwind class collisions cannot leak. */
.gx-preview .v2-hero.gx-he {
  --he-lime: #84cc16;
  --he-lime-deep: #65a30d;
  --he-ink: #020617;
  font-family: Inter, "Noto Kufi Arabic", ui-sans-serif, system-ui, sans-serif;
  min-height: 80vh;
  isolation: isolate;
}

.gx-he-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0369a1;
  background-image: url("../images/hero-bg-van.png");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.gx-preview .v2-hero-wedge {
  display: none !important;
}

.gx-he-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2; /* Reduced by 80% */
  background:
    radial-gradient(ellipse 70% 80% at 18% 28%, rgba(2, 6, 23, .78) 0%, rgba(2, 6, 23, .42) 46%, transparent 72%),
    linear-gradient(100deg, rgba(2, 6, 23, .88) 0%, rgba(2, 6, 23, .55) 32%, rgba(2, 6, 23, .08) 58%, rgba(2, 6, 23, 0) 78%),
    linear-gradient(180deg, rgba(2, 6, 23, .5) 0%, transparent 32%, rgba(2, 6, 23, .12) 72%, rgba(2, 6, 23, .38) 100%);
}

.gx-he-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 80vh;
  padding: 96px 0 44px;
  display: grid;
  align-items: center;
}

.gx-he-grid {
  direction: ltr;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

@media (min-width: 1024px) {
  .gx-he-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
  }

  .gx-he-copy { grid-column: span 6; }
  .gx-he-visual { grid-column: span 6; }
}

.gx-he-copy {
  direction: ltr;
  text-align: left;
  max-width: 620px;
  color: #fff;
}

.gx-he-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #a3e635;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.gx-he-title {
  margin: 0 0 16px;
  max-width: 100%;
  color: #fff !important;
  font-size: clamp(28px, 3.4vw, 48px) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: -.03em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  overflow-wrap: break-word;
  white-space: normal;
}

.gx-he-sub {
  margin: 0 0 28px;
  max-width: 540px;
  color: #dbe4ea;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-shadow: 0 8px 22px rgba(0, 0, 0, .4);
}

.gx-he-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.gx-he-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.gx-he-btn:hover { transform: translateY(-2px); text-decoration: none; }

.gx-he-btn--primary {
  background: #84cc16;
  color: #020617 !important;
  box-shadow: 0 12px 28px rgba(132, 204, 22, .28);
}

.gx-he-btn--primary:hover {
  background: #65a30d;
  color: #020617 !important;
}

.gx-he-btn--ghost {
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff !important;
  font-weight: 600;
  padding-inline: 24px;
}

.gx-he-btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff !important;
}

.gx-he-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

@media (min-width: 640px) {
  .gx-he-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.gx-he-stat b {
  display: block;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.gx-he-stat span {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.35;
}

.gx-he-visual {
  position: relative;
  z-index: 3;
  padding-top: 6px;
  padding-bottom: 140px;
}

.gx-he-chat {
  width: 100%;
  max-width: 21.5rem;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gx-he-stream {
  position: relative;
  height: 320px;
  max-height: 320px;
  overflow: hidden;
  background: transparent;
}

.gx-he-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 4px 2px;
  will-change: transform;
}

.gx-he-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: visible;
  will-change: transform, opacity;
}

/* ---------- WhatsApp rows ---------- */
.gx-he-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.gx-he-row--agent { justify-content: flex-start; }
.gx-he-row--client { justify-content: flex-end; }

.gx-he-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(11, 20, 26, 0.25);
  border: 1px solid #ffffff;
}

/* Follow-up from the same sender: no avatar, tail or name, still a little tighter. */
.gx-he-item--cont { margin-top: -4px; }
.gx-he-item--cont .gx-he-avatar { visibility: hidden; }
.gx-he-item--cont .gx-he-tail,
.gx-he-item--cont .gx-he-sender-name { display: none; }
.gx-he-item--cont .gx-he-bubble,
.gx-he-item--cont .gx-he-img-bubble,
.gx-he-item--cont .gx-he-typing { border-radius: 8px; }

.gx-he-bubble {
  position: relative;
  max-width: calc(100% - 44px);
  padding: 5px 8px 6px 9px;
  font-size: 12.5px;
  line-height: 17px;
  color: #111b21;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13), 0 2px 8px rgba(11, 20, 26, 0.08);
  overflow-wrap: anywhere;
}

.gx-he-bubble--agent {
  background: #ffffff;
  border-radius: 0 8px 8px 8px;
  margin-left: 2px;
}

.gx-he-bubble--client {
  background: #d9fdd3;
  border-radius: 8px 0 8px 8px;
  margin-right: 2px;
}

.gx-he-tail {
  position: absolute;
  top: 0;
  width: 8px;
  height: 13px;
  pointer-events: none;
  filter: drop-shadow(0 1px 0.5px rgba(11, 20, 26, 0.1));
}

.gx-he-tail--left { left: -8px; }
.gx-he-tail--right { right: -8px; }

.gx-he-sender-name {
  display: block;
  margin-bottom: 1px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 15px;
  color: #7f66ff;
}

.gx-he-text { display: block; }

/* Reserves the time's width on the last line, like WhatsApp Web. */
.gx-he-spacer {
  display: inline-block;
  width: 38px;
  height: 1px;
  vertical-align: middle;
}

.gx-he-spacer--read { width: 54px; }

.gx-he-meta {
  position: absolute;
  right: 7px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgba(17, 27, 33, 0.5);
  white-space: nowrap;
}

.gx-he-bubble--client .gx-he-meta { color: rgba(17, 27, 33, 0.52); }

.gx-he-ticks {
  width: 16px;
  height: 10px;
  fill: none;
  stroke: #53bdeb;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Image message ---------- */
.gx-he-img-bubble {
  position: relative;
  width: 160px;
  padding: 3px;
  margin-left: 2px;
  background: #ffffff;
  border-radius: 0 8px 8px 8px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13), 0 2px 8px rgba(11, 20, 26, 0.08);
}

.gx-he-img-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #e9edef;
}

.gx-he-img-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(11, 20, 26, 0.45));
}

.gx-he-img-frame img {
  display: block;
  width: 100%;
  height: 108px;
  object-fit: cover;
}

.gx-he-img-meta {
  position: absolute;
  right: 6px;
  bottom: 4px;
  z-index: 1;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Typing ---------- */
.gx-he-typing {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin-left: 2px;
  padding: 9px 12px;
  background: #ffffff;
  border-radius: 0 8px 8px 8px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13), 0 2px 8px rgba(11, 20, 26, 0.08);
}

.gx-he-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8696a0;
  animation: gxHeDot 1.1s infinite ease-in-out;
}

.gx-he-typing span:nth-child(3) { animation-delay: 0.15s; }
.gx-he-typing span:nth-child(4) { animation-delay: 0.3s; }

@keyframes gxHeDot {
  0%, 70%, 100% { opacity: 0.35; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-2px); }
}

/* ---------- Date chip ---------- */
.gx-he-item--date { align-items: center; margin-block: 10px; }

.gx-he-date-sep {
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  color: #54656f;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
}

/* ---------- GO! Express system updates ---------- */
.gx-he-activity {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gx-he-sys {
  width: min(100%, 244px);
  padding: 9px 10px 10px;
  border-radius: 14px;
  background: rgba(14, 18, 22, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(2, 6, 12, 0.22);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: #ffffff;
}

.gx-he-sys-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.gx-he-sys-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #ccec44;
  color: #0b0f0c;
}

.gx-he-sys-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gx-he-sys-thumb {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
}

.gx-he-sys-body {
  flex: 1;
  min-width: 0;
}

.gx-he-sys-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.gx-he-sys-top b {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.005em;
}

.gx-he-sys-top time {
  flex-shrink: 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.gx-he-sys-text {
  margin-top: 1px;
  font-size: 11px;
  line-height: 15px;
  color: rgba(255, 255, 255, 0.78);
}

.gx-he-sys-sub {
  margin-top: 1px;
  font-size: 10.5px;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.48);
}

.gx-he-sys-amount {
  margin: 1px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.02em;
  color: #ccec44;
}

.gx-he-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 9px;
}

.gx-he-steps span {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.gx-he-steps span.is-on { background: #ccec44; }

.gx-he-sys--live .gx-he-steps span:nth-child(3) {
  animation: gxHeLive 1.6s ease-in-out infinite;
}

@keyframes gxHeLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.gx-he-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 4px 11px 4px 4px;
  border-radius: 999px;
  background: rgba(14, 18, 22, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  line-height: 14px;
}

.gx-he-note .gx-he-sys-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.gx-he-note .gx-he-sys-icon svg {
  width: 11px;
  height: 11px;
}

/* ---------- Legacy hero shell (v2 layout) ---------- */
@media (max-width: 1023px) {
  .gx-preview .v2-hero.gx-he { min-height: 0; }
  .gx-he-inner { min-height: 0; padding: 96px 0 40px; }
  .gx-he-overlay {
    opacity: 0.2;
    background:
      linear-gradient(180deg, rgba(2, 6, 23, .88) 0%, rgba(2, 6, 23, .55) 28%, rgba(2, 6, 23, .2) 58%, rgba(2, 6, 23, .35) 100%);
  }
  .gx-he-copy { max-width: none; }
  .gx-he-visual { padding-bottom: 72px; }
}

@media (max-width: 640px) {
  .gx-he-inner { width: min(1240px, calc(100% - 28px)); padding-top: 88px; }
  .gx-he-actions { display: grid; grid-template-columns: 1fr; }
  .gx-he-btn { width: 100%; }
  .gx-he-title { font-size: clamp(26px, 7.4vw, 34px) !important; }

  .gx-he-stream { height: 240px; max-height: 240px; }
  .gx-he-bubble { font-size: 11.5px; line-height: 15.5px; padding: 4px 7px 5px 8px; }
  .gx-he-sender-name { font-size: 10.5px; line-height: 14px; }
  .gx-he-meta, .gx-he-img-meta { font-size: 9.5px; }
  .gx-he-spacer { width: 35px; }
  .gx-he-spacer--read { width: 50px; }
  .gx-he-avatar { width: 20px; height: 20px; }
  .gx-he-img-bubble { width: 136px; }
  .gx-he-img-frame img { height: 90px; }
  .gx-he-date-sep { font-size: 10.5px; padding: 3px 9px; }
  .gx-he-sys { width: min(100%, 220px); padding: 8px 9px 9px; }
  .gx-he-sys-icon, .gx-he-sys-thumb { width: 24px; height: 24px; border-radius: 7px; }
  .gx-he-sys-icon svg { width: 13px; height: 13px; }
  .gx-he-sys-top b { font-size: 11.5px; line-height: 15px; }
  .gx-he-sys-text { font-size: 10.5px; line-height: 14px; }
  .gx-he-sys-sub { font-size: 10px; line-height: 13px; }
  .gx-he-sys-amount { font-size: 16px; line-height: 20px; }
  .gx-he-note { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .gx-he-typing span,
  .gx-he-sys--live .gx-he-steps span:nth-child(3) { animation: none; }
}
