:root{
  color-scheme:dark;
  --bg:#060d18;
  --line:#203249;
  --text:#f7f9fd;
  --muted:#8293a7;
  --blue:#2f74ff;
  --green:#27d980;
  --red:#ff5666;
  --purple:#8b6cff;
  --yellow:#ffbd4a
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",Arial,sans-serif;
  background:
    radial-gradient(circle at 50% 8%, rgba(47,116,255,.12), transparent 28rem),
    radial-gradient(circle at 90% 55%, rgba(139,108,255,.055), transparent 24rem),
    linear-gradient(180deg,#07101b 0%,#050b13 100%);
  position:relative;
  overflow-x:hidden;
}

/* Main AI robot watermark */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:url("/static/ai_robot_bg.png");
  background-repeat:no-repeat;
  background-position:center 28px;
  background-size:min(860px, 116vw) auto;
  opacity:.17;
  filter:saturate(.72) brightness(.58) contrast(1.08);
  mask-image:linear-gradient(
    180deg,
    rgba(0,0,0,.92) 0%,
    rgba(0,0,0,.74) 35%,
    rgba(0,0,0,.34) 66%,
    transparent 92%
  );
  z-index:0;
}

/* Very subtle market / neural grid over the robot */
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(rgba(76,111,154,.035) 1px, transparent 1px),
    linear-gradient(90deg,rgba(76,111,154,.03) 1px,transparent 1px),
    radial-gradient(circle at 22% 38%,rgba(47,116,255,.055),transparent 18rem),
    radial-gradient(circle at 82% 26%,rgba(39,217,128,.025),transparent 16rem);
  background-size:38px 38px,38px 38px,auto,auto;
  mask-image:linear-gradient(180deg,rgba(0,0,0,.78),rgba(0,0,0,.16));
  z-index:0;
}
.app{position:relative;z-index:1;max-width:560px;margin:auto;padding:18px 16px 36px}
.top,.section-head{display:flex;justify-content:space-between;align-items:center}
.top{margin-bottom:14px}
.brand{
  display:flex;align-items:center;gap:6px;font-weight:900;font-size:20px;
  text-shadow:0 0 18px rgba(47,116,255,.16)
}
.brand b{color:#49a7ff}
.brand i{font-size:10px;font-style:normal;color:#83efb7;margin-left:5px}
.brand i em{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green)}
.plan{border:1px solid #34506f;background:#101e30;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900}
.plan.full{color:#d7c9ff;border-color:#6b58c3;background:rgba(139,108,255,.12)}

.card{
  border:1px solid rgba(41,66,96,.95);
  border-radius:22px;
  background:
    linear-gradient(180deg,rgba(17,30,48,.95),rgba(8,17,29,.96));
  box-shadow:
    0 20px 55px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.02);
  backdrop-filter: blur(8px);
  padding:17px;
  margin-bottom:13px;
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 0% 0%, rgba(47,116,255,.07), transparent 22%),
    radial-gradient(circle at 100% 100%, rgba(139,108,255,.05), transparent 24%);
}
.card small{color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.8px}
.quota{display:flex;justify-content:space-between;align-items:center}.quota h3{margin:5px 0 0;font-size:17px}.ring{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--blue) 100%,#1b2a3d 0);position:relative}.ring:before{content:"";position:absolute;inset:6px;background:#0d1827;border-radius:50%}.ring span{position:relative;font-weight:900}
.chart-card{padding-bottom:13px}.chart-header{display:flex;justify-content:space-between;align-items:end;gap:12px}.chart-header h3,.section-head h3{font-size:20px;margin:4px 0 0}.chart-price{text-align:right}.chart-price b{display:block;font-size:19px;margin-top:4px}.chart-wrap{position:relative;height:210px;margin-top:13px;border-radius:15px;overflow:hidden;background:linear-gradient(180deg,#091523,#07111c);border:1px solid rgba(40,64,91,.72)}
#priceChart{width:100%;height:100%;display:block}.chart-loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:12px;background:rgba(7,17,28,.86)}.chart-footer{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:10px;margin-top:9px}.chart-footer button,.section-head button{border:1px solid var(--line);background:#0a1523;color:#b9c6d4;border-radius:9px;padding:7px 9px;font-size:11px}
.market-head{display:flex;justify-content:space-between;gap:12px;align-items:end}.market-head label{min-width:0}.market-head small{display:block}select{margin-top:4px;max-width:230px;background:transparent;color:white;border:0;font-size:25px;font-weight:900;outline:none;min-height:42px}.card h4{font-size:13px;margin:17px 0 10px}
.chips{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.chip{min-height:42px;border:1px solid var(--line);border-radius:12px;background:#0a1523;color:#adbac9;font-size:12px;font-weight:800}.chip.active{border-color:var(--blue);background:rgba(47,116,255,.17);color:white}.chip.locked{opacity:.42}
.primary,.fullbtn,.ghost{width:100%;border:0;border-radius:15px;font-weight:900;min-height:53px;margin-top:16px}.primary{background:linear-gradient(135deg,#2368ff,#3e8dff);color:white;box-shadow:0 12px 30px rgba(47,116,255,.22)}button:disabled{opacity:.5}.hint{text-align:center;color:var(--muted);font-size:11px;margin:9px 0 0}
.signal{position:relative;overflow:hidden}.signal.up{border-color:rgba(39,217,128,.45)}.signal.down{border-color:rgba(255,86,102,.48)}.signal-head,.strength-head,.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.signal h1{font-size:31px;line-height:1;margin:6px 0 15px;letter-spacing:-1px}.up #direction{color:var(--green)}.down #direction{color:var(--red)}
.arrow{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:28px;font-weight:900;background:#152337;border:1px solid #29405e}.up .arrow{color:var(--green);background:rgba(39,217,128,.12)}.down .arrow{color:var(--red);background:rgba(255,86,102,.12)}
.timer-box,.result-box{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #29405e;background:#0a1625;border-radius:15px;padding:12px 13px;margin:0 0 15px}.timer-box b{display:block;margin-top:3px;font-size:14px}.countdown{text-align:right}.countdown strong{display:block;margin-top:2px;font-size:28px;letter-spacing:.5px;font-variant-numeric:tabular-nums}.countdown.urgent strong{color:var(--red)}
.result-box.win{border-color:rgba(39,217,128,.45);background:rgba(39,217,128,.08)}.result-box.loss{border-color:rgba(255,86,102,.45);background:rgba(255,86,102,.08)}.result-box.draw{border-color:rgba(255,189,74,.35);background:rgba(255,189,74,.06)}.result-box>div>strong{display:block;font-size:24px;margin-top:3px}.result-box.win>div>strong{color:var(--green)}.result-box.loss>div>strong{color:var(--red)}.result-prices{text-align:right;display:grid;gap:3px;font-size:11px;color:var(--muted)}.result-prices b{color:white;font-variant-numeric:tabular-nums}
.strength{font-size:35px;font-weight:900}.strength em{font-size:18px;color:var(--muted);font-style:normal}.label{font-size:12px;padding:7px 10px;border-radius:999px;background:#14243a}.bar{height:9px;border-radius:999px;background:#19283b;overflow:hidden;margin:11px 0 15px}.bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#2f74ff,#60c6ff);border-radius:999px;transition:width .35s}.up .bar i{background:linear-gradient(90deg,#20c971,#b2e93f)}.down .bar i{background:linear-gradient(90deg,#ff4f61,#ffb33f)}
.reasons{border-top:1px solid var(--line);padding-top:10px}.reasons p{font-size:13px;margin:9px 0}.reasons p:not(.muted):before{content:"●";color:var(--blue);margin-right:8px}.up .reasons p:not(.muted):before{color:var(--green)}.down .reasons p:not(.muted):before{color:var(--red)}.muted{color:var(--muted)}
.performance .section-head>b{font-size:22px}.perf-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}.perf-grid div{border:1px solid var(--line);background:#0a1523;border-radius:14px;padding:11px}.perf-grid strong{display:block;font-size:20px;margin-top:4px}.win{color:var(--green)}.loss{color:var(--red)}
.history-list{display:grid;gap:7px;margin-top:13px}.history-item{display:grid;grid-template-columns:1.1fr .9fr .7fr;gap:8px;align-items:center;border:1px solid var(--line);background:#0a1523;border-radius:13px;padding:10px 11px;font-size:11px}.history-item b{font-size:12px}.history-item .dir.up{color:var(--green)}.history-item .dir.down{color:var(--red)}.history-result{justify-self:end;font-weight:900}.history-result.win{color:var(--green)}.history-result.loss{color:var(--red)}.history-result.draw{color:var(--yellow)}.history-result.pending{color:var(--muted)}
.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:13px}.mini-stats div{border:1px solid var(--line);border-radius:15px;background:#0a1523;padding:12px}.mini-stats small{font-size:9px;color:var(--muted)}.mini-stats b{display:block;margin-top:4px;font-size:17px}
.paywall{text-align:center;border-color:rgba(139,108,255,.4)}.diamond{font-size:28px;color:#aa99ff}.paywall h2{font-size:21px;margin:6px}.paywall p{font-size:13px;line-height:1.5;color:var(--muted)}.fullbtn{background:linear-gradient(135deg,#6748d8,#8b6cff);color:white}.settings h4{margin-top:0}.row{font-size:13px;margin:10px 0}.row b{color:#91c5ff}input[type=range]{width:100%;accent-color:var(--blue)}.toggle input{width:20px;height:20px;accent-color:var(--blue)}.ghost{min-height:45px;border:1px solid var(--line);background:#0a1523;color:white}
footer{text-align:center;color:#50647b;font-size:10px;padding:7px}.toast{position:fixed;left:50%;bottom:17px;transform:translateX(-50%);max-width:calc(100% - 32px);background:#15243a;border:1px solid #30465f;border-radius:12px;padding:11px 14px;font-size:12px;z-index:5}.hidden{display:none!important}
@media(max-width:390px){.chips{grid-template-columns:repeat(3,1fr)}.signal h1{font-size:27px}.chart-wrap{height:185px}.history-item{grid-template-columns:1fr .8fr .65fr}}

.unlock-option{border:1px solid var(--line);background:#0a1523;border-radius:16px;padding:14px;margin-top:13px;text-align:left;position:relative}
.unlock-option.featured{border-color:rgba(47,116,255,.55);background:linear-gradient(180deg,rgba(47,116,255,.11),#0a1523)}
.unlock-option h3{margin:3px 0 6px;font-size:16px}
.unlock-option p{margin:6px 0;color:var(--muted);font-size:12px;line-height:1.45}
.unlock-tag{display:inline-block;font-size:9px;font-weight:900;letter-spacing:.7px;color:#9dccff;border:1px solid rgba(47,116,255,.45);background:rgba(47,116,255,.13);padding:5px 7px;border-radius:999px;margin-bottom:5px}
.referral-btn{width:100%;min-height:51px;border:0;border-radius:14px;background:linear-gradient(135deg,#2368ff,#43a4ff);color:#fff;font-weight:900;margin-top:10px}
.referral-btn.pending{background:#16263a;color:#b9c9d9;border:1px solid #304963}
.manager-hint{text-align:center!important;font-size:10px!important;margin-top:8px!important}

.verify-btn,.check-btn{width:100%;min-height:51px;border-radius:14px;font-weight:900;margin-top:10px}
.verify-btn{border:1px solid rgba(39,217,128,.45);background:rgba(39,217,128,.12);color:#9df4c8}
.check-btn{border:1px solid #304963;background:#132338;color:#d8e5f2}
.unlock-tag.review{color:#ffd88a;border-color:rgba(255,189,74,.35);background:rgba(255,189,74,.08)}

.chart-wrap{
  position:relative;
  isolation:isolate;
}
.chart-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 20% 0%, rgba(47,116,255,.06), transparent 35%),
    radial-gradient(circle at 80% 100%, rgba(39,217,128,.04), transparent 28%);
  z-index:1;
}
#priceChart{position:relative;z-index:0}
.chart-loading{z-index:3}

.card{
  background:linear-gradient(180deg,rgba(15,27,44,.90),rgba(7,16,28,.92));
  backdrop-filter:blur(10px);
}
@media(max-width:420px){
  body::before{
    background-position:center 72px;
    background-size:145vw auto;
    opacity:.15;
  }
}

/* v1.7 — calmer but clearly visible AI robot background */
body::before{
  background-image:url("/static/ai_robot_bg.png") !important;
  background-repeat:no-repeat !important;
  background-position:center 42px !important;
  background-size:min(760px, 108vw) auto !important;
  opacity:.24 !important;
  filter:saturate(.62) brightness(.72) contrast(1.05) !important;
  mix-blend-mode:screen;
  mask-image:linear-gradient(
    180deg,
    rgba(0,0,0,.96) 0%,
    rgba(0,0,0,.88) 34%,
    rgba(0,0,0,.52) 62%,
    rgba(0,0,0,.12) 82%,
    transparent 96%
  ) !important;
}

/* keep cards readable but allow a hint of the robot through */
.card{
  background:linear-gradient(
    180deg,
    rgba(14,27,44,.87),
    rgba(7,16,28,.91)
  ) !important;
  backdrop-filter:blur(9px);
}

@media(max-width:420px){
  body::before{
    background-position:center 58px !important;
    background-size:138vw auto !important;
    opacity:.22 !important;
  }
}


/* =========================================
   v1.8 — side chart atmosphere for desktop
   ========================================= */

body{
  isolation:isolate;
}

/* Left side chart panel */
body .side-chart-left,
body .side-chart-right{display:none}

@media (min-width: 1180px){
  body::selection{background:rgba(47,116,255,.22)}

  body .side-chart-left,
  body .side-chart-right{
    display:block;
    position:fixed;
    top:210px;
    width:min(29vw, 450px);
    height:66vh;
    min-height:480px;
    max-height:680px;
    pointer-events:none;
    z-index:0;
    opacity:.9;
    border-radius:22px;
    overflow:hidden;
  }

  body .side-chart-left{left:3.3vw}
  body .side-chart-right{right:3.3vw}

  body .side-chart-left::before,
  body .side-chart-right::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:22px;
    border:1px solid rgba(82,119,170,.17);
    background:
      linear-gradient(rgba(76,111,154,.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(76,111,154,.038) 1px, transparent 1px),
      radial-gradient(circle at 50% 100%, rgba(37,95,188,.10), transparent 45%),
      linear-gradient(180deg, rgba(6,15,26,.24), rgba(6,15,26,0));
    background-size:42px 42px, 42px 42px, auto, auto;
    box-shadow:
      inset 0 0 0 1px rgba(98,143,203,.02),
      0 18px 50px rgba(0,0,0,.18);
  }

  body .side-chart-left::after,
  body .side-chart-right::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:22px;
    background-repeat:no-repeat;
    background-size:100% 100%;
    opacity:.82;
    filter:drop-shadow(0 0 20px rgba(32,106,255,.07));
  }

  body .side-chart-left::after{
    background-image:
      url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 900'>\
<g opacity='0.78'>\
<path d='M36 632 L92 588 L134 610 L194 548 L252 568 L312 470 L372 500 L432 426 L500 352 L562 316' fill='none' stroke='%233C86FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/>\
<circle cx='36' cy='632' r='4.2' fill='%233C86FF'/><circle cx='92' cy='588' r='4.2' fill='%233C86FF'/><circle cx='134' cy='610' r='4.2' fill='%233C86FF'/><circle cx='194' cy='548' r='4.2' fill='%233C86FF'/><circle cx='252' cy='568' r='4.2' fill='%233C86FF'/><circle cx='312' cy='470' r='4.2' fill='%233C86FF'/><circle cx='372' cy='500' r='4.2' fill='%233C86FF'/><circle cx='432' cy='426' r='4.2' fill='%233C86FF'/><circle cx='500' cy='352' r='4.2' fill='%233C86FF'/><circle cx='562' cy='316' r='4.2' fill='%233C86FF'/>\
<g opacity='0.9'>\
<rect x='36' y='690' width='18' height='108' rx='3' fill='%231852B8'/><rect x='76' y='726' width='18' height='72' rx='3' fill='%231852B8'/>\
<rect x='116' y='650' width='18' height='148' rx='3' fill='%231852B8'/><rect x='156' y='740' width='18' height='58' rx='3' fill='%231852B8'/>\
<rect x='196' y='610' width='18' height='188' rx='3' fill='%231852B8'/><rect x='236' y='695' width='18' height='103' rx='3' fill='%231852B8'/>\
<rect x='276' y='585' width='18' height='213' rx='3' fill='%231852B8'/><rect x='316' y='705' width='18' height='93' rx='3' fill='%231852B8'/>\
<rect x='356' y='530' width='18' height='268' rx='3' fill='%231852B8'/><rect x='396' y='620' width='18' height='178' rx='3' fill='%231852B8'/>\
<rect x='436' y='470' width='18' height='328' rx='3' fill='%231852B8'/><rect x='476' y='564' width='18' height='234' rx='3' fill='%231852B8'/>\
<rect x='516' y='420' width='18' height='378' rx='3' fill='%231852B8'/>\
</g>\
<g opacity='0.24'>\
<path d='M24 170 L86 170 M24 290 L170 290 M24 410 L126 410 M24 530 L152 530 M24 650 L190 650' stroke='%235479A7' stroke-width='1'/>\
</g>\
</g></svg>");
  }

  body .side-chart-right::after{
    background-image:
      url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 900'>\
<g opacity='0.8'>\
<g opacity='0.95'>\
<rect x='34' y='466' width='18' height='86' rx='3' fill='%231A58CA'/><rect x='66' y='438' width='18' height='116' rx='3' fill='%231A58CA'/>\
<rect x='98' y='406' width='18' height='150' rx='3' fill='%231A58CA'/><rect x='130' y='425' width='18' height='124' rx='3' fill='%236A5BFF'/>\
<rect x='162' y='372' width='18' height='182' rx='3' fill='%231A58CA'/><rect x='194' y='332' width='18' height='220' rx='3' fill='%231A58CA'/>\
<rect x='226' y='300' width='18' height='252' rx='3' fill='%231A58CA'/><rect x='258' y='326' width='18' height='214' rx='3' fill='%236A5BFF'/>\
<rect x='290' y='286' width='18' height='272' rx='3' fill='%231A58CA'/><rect x='322' y='250' width='18' height='306' rx='3' fill='%231A58CA'/>\
<rect x='354' y='228' width='18' height='330' rx='3' fill='%231A58CA'/><rect x='386' y='252' width='18' height='286' rx='3' fill='%236A5BFF'/>\
<rect x='418' y='222' width='18' height='318' rx='3' fill='%231A58CA'/><rect x='450' y='266' width='18' height='260' rx='3' fill='%231A58CA'/>\
<rect x='482' y='198' width='18' height='346' rx='3' fill='%236A5BFF'/><rect x='514' y='156' width='18' height='382' rx='3' fill='%231A58CA'/>\
</g>\
<path d='M34 710 L86 684 L142 704 L196 642 L252 660 L306 590 L360 614 L418 548 L470 562 L532 506' fill='none' stroke='%236A5BFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/>\
<circle cx='34' cy='710' r='4.2' fill='%236A5BFF'/><circle cx='86' cy='684' r='4.2' fill='%236A5BFF'/><circle cx='142' cy='704' r='4.2' fill='%236A5BFF'/><circle cx='196' cy='642' r='4.2' fill='%236A5BFF'/><circle cx='252' cy='660' r='4.2' fill='%236A5BFF'/><circle cx='306' cy='590' r='4.2' fill='%236A5BFF'/><circle cx='360' cy='614' r='4.2' fill='%236A5BFF'/><circle cx='418' cy='548' r='4.2' fill='%236A5BFF'/><circle cx='470' cy='562' r='4.2' fill='%236A5BFF'/><circle cx='532' cy='506' r='4.2' fill='%236A5BFF'/>\
<g opacity='0.24'>\
<path d='M22 154 L110 154 M22 288 L162 288 M22 422 L144 422 M22 556 L194 556 M22 690 L170 690' stroke='%235479A7' stroke-width='1'/>\
<text x='44' y='808' fill='%233A5C8D' font-size='22' font-family='Arial'>12:00</text>\
<text x='238' y='808' fill='%233A5C8D' font-size='22' font-family='Arial'>15:00</text>\
<text x='430' y='808' fill='%233A5C8D' font-size='22' font-family='Arial'>21:00</text>\
</g>\
</g></svg>");
  }

  /* Slightly raise the app above decorative side charts */
  .app{
    position:relative;
    z-index:2;
  }
}

@media (max-width: 1179px){
  .app{
    position:relative;
    z-index:2;
  }
}


/* =========================================
   v1.9 — AI Screenshot Scan
   ========================================= */
.scan-card{
  border-color:rgba(64,116,196,.34);
  background:
    radial-gradient(circle at 92% 0%,rgba(47,116,255,.11),transparent 18rem),
    linear-gradient(180deg,rgba(15,29,47,.92),rgba(7,16,28,.94)) !important;
}
.scan-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.scan-title-row h3{font-size:21px;margin:4px 0 0;letter-spacing:-.35px}
.vision-badge{
  flex:none;border:1px solid rgba(77,145,255,.45);background:rgba(47,116,255,.12);
  color:#9bc9ff;border-radius:999px;padding:7px 9px;font-size:9px;font-weight:900;letter-spacing:.8px
}
.scan-lead{color:#9aacbf;font-size:12.5px;line-height:1.55;margin:11px 0 14px}
.scan-drop{
  min-height:104px;border:1px dashed rgba(74,128,203,.48);border-radius:17px;
  background:linear-gradient(135deg,rgba(47,116,255,.07),rgba(9,20,34,.62));
  display:flex;align-items:center;gap:12px;padding:13px;outline:none;transition:.18s ease
}
.scan-drop:focus,.scan-drop.dragover{border-color:#4f94ff;background:rgba(47,116,255,.11)}
.scan-orb{
  width:48px;height:48px;flex:none;border-radius:15px;display:grid;place-items:center;font-size:23px;
  background:linear-gradient(145deg,rgba(47,116,255,.22),rgba(139,108,255,.13));
  border:1px solid rgba(84,139,218,.34)
}
.scan-drop-copy{min-width:0;flex:1}.scan-drop-copy b{display:block;font-size:13px}.scan-drop-copy span{display:block;color:var(--muted);font-size:10px;margin-top:4px}
.scan-choose{
  flex:none;border:1px solid #31547c;background:#10213a;color:#dceaff;border-radius:11px;
  min-height:39px;padding:0 11px;font-size:11px;font-weight:800
}
.scan-preview{
  border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#091522;margin-top:11px
}
.scan-preview>img{display:block;width:100%;max-height:270px;object-fit:contain;background:#050b12}
.scan-preview>div{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 11px}
.scan-preview b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scan-preview button{border:0;background:transparent;color:#8fbfff;font-size:11px;font-weight:800}
.scan-primary{
  width:100%;min-height:53px;border:0;border-radius:15px;margin-top:12px;color:white;font-weight:900;
  background:linear-gradient(135deg,#285fff,#487fff 55%,#765cff);
  box-shadow:0 12px 30px rgba(47,116,255,.16)
}
.scan-primary:disabled{opacity:.42;box-shadow:none}
.scan-loading{
  display:flex;align-items:center;gap:12px;margin-top:13px;padding:12px;border-radius:15px;
  background:#0a1625;border:1px solid #263d5a
}
.scan-loading b{display:block;font-size:12px}.scan-loading span{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.scan-spinner{
  width:32px;height:32px;border-radius:50%;border:3px solid rgba(81,133,204,.2);
  border-top-color:#4e91ff;animation:scanSpin .8s linear infinite
}
@keyframes scanSpin{to{transform:rotate(360deg)}}
.scan-result{margin-top:14px;border-top:1px solid var(--line);padding-top:14px}
.scan-result-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.scan-result-head h3{font-size:26px;margin:4px 0 0}
.scan-score{font-size:30px;font-weight:900}.scan-score small{font-size:14px;color:var(--muted)}
.scan-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}
.scan-meta>div{background:#091522;border:1px solid var(--line);border-radius:12px;padding:9px}
.scan-meta small{display:block;font-size:8px}.scan-meta b{display:block;margin-top:4px;font-size:11px}
.annotated-wrap{border:1px solid #29415e;background:#050b12;border-radius:15px;overflow:hidden}
.annotated-wrap img{display:block;width:100%;max-height:520px;object-fit:contain}
.scan-summary{margin-top:12px}.scan-summary p{margin:6px 0 0;color:#c7d4e2;font-size:12.5px;line-height:1.55}
.scan-levels{margin-top:12px}.level-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.level-tag{border:1px solid #29415f;background:#0c1a2b;border-radius:999px;padding:6px 8px;font-size:9px;color:#c2d1e2;font-weight:800}
.level-tag.support{border-color:rgba(39,217,128,.35);color:#9fe7c4}
.level-tag.resistance{border-color:rgba(255,86,102,.36);color:#ffabb4}
.level-tag.liquidity{border-color:rgba(139,108,255,.4);color:#c8baff}
.scan-disclaimer{color:#5f7186!important;font-size:9px!important;line-height:1.4!important;margin:13px 0 0!important}
@media(max-width:390px){
  .scan-drop{align-items:flex-start;flex-wrap:wrap}
  .scan-choose{margin-left:60px}
  .scan-meta{grid-template-columns:1fr 1fr}
}

.scan-up{color:var(--green)!important}
.scan-down{color:var(--red)!important}
.scan-wait{color:var(--yellow)!important}


/* === AI TRADE LIVE START === */

.live-section{
  overflow:hidden;
}

.live-header,
.live-subhead,
.pair-live-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.live-header small,
.live-subhead small,
.pair-live-head small{
  display:block;
  font-size:10px;
  letter-spacing:1.4px;
  color:#8295b2;
  font-weight:800;
  margin-bottom:5px;
}

.live-header h3{
  margin:0;
  display:flex;
  align-items:center;
  gap:9px;
}

.live-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#28e89c;
  box-shadow:0 0 0 5px rgba(40,232,156,.09),0 0 18px rgba(40,232,156,.7);
  animation:livePulse 1.8s infinite;
}

@keyframes livePulse{
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.45;transform:scale(.78)}
}

.live-refresh{
  font-size:9px;
  font-weight:800;
  letter-spacing:1px;
  color:#6f87aa;
  padding:6px 9px;
  border:1px solid rgba(101,143,207,.25);
  border-radius:999px;
}

.live-metrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:18px 0 20px;
}

.live-metric{
  padding:13px 10px;
  border-radius:14px;
  background:rgba(17,37,65,.58);
  border:1px solid rgba(93,137,202,.18);
  text-align:center;
}

.live-metric small{
  display:block;
  color:#7489a7;
  font-size:8px;
  font-weight:800;
  letter-spacing:.7px;
  margin-bottom:6px;
}

.live-metric strong{
  font-size:22px;
  color:#f4f8ff;
}

.live-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:11px;
}

.live-item{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:12px;
  padding:12px 13px;
  border-radius:14px;
  background:rgba(8,24,43,.72);
  border:1px solid rgba(90,130,190,.16);
}

.live-item-main{
  min-width:0;
}

.live-item-top{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:5px;
}

.live-pair{
  font-size:14px;
  font-weight:900;
  color:#f3f7ff;
}

.live-direction{
  font-size:11px;
  font-weight:900;
}

.live-direction.up{color:#31eaa2}
.live-direction.down{color:#ff5f72}

.live-item-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px 11px;
  font-size:10px;
  color:#8498b6;
}

.live-result{
  flex:0 0 auto;
  padding:7px 9px;
  border-radius:9px;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}

.live-result.active{
  color:#5da5ff;
  background:rgba(49,120,255,.12);
  border:1px solid rgba(70,140,255,.25);
}

.live-result.win{
  color:#38eaa4;
  background:rgba(46,225,154,.10);
  border:1px solid rgba(46,225,154,.20);
}

.live-result.loss{
  color:#ff6878;
  background:rgba(255,86,105,.10);
  border:1px solid rgba(255,86,105,.20);
}

.live-result.draw{
  color:#c4cee0;
  background:rgba(180,195,220,.08);
  border:1px solid rgba(180,195,220,.16);
}

.live-result.wait{
  color:#92a5c1;
  background:rgba(140,160,190,.08);
  border:1px solid rgba(140,160,190,.15);
}

.live-subhead{
  margin-top:4px;
}

.pair-live-head{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(108,145,200,.14);
}

.live-empty{
  padding:18px;
  text-align:center;
  font-size:11px;
  color:#7185a3;
  border:1px dashed rgba(96,132,185,.17);
  border-radius:13px;
}

@media(max-width:520px){
  .live-metric{
    padding:11px 5px;
  }

  .live-metric strong{
    font-size:19px;
  }

  .live-metric small{
    font-size:7px;
  }

  .live-item{
    padding:11px;
  }
}

/* === AI TRADE LIVE END === */

.live-controls{
  display:flex;
  align-items:center;
  gap:8px;
}

.live-pair-select{
  appearance:none;
  -webkit-appearance:none;
  background:rgba(17,37,65,.75);
  border:1px solid rgba(93,137,202,.28);
  color:#eef5ff;
  border-radius:999px;
  padding:8px 30px 8px 12px;
  font-size:10px;
  font-weight:900;
  letter-spacing:.5px;
  outline:none;
}

@media(max-width:520px){
  .live-header{
    align-items:flex-start;
  }

  .live-controls{
    flex-direction:column;
    align-items:flex-end;
  }

  .live-pair-select{
    max-width:105px;
  }
}


/* === AI MARKET RADAR START === */

.market-radar{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:18px 0 24px;
}

.hot-pair-card,
.forming-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(77,132,215,.28);
  border-radius:18px;
  padding:16px;
  background:
    radial-gradient(circle at 90% 0%,rgba(38,111,255,.13),transparent 38%),
    rgba(9,27,49,.82);
}

.hot-pair-card{
  cursor:pointer;
}

.radar-card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:15px;
}

.radar-card-head span{
  font-size:11px;
  letter-spacing:1px;
  font-weight:900;
  color:#f3f7ff;
}

.radar-card-head small{
  color:#7389a8;
  font-size:8px;
  font-weight:800;
  letter-spacing:.8px;
}

.hot-pair-body,
.forming-main{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
}

.hot-pair-body strong,
.forming-main strong{
  font-size:25px;
  color:#f5f8ff;
}

.radar-direction{
  margin-top:5px;
  color:#93a7c5;
  font-size:12px;
  font-weight:700;
}

.radar-direction.up{
  color:#31eaa2;
}

.radar-direction.down{
  color:#ff6376;
}

.hot-strength{
  text-align:center;
  min-width:58px;
}

.hot-strength small,
.forming-percent small{
  display:block;
  color:#7186a5;
  font-size:8px;
  letter-spacing:.8px;
  font-weight:900;
}

.hot-strength b{
  display:block;
  margin-top:3px;
  font-size:28px;
  color:#61a7ff;
}

.hot-pair-open{
  margin-top:15px;
  border:0;
  padding:0;
  background:none;
  color:#74aafc;
  font-weight:800;
  font-size:10px;
  cursor:pointer;
}

.forming-percent{
  text-align:right;
}

.forming-percent b{
  display:block;
  font-size:26px;
  color:#7baeff;
}

.forming-progress{
  height:7px;
  border-radius:999px;
  background:rgba(92,123,168,.15);
  overflow:hidden;
  margin:15px 0;
}

.forming-progress > div{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#2f75ff,#6b65ff);
  transition:width .55s ease;
}

.forming-checks{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.forming-check{
  font-size:11px;
  font-weight:700;
  color:#8195b3;
}

.forming-check.ok{
  color:#47dca4;
}

.forming-check.wait{
  color:#8497b4;
}

.radar-note{
  margin-top:13px;
  padding-top:11px;
  border-top:1px solid rgba(100,139,197,.12);
  font-size:8px;
  line-height:1.5;
  color:#607795;
}

/* === AI MARKET RADAR END === */


/* === COMPACT RADAR 2.8 === */

.compact-radar{
  display:grid !important;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin:12px 0 12px !important;
}

.compact-radar-card{
  min-width:0;
  padding:12px !important;
  border-radius:15px !important;
  min-height:116px;
}

.compact-label{
  font-size:9px;
  font-weight:900;
  letter-spacing:.7px;
  color:#91a5c4;
  white-space:nowrap;
  margin-bottom:10px;
}

.compact-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
}

.compact-main strong{
  font-size:19px !important;
  line-height:1;
  color:#f5f8ff;
  white-space:nowrap;
}

.compact-main b{
  font-size:21px !important;
  line-height:1;
  color:#70a8ff;
  white-space:nowrap;
}

.compact-direction{
  font-size:9px !important;
  line-height:1.3;
  margin-top:8px !important;
  min-height:24px;
}

.compact-progress{
  width:100%;
  height:4px;
  background:rgba(100,130,180,.18);
  border-radius:999px;
  overflow:hidden;
  margin-top:8px;
}

.compact-progress > div{
  height:100%;
  width:0;
  border-radius:999px;
  background:linear-gradient(90deg,#3478ff,#7562ff);
  transition:width .5s ease;
}

.radar-details{
  margin-top:7px;
}

.radar-details summary{
  color:#7088aa;
  font-size:8px;
  cursor:pointer;
  user-select:none;
}

.radar-details .forming-checks{
  margin-top:8px;
  gap:5px;
}

.radar-details .forming-check{
  font-size:8px;
}

/* Старые большие элементы больше не показываем */
.compact-radar .radar-card-head,
.compact-radar .hot-pair-open,
.compact-radar .radar-note,
.compact-radar .forming-main,
.compact-radar .forming-progress,
.compact-radar .hot-pair-body,
.compact-radar .hot-strength{
  display:none !important;
}

@media(max-width:520px){
  .compact-radar{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }

  .compact-radar-card{
    padding:11px 10px !important;
  }

  .compact-main strong{
    font-size:17px !important;
  }

  .compact-main b{
    font-size:19px !important;
  }

  .compact-label{
    font-size:8px;
  }
}

/* === /COMPACT RADAR 2.8 === */


/* === FIXED MAIN SIGNAL FLOW === */
#signalFlowHost{
  width:100%;
  display:flex !important;
  flex-direction:column !important;
  gap:14px;
}

#signalFlowHost > #analyze{
  order:1 !important;
  width:100%;
  margin-top:0 !important;
}

#signalFlowHost > #signal{
  order:2 !important;
  width:100%;
  margin:0 !important;
}

#signalFlowHost > #marketRadar{
  order:3 !important;
  width:100%;
  margin:0 !important;
}






/* === HIDE LIVE FEED + HISTORY FINAL === */
section:has(#liveSignals){
    display:none !important;
}

section:has(#historyList){
    display:none !important;
}
