* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, #124126 0 14%, transparent 34%),
    radial-gradient(circle at 86% 0%, #4a2f09 0 12%, transparent 32%),
    linear-gradient(#080b0a, #050606),
    repeating-linear-gradient(0deg, transparent 0 41px, #14201a 42px),
    repeating-linear-gradient(90deg, transparent 0 41px, #14201a 42px);
  color: #f5f5f5;
  font: 14px Inter, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, #28ff8b0d, transparent),
    radial-gradient(circle at 50% 0%, #ffffff10, transparent 38%);
  mask-image: linear-gradient(#000, transparent 78%);
}

.app {
  width: min(860px, 94vw);
  margin: auto;
  padding: 28px 0 38px;
  position: relative;
  z-index: 1;
}

.heroTop {
  position: relative;
  padding: 24px;
  border: 1px solid #193a28;
  border-radius: 22px;
  background: linear-gradient(135deg, #101814dd, #090b0ae8);
  box-shadow: 0 24px 80px #000a, inset 0 1px 0 #ffffff12;
  overflow: hidden;
}

.heroTop::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid #20ff8640;
  box-shadow: 0 0 80px #19ff7130;
}

.heroTop span {
  display: inline-block;
  margin-bottom: 10px;
  color: #00ed91;
  background: #063c29;
  border: 1px solid #108957;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.heroTop h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

h1 {
  margin: 0;
}

section {
  margin-bottom: 30px;
}

.muted,
.foot {
  color: #858585;
}

.status {
  border: 1px solid #0a7a4b;
  border-radius: 999px;
  padding: 11px 16px;
  color: #00e795;
  margin: 18px 0 28px;
  background: #06120dde;
  box-shadow: 0 0 28px #00e7951a;
  font-size: 12px;
  font-weight: 800;
}

.status.bad {
  border-color: #6b1f2c;
  color: #ff5a73;
}

.marketRank {
  border: 1px solid #1d3f2b;
  border-radius: 16px;
  background: linear-gradient(145deg, #0c1511e8, #080b09e8);
  color: #aeb8b3;
  padding: 14px;
  margin: -14px 0 28px;
  box-shadow: inset 0 1px 0 #ffffff0b, 0 18px 42px #0006;
}

.rankTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #9eff35;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.refreshRank {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #8c978f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  padding: 0;
}

.refreshRank:hover {
  color: #9eff35;
}

.refreshRank:disabled {
  cursor: wait;
  opacity: .65;
}

.refreshIcon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: refreshSpin 1.6s linear infinite;
}

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

.rankBadges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.rankBadge {
  min-height: 72px;
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 8px;
  border: 1px solid #244532;
  border-radius: 13px;
  background:
    radial-gradient(circle at 18% 24%, #2bff8a21, transparent 30%),
    linear-gradient(145deg, #111a15, #0a0f0c);
  color: #eef7f2;
  padding: 10px 14px 10px 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px #0006, inset 0 1px 0 #ffffff12;
  overflow: hidden;
}

.rankBadge::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9eff35;
  box-shadow: 0 0 16px #9eff35;
  transform: translateY(-50%);
  opacity: .8;
}

.rankBadge small,
.rankBadge b,
.rankBadge em,
.rankBadge .assetIcon {
  position: relative;
  z-index: 1;
}

.rankBadge small {
  grid-column: 1 / -1;
  color: #9eff35;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.rankBadge b {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rankBadge em {
  grid-column: 2;
  color: #ffbf3d;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.rankBadge small {
  color: #9eff35;
}

.rankBadge:hover {
  border-color: #14a363;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px #0007, 0 0 24px #18f68b18;
}

.rankBadge.active {
  border-color: #ffbf3d;
  box-shadow: 0 0 0 1px #ffbf3d33, 0 0 30px #ffbf3d20;
}

h3 {
  font-size: 14px;
  color: #d8dedb;
  margin: 0 0 12px;
}

h3 b {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  background: linear-gradient(135deg, #9eff35, #ffb21b);
  color: #071007;
  border-radius: 50%;
  padding: 0;
  margin-right: 7px;
  box-shadow: 0 0 18px #9eff3540;
}

.markets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  max-height: 390px;
  overflow: auto;
  padding-right: 3px;
}

.market,
.choices button,
.filters button,
.filters input {
  background: linear-gradient(145deg, #121816e8, #090c0be8);
  border: 1px solid #26352e;
  color: #aeb8b3;
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff0b;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
}

.market {
  text-align: left;
  display: flex;
  justify-content: space-between;
  min-height: 74px;
  position: relative;
  overflow: hidden;
}

.market::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, #00ff8c0d, transparent);
  opacity: 0;
  transition: opacity .18s ease;
}

.market:hover,
.choices button:hover {
  border-color: #147d4e;
  color: #f3f7f5;
  transform: translateY(-1px);
  box-shadow: 0 14px 38px #0007, 0 0 28px #00ff8c12;
}

.market:hover::before {
  opacity: 1;
}

.market strong {
  color: #eee;
}

.market small {
  display: block;
  margin-top: 5px;
  color: #777;
}

.market em {
  font-style: normal;
  color: #00df98;
}

.market.active,
.choices .active,
.filters .active {
  border-color: #ffb21b;
  box-shadow: 0 0 0 1px #ffb21b26, 0 0 32px #ffb21b20;
  color: #ffbf3d;
  background: linear-gradient(145deg, #1a160f, #101411);
}

.assetInfo strong {
  display: flex;
  align-items: center;
  gap: 7px;
}

.assetIcon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
}

.assetIcon.btc {
  background: #f7931a;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.assetIcon.bnb {
  background: linear-gradient(145deg, #f3ba2f, #9a6f00);
  color: #111;
  font-size: 13px;
  font-weight: 900;
}

.assetIcon.apple {
  background: linear-gradient(145deg, #f5f7fb, #7c8798);
  color: #07090c;
  font-size: 12px;
  font-weight: 900;
}

.assetIcon.forexPair {
  width: 34px;
  background: transparent;
  display: inline-flex;
  justify-content: flex-start;
  isolation: isolate;
}

.assetIcon.forexPair img {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0008;
}

.assetIcon.forexPair img:first-child {
  z-index: 2;
}

.assetIcon.forexPair img:last-child {
  margin-left: -10px;
  z-index: 1;
}

.assetIcon.sol {
  background: #121316;
  gap: 2px;
  padding: 4px;
  border: 1px solid #2d2e31;
}

.assetIcon.sol i {
  display: block;
  width: 13px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #00ffa3, #dc1fff);
}

.assetIcon.sol i:nth-child(2) {
  background: linear-gradient(90deg, #dc1fff, #00ffa3);
}

.assetIcon.eth {
  background: linear-gradient(145deg, #627eea, #1b255f);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.assetIcon.doge {
  background: linear-gradient(145deg, #d8b54b, #7d5f12);
  color: #fff7ce;
  font-size: 14px;
  font-weight: 900;
}

.assetIcon.xrp {
  background: linear-gradient(145deg, #d9e3ea, #5f7480);
  color: #071016;
  font-size: 12px;
  font-weight: 900;
}

.quote {
  text-align: right;
}

.quote em {
  display: block;
}

.quote small {
  margin-top: 4px;
}

.up {
  color: #00df98 !important;
}

.down {
  color: #ff4967 !important;
}

.filters {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.filters input {
  flex: 1;
  min-width: 180px;
}

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

.choices {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.choices button {
  min-width: 70px;
}

.generate {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 20px;
  font-weight: 800;
  font-size: 16px;
  color: #150d02;
  background: linear-gradient(90deg, #ffe06b, #ff9d1b 52%, #18f68b);
  cursor: pointer;
  box-shadow: 0 18px 48px #ff9d1b30, inset 0 1px 0 #fff8;
  margin-top: 4px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 62px #ff9d1b42, 0 0 30px #18f68b26;
}

.generate:disabled {
  cursor: wait;
  filter: grayscale(.35);
  opacity: .75;
}

.foot {
  text-align: center;
  font-size: 11px;
}

.overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, #0c2717, transparent 46%),
    #020403;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
  z-index: 50;
}

.hidden {
  display: none;
}

.resultcard {
  width: min(520px, 94vw);
  position: relative;
  z-index: 60;
  background: linear-gradient(145deg, #15130fe8, #070908f2);
  border: 1px solid #3d3324;
  border-radius: 20px;
  padding: 20px;
  line-height: 1.7;
  backdrop-filter: blur(12px);
}

.aiScan {
  width: min(720px, 94vw);
  min-height: 560px;
  position: relative;
  display: grid;
  grid-template-columns: 330px 1fr;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid #163f22;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 46%, #153607 0 16%, transparent 36%),
    linear-gradient(#111511d9, #070907f2),
    repeating-linear-gradient(0deg, transparent 0 39px, #1d2a1d 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #1d2a1d 40px);
  box-shadow: 0 0 90px #79ff1f22, inset 0 0 70px #000;
  overflow: hidden;
}

.aiScan::before,
.aiScan::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #13ff7a;
  box-shadow: 0 0 18px #13ff7a;
  opacity: .75;
}

.aiScan::before {
  top: 44px;
  right: 76px;
}

.aiScan::after {
  right: 34px;
  bottom: 160px;
}

.radar {
  width: 320px;
  height: 320px;
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle, #081008 0 18%, #020402 19% 100%);
  border: 12px solid #020302;
  box-shadow: 0 0 0 1px #21470d, 0 0 55px #000;
}

.ring,
.cross,
.sweep,
.core {
  position: absolute;
}

.ring {
  inset: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #2a6f14;
  border-radius: 50%;
  opacity: .58;
}

.ringOne {
  width: 96px;
  height: 96px;
}

.ringTwo {
  width: 190px;
  height: 190px;
}

.ringThree {
  width: 284px;
  height: 284px;
}

.cross {
  background: #2f7517;
  opacity: .45;
}

.cross.x {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.cross.y {
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
}

.sweep {
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from -20deg, transparent 0 284deg, #8fff2d75 318deg, transparent 352deg);
  animation: radarSpin 2.4s linear infinite;
}

.core {
  inset: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #030503;
  border: 2px solid #347a16;
  color: #a7ff45;
  font-size: 25px;
  font-weight: 900;
  box-shadow: 0 0 26px #69ff1f66;
  z-index: 2;
}

.scanPanel {
  position: relative;
  z-index: 2;
}

.scanBadge {
  display: inline-block;
  color: #00ed91;
  background: #063c29;
  border-radius: 18px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 900;
}

.scanPanel h2 {
  margin: 18px 0 6px;
  color: #ffad20;
  font-size: 25px;
}

.scanPanel p {
  margin: 0 0 18px;
  color: #d6d6d6;
}

.scanStats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.scanStats span {
  border: 1px solid #243924;
  border-radius: 10px;
  background: #0b110d;
  color: #9d9d9d;
  padding: 10px;
  font-size: 12px;
}

.scanStats b {
  display: block;
  color: #9eff35;
  font-size: 15px;
  margin-top: 2px;
}

.acceptOpportunity {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #9eff35, #18f68b);
  color: #061008;
  padding: 13px;
  margin-bottom: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 26px #18f68b24;
}

.acceptOpportunity:disabled {
  background: #111811;
  color: #65716a;
  border: 1px solid #243924;
  box-shadow: none;
  cursor: not-allowed;
}

.scanRows {
  display: grid;
  gap: 9px;
  padding: 16px;
  border: 1px solid #423018;
  border-radius: 14px;
  background: #11100cdb;
}

.scanRows span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f1f1f1;
}

.scanRows b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9eff35;
  box-shadow: 0 0 12px #9eff35;
}

.bar {
  height: 7px;
  background: #303030;
  border-radius: 9px;
  margin-top: 22px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #f5a900;
  animation: load 2.1s ease-in-out infinite;
}

.cancelScan {
  width: 100%;
  margin-top: 14px;
  border: 1px solid #31442f;
  border-radius: 10px;
  background: #111811;
  color: #b7b7b7;
  padding: 12px;
  cursor: pointer;
}

.cancelScan:hover {
  border-color: #80ff28;
  color: #fff;
}

@keyframes load {
  0% {
    width: 0;
  }

  70% {
    width: 100%;
  }

  to {
    width: 100%;
    opacity: .55;
  }
}

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

.resultcard {
  border-color: #8d640f;
  box-shadow: 0 0 90px #9a5d0048, inset 0 1px 0 #ffffff10;
  padding: 24px;
}

.pill {
  display: block;
  width: max-content;
  margin: 0 auto 16px;
  background: #06472f;
  color: #00ed91;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
}

.resultHero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #087c48;
  background: #101d16;
  border-radius: 16px;
  padding: 13px 16px;
  margin-bottom: 12px;
}

.assetTitle {
  display: flex;
  align-items: center;
  gap: 11px;
}

.assetTitle .assetIcon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  font-size: 24px;
}

.assetTitle .assetIcon.sol {
  padding: 7px;
}

.assetTitle .assetIcon.sol i {
  width: 20px;
  height: 4px;
}

.assetTitle b {
  font-size: 18px;
}

.assetTitle small {
  display: block;
  color: #8d8d8d;
  font-size: 11px;
  line-height: 1.25;
  margin-top: 1px;
}

.signal {
  font-size: 24px;
  font-weight: 900;
}

.buy {
  color: #00e792;
}

.sell {
  color: #ff4161;
}

.wait {
  color: #ffb21b;
}

.timerBox {
  border: 1px solid #855800;
  background: #1a130b;
  border-radius: 16px;
  padding: 15px;
  text-align: center;
  margin-bottom: 12px;
}

.timerBox small {
  color: #ffb21b;
  font-size: 11px;
  font-weight: 800;
}

.timerBox span {
  display: block;
  color: #aaa;
  font-size: 12px;
  margin-top: 6px;
}

.timerBox span b {
  background: #3a3025;
  color: #fff;
  border-radius: 5px;
  padding: 3px 7px;
}

.count {
  font: 800 42px monospace;
  color: #ffb21b;
  line-height: 1;
}

.metricGrid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.metric {
  min-height: 66px;
  background: #211b14;
  border: 1px solid #33291d;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
}

.metric small {
  color: #8d8d8d;
  font-size: 10px;
  font-weight: 700;
}

.metric b {
  color: #ffbf3d;
}

.metric.primary {
  border-color: #088f52;
  background: #102118;
}

.metric.primary b {
  color: #00e792;
  font-size: 18px;
}

.notice {
  border: 1px solid #855800;
  background: #1b140d;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.notice b {
  display: block;
  color: #fff;
}

.notice span {
  display: block;
  color: #bbb;
  font-size: 12px;
  line-height: 1.5;
}

.priceLine {
  margin: 8px 0;
  color: #e8e8e8;
}

.resultcard h2 small {
  font-size: 12px;
  color: #777;
  font-weight: normal;
}

.frames {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.frames span {
  background: #0d0e10;
  border: 1px solid #2d2e31;
  border-radius: 8px;
  padding: 8px;
}

.reasons {
  color: #bbb;
  padding-left: 20px;
}

.reasons li {
  margin: 5px 0;
}

.back {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(90deg, #ffcf58, #e98a16);
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 600px) {
  .markets,
  .grid {
    grid-template-columns: 1fr;
  }

  .app {
    width: min(100% - 24px, 860px);
    padding: 18px 0 28px;
  }

  .heroTop {
    padding: 18px;
    border-radius: 18px;
  }

  .heroTop h1 {
    font-size: 24px;
  }

  .resultcard {
    padding: 18px;
  }

  .aiScan {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .radar {
    width: min(300px, 84vw);
    height: min(300px, 84vw);
    margin: auto;
  }

  .resultHero {
    align-items: flex-start;
    gap: 12px;
  }

  .signal {
    font-size: 20px;
  }

  .metricGrid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

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

  .metric {
    min-height: 62px;
    padding: 7px 5px;
  }

  .metric small {
    font-size: 9px;
  }

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

  .count {
    font-size: 36px;
  }
}
