:root{
  --bg:#07101c;
  --surface:#0d1728;
  --card:#111d31;
  --line:rgba(255,255,255,.10);
  --text:#f7fbff;
  --muted:#9badc7;
  --cyan:#22d3ee;
  --blue:#3b82f6;
  --purple:#7c3aed;
  --green:#10b981;
  --red:#ef4444;
  --yellow:#f59e0b;
  --shadow:0 18px 45px rgba(0,0,0,.28);
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 18% 0,rgba(34,211,238,.16),transparent 32%),
    linear-gradient(180deg,#07101c,#050914 100%);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  padding-bottom:86px;
}

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

.app-top{
  position:sticky;
  top:0;
  z-index:50;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  background:rgba(7,16,28,.88);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(16px);
}

.brand{
  font-size:24px;
  font-weight:950;
  letter-spacing:-.05em;
}

.brand span{color:var(--cyan)}

.top-action{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid var(--line);
  font-weight:900;
  font-size:14px;
}

/* Mobile ticker */
.live-ticker{
  position:sticky;
  top:64px;
  z-index:40;
  background:rgba(13,23,40,.94);
  border-bottom:1px solid var(--line);
  padding:10px 0 12px;
  backdrop-filter:blur(14px);
}

.live-title{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 16px 8px;
  color:var(--cyan);
  font-size:11px;
  font-weight:950;
  letter-spacing:.16em;
}

.live-title span{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 0 6px rgba(34,211,238,.12),0 0 18px rgba(34,211,238,.55);
  animation:pulse 1.5s ease-in-out infinite;
}

@keyframes pulse{
  0%,100%{transform:scale(1);opacity:1}
  50%{transform:scale(1.2);opacity:.72}
}

.ticker-scroll{
  display:flex;
  gap:9px;
  overflow:auto;
  padding:0 16px;
  scrollbar-width:none;
}

.ticker-scroll::-webkit-scrollbar{display:none}

.ticker-chip{
  flex:0 0 auto;
  min-width:144px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09);
  display:grid;
  gap:4px;
}

.ticker-chip strong{
  font-size:13px;
}

.ticker-chip b{
  font-size:18px;
  letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;
}

.ticker-chip em{
  font-style:normal;
  font-size:12px;
  font-weight:950;
}

.ticker-chip.up em{color:var(--green)}
.ticker-chip.down em{color:var(--red)}

.app-main{
  width:min(680px,100%);
  margin:0 auto;
  padding:16px;
}

.mobile-hero{
  padding:20px 0 12px;
}

.mobile-hero.small{
  padding-top:28px;
}

.hero-label{
  display:inline-flex;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(124,58,237,.13);
  border:1px solid rgba(124,58,237,.28);
  color:#ddd6fe;
  font-size:12px;
  font-weight:950;
  margin-bottom:14px;
}

.mobile-hero h1,
.page-head h1{
  margin:0 0 12px;
  font-size:40px;
  line-height:1.02;
  letter-spacing:-.06em;
}

.mobile-hero p,
.page-head p{
  margin:0 0 18px;
  color:#c8d7ec;
  line-height:1.55;
  font-size:16px;
}

.hero-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.btn,button{
  border:0;
  border-radius:999px;
  padding:14px 16px;
  font-weight:950;
  color:white;
  cursor:pointer;
  text-align:center;
}

.btn.primary,button.primary{
  background:linear-gradient(90deg,var(--purple),var(--blue));
  box-shadow:0 16px 36px rgba(59,130,246,.22);
}

.btn.ghost,button.ghost{
  background:rgba(255,255,255,.07);
  border:1px solid var(--line);
}

.full{
  width:100%;
  margin-top:10px;
}

/* Main movement card */
.movement-card{
  margin:18px 0;
  padding:18px;
  border-radius:26px;
  background:
    radial-gradient(circle at top right,rgba(34,211,238,.16),transparent 36%),
    linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.11);
  box-shadow:var(--shadow);
}

.movement-card.alert{
  border-color:rgba(239,68,68,.20);
}

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

.movement-head span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.10em;
}

.movement-head h2{
  margin:5px 0 0;
  font-size:26px;
}

.movement-head b{
  padding:8px 11px;
  border-radius:999px;
  color:#ffd7df;
  background:rgba(239,68,68,.18);
  border:1px solid rgba(239,68,68,.24);
  font-size:12px;
}

.movement-price{
  display:flex;
  align-items:end;
  gap:8px;
  margin:18px 0 14px;
}

.movement-price strong{
  color:#fb7185;
  font-size:52px;
  line-height:.9;
  letter-spacing:-.07em;
}

.movement-price span{
  color:#fb7185;
  font-size:22px;
  font-weight:950;
}

