/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  --color-bg: #050816;
  --color-primary: #2F6BFF;
  --color-primary-light: #5A8FFF;
  --color-primary-dark: #1A4FCC;
  --color-white: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.72);
  --color-glass: rgba(255, 255, 255, 0.06);
  --color-glass-border: rgba(255, 255, 255, 0.12);
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --color-danger: #D94848;
  --glow-primary: 0 0 24px rgba(47, 107, 255, 0.45), 0 0 48px rgba(47, 107, 255, 0.2);
  --shadow-phone: 0 32px 64px rgba(0, 0, 0, 0.45), 0 0 40px rgba(47, 107, 255, 0.15);
  --space-section: clamp(2.5rem, 6vw, 5rem);
  --max-width: 1120px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
}

/* --------------------------------------------------------------------------
   Global reset / base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color: var(--color-white);
  font-size: 1em;
  line-height: 1.5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-white);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hero section
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 800px;
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0) 0%, var(--color-bg) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      160deg,
      rgba(5, 8, 22, 0.88) 0%,
      rgba(5, 8, 22, 0.72) 45%,
      rgba(5, 8, 22, 0.85) 100%
    ),
    radial-gradient(
      ellipse 80% 60% at 70% 40%,
      rgba(47, 107, 255, 0.12) 0%,
      transparent 70%
    );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Brand / navigation
   -------------------------------------------------------------------------- */

.hero__nav {
  display: flex;
  align-items: center;
  padding: 0.5rem 0 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.9;
}

.brand:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 8px;
}

.brand__icon {
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(47, 107, 255, 0.5));
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.brand__line {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand__line--white {
  color: var(--color-white);
}

.brand__line--blue {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Hero content layout
   -------------------------------------------------------------------------- */

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3rem;
  flex: 1;
  justify-content: center;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 36rem;
}

/* --------------------------------------------------------------------------
   Feature badge
   -------------------------------------------------------------------------- */

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-full);
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-badge__icon {
  font-size: 0.95rem;
  line-height: 1;
}

.feature-badge__text {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Heading & description
   -------------------------------------------------------------------------- */

.hero__heading {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__heading-line {
  display: block;
  color: var(--color-white);
}

.hero__heading-line--accent {
  color: var(--color-primary);
  text-shadow: 0 0 40px rgba(47, 107, 255, 0.35);
}

.hero__description {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Primary CTA button
   -------------------------------------------------------------------------- */

.hero__cta {
  display: flex;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  min-height: 3.25rem;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    filter var(--transition-fast);
  animation: button-glow 3s ease-in-out infinite;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 32px rgba(47, 107, 255, 0.6),
    0 0 64px rgba(47, 107, 255, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.3);
  filter: brightness(1.08);
  animation: none;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.95);
  box-shadow: 0 0 16px rgba(47, 107, 255, 0.4);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

.btn-primary__arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-primary__arrow {
  transform: translateX(4px);
}

.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  min-height: 3.25rem;
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-danger);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--color-danger);
  color: var(--color-white);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

@keyframes button-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(47, 107, 255, 0.4), 0 0 40px rgba(47, 107, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 32px rgba(47, 107, 255, 0.65), 0 0 56px rgba(47, 107, 255, 0.3);
  }
}

/* --------------------------------------------------------------------------
   Floating illustration (phone + coin)
   -------------------------------------------------------------------------- */

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  padding: 1.5rem 0 0.5rem;
}

/* Floating coin */
.float-coin {
  position: absolute;
  top: 0.25rem;
  right: calc(50% - 7rem);
  z-index: 3;
  animation: coin-pulse 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(47, 107, 255, 0.55));
}

.float-coin__svg {
  width: 48px;
  height: 48px;
}

@keyframes coin-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 12px rgba(47, 107, 255, 0.45));
  }
  50% {
    transform: translateY(-8px) scale(1.06);
    filter: drop-shadow(0 0 22px rgba(47, 107, 255, 0.75));
  }
}

