@keyframes gradient-x {
  0%,
  100% {
    background-position: left;
  }
  50% {
    background-position: right;
  }
}

.magic-border {
  background: linear-gradient(135deg, #a855f7, #ec4899, #a855f7);
  background-size: 400% 400%;
  animation: shimmer 6s ease infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 1px #b54bff) drop-shadow(0 0 2px #b54bff60);
  }
  50% {
    filter: drop-shadow(0 0 2px #b54bff) drop-shadow(0 0 3px #b54bff80);
  }
}

.animate-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

/* notyf */

.notyf__message {
  font-size: 13px !important;
  font-weight: normal !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.notyf__toast {
  padding: 12px 18px !important;
  min-height: auto !important;
}

/* =========================================================================
 * Front page redesign - brand tokens, helpers & animations
 * (added with the SlythPay front-page redesign; consumed by partials/header,
 *  sections/home, partials/footer)
 * ========================================================================= */

:root {
  --slyth-primary: #9333ea;        /* purple-600 */
  --slyth-primary-hover: #a855f7;  /* purple-500 */
  --slyth-primary-strong: #7e22ce; /* purple-700 */
  --slyth-accent: #c084fc;         /* purple-400 */
  --slyth-glow: #b54bff;

  --slyth-grad-from: #a855f7;      /* purple-500 */
  --slyth-grad-via: #ec4899;       /* pink-500 */
  --slyth-grad-to: #f87171;        /* red-400 */

  --slyth-bg: #111827;             /* gray-900 */
  --slyth-surface: #1f2937;        /* gray-800 */
  --slyth-surface-deep: #0f172a;   /* slate-900 */
  --slyth-border: #1e293b;         /* slate-800 */
  --slyth-ring: rgb(255 255 255 / 0.10);

  --slyth-radius-xl: 0.75rem;

  --slyth-gradient-hero: linear-gradient(to right, var(--slyth-grad-from), var(--slyth-grad-via), var(--slyth-grad-to));
  --slyth-gradient-card: linear-gradient(to bottom right, #a855f7, #7e22ce);
  --slyth-gradient-magic: linear-gradient(135deg, #a855f7, #ec4899, #a855f7);
}

/* Signature gradient text (hero / CTA headlines only). */
.slyth-gradient-text {
  background-image: var(--slyth-gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Gradient-border wrapper: purple→purple-700 frame around a dark child. */
.slyth-gradient-border {
  background-image: var(--slyth-gradient-card);
  padding: 2px;
  border-radius: var(--slyth-radius-xl);
}

/* Animated shimmering gradient border (reuses @keyframes shimmer above). */
.slyth-magic-border {
  background: var(--slyth-gradient-magic);
  background-size: 400% 400%;
  animation: shimmer 6s ease infinite;
}

/* Glassy elevated surface (sticky header / menus). */
.slyth-glass {
  background-color: rgb(17 24 39 / 0.80);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 var(--slyth-ring) inset;
}

/* The header partial loads into #header; make that wrapper transparent to
 * layout so the sticky <header> is constrained by the full-height page
 * wrapper (otherwise it would unstick immediately). */
#header { display: contents; }

/* Smooth in-page anchor scrolling for the front-page nav. */
html { scroll-behavior: smooth; }

/* Floating hero card. */
@keyframes slythFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(-6deg); }
}
.slyth-float { animation: slythFloat 6s ease-in-out infinite; }

/* Animated gradient headline (reuses @keyframes gradient-x above). */
.slyth-grad-anim { background-size: 200% auto; animation: gradient-x 5s ease infinite; }

/* Moving shine sweep across the hero card. */
.slyth-card-shine {
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: slythShine 5s linear infinite;
}
@keyframes slythShine {
  0% { background-position: 200% 0; }
  100% { background-position: -50% 0; }
}

/* FAQ accordion: smooth height via grid-template-rows. */
.faq-a {
  overflow: hidden;
  transition: grid-template-rows 0.28s ease;
  display: grid;
  grid-template-rows: 0fr;
}
.faq-a.open { grid-template-rows: 1fr; }
.faq-a > div { min-height: 0; }

/* =========================================================================
 * Legal documents (terms / privacy / refund modals)
 * Hierarchy + reading rhythm for the long-form text inside .legal-doc.
 * ========================================================================= */
.legal-doc > h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111827;
  margin: 1.75rem 0 0.5rem;
}
.dark .legal-doc > h3 {
  color: #ffffff;
}
.legal-doc > h3:first-child {
  margin-top: 0;
}
.legal-doc p {
  margin: 0 0 0.85rem;
}
.legal-doc p:last-child {
  margin-bottom: 0;
}
.legal-doc strong,
.legal-doc b {
  font-weight: 600;
  color: #111827;
}
.dark .legal-doc strong,
.dark .legal-doc b {
  color: #f3f4f6;
}
.legal-doc a {
  color: #9333ea;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dark .legal-doc a {
  color: #c084fc;
}

/* =========================================================================
 * Modal gradient frame (shared by login / register / accountCreated /
 * accountNotVerified / retrievePassword / paymentselect). The base matches
 * the four max-w-md modals; paymentselect keeps its larger radius + shadow
 * as inline Tailwind overrides on the same element.
 * ========================================================================= */
.slyth-modal-frame {
  padding: 1px;
  border-radius: 1.1rem;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
  background-image: linear-gradient(140deg, rgba(168, 85, 247, 0.55), rgba(236, 72, 153, 0.28) 45%, rgba(168, 85, 247, 0.12) 80%);
}

/* =========================================================================
 * Status badges (radial glow discs). Three variants, each used twice:
 * success → transaction/success + accountverify; error → transaction/problem
 * + accountverify; brand → accountCreated + accountNotVerified.
 * ========================================================================= */
.slyth-badge-success {
  background: radial-gradient(circle at 50% 35%, rgba(52, 211, 153, 0.3), rgba(52, 211, 153, 0.06));
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.4), 0 18px 50px -16px rgba(52, 211, 153, 0.6);
}
.slyth-badge-error {
  background: radial-gradient(circle at 50% 35%, rgba(248, 113, 113, 0.28), rgba(248, 113, 113, 0.05));
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4), 0 18px 50px -16px rgba(248, 113, 113, 0.55);
}
.slyth-badge-brand {
  background: radial-gradient(circle at 50% 35%, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.06));
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.4), 0 18px 50px -16px rgba(168, 85, 247, 0.6);
}

