/* ============================================
   TRADING PLATFORM - UI SYSTEM
   Sistema de diseño completo con animaciones
   ============================================ */

:root {
  /* Colores base - Más profundos y vibrantes */
  --bg0: #020305;
  --bg1: #05080F;
  --bg-panel: rgba(255, 255, 255, 0.03);
  --ink: #FFFFFF;
  --muted: rgba(243, 245, 255, 0.80);
  --muted-secondary: rgba(243, 245, 255, 0.60);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-glow: rgba(255, 255, 255, 0.15);
  --card: rgba(255, 255, 255, 0.04);

  /* Acentos principales - Verde Esmeralda Neón */
  --accent: #00FF99;
  --accent-soft: rgba(0, 255, 153, 0.10);
  --accent-glow: rgba(0, 255, 153, 0.40);

  /* Cripto/Trading Colors */
  --up: #00FF99;
  --down: #FF3366;
  --up-glow: rgba(0, 255, 153, 0.30);
  --down-glow: rgba(255, 51, 102, 0.30);

  --gold: #FFD700;
  --blue: #00CCFF;

  /* Sombras Glass */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.82);
  --shadow-neon: 0 0 20px var(--accent-glow);
}

/* ============================================
   RESET Y BASE
   ============================================ */

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg0), var(--bg1));
  background-color: var(--bg0);
  overflow-x: hidden;
  min-height: 100vh;
}

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

.muted {
  color: var(--muted-secondary);
}

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

/* Skip link para accesibilidad */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
  background: var(--trend-green);
  color: var(--bg0);
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 12px 18px;
  top: 0;
  outline: 3px solid var(--gold);
}

