/* After-sales hero card — matches xima-support mockup (scoped to this page). */

.xima-after-page {
  background: #f6f8f7;
  padding: clamp(20px, 5vw, 56px) 24px 80px;
  color: #152f36;
}

.xima-after-page .xima-support {
  --xima-brand: #007f73;
  --xima-brand-dark: #00655c;
  --xima-ink: #152f36;
  --xima-muted: #647678;
  --xima-line: #e0eae7;
  --xima-ease: cubic-bezier(0.22, 1, 0.36, 1);
  width: min(100%, 1224px);
  margin-inline: auto;
  margin-bottom: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--xima-line);
  border-radius: 32px;
  box-shadow:
    0 24px 70px -36px rgb(20 57 49 / 18%),
    0 3px 12px -6px rgb(20 57 49 / 6%);
}

.xima-after-page .xima-support .icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xima-after-page .support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
}

.xima-after-page .support-content {
  min-width: 0;
  padding: 24px 26px 24px 4px;
}

.xima-after-page .support-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 23px;
  color: var(--xima-brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.xima-after-page .support-eyebrow .icon {
  width: 19px;
  height: 19px;
}

.xima-after-page .support-title {
  margin: 0;
  color: var(--xima-ink);
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.65;
  letter-spacing: -0.9px;
  text-wrap: balance;
}

.xima-after-page .support-title__accent {
  display: block;
  color: var(--xima-brand);
}

.xima-after-page .support-description {
  max-width: 54ch;
  margin: 20px 0 0;
  color: var(--xima-muted);
  font-size: 14px;
  line-height: 2.3;
}

.xima-after-page .support-description strong {
  color: #3e585b;
  font-weight: 600;
}

.xima-after-page .support-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.xima-after-page .support-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  text-decoration: none;
  transition:
    transform 220ms var(--xima-ease),
    background-color 220ms ease,
    border-color 220ms ease;
  -webkit-tap-highlight-color: transparent;
}

.xima-after-page .support-button--primary {
  background: var(--xima-brand);
  color: #fff;
}

.xima-after-page .support-button--secondary {
  background: #fff;
  color: var(--xima-brand-dark);
  border-color: #d7e5e1;
}

.xima-after-page .support-button .icon {
  width: 18px;
  height: 18px;
}

.xima-after-page .support-button .arrow {
  transition: transform 220ms var(--xima-ease);
}

.xima-after-page .support-button:focus-visible {
  outline: 3px solid #159d87;
  outline-offset: 4px;
}

.xima-after-page .support-button:active {
  transform: translateY(1px);
}

.xima-after-page .support-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 22px 0 0;
  margin: 26px 0 0;
  list-style: none;
  border-top: 1px solid var(--xima-line);
  color: #607471;
  font-size: 11px;
  line-height: 1.9;
}

.xima-after-page .support-details li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.xima-after-page .support-details .icon {
  width: 16px;
  height: 16px;
  color: #578b7d;
}

.xima-after-page .support-visual {
  --active: 0;
  --motion: running;
  --fx-ring-idle: rgb(85 112 102 / 18%);
  --fx-ring-active: rgb(27 212 132 / 72%);
  --fx-particle-idle: #92aaa1;
  --fx-particle-active: #38e892;
  --fx-halo-idle: rgb(84 137 114 / 8%);
  --fx-halo-active: rgb(42 230 143 / 24%);
  --fx-ring: var(--fx-ring-idle);
  --fx-particle: var(--fx-particle-idle);
  --fx-halo: var(--fx-halo-idle);
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 492px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  padding: 46px 16px 24px;
  border: 1px solid #e3eeea;
  border-radius: 22px;
  background: linear-gradient(155deg, #f4f9f6 0%, #eaf5ef 58%, #e4f0ea 100%);
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.xima-after-page .support-visual:active,
.xima-after-page .support-visual:focus-visible {
  --active: 1;
  --fx-ring: var(--fx-ring-active);
  --fx-particle: var(--fx-particle-active);
  --fx-halo: var(--fx-halo-active);
}

.xima-after-page .visual-online {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid rgb(123 164 146 / 24%);
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 6px 22px rgb(31 82 62 / 7%);
  color: #34584b;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.35px;
  line-height: 1;
  direction: ltr;
  backdrop-filter: blur(8px);
}

.xima-after-page .online-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #38e892;
  box-shadow:
    0 0 0 4px rgb(56 232 146 / 11%),
    0 0 11px rgb(56 232 146 / 42%);
  animation: xima-support-online-pulse 2.2s ease-in-out infinite;
  animation-play-state: var(--motion);
}

.xima-after-page .visual-corner {
  position: absolute;
  top: 21px;
  right: 22px;
  color: #94b4a6;
}

.xima-after-page .visual-corner .icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.2;
}