/* =========================================================================
 * Prepaid card art (shared "hero" card). Consumed by transaction/success
 * and the purchase-nowp step-3 success screen. Literal hex (no scoped vars)
 * so it is safe to use outside .cpf.
 * ========================================================================= */
.slyth-card-stage {
  position: relative;
  z-index: 0;
  display: flex;
}
.slyth-card-stage::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(168, 85, 247, 0.5), rgba(214, 64, 159, 0.18), transparent 75%);
  filter: blur(34px);
  opacity: 0.55;
  animation: slythCardHalo 6s ease-in-out infinite;
}
@keyframes slythCardHalo {
  0%, 100% { opacity: 0.42; transform: scale(0.98); }
  50% { opacity: 0.68; transform: scale(1.03); }
}
.slyth-card-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.slyth-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  border-radius: 1.1rem;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: #fff;
  background: linear-gradient(135deg, #3d1a78 0%, #6d28d9 45%, #a21caf 100%);
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.slyth-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 46%, transparent 60%);
  pointer-events: none;
}
.slyth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slyth-card-brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.slyth-card-contactless {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}
.slyth-card-mid {
  display: flex;
  align-items: center;
  gap: 14px;
}
.slyth-card-chip {
  width: 42px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f2d27a, #d9a23b);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  position: relative;
  flex: none;
}
.slyth-card-chip::before {
  content: "";
  position: absolute;
  inset: 6px 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}
.slyth-card-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.slyth-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.slyth-card-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.slyth-card-copy {
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 0.55rem;
  padding: 0.4rem;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  transition: background 0.15s;
}
.slyth-card-copy:hover {
  background: rgba(255, 255, 255, 0.3);
}
.slyth-card-copy svg {
  width: 18px;
  height: 18px;
  display: block;
}
.slyth-card-particle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  color: #c084fc;
  filter: drop-shadow(0 0 4px rgba(168, 85, 247, 0.7));
  animation: slythCardTwinkle 4s ease-in-out infinite;
}
@keyframes slythCardTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) translateY(0); }
  50% { opacity: 0.85; transform: scale(1) translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .slyth-card-stage::before { animation: none; }
  .slyth-card-particle { display: none; }
}