.bars{
  height:70px;
  display:flex;
  align-items:flex-end;
  gap:7px;
  padding:10px;
  border-radius:18px;
  background:rgba(4,10,20,.42);
  margin-bottom:12px;
}

.bars i{
  flex:1;
  display:block;
  border-radius:999px;
  min-height:15px;
}

.bars i.up{background:linear-gradient(180deg,var(--cyan),var(--blue))}
.bars i.down{background:linear-gradient(180deg,#fb7185,var(--red))}
.h2{height:16px}.h3{height:22px}.h4{height:28px}.h5{height:34px}.h6{height:42px}.h7{height:50px}.h8{height:58px}

.movement-card p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

/* Quick cards */
.quick-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:18px 0;
}

.quick-card{
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.09);
  display:grid;
  gap:6px;
}

.quick-card span{
  font-size:22px;
}

.quick-card strong{
  font-size:16px;
}

.quick-card small{
  color:var(--muted);
  font-size:13px;
}

/* Sections */
.simple-section,
.create-card,
.phone-alert{
  margin:18px 0;
  padding:18px;
  border-radius:24px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.09);
}

.simple-section h2,
.create-card h2,
.section-title{
  margin:0 0 14px;
  font-size:22px;
  letter-spacing:-.04em;
}

.steps{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
}

.steps.vertical{
  grid-template-columns:1fr;
}

.steps div{
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.055);
  display:grid;
  gap:6px;
}

.steps b{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(34,211,238,.13);
  color:var(--cyan);
}

.steps span{
  color:#d9e6f8;
  font-size:14px;
  line-height:1.35;
}

.plan-strip{
  display:grid;
  gap:10px;
  margin:18px 0;
}

.plan-strip div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px;
  border-radius:18px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.09);
}

.plan-strip span{
  color:var(--muted);
  font-size:13px;
}

/* Radar page */
.page-head.compact{
  padding:20px 0 8px;
}

.page-head span{
  color:var(--cyan);
  font-size:12px;
  font-weight:950;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.create-card label{
  display:block;
  margin:12px 0 7px;
  font-weight:900;
}

.create-card select,
.create-card input{
  width:100%;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(2,8,18,.72);
  color:white;
  padding:14px;
  border-radius:16px;
  outline:none;
}

.stack{
  display:grid;
  gap:12px;
}

.radar-card,
.alert-card,
.panel{
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.09);
}

.badge{
  display:inline-flex;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
}

.badge.alert{background:rgba(239,68,68,.18);color:#ffd7df}
.badge.watch{background:rgba(245,158,11,.15);color:#ffe8b2}
.badge.calm{background:rgba(16,185,129,.12);color:#c5fff0}

.stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:12px 0;
}

.stat{
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
}

.stat small{
  color:var(--muted);
  display:block;
  margin-bottom:4px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.stat strong{
  font-variant-numeric:tabular-nums;
}

.notification-demo{
  padding:16px;
  border-radius:20px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  display:grid;
  gap:8px;
}

.notification-demo span{
  color:var(--muted);
}

/* Bottom navigation */
.bottom-nav{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  padding:8px 12px calc(8px + env(safe-area-inset-bottom));
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  background:rgba(7,16,28,.92);
  backdrop-filter:blur(18px);
  border-top:1px solid var(--line);
}

.bottom-nav a{
  display:grid;
  place-items:center;
  gap:3px;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
  padding:8px 4px;
  border-radius:16px;
}

.bottom-nav a span{
  font-size:18px;
}

.bottom-nav a.active,
.bottom-nav a:hover{
  color:white;
  background:rgba(255,255,255,.07);
}

/* Desktop still okay */
@media(min-width:840px){
  body{
    padding-bottom:0;
  }

  .app-top{
    padding:0 max(16px,calc((100vw - 1180px)/2));
  }

  .bottom-nav{
    display:none;
  }

  .app-main{
    width:min(1180px,calc(100% - 32px));
    padding:28px 0;
  }

  .mobile-hero{
    max-width:760px;
  }

  .mobile-hero h1{
    font-size:58px;
    max-width:12ch;
  }

  .movement-card{
    max-width:620px;
  }

  .quick-grid{
    grid-template-columns:repeat(4,1fr);
  }

  .plan-strip{
    grid-template-columns:repeat(3,1fr);
  }

  .steps{
    grid-template-columns:repeat(3,1fr);
  }
}

@media(max-width:380px){
  .mobile-hero h1,
  .page-head h1{
    font-size:34px;
  }

  .movement-price strong{
    font-size:44px;
  }

  .hero-actions{
    grid-template-columns:1fr;
  }
}