/* Phone mockup */
.phone {
  position: relative;
  z-index: 2;
  animation: phone-float 5s ease-in-out infinite;
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.phone__frame {
  width: 180px;
  height: 360px;
  border-radius: 28px;
  background: linear-gradient(160deg, #1a2238 0%, #0c1224 100%);
  border: 2px solid rgba(107, 155, 255, 0.35);
  box-shadow: var(--shadow-phone);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px 12px;
  position: relative;
}

.phone__frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 29px;
  background: linear-gradient(145deg, rgba(90, 143, 255, 0.35), transparent 40%, transparent 60%, rgba(47, 107, 255, 0.2));
  pointer-events: none;
  z-index: -1;
}

.phone__notch {
  width: 72px;
  height: 8px;
  border-radius: 0 0 10px 10px;
  background: #050816;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.phone__screen {
  flex: 1;
  width: 100%;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(47, 107, 255, 0.25) 0%, transparent 65%),
    linear-gradient(180deg, #0a1428 0%, #060d1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone__wallet {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.phone__wallet-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.phone__home {
  width: 48px;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  margin-top: 10px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Fade-in animations
   -------------------------------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-in-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fade-in--delay-1 {
  animation-delay: 0.1s;
}

.fade-in--delay-2 {
  animation-delay: 0.25s;
}

.fade-in--delay-3 {
  animation-delay: 0.4s;
}

.fade-in--delay-4 {
  animation-delay: 0.55s;
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Responsive — tablet and up
   -------------------------------------------------------------------------- */

@media only screen and (min-width: 35em) {
  .hero__inner {
    padding: 1.5rem 2rem 4rem;
  }

  .brand__line {
    font-size: 0.8rem;
  }

  .feature-badge {
    margin-bottom: 1.75rem;
  }

  .phone__frame {
    width: 200px;
    height: 400px;
    border-radius: 32px;
  }

  .float-coin {
    right: calc(50% - 8rem);
  }

  .float-coin__svg {
    width: 56px;
    height: 56px;
  }
}

/* Desktop: two-column hero */
@media only screen and (min-width: 56em) {
  .hero__inner {
    padding: 1.75rem 2.5rem 5rem;
  }

  .hero__nav {
    padding-bottom: 2.5rem;
  }

  .hero__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem 4rem;
  }

  .hero__copy {
    flex: 1 1 52%;
    max-width: 34rem;
  }

  .hero__visual {
    flex: 0 0 auto;
    width: 280px;
    min-height: 420px;
    padding: 0;
    justify-content: flex-end;
  }

  .float-coin {
    top: 1.5rem;
    right: 0;
  }

  .phone__frame {
    width: 220px;
    height: 440px;
    border-radius: 36px;
  }

  .hero__heading {
    margin-bottom: 1.5rem;
  }

  .hero__description {
    margin-bottom: 2.25rem;
  }
}

/* Large desktop breathing room */
@media only screen and (min-width: 75em) {
  .hero__inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero__content {
    gap: 5rem;
  }

  .hero__visual {
    width: 300px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .phone,
  .float-coin,
  .btn-primary {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   Statistics section
   -------------------------------------------------------------------------- */

.stats {
  position: relative;
  background-color: transparent;
  padding: var(--space-section) 1.25rem;
}

.stats__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stats__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--color-glass);
  border: 1px solid rgba(90, 143, 255, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.08),
    0 0 40px rgba(47, 107, 255, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1 1 0;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  cursor: default;
  transition:
    background var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.stats__item:hover {
  background: rgba(47, 107, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stats__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
  line-height: 1;
  border-radius: var(--radius-full);
  background: rgba(47, 107, 255, 0.12);
  border: 1px solid rgba(47, 107, 255, 0.25);
  filter: drop-shadow(0 0 8px rgba(47, 107, 255, 0.25));
  transition:
    filter 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

.stats__card.is-visible .stats__icon {
  animation: stats-icon-glow 1.4s ease-out 0.2s both;
}

.stats__item:hover .stats__icon {
  filter: drop-shadow(0 0 14px rgba(47, 107, 255, 0.65));
  box-shadow: 0 0 20px rgba(47, 107, 255, 0.35);
  transform: scale(1.06);
}

.stats__value {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  transform: scale(0.95);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats__card.is-visible .stats__value {
  transform: scale(1);
}

.stats__card.is-visible .stats__item:nth-child(1) .stats__value {
  transition-delay: 0.1s;
}

.stats__card.is-visible .stats__item:nth-child(3) .stats__value {
  transition-delay: 0.2s;
}

.stats__card.is-visible .stats__item:nth-child(5) .stats__value {
  transition-delay: 0.3s;
}

.stats__label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

.stats__note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-primary-light);
}

.stats__note--muted {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

.stats__divider {
  width: 100%;
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 15%,
    rgba(90, 143, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.12) 85%,
    transparent 100%
  );
}

@keyframes stats-icon-glow {
  0% {
    filter: drop-shadow(0 0 4px rgba(47, 107, 255, 0.15));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(47, 107, 255, 0.7));
  }
  100% {
    filter: drop-shadow(0 0 10px rgba(47, 107, 255, 0.35));
  }
}

/* Stats — tablet: horizontal card */
@media only screen and (min-width: 35em) {
  .stats {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .stats__card {
    flex-direction: row;
    align-items: stretch;
    padding: 1.5rem 0.75rem;
  }

  .stats__item {
    padding: 1.5rem 1.25rem;
  }

  .stats__divider {
    width: 1px;
    height: auto;
    align-self: stretch;
    margin: 1rem 0;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(255, 255, 255, 0.12) 15%,
      rgba(90, 143, 255, 0.28) 50%,
      rgba(255, 255, 255, 0.12) 85%,
      transparent 100%
    );
  }
}

@media only screen and (min-width: 56em) {
  .stats {
    padding: clamp(3rem, 6vw, 5rem) 2.5rem;
  }

  .stats__card {
    padding: 1.75rem 1rem;
  }

  .stats__item {
    padding: 1.75rem 1.5rem;
  }

  .stats__value {
    font-size: 2.35rem;
  }
}

@media only screen and (min-width: 75em) {
  .stats {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats__card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stats__value {
    transform: none;
    transition: none;
  }

  .stats__card.is-visible .stats__icon {
    animation: none;
  }

  .stats__item:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Security card
   -------------------------------------------------------------------------- */

.security {
  position: relative;
  background-color: transparent;
  padding: 0 1.25rem var(--space-section);
}

.security__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.security__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  border-radius: 20px;
  background: var(--color-glass);
  border: 1px solid rgba(90, 143, 255, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.08),
    0 0 48px rgba(47, 107, 255, 0.14),
    0 18px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  animation: none;
}

.security__card.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: security-glow-breathe 4s ease-in-out 0.6s infinite;
}

.security__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security__icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.12);
  border: 1px solid rgba(90, 143, 255, 0.35);
  box-shadow:
    0 0 24px rgba(47, 107, 255, 0.3),
    inset 0 0 20px rgba(47, 107, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.security__card.is-visible .security__icon-ring {
  animation: security-shield-pulse 3.2s ease-in-out 0.5s infinite;
}

.security__shield {
  width: 2.75rem;
  height: 2.75rem;
  filter: drop-shadow(0 0 10px rgba(47, 107, 255, 0.55));
}

.security__copy {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.security__heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.security__body {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 400;
}

@keyframes security-shield-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 20px rgba(47, 107, 255, 0.28),
      inset 0 0 18px rgba(47, 107, 255, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 36px rgba(47, 107, 255, 0.55),
      inset 0 0 24px rgba(47, 107, 255, 0.18);
  }
}

@keyframes security-glow-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(47, 107, 255, 0.08),
      0 0 40px rgba(47, 107, 255, 0.12),
      0 18px 48px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-color: rgba(90, 143, 255, 0.24);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(47, 107, 255, 0.16),
      0 0 56px rgba(47, 107, 255, 0.28),
      0 18px 48px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(90, 143, 255, 0.4);
  }
}

/* Security — tablet and up: side-by-side */
@media only screen and (min-width: 35em) {
  .security {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .security__card {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 2.25rem 2.5rem;
  }

  .security__copy {
    text-align: left;
  }

  .security__body {
    max-width: none;
  }

  .security__icon-ring {
    width: 6rem;
    height: 6rem;
  }

  .security__shield {
    width: 3rem;
    height: 3rem;
  }
}

@media only screen and (min-width: 56em) {
  .security {
    padding: 0 2.5rem clamp(3rem, 6vw, 5rem);
  }

  .security__card {
    gap: 2.5rem;
    padding: 2.75rem 3rem;
  }

  .security__icon-ring {
    width: 6.5rem;
    height: 6.5rem;
  }
}

@media only screen and (min-width: 75em) {
  .security {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .security__card {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .security__card.is-visible {
    animation: none;
  }

  .security__card.is-visible .security__icon-ring {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Exchange / sponsor-style logo showcase (landing page)
   -------------------------------------------------------------------------- */

.exchanges {
  position: relative;
  background-color: transparent;
  padding: 0.5rem 1.25rem clamp(2.75rem, 7vw, 4.5rem);
}

.exchanges__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.exchanges__stage {
  position: relative;
  width: 100%;
  /* Reserve space so absolute groups do not collapse the layout */
  min-height: 11.5rem;
}

.exchanges__group {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1.35rem;
  align-items: center;
  justify-items: center;
  width: 100%;
}

.exchanges__group--1 {
  position: relative;
  z-index: 2;
  opacity: 1;
  animation: exchanges-fade-group-1 14s ease-in-out infinite;
}

.exchanges__group--2 {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  animation: exchanges-fade-group-2 14s ease-in-out infinite;
}

.exchanges__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 8.5rem;
  min-height: 2.25rem;
  margin: 0;
  padding: 0.15rem 0.35rem;
}

.exchanges__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 2rem;
  object-fit: contain;
  object-position: center;
  /* Soft muted gray/silver — original image files untouched */
  filter: grayscale(100%) brightness(1.15);
  opacity: 0.55;
  transition: opacity var(--transition-base), filter var(--transition-base);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Slow crossfade: Group 1 visible → both mid-fade → Group 2 → back */
@keyframes exchanges-fade-group-1 {
  0%,
  38% {
    opacity: 1;
  }
  48%,
  88% {
    opacity: 0;
  }
  98%,
  100% {
    opacity: 1;
  }
}

@keyframes exchanges-fade-group-2 {
  0%,
  38% {
    opacity: 0;
  }
  48%,
  88% {
    opacity: 1;
  }
  98%,
  100% {
    opacity: 0;
  }
}

/* Tablet: 5 logos per row (2 rows of 10) */
@media only screen and (min-width: 35em) {
  .exchanges {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .exchanges__stage {
    min-height: 7.5rem;
  }

  .exchanges__group {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 1.25rem;
    row-gap: 1.75rem;
  }

  .exchanges__item {
    max-width: 9rem;
    min-height: 2.5rem;
  }

  .exchanges__logo {
    max-height: 2.25rem;
  }
}

/* Desktop: roomier spacing, slightly larger logos */
@media only screen and (min-width: 56em) {
  .exchanges {
    padding: 0.75rem 2.5rem clamp(3.25rem, 7vw, 5rem);
  }

  .exchanges__stage {
    min-height: 8rem;
  }

  .exchanges__group {
    column-gap: 1.75rem;
    row-gap: 2rem;
  }

  .exchanges__item {
    max-width: 10rem;
    min-height: 2.75rem;
    padding: 0.25rem 0.5rem;
  }

  .exchanges__logo {
    max-height: 2.5rem;
  }
}

@media only screen and (min-width: 75em) {
  .exchanges {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .exchanges__group {
    column-gap: 2rem;
  }

  .exchanges__logo {
    max-height: 2.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exchanges__group--1,
  .exchanges__group--2 {
    animation: none;
  }

  /* Show both groups stacked as a static grid when motion is reduced */
  .exchanges__stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
  }

  .exchanges__group--1,
  .exchanges__group--2 {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
  }
}

/* --------------------------------------------------------------------------
   Create Account page
   -------------------------------------------------------------------------- */

.create-account {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(47, 107, 255, 0.12) 0%, transparent 65%);
}

.create-account__main {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.25rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
}

/* Create Account — page header */
.ca-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 0.25rem;
}

.ca-header__back {
  position: absolute;
  top: 0.15rem;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  color: var(--color-white);
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.ca-header__back:hover {
  background: rgba(47, 107, 255, 0.15);
  border-color: rgba(90, 143, 255, 0.35);
  transform: translateX(-2px);
  box-shadow: 0 0 20px rgba(47, 107, 255, 0.2);
}

.ca-header__back:active {
  transform: scale(0.96);
}

.ca-header__back:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.ca-header__back-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.ca-header__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 3.5rem;
}

.ca-header__avatar {
  margin-bottom: 1.75rem;
}

.ca-header__avatar-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-primary-light) 0%, var(--color-primary) 45%, var(--color-primary-dark) 100%);
  border: 2px solid rgba(180, 210, 255, 0.35);
  box-shadow:
    0 0 28px rgba(47, 107, 255, 0.45),
    0 0 56px rgba(47, 107, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: ca-avatar-pulse 3.2s ease-in-out infinite;
}

.ca-header__user-icon {
  width: 2.75rem;
  height: 2.75rem;
  opacity: 0.95;
}

.ca-header__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.875rem, 6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-white);
}

.ca-header__subtitle {
  margin: 0;
  max-width: 18rem;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  line-height: 1.55;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@keyframes ca-avatar-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 24px rgba(47, 107, 255, 0.4),
      0 0 48px rgba(47, 107, 255, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 0 36px rgba(47, 107, 255, 0.65),
      0 0 72px rgba(47, 107, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

@media only screen and (min-width: 35em) {
  .create-account__main {
    max-width: 30rem;
    padding: 1.5rem 2rem 3.5rem;
  }

  .ca-header__content {
    padding-top: 4rem;
  }

  .ca-header__avatar {
    margin-bottom: 2rem;
  }

  .ca-header__avatar-ring {
    width: 7.25rem;
    height: 7.25rem;
  }

  .ca-header__user-icon {
    width: 3rem;
    height: 3rem;
  }

  .ca-header__title {
    margin-bottom: 0.85rem;
  }

  .ca-header__subtitle {
    max-width: 22rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-header__avatar-ring {
    animation: none;
  }
}

/* Create Account — registration form */
.ca-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  margin-top: 2.25rem;
}

.ca-form--login {
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.ca-field {
  width: 100%;
}

.ca-field__control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Field validation messages */
.ca-field__message {
  margin: 0.4rem 0 0;
  min-height: 0;
  padding: 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.ca-field__message:empty {
  display: none;
}

.ca-field__message--invalid {
  color: #ff6b7a;
}

.ca-field__message--valid {
  color: #3dd68c;
}

/* Input validity states (subtle border only — keeps layout intact) */
.ca-field__input.is-invalid {
  border-color: rgba(255, 107, 122, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 107, 122, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ca-field__input.is-invalid:focus {
  border-color: rgba(255, 107, 122, 0.75);
  background: rgba(255, 80, 100, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 107, 122, 0.35),
    0 0 20px rgba(255, 80, 100, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ca-field__input.is-valid {
  border-color: rgba(61, 214, 140, 0.45);
  box-shadow:
    0 0 0 1px rgba(61, 214, 140, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ca-field__input.is-valid:focus {
  border-color: rgba(61, 214, 140, 0.7);
  background: rgba(61, 214, 140, 0.06);
  box-shadow:
    0 0 0 1px rgba(61, 214, 140, 0.3),
    0 0 20px rgba(61, 214, 140, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Password strength meter */
.ca-password-strength {
  margin-top: 0.65rem;
  padding: 0 0.15rem;
}

.ca-password-strength[hidden] {
  display: none;
}

.ca-password-strength__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.ca-password-strength__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

.ca-password-strength__level {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.ca-password-strength__bar {
  position: relative;
  width: 100%;
  height: 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ca-password-strength__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: #ff4d5e;
  transition:
    width 0.3s ease,
    background 0.3s ease;
}

.ca-password-strength[data-level="1"] .ca-password-strength__fill {
  width: 20%;
  background: #ff4d5e;
}

.ca-password-strength[data-level="1"] .ca-password-strength__level {
  color: #ff6b7a;
}

.ca-password-strength[data-level="2"] .ca-password-strength__fill {
  width: 40%;
  background: #ff9f43;
}

.ca-password-strength[data-level="2"] .ca-password-strength__level {
  color: #ff9f43;
}

.ca-password-strength[data-level="3"] .ca-password-strength__fill {
  width: 60%;
  background: #f5c542;
}

.ca-password-strength[data-level="3"] .ca-password-strength__level {
  color: #f5c542;
}

.ca-password-strength[data-level="4"] .ca-password-strength__fill {
  width: 80%;
  background: #5ac8fa;
}

.ca-password-strength[data-level="4"] .ca-password-strength__level {
  color: #5ac8fa;
}

.ca-password-strength[data-level="5"] .ca-password-strength__fill {
  width: 100%;
  background: #3dd68c;
}

.ca-password-strength[data-level="5"] .ca-password-strength__level {
  color: #3dd68c;
}

/* Password requirements checklist */
.ca-password-reqs {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ca-password-reqs[hidden] {
  display: none;
}

.ca-password-reqs__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.42);
  transition: color var(--transition-fast);
}

.ca-password-reqs__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  font-size: 0.55rem;
  line-height: 1;
  color: transparent;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.ca-password-reqs__icon::before {
  content: "";
}

.ca-password-reqs__item.is-met {
  color: #3dd68c;
}

.ca-password-reqs__item.is-met .ca-password-reqs__icon {
  border-color: #3dd68c;
  background: rgba(61, 214, 140, 0.15);
  color: #3dd68c;
}

.ca-password-reqs__item.is-met .ca-password-reqs__icon::before {
  content: "✓";
  font-weight: 700;
}

.ca-agree-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ca-agree-wrap .ca-field__message {
  padding-left: 2.125rem;
}

.ca-field__icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  pointer-events: none;
  z-index: 1;
  transition: color var(--transition-fast);
}

.ca-field__icon--left {
  left: 1rem;
}

.ca-field__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ca-field__input {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.95rem 1.1rem 0.95rem 3rem;
  border-radius: 18px;
  border: 1px solid rgba(90, 143, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--color-white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.ca-field__input--password {
  padding-right: 3.25rem;
}

.ca-field__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  opacity: 1;
}

.ca-field__input:hover {
  border-color: rgba(90, 143, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.ca-field__input:focus {
  border-color: var(--color-primary);
  background: rgba(47, 107, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.35),
    0 0 24px rgba(47, 107, 255, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ca-field__control:focus-within .ca-field__icon {
  color: var(--color-primary);
}

.ca-field__toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.ca-field__toggle:hover {
  color: var(--color-primary-light);
  background: rgba(47, 107, 255, 0.12);
}

.ca-field__toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  color: var(--color-primary-light);
}

.ca-field__toggle[aria-pressed="true"] {
  color: var(--color-primary-light);
}

.ca-field__eye {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.ca-field__toggle[aria-pressed="true"] .ca-field__eye--show {
  display: none;
}

.ca-field__toggle[aria-pressed="true"] .ca-field__eye--hide {
  display: block;
}

.ca-field__toggle[aria-pressed="false"] .ca-field__eye--show {
  display: block;
}

.ca-field__toggle[aria-pressed="false"] .ca-field__eye--hide {
  display: none;
}

@media only screen and (min-width: 35em) {
  .ca-form {
    gap: 1.125rem;
    margin-top: 2.5rem;
  }

  .ca-field__input {
    min-height: 3.65rem;
    font-size: 1.03125rem;
  }
}

/* Create Account — agreement + primary action */
.ca-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.25rem;
}

.ca-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.ca-agree__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.ca-agree__box {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: 0.1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: transparent;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    color var(--transition-fast);
}

.ca-agree__check {
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.ca-agree__input:checked + .ca-agree__box {
  background: var(--color-primary);
  border-color: var(--color-primary-light);
  box-shadow:
    0 0 12px rgba(47, 107, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.ca-agree__input:checked + .ca-agree__box .ca-agree__check {
  opacity: 1;
  transform: scale(1);
}

.ca-agree__input:focus-visible + .ca-agree__box {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.ca-agree:hover .ca-agree__box {
  border-color: rgba(90, 143, 255, 0.45);
}

.ca-agree__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.ca-agree__link {
  color: var(--color-primary-light);
  font-weight: 600;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    text-shadow var(--transition-fast);
}

.ca-agree__link:hover {
  color: #8ab4ff;
  text-shadow: 0 0 12px rgba(47, 107, 255, 0.55);
}

.ca-agree__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.ca-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    var(--color-primary-light) 0%,
    var(--color-primary) 50%,
    var(--color-primary-dark) 100%
  );
  color: var(--color-white);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    filter var(--transition-fast),
    opacity var(--transition-base);
}

.ca-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

/* Disabled: dimmed, non-interactive */
.ca-submit:disabled,
.ca-submit[disabled] {
  opacity: 0.45;
  filter: grayscale(0.25) brightness(0.85);
  cursor: not-allowed;
  box-shadow: none;
  animation: none;
  pointer-events: none;
  transform: none;
}

.ca-submit:disabled:hover,
.ca-submit[disabled]:hover,
.ca-submit:disabled:active,
.ca-submit[disabled]:active {
  transform: none;
  filter: grayscale(0.25) brightness(0.85);
  box-shadow: none;
}

/* Enabled: full gradient + subtle glow pulse */
.ca-submit:not(:disabled) {
  opacity: 1;
  filter: none;
  cursor: pointer;
  animation: ca-submit-glow 2.8s ease-in-out infinite;
}

.ca-submit:not(:disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  animation: none;
  box-shadow:
    0 0 32px rgba(47, 107, 255, 0.55),
    0 0 56px rgba(47, 107, 255, 0.25),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.ca-submit:not(:disabled):active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.96);
  box-shadow: 0 0 16px rgba(47, 107, 255, 0.4);
}

.ca-submit:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

@keyframes ca-submit-glow {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(47, 107, 255, 0.4),
      0 0 40px rgba(47, 107, 255, 0.15);
  }
  50% {
    box-shadow:
      0 0 32px rgba(47, 107, 255, 0.65),
      0 0 56px rgba(47, 107, 255, 0.3);
  }
}

.ca-login-prompt {
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.ca-login-prompt__link {
  margin-left: 0.25rem;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    text-shadow var(--transition-fast);
}

.ca-login-prompt__link:hover {
  color: var(--color-primary-light);
  text-shadow: 0 0 12px rgba(47, 107, 255, 0.5);
}

.ca-login-prompt__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.ca-forgot-password {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.ca-forgot-password__text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.ca-forgot-password__link {
  color: var(--color-primary-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

@media only screen and (min-width: 35em) {
  .ca-actions {
    gap: 1.65rem;
    margin-top: 0.85rem;
  }

  .ca-submit {
    min-height: 3.65rem;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-submit:not(:disabled) {
    animation: none;
  }

  .ca-submit:hover,
  .ca-submit:active,
  .ca-submit:not(:disabled):hover,
  .ca-submit:not(:disabled):active {
    transform: none;
  }

  .ca-password-strength__fill {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Create Account — success modal
   -------------------------------------------------------------------------- */

.ca-success {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.ca-success.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ca-success[hidden] {
  display: none;
}

.ca-success.is-visible[hidden] {
  display: flex;
}

.ca-success__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(47, 107, 255, 0.18) 0%, transparent 70%),
    rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ca-success__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 22.5rem;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-glass);
  border: 1px solid rgba(90, 143, 255, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.1),
    0 0 48px rgba(61, 214, 140, 0.12),
    0 24px 56px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ca-success.is-visible .ca-success__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ca-success__icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.ca-success__icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(61, 214, 140, 0.12);
  border: 1px solid rgba(90, 232, 154, 0.35);
  box-shadow:
    0 0 28px rgba(61, 214, 140, 0.35),
    inset 0 0 16px rgba(61, 214, 140, 0.1);
  animation: ca-success-icon-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.ca-success__icon {
  width: 2.75rem;
  height: 2.75rem;
  filter: drop-shadow(0 0 8px rgba(61, 214, 140, 0.45));
}

.ca-success__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.ca-success__message {
  margin: 0 0 0.65rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-primary-light);
}

.ca-success__body {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}

.ca-success__redirect {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.4);
}

@keyframes ca-success-icon-pop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media only screen and (min-width: 35em) {
  .ca-success__dialog {
    max-width: 26rem;
    padding: 2.35rem 2rem 2rem;
  }

  .ca-success__icon-ring {
    width: 5rem;
    height: 5rem;
  }

  .ca-success__icon {
    width: 3rem;
    height: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ca-success,
  .ca-success__dialog {
    transition: none;
  }

  .ca-success.is-visible .ca-success__dialog {
    transform: none;
  }

  .ca-success__icon-ring {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Dashboard page
   -------------------------------------------------------------------------- */

.dashboard {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(47, 107, 255, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(47, 107, 255, 0.06) 0%, transparent 60%);
}

.dashboard__main {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.dashboard__welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 28rem;
  flex-shrink: 0;
  padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 5vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--color-glass);
  border: 1px solid rgba(90, 143, 255, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.08),
    0 0 48px rgba(47, 107, 255, 0.14),
    0 18px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--color-primary-light) 0%,
    var(--color-primary) 50%,
    var(--color-primary-dark) 100%
  );
  border: 1px solid rgba(180, 210, 255, 0.3);
  box-shadow:
    0 0 24px rgba(47, 107, 255, 0.4),
    0 0 48px rgba(47, 107, 255, 0.15);
}

.dashboard__badge-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.dashboard__heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-white);
  word-break: break-word;
}

.dashboard__subtitle {
  margin: 0;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Dashboard — Explore Wallets (Phase 1)
   -------------------------------------------------------------------------- */

.explore-wallets {
  width: 100%;
  max-width: 96rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
}

.explore-wallets__header {
  text-align: center;
  padding: 0 0.25rem;
}

.explore-wallets__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
  line-height: 1.25;
}

.explore-wallets__subtitle {
  margin: 0;
  font-size: clamp(0.8125rem, 2.2vw, 0.9375rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.explore-wallets__panel {
  width: 100%;
  padding: 1rem 0.85rem 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--color-glass);
  border: 1px solid rgba(90, 143, 255, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.08),
    0 0 40px rgba(47, 107, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.explore-wallets__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.explore-wallets__card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  min-height: 3.5rem;
  padding: 0.65rem 0.7rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(90, 143, 255, 0.16);
  color: var(--color-white);
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    opacity 0.35s ease,
    max-height 0.4s ease;
}

.explore-wallets__card:hover {
  background: rgba(47, 107, 255, 0.1);
  border-color: rgba(90, 143, 255, 0.38);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.explore-wallets__card:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

.explore-wallets__card:active {
  transform: translateY(0);
}

.explore-wallets__logo-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.explore-wallets__logo {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
  display: block;
}

.explore-wallets__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(0.75rem, 2.4vw, 0.875rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.explore-wallets__chevron {
  flex: 0 0 auto;
  font-size: 1.15rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.explore-wallets__card:hover .explore-wallets__chevron {
  color: var(--color-primary-light);
  transform: translateX(2px);
}

/* Collapsed: hide extra cards with a smooth grid-friendly fade */
.explore-wallets__grid:not(.is-expanded) .explore-wallets__card--extra {
  display: none;
}

.explore-wallets__grid.is-expanded .explore-wallets__card--extra {
  display: flex;
  animation: explore-wallet-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.explore-wallets__grid.is-expanded .explore-wallets__card--extra:nth-child(7) { animation-delay: 0.02s; }
.explore-wallets__grid.is-expanded .explore-wallets__card--extra:nth-child(8) { animation-delay: 0.05s; }
.explore-wallets__grid.is-expanded .explore-wallets__card--extra:nth-child(9) { animation-delay: 0.08s; }
.explore-wallets__grid.is-expanded .explore-wallets__card--extra:nth-child(10) { animation-delay: 0.11s; }
.explore-wallets__grid.is-expanded .explore-wallets__card--extra:nth-child(11) { animation-delay: 0.14s; }
.explore-wallets__grid.is-expanded .explore-wallets__card--extra:nth-child(12) { animation-delay: 0.17s; }
.explore-wallets__grid.is-expanded .explore-wallets__card--extra:nth-child(13) { animation-delay: 0.2s; }
.explore-wallets__grid.is-expanded .explore-wallets__card--extra:nth-child(14) { animation-delay: 0.23s; }
.explore-wallets__grid.is-expanded .explore-wallets__card--extra:nth-child(15) { animation-delay: 0.26s; }

@keyframes explore-wallet-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.explore-wallets__actions {
  display: flex;
  justify-content: center;
  margin-top: 0.95rem;
  padding-top: 0.15rem;
}

.explore-wallets__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(90, 143, 255, 0.28);
  border-radius: var(--radius-full);
  background: rgba(47, 107, 255, 0.12);
  color: var(--color-primary-light);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.explore-wallets__toggle:hover {
  background: rgba(47, 107, 255, 0.2);
  border-color: rgba(90, 143, 255, 0.45);
  box-shadow: 0 0 18px rgba(47, 107, 255, 0.2);
}

.explore-wallets__toggle:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

.explore-wallets__toggle:active {
  transform: scale(0.98);
}

.explore-wallets__toggle-icon {
  display: inline-flex;
  transition: transform var(--transition-base);
}

.explore-wallets__toggle[aria-expanded="true"] .explore-wallets__toggle-icon {
  transform: rotate(180deg);
}

@media only screen and (min-width: 35em) {
  .dashboard__main {
    padding: 2.5rem 2rem 3.5rem;
  }

  .dashboard__welcome {
    max-width: 32rem;
  }

  .dashboard__badge {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.75rem;
  }


  .explore-wallets__panel {
    padding: 1.15rem 1.1rem 1.25rem;
  }

  .explore-wallets__grid {
    gap: 0.75rem;
  }

  .explore-wallets__card {
    min-height: 3.75rem;
    padding: 0.75rem 0.9rem;
    gap: 0.75rem;
  }

  .explore-wallets__logo-wrap {
    width: 2.55rem;
    height: 2.55rem;
  }

  .explore-wallets__logo {
    width: 1.8rem;
    height: 1.8rem;
  }

  .explore-wallets__name {
    font-size: 0.9375rem;
  }
}

@media only screen and (min-width: 56em) {
  .dashboard__main {
    padding: 3rem 2.5rem 4rem;
  }

}

/* Very narrow screens: single column when two columns would crush labels */
@media only screen and (max-width: 22.5em) {
  .explore-wallets__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .explore-wallets__card,
  .explore-wallets__toggle,
  .explore-wallets__toggle-icon,
  .explore-wallets__chevron {
    transition: none;
  }

  .explore-wallets__grid.is-expanded .explore-wallets__card--extra {
    animation: none;
  }

  .explore-wallets__card:hover {
    transform: none;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}



/* --------------------------------------------------------------------------
   Dashboard — Input Item (Phase 2)
   -------------------------------------------------------------------------- */

.input-item {
  width: 100%;
  max-width: 96rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
}

.input-item__header {
  text-align: center;
}

.input-item__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
}

.input-item__title-card {
  display: inline-block;
  margin: 0 auto 1.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.3);
  box-shadow: 0 0 15px rgba(47, 107, 255, 0.2);
  animation: input-item-title-glow 3s ease-in-out infinite;
}

.input-item__subtitle {
  margin: 0 auto;
  max-width: 34rem;
  font-size: clamp(0.875rem, 2.3vw, 0.975rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
}

.input-item__info-card {
  width: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-glass);
  border: 1px solid rgba(90, 143, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(47, 107, 255, 0.06),
    0 0 40px rgba(47, 107, 255, 0.1),
    0 16px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
  margin-bottom: 1.5rem;
}

.input-item__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-item__container {
  width: 100%;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.input-item__container:focus-within {
  border-color: rgba(90, 143, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
  background: rgba(0, 0, 0, 0.34);
}

.input-item__input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.975rem;
  line-height: 1.4;
  outline: none;
}

.input-item__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.input-item__input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.input-item__action {
  display: flex;
  justify-content: center;
}

.input-item__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 8.5rem;
  min-height: 2.85rem;
  margin: 0;
  padding: 0.75rem 1.85rem;
  border: 1px solid rgba(180, 210, 255, 0.28);
  border-radius: var(--radius-full);
  background: linear-gradient(
    145deg,
    var(--color-primary-light) 0%,
    var(--color-primary) 52%,
    var(--color-primary-dark) 100%
  );
  color: var(--color-white);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast),
    filter var(--transition-fast);
}

.input-item__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 0 28px rgba(47, 107, 255, 0.5),
    0 0 52px rgba(47, 107, 255, 0.22);
  filter: brightness(1.05);
}

.input-item__submit:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.input-item__submit:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
}

.input-item__submit:disabled,
.input-item__submit.is-loading,
.input-item__submit.is-complete {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
  filter: none;
}

.input-item__submit-spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  animation: input-item-spin 0.7s linear infinite;
}

.input-item__error {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 90, 90, 0.28);
  background: rgba(255, 90, 90, 0.1);
  text-align: center;
}

.input-item__error-message {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #ff8f8f;
}

.input-item__success {
  width: 100%;
  max-width: 32rem;
}

.input-item__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.input-item__overlay:not([hidden]) {
  display: flex;
  opacity: 1;
}

.input-item__float-wrapper {
  width: 100%;
  max-width: 32rem;
  animation: input-item-float 6s ease-in-out infinite;
}

.input-item__success-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  box-shadow: var(--glow-primary);
  width: 100%;
  animation: input-item-modal-in 0.4s ease-out, input-item-glow 4s ease-in-out infinite;
}

.input-item__success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  color: #3dd68c;
  background: rgba(61, 214, 140, 0.12);
  border: 1px solid rgba(61, 214, 140, 0.35);
  box-shadow: 0 0 20px rgba(61, 214, 140, 0.18);
}

.input-item__success-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--color-white);
}

.input-item__success-message {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

@keyframes input-item-title-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(47, 107, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(47, 107, 255, 0.5);
  }
}

@keyframes input-item-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes input-item-glow {
  0%, 100% {
    box-shadow: var(--glow-primary);
  }
  50% {
    box-shadow: 0 0 40px rgba(47, 107, 255, 0.6), 0 0 80px rgba(47, 107, 255, 0.3);
  }
}

@keyframes input-item-modal-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes input-item-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .input-item__overlay,
  .input-item__success-card,
  .input-item__float-wrapper,
  .input-item__title-card {
    transition: none;
    animation: none;
  }

  .input-item__submit-spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.55);
  }
}

@media only screen and (min-width: 35em) {
  .input-item {
    max-width: 40rem;
  }

  .input-item__panel {
    padding: 1.25rem 1.2rem 1.35rem;
  }
}

@media only screen and (min-width: 56em) {
  .input-item {
    max-width: 96rem;
  }
}


/* --------------------------------------------------------------------------
   Phase 3: Crypto Ticker
   -------------------------------------------------------------------------- */

.crypto-ticker {
  width: 100%;
  max-width: 96rem;
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.crypto-ticker__info-card {
  text-align: center;
}

.crypto-ticker__title-card {
  display: inline-block;
  margin: 0 auto 1.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.3);
  box-shadow: 0 0 15px rgba(47, 107, 255, 0.2);
}

.crypto-ticker__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
}


.crypto-ticker__subtitle {
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.crypto-ticker__marquee-wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
}

.crypto-ticker__list {
  display: flex;
  gap: 2rem;
  animation: marquee 80s linear infinite;
  white-space: nowrap;}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.crypto-ticker__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 280px;
  justify-content: space-between;
}

.crypto-ticker__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.crypto-ticker__details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin-right: 1rem;
}

.crypto-ticker__data {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.crypto-ticker__price {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--color-white);
}

.crypto-ticker__change {
  font-size: 0.9rem;
  font-weight: 600;
}

.crypto-ticker__change--positive {
  color: #3dd68c;
}

.crypto-ticker__change--negative {
  color: #ff5e5e;
}

.crypto-ticker__loading {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
}

.crypto-ticker__logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.crypto-ticker__name {
  font-weight: 600;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crypto-ticker__symbol {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}


/* --------------------------------------------------------------------------
   Phase 4: Understanding Decentralized Wallets (Accordion)
   -------------------------------------------------------------------------- */

.understanding-wallets {
  width: 100%;
  max-width: 96rem;
  margin: 3rem auto 0;
  padding: 2rem;
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.understanding-wallets__info-card {
  text-align: center;
  margin-bottom: 2rem;
}

.understanding-wallets__title-card {
  display: inline-block;
  margin: 0 auto 1.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.3);
  box-shadow: 0 0 15px rgba(47, 107, 255, 0.2);
}

.understanding-wallets__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
}

.understanding-wallets__intro {
  color: rgba(180, 200, 255, 0.8);
  line-height: 1.6;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.accordion-item {
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: none;
  border: none;
  color: rgba(220, 235, 255, 1);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.accordion-arrow {
  transition: transform 0.3s;
  font-size: 1.5rem;
  line-height: 1;
}

.accordion-header[aria-expanded="true"] .accordion-arrow {
  transform: rotate(90deg);
}

.accordion-content {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s;
  color: rgba(180, 200, 255, 0.8);
  line-height: 1.6;
}

.accordion-header[aria-expanded="true"] + .accordion-content {
  max-height: 1000px; /* Arbitrary large height */
  padding-bottom: 1.25rem;
}

.security-reminder-card {
  text-align: center;
}

.security-reminder-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-primary-light);
}

.security-reminder-text {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(180, 200, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  text-align: center;
  padding: 3rem 1rem 2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}



/* Dashboard header & menu */
.dashboard__header {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.dashboard__menu {
  position: relative;
}

.menu-btn {
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.5rem;
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin-top: 0.5rem;
  min-width: 120px;
}

.menu-item {
  background: none;
  border: none;
  color: var(--color-white);
  padding: 0.5rem 1rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.menu-item:hover {
  background: var(--color-glass);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.modal__dialog {
  background: var(--color-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal__title {
  color: var(--color-white);
  margin-top: 0;
}

.modal__message {
  color: var(--color-text-muted);
}

.modal__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
