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

.magic-border {
  background: linear-gradient(135deg, #ff8a00, #ff3d00, #ff8a00);
  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 #ff7a1a) drop-shadow(0 0 2px #ff7a1a60);
  }
  50% {
    filter: drop-shadow(0 0 2px #ff7a1a) drop-shadow(0 0 3px #ff7a1a80);
  }
}

.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
 * (consumed by partials/header, sections/home, partials/footer)
 * Class + variable NAMES kept from the shared design system; only the COLOR
 * values are tornado (orange #FF6A00 + navy), per the brand recolor.
 * ========================================================================= */

:root {
  --tornado-primary: #ff6a00;        /* tornado orange */
  --tornado-primary-hover: #ff8124;
  --tornado-primary-strong: #cc5500;
  --tornado-accent: #ffa64d;
  --tornado-glow: #ff7a1a;

  --tornado-grad-from: #ff9a00;      /* amber */
  --tornado-grad-via: #ff5e00;       /* orange */
  --tornado-grad-to: #ff2d2d;        /* red */

  --tornado-bg: #0a0f26;             /* tornado navy */
  --tornado-surface: #0f1733;
  --tornado-surface-deep: #060c1a;
  --tornado-border: #1b2545;
  --tornado-ring: rgb(255 255 255 / 0.10);

  --tornado-radius-xl: 0.75rem;

  --tornado-gradient-hero: linear-gradient(to right, var(--tornado-grad-from), var(--tornado-grad-via), var(--tornado-grad-to));
  --tornado-gradient-card: linear-gradient(to bottom right, #ff8a00, #cc5500);
  --tornado-gradient-magic: linear-gradient(135deg, #ff8a00, #ff3d00, #ff8a00);
}

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

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

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

/* Glassy elevated surface (sticky header / menus). */
.tornado-glass {
  background-color: rgb(10 15 38 / 0.80);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 var(--tornado-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 tornadoFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-16px) rotate(-6deg); }
}
.tornado-float { animation: tornadoFloat 6s ease-in-out infinite; }

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

/* Moving shine sweep across the hero card. */
.tornado-card-shine {
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: tornadoShine 5s linear infinite;
}
@keyframes tornadoShine {
  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: #ff6a00;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dark .legal-doc a {
  color: #ff9e4d;
}

/* =========================================================================
 * Modal gradient frame (shared by login / register / accountCreated /
 * accountNotVerified / retrievePassword / paymentselect).
 * ========================================================================= */
.tornado-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(255, 106, 0, 0.55), rgba(255, 61, 0, 0.28) 45%, rgba(255, 106, 0, 0.12) 80%);
}

/* =========================================================================
 * Status badges (radial glow discs). success/error keep their semantic
 * green/red; brand is recolored to tornado orange.
 * ========================================================================= */
.tornado-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);
}
.tornado-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);
}
.tornado-badge-brand {
  background: radial-gradient(circle at 50% 35%, rgba(255, 106, 0, 0.3), rgba(255, 106, 0, 0.06));
  box-shadow: 0 0 0 1px rgba(255, 106, 0, 0.4), 0 18px 50px -16px rgba(255, 106, 0, 0.6);
}

/* =========================================================================
 * Prepaid card art (shared "hero" card). Consumed by transaction/success
 * and the purchase-nowp step-3 success screen.
 * ========================================================================= */
.tornado-card-stage {
  position: relative;
  z-index: 0;
  display: flex;
}
.tornado-card-stage::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 0, 0.5), rgba(255, 61, 0, 0.18), transparent 75%);
  filter: blur(34px);
  opacity: 0.55;
  animation: tornadoCardHalo 6s ease-in-out infinite;
}
@keyframes tornadoCardHalo {
  0%, 100% { opacity: 0.42; transform: scale(0.98); }
  50% { opacity: 0.68; transform: scale(1.03); }
}
.tornado-card-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.tornado-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, #11183a 0%, #6b2f00 48%, #c2410c 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);
}
.tornado-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;
}
.tornado-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tornado-card-brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.tornado-card-contactless {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}
.tornado-card-mid {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tornado-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;
}
.tornado-card-chip::before {
  content: "";
  position: absolute;
  inset: 6px 8px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}
.tornado-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;
}
.tornado-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.tornado-card-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.tornado-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;
}
.tornado-card-copy:hover {
  background: rgba(255, 255, 255, 0.3);
}
.tornado-card-copy svg {
  width: 18px;
  height: 18px;
  display: block;
}
.tornado-card-particle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  color: #ffb066;
  filter: drop-shadow(0 0 4px rgba(255, 106, 0, 0.7));
  animation: tornadoCardTwinkle 4s ease-in-out infinite;
}
@keyframes tornadoCardTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.4) translateY(0); }
  50% { opacity: 0.85; transform: scale(1) translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .tornado-card-stage::before { animation: none; }
  .tornado-card-particle { display: none; }
}

/* =========================================================================
 * Tornado-specific helpers retained from the previous stylesheet.
 * ========================================================================= */

/* Captcha (Turnstile) wrapper used by the auth modals. */
.captcha-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0px 20px 0px;
}

/* Loading splash: the mascot shakes while the app boots. */
@keyframes tornadoShake {
  0% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(1deg) translateY(-2px);
  }
  50% {
    transform: rotate(-1deg) translateY(1px);
  }
  75% {
    transform: rotate(1.5deg) translateY(-1px);
  }
  100% {
    transform: rotate(0deg) translateY(0);
  }
}

