/* V4 AI visual upgrade — add this file after styles.css */

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(0,255,210,.10), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(100,110,255,.13), transparent 24%),
    #02040b !important;
}

.aiHeroV4 {
  background:
    linear-gradient(115deg, rgba(2,4,11,.94), rgba(3,13,24,.88)),
    radial-gradient(circle at 80% 30%, rgba(0,255,210,.14), transparent 35%);
}

.heroTradingDesk,
.labChartCard,
.strategyRoom,
.radarCard,
.newsTerminal {
  border: 1px solid rgba(0,255,210,.20);
  background:
    linear-gradient(160deg, rgba(2,7,16,.96), rgba(4,17,30,.88)),
    radial-gradient(circle at 80% 10%, rgba(0,255,210,.10), transparent 30%);
  box-shadow: 0 0 42px rgba(0,255,210,.08), 0 30px 90px rgba(0,0,0,.48);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.heroTradingDesk::before,
.labChartCard::before,
.strategyRoom::before,
.radarCard::before,
.newsTerminal::before {
  content:"";
  position:absolute;
  inset:-1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,210,.12), transparent);
  transform: translateX(-100%);
  animation: aiSweep 5s infinite linear;
  pointer-events:none;
}

@keyframes aiSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.deskHeader {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  color:#dff;
  border-bottom:1px solid rgba(0,255,210,.13);
  background:rgba(0,0,0,.18);
  letter-spacing:.04em;
}

.deskHeader span,
.badge {
  color:#081018;
  background:linear-gradient(135deg,#14f5c7,#7d8cff);
  padding:7px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}

.aiCanvas,
.roomCanvas {
  width:100%;
  display:block;
  background:#02040b;
}

.heroTape {
  padding:12px 18px;
  color:#9fffe7;
  border-top:1px solid rgba(0,255,210,.12);
  min-height:45px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.mainLab {
  display:grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
  gap:22px;
  align-items:stretch;
}

.decisionStackV4 {
  border:1px solid rgba(0,255,210,.18);
  background:rgba(0,0,0,.26);
  border-radius:28px;
  padding:22px;
  box-shadow:0 20px 60px rgba(0,0,0,.38);
}

.flowStep {
  display:grid;
  grid-template-columns:42px 1fr;
  gap:4px 12px;
  padding:13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  margin:12px 0;
  background:rgba(255,255,255,.035);
}

.flowStep b {
  grid-row: span 2;
  color:#14f5c7;
  font-size:22px;
}

.flowStep span { color:#fff; font-weight:800; }
.flowStep small { color:#9cb5bd; }

.telegramPreview {
  margin-top:16px;
  border:1px solid rgba(0,255,210,.18);
  border-radius:18px;
  padding:16px;
  color:#cffff4;
  background:rgba(0,255,210,.055);
  min-height:120px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.roomHead { margin-top:36px; }

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

.strategyRoom {
  border-radius:22px;
}

.roomTop {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:13px 14px 4px;
  align-items:flex-start;
}

.roomTop b { color:#fff; }
.roomTop span {
  color:#14f5c7;
  font-size:12px;
  text-align:right;
}

.roomStats {
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 13px 14px;
  color:#dff;
  font-size:12px;
  border-top:1px solid rgba(0,255,210,.10);
}

.roomStats span:last-child { color:#14f5c7; }

.radarGrid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:20px;
}

.radarCard {
  padding:16px;
  text-align:center;
}

.radarCard canvas {
  width:100%;
  max-width:260px;
  margin:auto;
  display:block;
  border-radius:20px;
  background:rgba(0,0,0,.22);
}

.radarCard h3 { margin:12px 0 6px; color:#fff; }
.radarCard p { color:#a9c0c7; min-height:44px; }
.radarCard small {
  color:#14f5c7;
  display:inline-block;
  border:1px solid rgba(0,255,210,.18);
  border-radius:999px;
  padding:7px 10px;
}

.v4Counters .metric b {
  display:block;
  margin:8px 0;
  letter-spacing:.02em;
}

.clientCarouselShell {
  overflow:hidden;
  margin-top:28px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.clientCarousel {
  display:flex;
  gap:16px;
  width:max-content;
  animation: clientRail 70s linear infinite;
}

@keyframes clientRail {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.clientCard {
  width:260px;
  min-height:170px;
  border:1px solid rgba(0,255,210,.16);
  background:linear-gradient(155deg, rgba(3,12,24,.96), rgba(3,20,32,.84));
  border-radius:22px;
  padding:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.32);
}

.clientCard b { color:#fff; display:block; margin-bottom:7px; }
.clientCard span { color:#14f5c7; font-size:13px; }
.clientCard p { color:#fff; font-weight:800; margin:12px 0 8px; }
.clientCard small { color:#a9bdc8; line-height:1.45; }

.newsTerminal {
  padding:22px;
}

.newsScanner {
  height:3px;
  background:linear-gradient(90deg, transparent, #14f5c7, #7d8cff, transparent);
  border-radius:999px;
  margin-bottom:18px;
  animation: newsPulse 2.2s infinite;
}

@keyframes newsPulse {
  0%,100% { opacity:.35; transform:scaleX(.55); }
  50% { opacity:1; transform:scaleX(1); }
}

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

.newsCardV4 {
  border:1px solid rgba(255,255,255,.09);
  background:rgba(255,255,255,.045);
  border-radius:18px;
  padding:16px;
}

.newsCardV4 span {
  color:#14f5c7;
  font-size:11px;
  font-weight:900;
  letter-spacing:.09em;
}

.newsCardV4 h3 { color:#fff; margin:9px 0; }
.newsCardV4 p { color:#a9bdc8; }

@media (max-width: 1150px) {
  .strategyRoomsV4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mainLab { grid-template-columns:1fr; }
  .newsGrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .strategyRoomsV4, .radarGrid, .newsGrid { grid-template-columns:1fr; }
  .deskHeader { flex-direction:column; align-items:flex-start; gap:8px; }
}