/* Focus visible global */
*:focus-visible {
  outline: 3px solid var(--trend-green);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ============================================
   BACKGROUND LAYERS
   ============================================ */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.bg-grad {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(900px 550px at 18% 12%, rgba(42, 167, 255, 0.05), transparent 60%),
    radial-gradient(900px 550px at 82% 14%, rgba(214, 178, 94, 0.05), transparent 60%);
  filter: blur(2px);
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================
   TRADING ANIMATIONS
   ============================================ */

/* Trading Grid Background */
.trading-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.grid-lines {
  position: absolute;
  inset: 0;
}

.grid-lines.vertical {
  background-image: repeating-linear-gradient(90deg,
      transparent,
      transparent 79px,
      var(--grid-line) 80px,
      var(--grid-line) 81px);
  animation: gridPulseVertical 8s ease-in-out infinite;
}

.grid-lines.horizontal {
  background-image: repeating-linear-gradient(0deg,
      transparent,
      transparent 59px,
      var(--grid-line) 60px,
      var(--grid-line) 61px);
  animation: gridPulseHorizontal 10s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes gridPulseVertical {

  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes gridPulseHorizontal {

  0%,
  100% {
    opacity: 0.18;
  }

  50% {
    opacity: 0.4;
  }
}

/* Flash Animations for Price Updates */
@keyframes flashUp {
  0% {
    background-color: rgba(0, 255, 153, 0.3);
    color: #fff;
  }

  100% {
    background-color: transparent;
  }
}

@keyframes flashDown {
  0% {
    background-color: rgba(255, 51, 102, 0.3);
    color: #fff;
  }

  100% {
    background-color: transparent;
  }
}

.flash-up {
  animation: flashUp 1s ease-out;
}

.flash-down {
  animation: flashDown 1s ease-out;
}

/* Trending Arrows (Principal Animation) */
.trend-arrow-bg {
  position: fixed;
  width: clamp(250px, 25vw, 350px);
  height: auto;
  aspect-ratio: 3/2;
  z-index: 3;
  opacity: 0;
  animation: trendRise 12s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 12px var(--accent-glow));
  will-change: transform, opacity;
}

@keyframes trendRise {
  0% {
    transform: translate(-10vw, 120vh) scale(0.7) rotate(-5deg);
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    transform: translate(110vw, -20vh) scale(1.3) rotate(5deg);
    opacity: 0;
  }
}

/* Animación del path (efecto de "dibujo") */
.trend-arrow .trend-path {
  animation: drawPath 12s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

@keyframes drawPath {
  0% {
    stroke-dashoffset: 800;
  }

  15% {
    stroke-dashoffset: 0;
  }

  85% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -800;
  }
}

/* Animación de la punta de flecha */
.trend-arrow .arrow-tip {
  opacity: 0;
  transform-origin: center;
  animation: arrowTipAppear 12s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

@keyframes arrowTipAppear {

  0%,
  12% {
    opacity: 0;
    transform: scale(0);
  }

  18% {
    opacity: 1;
    transform: scale(1.2);
  }

  22% {
    transform: scale(1);
  }

  85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* Data points (puntos sobre la línea) */
.trend-arrow .data-point {
  animation: dataPointSequence 12s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

@keyframes dataPointSequence {

  0%,
  10% {
    opacity: 0;
    transform: scale(0);
  }

  15% {
    opacity: 1;
    transform: scale(1.5);
  }

  20%,
  80% {
    opacity: 0.8;
    transform: scale(1);
  }

  85% {
    opacity: 0;
  }
}

.trend-arrow .data-point:nth-child(4) {
  animation-delay: 0.3s;
}

.trend-arrow .data-point:nth-child(5) {
  animation-delay: 0.6s;
}

.trend-arrow .data-point:nth-child(6) {
  animation-delay: 0.9s;
}

/* Precio flotante */
.trend-arrow .price-label {
  animation: priceFloat 12s cubic-bezier(0.25, 0.1, 0.25, 1) infinite;
}

@keyframes priceFloat {

  0%,
  12% {
    opacity: 0;
    transform: translateY(10px);
  }

  18% {
    opacity: 1;
    transform: translateY(0);
  }

  30% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Timing diferente para cada flecha */
.trend-arrow-2 {
  animation-delay: 4s;
  animation-duration: 14s;
}

.trend-arrow-2 .trend-path,
.trend-arrow-2 .arrow-tip,
.trend-arrow-2 .data-point,
.trend-arrow-2 .price-label {
  animation-duration: 14s;
}

.trend-arrow-3 {
  animation-delay: 8s;
  animation-duration: 16s;
}

.trend-arrow-3 .trend-path,
.trend-arrow-3 .arrow-tip,
.trend-arrow-3 .data-point,
.trend-arrow-3 .price-label {
  animation-duration: 16s;
}

/* Candlesticks Flotantes */
.candlesticks-container {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.candlestick {
  position: absolute;
  bottom: -60px;
  width: 10px;
  height: 40px;
  animation: candleRise 8s ease-out infinite;
  opacity: 0;
  z-index: -1;
  /* Mover detrás del contenido */
  will-change: transform, opacity;
}

@keyframes candleRise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  10% {
    opacity: 0.15;
  }

  /* Mucho más sutil */
  90% {
    opacity: 0.1;
  }

  100% {
    transform: translateY(-120vh);
    opacity: 0;
  }
}

.candlestick .wick {
  width: 2px;
  background: currentColor;
  margin: 0 auto;
}

.candlestick .wick.top {
  height: 8px;
}

.candlestick .wick.bottom {
  height: 8px;
}

.candlestick .body {
  width: 10px;
  height: 18px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 0 8px currentColor;
}

.candlestick.bullish {
  color: var(--candle-green);
}

.candlestick.bearish {
  color: var(--candle-red);
}

/* ============================================
   NAVIGATION
   ============================================ */

.wrap {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 18px 0 50px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(5, 6, 10, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  box-shadow: 0 0 0 6px rgba(214, 178, 94, 0.10);
}

.brand-text {
  font-size: 15px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hello {
  color: rgba(243, 245, 255, 0.78);
  font-weight: 700;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 245, 255, 0.92);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.btn:focus-visible {
  outline: 3px solid var(--trend-green);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
}

.btn-primary {
  border-color: rgba(214, 178, 94, 0.28);
  background: linear-gradient(135deg, rgba(214, 178, 94, 0.20), rgba(42, 167, 255, 0.14));
}

.btn-primary:hover {
  border-color: rgba(240, 211, 138, 0.40);
  background: linear-gradient(135deg, rgba(214, 178, 94, 0.26), rgba(42, 167, 255, 0.18));
}

.btn-lg {
  padding: 12px 18px;
  border-radius: 14px;
}

/* Botón Neo con efectos avanzados */
.btn-neo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(32, 227, 122, 0.24), rgba(32, 227, 122, 0.10));
  border-color: rgba(32, 227, 122, 0.45);
  box-shadow: 0 0 24px rgba(32, 227, 122, 0.20);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-neo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.btn-neo:hover {
  background: linear-gradient(135deg, rgba(32, 227, 122, 0.30), rgba(32, 227, 122, 0.14));
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 0 28px rgba(32, 227, 122, 0.35),
    0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-neo:hover::before {
  width: 280px;
  height: 280px;
}

.btn-neo:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.1s;
}

.btn-neo:focus-visible {
  outline: 3px solid var(--trend-green);
  outline-offset: 2px;
  box-shadow:
    0 0 0 6px rgba(32, 227, 122, 0.20),
    0 0 28px rgba(32, 227, 122, 0.35);
}

/* Spinner para loading state */
.spinner {
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   AUTH PAGE
   ============================================ */

.auth-wrap {
  height: 100vh;
  width: 100%;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.auth-wrap-split {
  padding: 0;
}

.auth-topbar {
  width: 100%;
  padding: 2.5vh 5%;
  /* Usar vh para mantener espacio */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  pointer-events: none;
}

.auth-topbar a,
.auth-topbar div {
  pointer-events: auto;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.auth-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-link {
  font-weight: 800;
  font-size: 13px;
  color: rgba(233, 240, 255, 0.78);
  transition: color 0.2s;
}

.top-link:hover {
  color: var(--trend-green);
}

.lang-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(233, 240, 255, 0.88);
  background: rgba(7, 10, 16, 0.6);
}

.auth-split {
  width: 100%;
  flex: 1;
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  /* Para el divisor absoluto */
}

/* Divisor Tecnológico Central */
.divider-wrap {
  position: absolute;
  top: 15vh;
  bottom: 15vh;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.2), transparent);
  z-index: 5;
  pointer-events: none;
}

.divider-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(16, 185, 129, 0.4) 50%,
      transparent 100%);
  filter: blur(0.5px);
}

.divider-scanner {
  position: absolute;
  top: 0;
  left: -1px;
  width: 4px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  filter: drop-shadow(0 0 10px var(--accent-glow));
  animation: scanMove 6s ease-in-out infinite;
}

.divider-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--bg0);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

@keyframes scanMove {

  0%,
  100% {
    top: 0%;
    opacity: 0;
  }

  10%,
  90% {
    opacity: 1;
  }

  50% {
    top: calc(100% - 60px);
  }
}

.auth-left,
.auth-right {
  min-width: 0;
  /* Evita que el contenido estire las columnas */
}

.auth-page.auth-green {
  --accent: #10B981;
  --accent-soft: rgba(16, 185, 129, 0.12);
}

.auth-page .bg-grad {
  background:
    radial-gradient(1200px 800px at 0% 50%, rgba(16, 185, 129, 0.15), transparent 60%),
    radial-gradient(1000px 800px at 100% 50%, rgba(0, 125, 255, 0.08), transparent 60%);
}

/* ============================================
   AUTH LEFT (Propuesta de valor)
   ============================================ */

.auth-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5vh 6vw;
  /* Padding vertical reducido */
}

.left-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.auth-left h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.5vw, 42px);
  /* Título más pequeño */
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.auth-left .accent {
  background: linear-gradient(135deg, var(--accent), #2AA7FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.auth-left .lead {
  font-size: 14px;
  color: var(--muted-secondary);
  max-width: 50ch;
  margin: 0 0 14px;
  line-height: 1.5;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
  /* Menos espacio entre items */
  font-weight: 700;
  color: rgba(233, 240, 255, 0.86);
}

.feature-list li {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(32, 227, 122, 0.12);
  border: 1px solid rgba(32, 227, 122, 0.25);
  margin-right: 10px;
  font-size: 14px;
}

/* Live Market Card */
.live-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}

.live-title {
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-grid {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.live-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.live-item:first-child {
  border-top: none;
}

.live-pair {
  font-size: 12px;
  color: rgba(166, 179, 204, 0.9);
  letter-spacing: 0.04em;
}

.live-price {
  font-weight: 900;
  font-size: 14px;
  color: rgba(233, 240, 255, 0.94);
}

.live-change {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.live-item.up .live-change {
  color: var(--accent);
}

.live-item.down .live-change {
  color: #FF4D4D;
}

/* Status Arrows (en cards y ticker) */
.status-arrow {
  width: 0;
  height: 0;
  display: inline-block;
  margin-right: 4px;
}

.status-arrow.up {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--trend-green);
  filter: drop-shadow(0 0 5px var(--accent-glow));
}

.status-arrow.down {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--trend-red);
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.4));
}

.left-footer {
  position: absolute;
  bottom: 20px;
  left: 40px;
  font-size: 11px;
  color: rgba(233, 240, 255, 0.4);
  z-index: 20;
}

/* Ticker horizontal */
.ticker {
  position: absolute;
  bottom: 50px;
  /* Separado del footer */
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 8px 0;
  z-index: 15;
}

.ticker-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: tapeMove 16s linear infinite;
}

@keyframes tapeMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(233, 240, 255, 0.84);
}

