/* TradeVault AI - Exact Dreamy Frost Glassmorphism Mobile Styles */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: radial-gradient(circle at 50% 10%, #1e293b 0%, #090d16 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0F172A;
  overflow-x: hidden;
}

.mobile-viewport {
  width: 100%;
  max-width: 430px;
  height: 100vh;
  max-height: 920px;
  background:
    radial-gradient(circle at 82% 16%, rgba(167, 139, 250, 0.34) 0%, transparent 45%),
    radial-gradient(circle at 15% 28%, rgba(96, 165, 250, 0.30) 0%, transparent 50%),
    radial-gradient(circle at 50% 78%, rgba(56, 189, 248, 0.20) 0%, transparent 55%),
    linear-gradient(180deg, #E8F1FF 0%, #F4F7FF 48%, #EDE9FE 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 75px -10px rgba(0, 0, 0, 0.7), 0 0 0 10px rgba(255, 255, 255, 0.08);
}

@media (min-width: 450px) {
  .mobile-viewport {
    height: 94vh;
    border-radius: 42px;
  }
}

.app-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 104px;
  scroll-behavior: smooth;
}
.app-scroll::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

.frost-card {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px -8px rgba(59, 130, 246, 0.12), inset 0 1px 0 0 rgba(255, 255, 255, 0.95);
}

.frost-pill {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 22px -4px rgba(79, 70, 229, 0.12);
}

.frost-input {
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(203, 213, 225, 0.88);
  transition: all 0.2s ease;
  color: #0F172A;
  user-select: text;
}
.frost-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.16);
}
.frost-input[readonly] {
  background: rgba(241, 245, 249, 0.92);
  color: #475569;
  border-style: dashed;
}

.text-vault-gradient {
  background: linear-gradient(90deg, #2563EB 0%, #4F46E5 52%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-vault-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 55%, #7C3AED 100%);
  box-shadow: 0 10px 24px -5px rgba(99, 102, 241, 0.52), inset 0 1px 0 0 rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-vault-primary:active {
  transform: scale(0.96);
}

@keyframes floatRobot {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1.5deg); }
}
@keyframes floatCardA {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}
@keyframes blinkEye {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.1); }
}

.animate-robot { animation: floatRobot 4.5s ease-in-out infinite; }
.animate-card-a { animation: floatCardA 4s ease-in-out infinite; }
.robot-eye { animation: blinkEye 4s infinite; transform-origin: center; }

@keyframes floatCoinA {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(4deg); }
}
@keyframes floatCoinB {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(6px) rotate(-4deg); }
}
@keyframes floatCoinC {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-5px) scale(1.06); }
}
.animate-coin-a { animation: floatCoinA 3.6s ease-in-out infinite; }
.animate-coin-b { animation: floatCoinB 4.2s ease-in-out infinite; }
.animate-coin-c { animation: floatCoinC 3.8s ease-in-out infinite; }

.screen-view {
  display: none;
  animation: fadeScreen 0.22s ease-out;
}
.screen-view.active {
  display: block;
}
@keyframes fadeScreen {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   MODERN TRADING ANIMATIONS & MICRO-INTERACTIONS
   ------------------------------------------------------------- */

/* Strategy Mode Cards (Safe / Turbo / Whale) */
.strategy-card-active {
  border: 2px solid #6366F1 !important;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.96) 0%, rgba(224, 231, 255, 0.90) 100%) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), 0 8px 20px -4px rgba(99, 102, 241, 0.28) !important;
  transform: translateY(-2px);
  animation: strategyPulse 2.8s ease-in-out infinite;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes strategyPulse {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18), 0 8px 20px -4px rgba(99, 102, 241, 0.25);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.32), 0 10px 24px -2px rgba(99, 102, 241, 0.40);
  }
}

.strategy-card-idle {
  border: 1.5px solid rgba(226, 232, 240, 0.90) !important;
  background: rgba(255, 255, 255, 0.80) !important;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.strategy-card-idle:hover {
  border-color: #CBD5E1 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.08);
}
.strategy-card-idle:active, .strategy-card-active:active {
  transform: scale(0.96);
}

/* Smart Stop-Loss Badge Pulse */
@keyframes liveBadgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  }
}
.animate-live-badge {
  animation: liveBadgePulse 2.4s ease-in-out infinite;
}

/* Ambient Cyber Breathing Aura for Active Bot Container */
@keyframes glowBreathing {
  0%, 100% {
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.20), inset 0 0 8px rgba(99, 102, 241, 0.10);
  }
  50% {
    box-shadow: 0 0 28px rgba(99, 102, 241, 0.45), inset 0 0 16px rgba(99, 102, 241, 0.20);
  }
}
.animate-glow-breathing {
  animation: glowBreathing 3.2s ease-in-out infinite;
}

/* Flowing Light Beam Shimmer for Locked Bot Button */
@keyframes lockShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.shimmer-active-lock {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%) !important;
  background-size: 200% 100% !important;
  animation: lockShimmer 3.5s ease-in-out infinite;
}

/* Glowing Live Dot / Radar Pulse */
@keyframes radarPing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(56, 189, 248, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}
.radar-pulse-dot {
  animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Spring Tactile Tap for All Interactive Elements */
.glass-tap {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}
.glass-tap:active {
  transform: scale(0.96);
}

/* Smooth Slide-in for New Dynamic Content */
@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-slide-in {
  animation: slideFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
