/* ===== Deepro Demo — global styles ===== */
* { -webkit-tap-highlight-color: transparent; box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }

/* Phone frame: emulate a mobile device on desktop, full-screen on mobile */
#phone-frame {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100vh;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) {
  body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
  #phone-frame {
    height: 880px;
    max-height: 94vh;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    border: 10px solid #111;
  }
}

#app {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
#app::-webkit-scrollbar { width: 0; display: none; }

/* Bottom tab bar */
#tabbar {
  flex-shrink: 0;
  display: flex;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  padding-bottom: env(safe-area-inset-bottom, 4px);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 0 6px;
  font-size: 11px;
  color: #9aa0a6;
  cursor: pointer;
  transition: color .15s;
}
.tab-item.active { color: #1A1A1A; font-weight: 600; }
.tab-item i { font-size: 18px; }

/* Status bar (fake iOS style) */
.status-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 4px; font-size: 13px; font-weight: 600; color: #1A1A1A;
}
.status-bar .right i { margin-left: 5px; font-size: 12px; }

/* Generic helpers */
.hairline { border-bottom: 1px solid #f0f0f0; }
.up { color: #10B981; }
.down { color: #EF4444; }
.bg-up { background: #10B981; }
.bg-down { background: #EF4444; }
.tag {
  font-size: 10px; padding: 1px 5px; border-radius: 4px; font-weight: 700;
  display: inline-block; line-height: 1.4;
}
.tag-spot { background: #FFF3D6; color: #E8950C; }
.tag-perp { background: #FFE9D6; color: #F5731F; }
.tag-us { background: #E8F0FE; color: #4285F4; }
.tag-hk { background: #FDEAEA; color: #EA4335; }
.tag-fut { background: #E7F3FF; color: #1677FF; }

/* Page enter animation */
.page-enter { animation: fadeUp .22s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px);} to {opacity:1; transform: none;} }

/* slider track */
.dp-slider { -webkit-appearance: none; appearance: none; height: 3px; background: #E6E6E6; border-radius: 3px; outline: none; }
.dp-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #bbb; cursor: pointer; }

/* depth row bg bars */
.depth-bar { position: absolute; top: 0; bottom: 0; right: 0; opacity: .12; }

/* pill toggle */
.pill { transition: all .15s; }

/* toast */
#toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%) scale(.9);
  background: rgba(0,0,0,.8); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 999; max-width: 80%; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* demo banner */
.demo-badge {
  background: linear-gradient(90deg,#FFC500,#F5B300); color:#1A1A1A;
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
}

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }

/* live indicator dot */
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #C9CDD4; vertical-align: middle;
}
.live-dot.on {
  background: #10B981; box-shadow: 0 0 0 0 rgba(16,185,129,.6);
  animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  70% { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* kline */
.kline-wrap { margin-top: 8px; }
.k-iv { transition: all .12s; cursor: pointer; user-select: none; }
#kcanvas { width: 100%; }

/* price flash on update */
.flash-up { animation: flashUp .6s ease; }
.flash-down { animation: flashDown .6s ease; }
@keyframes flashUp { 0% { background: rgba(16,185,129,.18);} 100% { background: transparent;} }
@keyframes flashDown { 0% { background: rgba(239,68,68,.18);} 100% { background: transparent;} }