.xima-after-page .character-scene {
  position: relative;
  display: block;
  width: min(100%, 390px);
  aspect-ratio: 1;
  direction: ltr;
}

.xima-after-page .character-orbit {
  position: absolute;
  inset: 11%;
  z-index: 0;
  border: 1px solid var(--fx-ring);
  border-radius: 50%;
  animation: xima-support-orbit-breathe 5.6s ease-in-out infinite;
  animation-play-state: var(--motion);
  transition: border-color 500ms ease, filter 500ms ease;
  filter: drop-shadow(0 0 calc(var(--active) * 10px) rgb(42 224 142 / 34%));
}

.xima-after-page .character-orbit::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid color-mix(in srgb, var(--fx-ring) 72%, transparent);
  border-radius: inherit;
  background: rgb(255 255 255 / 10%);
  animation: xima-support-orbit-inner-drift 7.4s ease-in-out infinite reverse;
  animation-play-state: var(--motion);
  transition: border-color 500ms ease, background-color 500ms ease;
}

.xima-after-page .character-orbit::after {
  content: "";
  position: absolute;
  top: 49%;
  left: -9%;
  width: 118%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0 7%,
    var(--fx-ring) 28% 72%,
    transparent 93% 100%
  );
  transform-origin: 50% 50%;
  animation: xima-support-orbit-line-sweep 8.6s ease-in-out infinite;
  animation-play-state: var(--motion);
  transition: background 500ms ease;
}

.xima-after-page .character-halo {
  position: absolute;
  inset: 4%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 39%, var(--fx-halo), transparent 65%);
  opacity: calc(0.65 + var(--active) * 0.35);
  transition: opacity 650ms ease, background 550ms ease;
}

.xima-after-page .character-shadow {
  position: absolute;
  bottom: 4%;
  left: 17%;
  z-index: 0;
  width: 66%;
  height: 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(34 63 54 / 22%), transparent 70%);
  opacity: calc(0.8 - var(--active) * 0.18);
  transition: opacity 550ms ease;
}

.xima-after-page .character-frame {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
}

.xima-after-page .character-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.xima-after-page .headset-active,
.xima-after-page .headset-glow {
  opacity: var(--active);
  transition: opacity 550ms ease;
  pointer-events: none;
}

.xima-after-page .headset-glow {
  opacity: calc(var(--active) * 0.3);
}

.xima-after-page .shirt-logo {
  position: absolute;
  top: 73%;
  left: 24%;
  z-index: 4;
  width: 12%;
  height: auto;
  opacity: 0.94;
  transform: rotate(-2deg);
  transform-origin: center;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 18%));
  pointer-events: none;
  user-select: none;
}

.xima-after-page .signal-effects {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

.xima-after-page .signal-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid var(--fx-ring);
  border-radius: 50%;
  opacity: 0;
  filter: drop-shadow(0 0 calc(var(--active) * 7px) rgb(42 224 142 / 35%));
  animation: xima-support-signal-expand 3.6s ease-out infinite;
  animation-play-state: var(--motion);
  transition: border-color 500ms ease, filter 500ms ease;
}

.xima-after-page .signal-ring--second {
  animation-delay: 1.8s;
}

.xima-after-page .light-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fx-particle);
  box-shadow: 0 0 calc(5px + var(--active) * 8px)
    color-mix(in srgb, var(--fx-particle) 52%, transparent);
  animation: xima-support-particle-drift 3.8s ease-in-out infinite;
  animation-play-state: var(--motion);
  transition: background-color 500ms ease, box-shadow 500ms ease, transform 500ms ease;
}

.xima-after-page .light-particle:nth-of-type(3) {
  top: 26%;
  left: 15%;
}

.xima-after-page .light-particle:nth-of-type(4) {
  top: 19%;
  right: 23%;
  animation-delay: -0.9s;
  width: 3px;
  height: 3px;
}

.xima-after-page .light-particle:nth-of-type(5) {
  top: 58%;
  right: 12%;
  animation-delay: -1.8s;
}

@keyframes xima-support-signal-expand {
  0% {
    transform: scale(0.86);
    opacity: 0;
  }
  18% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1.09);
    opacity: 0;
  }
}

@keyframes xima-support-particle-drift {
  0%,
  100% {
    transform: translateY(2px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-6px);
    opacity: 0.85;
  }
}

@keyframes xima-support-orbit-breathe {
  0%,
  100% {
    transform: scale(0.985) rotate(-1.2deg);
  }
  50% {
    transform: scale(1.015) rotate(1.2deg);
  }
}