.ticker-item.up {
  color: var(--accent);
}

.ticker-item.down {
  color: #FF4D4D;
}

/* Eliminado duplicado */

/* ============================================
   AUTH RIGHT (Formulario)
   ============================================ */

.auth-right {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5vh 6vw;
}

.auth-register .auth-right {
  align-items: flex-start;
}

.auth-register .auth-topbar {
  padding: 2.5vh 6.5% 2.5vh 5%;
}

.auth-register .auth-top-actions {
  gap: 10px;
}

.auth-register .top-link {
  white-space: nowrap;
}

.auth-register .lang-chip {
  margin-left: auto;
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-register .form-card {
  max-height: none;
  overflow: visible;
  padding: 18px 22px 20px;
}

.auth-register .form-card h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.auth-register .form-card .muted {
  margin-bottom: 10px;
  font-size: 12px;
}

.auth-register .form-badge {
  margin-bottom: 8px;
}

.auth-register .auth-form {
  gap: 10px;
  margin-top: 10px;
}

.auth-register .form-grid {
  gap: 10px;
}

.auth-register input,
.auth-register select {
  padding: 12px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.auth-register label {
  font-size: 12px;
}

.auth-register .password-notes {
  gap: 6px;
}

.auth-register .password-notes .muted,
.auth-register .strength-label {
  font-size: 11px;
}

.auth-register .btn.btn-primary {
  padding: 12px 16px;
  border-radius: 12px;
}

.form-card {
  width: min(440px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 9, 14, 0.85);
  padding: 24px 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 30px var(--accent-soft);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.form-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  border: 1px solid var(--accent-soft);
  opacity: 0.65;
  pointer-events: none;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(233, 240, 255, 0.85);
  border: 1px solid rgba(32, 227, 122, 0.25);
  background: rgba(32, 227, 122, 0.08);
  margin-bottom: 10px;
}

.form-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
}

.form-card .muted {
  margin-bottom: 14px;
  display: block;
}

/* Alert */
.alert {
  margin-top: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(214, 178, 94, 0.25);
  background: rgba(214, 178, 94, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 800;
  color: rgba(240, 211, 138, 0.95);
}

/* Form */
.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group.span-2 {
  grid-column: span 2;
}

.phone-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}

.password-meta {
  gap: 10px;
}

.password-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
}

