:root {
  --bg-1: #081416;
  --bg-2: #102225;
  --phone: #102628;
  --panel: #123437;
  --teal: #26e0ca;
  --teal-soft: #6ff4e4;
  --text: #d5f4ee;
  --muted: #8cb8b2;
  --line: #1d4b4f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #174448, var(--bg-1) 40%, #070f12);
  color: var(--text);
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.phone {
  width: min(420px, 94vw);
  border-radius: 30px;
  border: 1px solid #2b5f64;
  background: linear-gradient(180deg, #1b4749, #123336 36%, #102b30 100%);
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #4a7273;
  border-radius: 999px;
  background: rgba(20, 44, 48, 0.8);
  padding: 7px 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ce9d8;
}

.phone-top p {
  margin: 0;
  color: #b9d9d5;
  font-size: 13px;
}

.voice-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 70, 72, 0.75), rgba(16, 54, 56, 0.85));
  min-height: 330px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.orb-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  display: grid;
  place-items: center;
}

.orb-ring {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 3px solid rgba(59, 255, 227, 0.72);
  box-shadow: 0 0 24px rgba(48, 246, 217, 0.65);
}

.orb-core {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5bf4e1, #17c0ad 58%, #0e7f75 100%);
  box-shadow: 0 0 34px rgba(80, 255, 230, 0.8);
  animation: pulse 2.1s ease-in-out infinite;
}

.tap-text {
  margin: 18px 0 0;
  font-size: 28px;
  font-weight: 500;
  color: #a7e7de;
}

.side-actions {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #4f7b7d;
  background: rgba(30, 70, 73, 0.9);
  color: #c4ece6;
  font-weight: 700;
  cursor: pointer;
}

.icon-btn.mic {
  background: #e5b35b;
  color: #2f1b00;
  font-size: 19px;
}

.icon-btn.small {
  font-size: 17px;
}

.market-head {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-head p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.market-head span {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(94, 253, 204, 0.2);
  color: #89f3d8;
  border: 1px solid rgba(94, 253, 204, 0.45);
}

.market-meta {
  margin: 6px 2px 0;
  font-size: 12px;
  color: #a6c7c2;
}

.market-switch {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-switch label {
  font-size: 12px;
  color: #9dd0c8;
}

.market-switch select {
  border: 1px solid #4f7278;
  border-radius: 8px;
  background: #18363b;
  color: #d9f5f0;
  padding: 6px 8px;
  font-size: 12px;
}

.chart-card {
  margin-top: 8px;
  height: 260px;
  border: 1px solid #5f7e85;
  border-radius: 14px;
  background: #111827;
  position: relative;
  overflow: hidden;
}

#tvChart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.trade-panel {
  margin-top: 10px;
  border: 1px solid #4f7278;
  border-radius: 12px;
  background: rgba(17, 43, 46, 0.75);
  padding: 10px;
}

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

.trade-head p {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.trade-head span {
  font-size: 11px;
  color: #9fd6cf;
}

.trade-controls {
  display: grid;
  grid-template-columns: 70px 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.trade-controls input {
  width: 100%;
  border: 1px solid #4f7278;
  border-radius: 8px;
  background: #1a3438;
  color: #d9f5f0;
  padding: 8px;
  font-size: 13px;
}

.trade-btn {
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.trade-btn.buy {
  background: #35d8ff;
  color: #04202a;
}

.trade-btn.sell {
  background: #ff9a63;
  color: #2b1402;
}

.trade-btn.close {
  background: #86f4cb;
  color: #063225;
}

.trade-pnl {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b9ece2;
}

.trade-log {
  margin: 6px 0 0;
  font-size: 12px;
  color: #97c1bb;
}

.tg-link {
  position: fixed;
  right: 14px;
  bottom: 14px;
  text-decoration: none;
  color: #04201b;
  background: #4ef2d8;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (max-width: 420px) {
  .trade-controls {
    grid-template-columns: 1fr 1fr;
  }
}