@keyframes xima-support-orbit-inner-drift {
  0%,
  100% {
    transform: scale(0.97) rotate(-2deg);
    opacity: 0.62;
  }
  50% {
    transform: scale(1.025) rotate(2deg);
    opacity: 1;
  }
}

@keyframes xima-support-orbit-line-sweep {
  0%,
  100% {
    transform: rotate(-8deg) scaleX(0.94);
    opacity: 0.38;
  }
  50% {
    transform: rotate(8deg) scaleX(1.04);
    opacity: 0.78;
  }
}

@keyframes xima-support-online-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 4px rgb(56 232 146 / 11%),
      0 0 11px rgb(56 232 146 / 42%);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 6px rgb(56 232 146 / 7%),
      0 0 16px rgb(56 232 146 / 54%);
  }
}

@media (hover: hover) and (pointer: fine) {
  .xima-after-page .support-visual:hover {
    --active: 1;
    --fx-ring: var(--fx-ring-active);
    --fx-particle: var(--fx-particle-active);
    --fx-halo: var(--fx-halo-active);
  }

  .xima-after-page .support-button:hover {
    transform: translateY(-2px);
  }

  .xima-after-page .support-button--primary:hover {
    background: var(--xima-brand-dark);
  }

  .xima-after-page .support-button--secondary:hover {
    background: #f3f9f6;
    border-color: #9ac6b8;
  }

  .xima-after-page .support-button:hover .arrow {
    transform: translateX(-3px);
  }

  .nexel-ltr-mode .xima-after-page .support-button:hover .arrow {
    transform: translateX(3px);
  }

  .xima-after-page .support-button:active {
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .xima-after-page .xima-support {
    padding: 18px;
    border-radius: 26px;
  }

  .xima-after-page .support-layout {
    gap: 24px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .xima-after-page .support-content {
    padding: 20px 12px 20px 0;
  }

  .xima-after-page .support-title {
    font-size: 30px;
  }

  .xima-after-page .support-description {
    font-size: 13px;
  }

  .xima-after-page .support-button {
    padding-inline: 15px;
    font-size: 12px;
  }

  .xima-after-page .support-actions {
    gap: 9px;
  }

  .xima-after-page .support-visual {
    min-height: 470px;
  }
}

@media (max-width: 760px) {
  .xima-after-page {
    padding: 24px 16px 54px;
  }

  .xima-after-page .support-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .xima-after-page .support-content {
    padding: 16px 12px 0;
  }

  .xima-after-page .support-title {
    font-size: clamp(28px, 5.3vw, 36px);
  }

  .xima-after-page .support-eyebrow {
    margin-bottom: 16px;
  }

  .xima-after-page .support-description {
    max-width: none;
    font-size: 14px;
    margin-top: 16px;
  }

  .xima-after-page .support-actions {
    margin-top: 24px;
    gap: 12px;
  }

  .xima-after-page .support-button {
    padding-inline: 20px;
    font-size: 13px;
  }

  .xima-after-page .support-details {
    margin-top: 22px;
    padding-top: 18px;
    gap: 12px 18px;
  }

  .xima-after-page .support-visual {
    min-height: 0;
    padding: 35px 12px 22px;
  }

  .xima-after-page .character-scene {
    width: min(100%, 350px);
  }
}

@media (max-width: 420px) {
  .xima-after-page {
    padding: 16px 12px 54px;
  }

  .xima-after-page .xima-support {
    padding: 12px;
    border-radius: 24px;
  }

  .xima-after-page .support-content {
    padding: 14px 7px 0;
  }

  .xima-after-page .support-title {
    font-size: 27px;
    letter-spacing: -0.6px;
  }

  .xima-after-page .support-description {
    font-size: 13px;
    line-height: 2.25;
  }

  .xima-after-page .support-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .xima-after-page .support-button {
    width: 100%;
  }

  .xima-after-page .support-details {
    gap: 12px;
    font-size: 10px;
  }

  .xima-after-page .support-visual {
    border-radius: 16px;
  }

  .xima-after-page .visual-online {
    left: 14px;
    top: 14px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xima-after-page .xima-support *,
  .xima-after-page .xima-support *::before,
  .xima-after-page .xima-support *::after {
    animation: none !important;
    transition: none !important;
  }

  .xima-after-page .support-visual {
    --active: 1;
    --fx-ring: var(--fx-ring-active);
    --fx-particle: var(--fx-particle-active);
    --fx-halo: var(--fx-halo-active);
  }

  .xima-after-page .support-button,
  .xima-after-page .support-button .arrow {
    transform: none !important;
  }

  .xima-after-page .signal-ring {
    opacity: 0;
  }

  .xima-after-page .light-particle {
    opacity: 0.45;
  }
}