.password-notes .muted {
  font-size: 12px;
  line-height: 1.4;
}

.form-group {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 800;
  font-size: 14px;
  color: rgba(243, 245, 255, 0.88);
}

input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 10, 0.35);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

select {
  width: 100%;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 10, 0.35);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(243, 245, 255, 0.6) 50%),
    linear-gradient(135deg, rgba(243, 245, 255, 0.6) 50%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1));
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px),
    calc(100% - 36px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 16px;
  background-repeat: no-repeat;
}

input::placeholder {
  color: rgba(243, 245, 255, 0.45);
}

input:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(32, 227, 122, 0.12),
    0 0 20px rgba(32, 227, 122, 0.18);
  transform: translateY(-1px);
}

select:focus {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(32, 227, 122, 0.12),
    0 0 20px rgba(32, 227, 122, 0.18);
}

input:focus-visible {
  outline: none;
}

input:valid:not(:placeholder-shown) {
  border-color: rgba(32, 227, 122, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2320E37A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 42px;
}

input[aria-invalid="true"] {
  border-color: rgba(255, 77, 77, 0.5);
}

.password-strength {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.strength-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.strength-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #EF4444;
  transition: width 0.2s ease, background 0.2s ease;
}

.strength-bar[data-level="weak"] .strength-fill {
  background: #EF4444;
}

.strength-bar[data-level="medium"] .strength-fill {
  background: var(--gold);
}

.strength-bar[data-level="strong"] .strength-fill {
  background: var(--accent);
}

.strength-bar[data-level="very-strong"] .strength-fill {
  background: #2AA7FF;
}

.strength-label {
  font-size: 12px;
  color: var(--muted-secondary);
  font-weight: 700;
  padding-bottom: 4px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-weight: 800;
  color: rgba(243, 245, 255, 0.80);
  font-size: 13px;
}

.auth-links a {
  transition: color 0.2s;
}

.auth-links a:hover {
  color: var(--trend-green);
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 980px) {
  .auth-wrap {
    height: auto;
    max-height: none;
    overflow-y: auto;
  }

  .auth-split {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }

  .divider-wrap {
    display: none;
  }

  .auth-left {
    padding: 100px 6vw 40px;
    justify-content: flex-start;
  }

  .auth-right {
    padding: 0 6vw 60px;
    align-items: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.span-2 {
    grid-column: span 1;
  }

  .password-notes {
    grid-template-columns: 1fr;
  }

  .phone-group {
    grid-template-columns: 1fr;
  }

  .ticker {
    position: relative;
    bottom: auto;
    margin-top: 30px;
    width: calc(100% + 12vw);
    margin-left: -6vw;
  }

  .left-footer {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 24px;
    text-align: center;
    padding-bottom: 20px;
  }

  .auth-topbar {
    padding: 20px 6vw;
    background: linear-gradient(to bottom, var(--bg0) 50%, transparent);
    pointer-events: auto;
  }

  .form-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width: 480px) {
  .auth-left h1 {
    font-size: 28px;
  }

  .auth-topbar {
    padding: 15px 5vw;
  }

  .auth-left,
  .auth-right {
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .ticker {
    width: calc(100% + 10vw);
    margin-left: -5vw;
  }
}

/* ============================================
   HOME PAGE HERO
   ============================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
  min-height: 70vh;
}

.hero-left {
  max-width: 520px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
  color: rgba(243, 245, 255, 0.85);
  margin-bottom: 20px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.grad {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 30px;
  max-width: 400px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Terminal Card */
.terminal {
  background: rgba(6, 9, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.dots span:first-child {
  background: #FF5F56;
}

.dots span:nth-child(2) {
  background: #FFBD2E;
}

.dots span:nth-child(3) {
  background: #27C93F;
}

.terminal-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 20px;
}

.metric-grid {
  display: grid;
  gap: 20px;
}

.metric {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.metric-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 12px;
  color: var(--muted-secondary);
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  margin-top: 20px;
}

.cta-strip-text {
  font-size: 12px;
  color: var(--muted-secondary);
}

.muted {
  color: var(--muted-secondary);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0 20px;
  font-size: 12px;
  color: var(--muted-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta-strip {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .trend-arrow,
  .candlestick,
  .ticker-track {
    display: none;
  }

  .grid-lines {
    animation: none;
  }
}

/* Performance: GPU acceleration */
.trend-arrow,
.candlestick,
.trading-grid,
.ticker-track {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ============================================
   NOTIFICATIONS SYSTEM
   ============================================ */

#notification-container {
  pointer-events: none;
}

.notification {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--blue);
  min-width: 280px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-success {
  border-left-color: var(--trend-green);
}

.notification-error {
  border-left-color: var(--trend-red);
}

.notification-warning {
  border-left-color: var(--gold);
}

.notification-info {
  border-left-color: var(--blue);
}

.loader-mini {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}