/* Shared spider-web atmosphere and interaction layer. */
html {
  background: #000 !important;
}

body {
  position: relative;
  isolation: isolate;
  background-color: #000 !important;
  background-image: none !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 1;
  background-color: #000;
  background-image: url("../images/spider-web-background.png");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: auto 100vh;
  filter: contrast(1.06);
  -webkit-mask-image: none;
  mask-image: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .24), rgba(0, 0, 0, .62) 52%, rgba(0, 0, 0, .82)),
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .42));
}

/* Let the shared art show through on authentication and application shells. */
.app-body,
.auth-body,
.auth-panel,
.single-auth,
.premium-single-auth,
.premium-auth-panel,
.app-shell,
.page-content {
  background-color: transparent !important;
  background-image: none !important;
}

/* Action controls stay visually clean; the web only appears as a click burst. */
:where(
  .btn,
  .auth-tab,
  .market-tab,
  .bp-filter-tabs button,
  .admin-plan-filter,
  .telegram-modal-later
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Web field for every asynchronous loading view. */
:where(
  .live-loading-state,
  .future-loading-state,
  .checker-loading,
  .news-loading-state,
  .bp-loading,
  .chart-loading-card
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

:where(
  .live-loading-state,
  .future-loading-state,
  .checker-loading,
  .news-loading-state,
  .bp-loading,
  .chart-loading-card
)::before {
  content: "";
  position: absolute;
  inset: 20px;
  z-index: 0;
  pointer-events: none;
  opacity: .66;
  background: center / contain no-repeat url("../images/loading-web.svg");
  filter: drop-shadow(0 0 6px rgba(203, 195, 255, .24));
  animation: loading-web-breathe 2.35s ease-in-out infinite;
}

:where(
  .live-loading-state,
  .future-loading-state,
  .checker-loading,
  .news-loading-state,
  .bp-loading,
  .chart-loading-card
) > * {
  position: relative;
  z-index: 1;
}

/* The web itself is the loader; no additional circular spinner. */
:where(
  .live-loading-state,
  .future-loading-state,
  .checker-loading,
  .news-loading-state,
  .bp-loading,
  .chart-loading-card
) .live-spinner {
  display: none !important;
}

@keyframes loading-web-breathe {
  0%, 100% { opacity: .48; transform: scale(.9); filter:drop-shadow(0 0 5px rgba(203,195,255,.2)); }
  50% { opacity: .78; transform: scale(1.035); filter:drop-shadow(0 0 13px rgba(79,255,209,.28)); }
}

/* Desktop app pages have a narrow canvas beside the fixed sidebar. Keep the
   spider itself inside that visible strip instead of cropping it off-screen. */
@media (min-width: 901px) {
  .app-body::before {
    background-size: auto 100vh;
    background-position: 230px bottom;
  }
}

/* BUY/SELL artwork stays visible as a contained sticker, clear of the result text. */
.result-console .direction-panel::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: auto !important;
  left: auto !important;
  right: 16px !important;
  bottom: 12px !important;
  width: clamp(112px, 19%, 156px) !important;
  height: auto !important;
  aspect-ratio: 1;
  z-index: 1;
  opacity: .88 !important;
  pointer-events: none;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  transform: none !important;
  filter: drop-shadow(0 10px 22px rgba(var(--dir-rgb), .23)) !important;
}

.result-console .direction-panel.direction-up::after {
  background-image: url("../images/bull.webp") !important;
}

.result-console .direction-panel.direction-down::after {
  background-image: url("../images/bear.webp") !important;
}

.result-console .direction-display {
  padding-right: clamp(118px, 20%, 164px);
}

/* Compact conviction panel shared by Live, Algorithmic and Chart results. */
.result-console .result-hero-band {
  grid-template-columns: minmax(0, 1.55fr) minmax(210px, .45fr);
  min-height: 220px;
}

.result-console,
.result-console-head,
.result-console .result-hero-band,
.result-console .signal-metric-grid,
.result-console .signal-metric-grid article {
  min-width: 0;
  max-width: 100%;
}

.result-console .direction-panel {
  min-height: 220px;
  padding: 24px !important;
  gap: 18px !important;
}

.result-console .direction-copy strong {
  font-size: clamp(48px, 5vw, 72px) !important;
}

.result-console .strength-card {
  min-height: 220px;
  padding: 22px !important;
  gap: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(124, 92, 255, .14), transparent 48%),
    rgba(6, 10, 20, .72) !important;
}

.result-console .strength-readout {
  position: relative;
  overflow: hidden;
  margin: 5px 0 0;
  padding: 14px 15px;
  border: 1px solid rgba(150, 140, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}

.result-console .strength-readout::after {
  content: none !important;
  display: none !important;
}

.result-console .strength-readout strong {
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 2.2vw, 30px) !important;
}

.result-console .strength-track {
  height: 7px !important;
  border-radius: 999px !important;
}

.result-console .strength-fill {
  border-radius: 999px !important;
  box-shadow: 0 0 13px rgba(61, 255, 196, .24) !important;
}

@media (max-width: 760px) {
  .result-console .result-hero-band {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .result-console .direction-panel {
    min-height: 184px;
    padding: 20px !important;
  }

  .result-console .direction-panel::after {
    right: 8px !important;
    bottom: 8px !important;
    width: 92px !important;
    opacity: .9 !important;
  }

  .result-console .direction-display {
    padding-right: 76px;
  }

  .result-console .strength-card {
    min-height: 136px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px !important;
  }

  .result-console .strength-card .result-section-label {
    width: 100%;
  }

  .result-console .strength-readout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 10px 12px;
  }

  .result-console .strength-readout span {
    position: relative;
    z-index: 1;
    max-width: 92px;
    text-align: right;
    line-height: 1.4;
  }

  .result-console .strength-card > div:last-child {
    width: 100%;
    min-width: 0;
  }

  .result-console .strength-readout strong {
    font-size: clamp(20px, 6vw, 27px) !important;
  }
}

@media (max-width: 520px) {
  .result-console {
    width: 100%;
    overflow: hidden;
  }

  .result-console-head {
    min-height: 104px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 16px !important;
  }

  .result-console .result-identity {
    max-width: none;
    min-width: 0;
  }

  .result-console .result-identity h2 {
    max-width: 205px;
    margin: 6px 0 !important;
    overflow: hidden;
    font-size: clamp(25px, 7.4vw, 30px) !important;
    line-height: 1.08;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .result-console .result-state .signal-ready-badge {
    max-width: 96px;
    padding: 6px 7px !important;
    font-size: 6px !important;
    white-space: nowrap;
  }

  .result-console .strength-card {
    padding: 14px 16px !important;
  }

  .result-console .direction-copy strong {
    font-size: 42px !important;
  }

  .result-console .signal-metric-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .result-console .signal-metric-grid article,
  .result-console .signal-metric-grid article:nth-child(2),
  .result-console .signal-metric-grid article:nth-child(4) {
    min-width: 0 !important;
    min-height: 96px !important;
    padding: 12px 38px 18px 12px !important;
  }

  .result-console .signal-metric-grid article strong {
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(14px, 4.4vw, 17px) !important;
    text-overflow: ellipsis;
  }

  .result-console .signal-metric-grid article::before {
    right: 11px;
    width: 13px;
    height: 13px;
  }

  .result-console .signal-metric-grid article > small {
    left: 12px;
    right: 38px;
  }

  .result-console .signal-metric-grid::before,
  .result-console .signal-metric-grid::after {
    width: 28px;
    height: 32px;
    font-size: 7px;
  }
}

/* One consistent full-screen radar loader for every asynchronous analysis. */
.radar-loader {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)) !important;
  overflow: hidden !important;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 23, 82, .26), transparent 28%),
    #02030c !important;
}

.radar-loader[hidden] {
  display: none !important;
}

.radar-loader::before {
  content: "" !important;
  position: absolute !important;
  inset: -52vmax !important;
  z-index: 0 !important;
  width: auto !important;
  height: auto !important;
  pointer-events: none;
  opacity: .58 !important;
  background:
    radial-gradient(circle at center, rgba(145, 91, 255, .65) 0 1.5px, transparent 2px),
    repeating-radial-gradient(circle at center, transparent 0 58px, rgba(125, 96, 237, .17) 59px 61px, transparent 62px 94px) !important;
  filter: drop-shadow(0 0 12px rgba(119, 75, 255, .15)) !important;
  animation: radar-field-pulse 2.8s ease-in-out infinite !important;
}

.radar-loader::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(82vmin, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: .5;
  background: repeating-conic-gradient(from 2deg, rgba(126, 92, 255, .2) 0deg 1deg, transparent 1.2deg 16deg);
  -webkit-mask: radial-gradient(circle, transparent 0 30%, #000 31% 82%, transparent 83%);
  mask: radial-gradient(circle, transparent 0 30%, #000 31% 82%, transparent 83%);
  animation: radar-rays-spin 22s linear infinite;
}

.radar-loader-stage {
  position: relative;
  z-index: 2;
  width: min(clamp(260px, 36vmin, 360px), calc(100vw - 36px), calc(100dvh - 36px));
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 28px 30px;
  border: 1px solid rgba(190, 157, 255, .3);
  border-radius: 50%;
  text-align: center;
  background:
    repeating-radial-gradient(circle, transparent 0 34px, rgba(48, 210, 255, .1) 35px 36px, transparent 37px 55px),
    radial-gradient(circle, rgba(12, 13, 37, .97) 0 58%, rgba(8, 8, 27, .95) 75%, rgba(4, 4, 16, .98) 100%);
  box-shadow:
    inset 0 0 46px rgba(67, 221, 255, .07),
    0 0 0 12px rgba(115, 77, 245, .07),
    0 0 0 38px rgba(115, 77, 245, .045),
    0 0 48px rgba(132, 72, 255, .4);
}

.radar-loader-stage::before,
.radar-loader-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.radar-loader-stage::before {
  inset: -12px;
  padding: 4px;
  background: conic-gradient(from 10deg, #9b5cff 0 18%, transparent 19% 45%, #37d9ff 46% 64%, transparent 65% 78%, #c268ff 79% 96%, transparent 97%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 9px rgba(151, 80, 255, .85));
  animation: radar-ring-spin 3.6s linear infinite;
}

.radar-loader-stage::after {
  inset: 10px;
  border: 1px dashed rgba(194, 168, 255, .35);
  box-shadow: inset 0 0 24px rgba(80, 222, 255, .09);
  animation: radar-ring-spin 9s linear infinite reverse;
}

.radar-loader .live-spinner {
  position: relative;
  z-index: 2;
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  flex: 0 0 42px;
  margin: -8px 0 10px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: center / contain no-repeat url("../images/interaction-spider.svg") !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 9px rgba(109, 255, 224, .36));
  animation: radar-spider-hover 1.7s ease-in-out infinite !important;
}

.radar-loader-stage > strong {
  position: relative;
  z-index: 2;
  margin: 0 !important;
  color: #f7f5ff !important;
  font: 800 clamp(17px, 2.1vmin, 22px)/1.2 "Sora", sans-serif !important;
  letter-spacing: -.04em;
  white-space: nowrap;
  text-shadow: 0 0 16px rgba(167, 139, 250, .28);
}

.radar-loader-stage > span {
  position: relative;
  z-index: 2;
  margin: 7px 0 0 !important;
  color: #8986a6 !important;
  font-size: clamp(9px, 1.35vmin, 12px) !important;
  line-height: 1.35;
  white-space: nowrap;
}

.radar-loader-progress {
  position: relative;
  z-index: 2;
  width: min(205px, 82%);
  display: grid;
  justify-items: center;
  margin-top: 12px;
}

.radar-loader-progress > b {
  color: #bb82ff;
  font: 800 clamp(32px, 5vmin, 42px)/1 "Sora", sans-serif;
  letter-spacing: -.05em;
  text-shadow: 0 0 18px rgba(157, 92, 255, .48);
}

.radar-loader-progress > i {
  width: 100%;
  height: 6px;
  display: block;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(2, 4, 15, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.radar-loader-progress > i > em {
  width: var(--radar-progress, 7%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #753cff, #a95cff 58%, #35d8ff);
  box-shadow: 0 0 12px rgba(75, 213, 255, .52);
  transition: width .16s linear;
}

.radar-loader-progress > small {
  display: flex;
  gap: 4px;
  margin-top: 11px;
}

.radar-loader-progress > small > u {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #985cff;
  box-shadow: 0 0 8px rgba(153, 92, 255, .72);
  animation: radar-dot 1.15s ease-in-out infinite;
}

.radar-loader-progress > small > u:nth-child(2) { animation-delay: .1s; }
.radar-loader-progress > small > u:nth-child(3) { animation-delay: .2s; }
.radar-loader-progress > small > u:nth-child(4) { animation-delay: .3s; }
.radar-loader-progress > small > u:nth-child(5) { animation-delay: .4s; }

@keyframes radar-field-pulse {
  0%, 100% { opacity: .42; transform: scale(.985); }
  50% { opacity: .66; transform: scale(1.015); }
}

@keyframes radar-rays-spin { to { transform: rotate(360deg); } }
@keyframes radar-ring-spin { to { transform: rotate(360deg); } }

@keyframes radar-spider-hover {
  0%, 100% { transform: translateY(2px) scale(.96); }
  50% { transform: translateY(-3px) scale(1.04); }
}

@keyframes radar-dot {
  0%, 100% { opacity: .35; transform: scale(.72); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
  .radar-loader-stage {
    width: min(292px, calc(100vw - 32px), calc(100dvh - 32px));
    padding: 34px 20px 24px;
  }

  .radar-loader::after {
    width: min(118vmin, 720px);
  }
}

@media (max-height: 420px) {
  .radar-loader-stage {
    width: min(240px, calc(100vw - 28px), calc(100dvh - 28px));
    padding: 22px 16px 16px;
  }

  .radar-loader .live-spinner {
    width: 32px !important;
    height: 32px !important;
    flex-basis: 32px;
    margin: -3px 0 5px !important;
  }

  .radar-loader-stage > strong {
    font-size: 14px !important;
  }

  .radar-loader-stage > span {
    margin-top: 4px !important;
    font-size: 8px !important;
  }

  .radar-loader-progress {
    width: min(174px, 82%);
    margin-top: 7px;
  }

  .radar-loader-progress > b {
    font-size: 27px;
  }

  .radar-loader-progress > i {
    margin-top: 6px;
  }

  .radar-loader-progress > small {
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-loader::before,
  .radar-loader::after,
  .radar-loader-stage::before,
  .radar-loader-stage::after,
  .radar-loader .live-spinner,
  .radar-loader-progress > small > u {
    animation-duration: 8s !important;
  }
}

/* Best Pairs: dense ranking rows instead of tall result cards. */
.bp-ranking-list {
  gap: 8px;
}

.bp-ranking-item {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  padding: 10px 11px !important;
  border-color: rgba(148, 163, 184, .13) !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(12, 16, 31, .7), rgba(5, 8, 20, .62)) !important;
}

.bp-rank {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 9px;
}

.bp-rank-title {
  align-items: center;
  gap: 9px;
}

.bp-rank-title > div:first-child {
  gap: 4px;
}

.bp-rank-title strong {
  font-size: 14px;
}

.bp-rank-title span {
  gap: 4px;
}

.bp-rank-title span b,
.bp-rank-title span em {
  padding: 3px 5px;
  font-size: 6px;
  letter-spacing: .045em;
}

.bp-score-box {
  gap: 2px;
}

.bp-score-box strong {
  font-size: 17px;
}

.bp-score-box span {
  font-size: 7px;
}

.bp-score-bar {
  height: 4px;
  margin-top: 7px;
}

.bp-metrics-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px;
  margin-top: 8px;
}

.bp-metrics-row span {
  gap: 2px;
  padding: 5px 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .025);
  border-color: rgba(148, 163, 184, .1);
}

.bp-metrics-row small {
  font-size: 6px;
  letter-spacing: .045em;
}

.bp-metrics-row b {
  font-size: 8px;
}

@media (max-width: 620px) {
  .bp-ranking-list {
    gap: 7px;
  }

  .bp-ranking-item {
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 8px;
    padding: 9px !important;
  }

  .bp-rank {
    width: 27px;
    height: 27px;
    font-size: 8px;
  }

  .bp-rank-title strong {
    font-size: 13px;
  }

  .bp-score-box strong {
    font-size: 15px;
  }

  .bp-metrics-row {
    gap: 4px;
  }

  .bp-metrics-row span {
    padding: 5px 3px;
  }

  .bp-metrics-row small {
    font-size: 5px;
  }

  .bp-metrics-row b {
    font-size: 7px;
  }
}

/* Admin plan filters mirror the compact category switcher used by pair menus. */
.admin-plan-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 17px;
  padding: 8px;
  border: 1px solid rgba(173, 160, 255, .17);
  border-radius: 15px;
  background: rgba(4, 7, 19, .54);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.admin-plan-filter {
  --plan-tone: 125, 132, 158;
  min-width: 0;
  min-height: 43px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #7f86a2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}

.admin-plan-filter i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--plan-tone));
  box-shadow: 0 0 0 3px rgba(var(--plan-tone), .07);
}

.admin-plan-filter span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-plan-filter b {
  min-width: 21px;
  padding: 4px 5px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  color: #aeb4ca;
  font-size: 8px;
  line-height: 1;
  text-align: center;
}

.admin-plan-filter:hover {
  border-color: rgba(var(--plan-tone), .2);
  background: rgba(var(--plan-tone), .06);
  color: #e2e5f1;
}

.admin-plan-filter.active {
  border-color: rgba(var(--plan-tone), .32);
  background: linear-gradient(145deg, rgba(var(--plan-tone), .19), rgba(var(--plan-tone), .055));
  color: #fff;
}

.admin-plan-filter.active i {
  box-shadow: 0 0 10px rgba(var(--plan-tone), .7);
}

.admin-plan-filter.active b {
  background: rgba(var(--plan-tone), .15);
  color: #fff;
}

.admin-plan-filter-free { --plan-tone: 148, 163, 184; }
.admin-plan-filter-basic { --plan-tone: 63, 255, 196; }
.admin-plan-filter-standard { --plan-tone: 91, 140, 255; }
.admin-plan-filter-premium { --plan-tone: 167, 139, 250; }
.admin-plan-filter-admin { --plan-tone: 255, 184, 77; }

@media (max-width: 760px) {
  .admin-plan-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 6px;
    border-radius: 13px;
  }

  .admin-plan-filter {
    min-height: 39px;
    gap: 5px;
    padding: 7px;
    font-size: 7px;
  }

  .admin-plan-filter b {
    min-width: 18px;
    padding-inline: 4px;
    font-size: 7px;
  }
}

/* Translucent application surfaces let the fixed spider web remain present
   without sacrificing contrast around labels and results. */
.sidebar {
  background: linear-gradient(185deg, rgba(9, 10, 26, .86), rgba(5, 6, 16, .9)) !important;
  backdrop-filter: blur(10px) saturate(1.08);
}

.topbar {
  background: rgba(6, 7, 18, .7) !important;
}

.auth-card,
.premium-auth-card,
.premium-single-card,
.welcome-card,
.command-hero,
.feature-card,
.premium-feature-card,
.module-card,
.live-control-card,
.live-result-card,
.future-control-card,
.future-result-card,
.checker-control-card,
.checker-result-card,
.news-control-card,
.news-result-card,
.money-card,
.best-control-card,
.best-result-card,
.bp-control-card,
.bp-result-card,
.chart-upload-card,
.chart-loading-card,
.admin-card {
  background: linear-gradient(155deg, rgba(19, 20, 46, .64), rgba(6, 8, 22, .7)) !important;
  backdrop-filter: blur(7px) saturate(1.06) !important;
}

.live-result-card,
.future-result-card,
.checker-result-card,
.news-result-card,
.best-result-card,
.bp-result-card,
.chart-loading-card {
  background: linear-gradient(155deg, rgba(15, 17, 40, .52), rgba(5, 7, 19, .61)) !important;
  backdrop-filter: blur(2px) saturate(1.04) !important;
}

.result-console-head {
  background: rgba(8, 13, 27, .61) !important;
}

.result-console .result-hero-band {
  background:
    linear-gradient(110deg, rgba(var(--result-accent-rgb), .07), transparent 50%),
    rgba(6, 10, 21, .55) !important;
}

.result-console .strength-card {
  background:
    radial-gradient(circle at 100% 0, rgba(124, 92, 255, .13), transparent 48%),
    rgba(6, 10, 20, .52) !important;
}

.result-ledger {
  background: rgba(5, 8, 18, .52) !important;
}

.result-console .signal-metric-grid article {
  background:
    radial-gradient(circle at 86% 50%, rgba(var(--metric-rgb), .12), transparent 35%),
    linear-gradient(145deg, rgba(var(--metric-rgb), .05), rgba(7, 11, 24, .58) 58%) !important;
  backdrop-filter: blur(2px);
}

.result-console-footer {
  background: rgba(5, 8, 17, .6) !important;
}

:where(.btn, .auth-tab, .market-tab, .bp-filter-tabs button, .admin-plan-filter, .telegram-modal-later).spider-clicked {
  animation: spider-button-pulse .46s cubic-bezier(.2, .8, .2, 1);
}

.web-burst {
  position: absolute;
  left: var(--web-x, 50%);
  top: var(--web-y, 50%);
  width: 92px;
  height: 92px;
  z-index: 8;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-radial-gradient(circle, transparent 0 10px, rgba(255, 255, 255, .85) 11px 12px, transparent 13px 19px),
    repeating-conic-gradient(from 8deg, rgba(255, 255, 255, .92) 0 1.4deg, transparent 1.4deg 30deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 57%, transparent 73%);
  mask-image: radial-gradient(circle, #000 0 57%, transparent 73%);
  transform: translate(-50%, -50%) scale(.12) rotate(-18deg);
  animation: web-burst .58s cubic-bezier(.12, .72, .22, 1) forwards;
}

/* Small interaction spider: follows mouse movement and appears during touch/
   scroll activity without intercepting the page. */
.interaction-spider {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 32px;
  height: 32px;
  pointer-events: none;
  opacity: 0;
  background: center / contain no-repeat url("../images/interaction-spider.svg");
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .6));
  transform: translate3d(var(--spider-x, -50px), var(--spider-y, -50px), 0) translate(-50%, -50%) scale(.72);
  transform-origin: center;
  transition: opacity .14s ease, transform .16s cubic-bezier(.2, .75, .25, 1);
  will-change: transform, opacity;
}

.interaction-spider.is-visible {
  opacity: .94;
  transform: translate3d(var(--spider-x, -50px), var(--spider-y, -50px), 0) translate(-50%, -50%) scale(1);
}

.interaction-spider.is-touch {
  width: 29px;
  height: 29px;
  opacity: .9;
}

@keyframes spider-button-pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  38% { transform: translateY(1px) scale(.965); }
  72% { transform: translateY(-1px) scale(1.018); }
}

@keyframes web-burst {
  0% { opacity: .95; transform: translate(-50%, -50%) scale(.12) rotate(-18deg); }
  70% { opacity: .72; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.18) rotate(8deg); }
}

@media (max-width: 700px) {
  body::before {
    background-size: cover;
    background-position: 42% bottom;
  }

  body::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .64));
  }
}

@media (prefers-reduced-motion: reduce) {
  .spider-clicked,
  .web-burst,
  .live-loading-state::before,
  .future-loading-state::before,
  .checker-loading::before,
  .news-loading-state::before,
  .bp-loading::before,
  .chart-loading-card::before,
  .interaction-spider {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive result geometry for common 1280–1440px desktop widths. The app
   sidebar reduces the usable canvas, so the result column needs its own scale. */
.result-console .result-identity {
  flex: 1 1 auto;
}

.result-console .result-pair-line {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.result-console .result-pair-line h2 {
  min-width: 0;
}

.result-console .result-pair-line .result-pair-flags {
  flex: 0 0 auto;
  justify-content: flex-start;
}

/* Status owns the upper corner; pair identity forms the row underneath. */
.result-console .result-console-head {
  position: relative;
  align-items: flex-start;
}

.result-console .result-state {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 5;
}

.result-console .result-identity {
  width: 100%;
  padding-right: 170px;
}

.result-console .result-pair-line {
  margin-top: 5px;
}

.result-new-signal {
  display: none !important;
}

@media (min-width: 901px) and (max-width: 1450px) {
  .page-content {
    padding-inline: 20px !important;
  }

  .live-signal-layout {
    grid-template-columns: minmax(280px, .62fr) minmax(0, 1.38fr) !important;
    gap: 16px !important;
  }

  .live-control-card {
    padding: 20px !important;
  }

  .live-control-head {
    gap: 12px !important;
  }

  .live-control-head h2 {
    font-size: 20px !important;
  }

  .signal-orb {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
  }

  .result-console-head {
    min-height: 118px !important;
    gap: 16px !important;
    padding: 22px 24px !important;
  }

  .result-console .result-identity h2 {
    margin-block: 7px !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    white-space: nowrap !important;
    font-size: clamp(34px, 3.25vw, 46px) !important;
  }

  .result-console .result-pair-flags {
    min-width: 58px;
  }

  .result-console .pair-flag {
    width: 36px;
    height: 36px;
  }

  .result-console .result-state .signal-ready-badge {
    padding: 7px 9px !important;
    font-size: 7px !important;
  }

  .result-console .result-state small {
    font-size: 7px;
  }

  .result-console .result-hero-band {
    grid-template-columns: minmax(0, 1.2fr) minmax(215px, .8fr) !important;
  }

  .result-console .direction-panel,
  .result-console .strength-card {
    padding: 23px !important;
  }

  .result-console .direction-display {
    gap: 16px;
  }

  .result-console .direction-icon {
    width: 68px !important;
    height: 68px !important;
    flex-basis: 68px !important;
    font-size: 36px !important;
  }

  .result-console .direction-copy strong {
    font-size: clamp(48px, 4.6vw, 64px) !important;
  }
}

/* Minimal shared chrome: balanced empty slot, centered page name, profile. */
.topbar {
  height: 72px !important;
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  column-gap: 12px;
}

.topbar-title {
  grid-column: 2;
  min-width: 0;
  text-align: center;
}

.topbar-title h1 {
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  grid-column: 3;
  justify-self: end;
  gap: 0 !important;
}

.topbar .mobile-menu {
  display: none !important;
}

.topbar .user-chip {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 2px !important;
  border: 1px solid rgba(142, 126, 255, .42);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(124, 92, 255, .14), rgba(6, 10, 23, .76));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28), 0 0 16px rgba(124, 92, 255, .16);
}

.topbar .user-chip .avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

/* Compact mobile chrome: line menu, centered page name, profile. */
@media (max-width: 900px) {
  .topbar {
    height: calc(68px + env(safe-area-inset-top)) !important;
    min-height: calc(68px + env(safe-area-inset-top)) !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    column-gap: 10px !important;
    padding-right: max(12px, env(safe-area-inset-right)) !important;
    padding-left: max(12px, env(safe-area-inset-left)) !important;
  }

  .topbar-title {
    grid-column: 2;
    min-width: 0;
  }

  .topbar-title h1 {
    margin: 0 !important;
    font-size: clamp(17px, 5vw, 20px) !important;
    line-height: 1.1;
  }

  .topbar-actions {
    grid-column: 3;
    gap: 0 !important;
  }

  .topbar .mobile-menu {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    top: auto !important;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid !important;
    place-items: center;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(176, 164, 255, .3);
    border-radius: 13px;
    background:
      radial-gradient(circle at 72% 20%, rgba(79, 255, 209, .13), transparent 36%),
      linear-gradient(145deg, rgba(31, 27, 68, .94), rgba(8, 12, 29, .96));
    box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 9px 25px rgba(0, 0, 0, .3);
    color: #F3F0FF;
  }

  .mobile-menu-lines {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    width: 18px;
  }

  .mobile-menu-lines i {
    width: 14px;
    height: 2px;
    display: block;
    justify-self: start;
    border-radius: 99px;
    background: currentColor;
    box-shadow: 0 0 7px rgba(221, 214, 255, .24);
  }

  .mobile-menu-lines i:nth-child(2) {
    width: 18px;
    background: linear-gradient(90deg, #DCD5FF, #65F5D2);
    box-shadow: 0 0 9px rgba(79, 255, 209, .38);
  }

  .mobile-menu-lines i:nth-child(3) {
    width: 11px;
    justify-self: end;
  }

  .topbar .mobile-menu:active {
    transform: scale(.94);
  }
}

/* Former topbar details now live inside the profile panel. */
.profile-info-grid article:nth-child(2) {
  grid-column: auto !important;
}

.profile-info-grid .profile-info-wide {
  grid-column: 1 / -1 !important;
}

.profile-credit-value {
  color: #65F5D2;
}

.profile-status-online strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8DF6D7;
}

.profile-status-online strong i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4FFFD1;
  box-shadow: 0 0 9px rgba(79, 255, 209, .6);
}

.profile-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.profile-panel-actions .btn {
  width: 100%;
  min-height: 45px;
  margin: 0;
  border-radius: 12px !important;
}

@media (max-width: 620px) {
  .profile-panel-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .app-shell,
  .page-content,
  .live-signal-layout,
  .live-result-card,
  .result-console {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
  }

  .topbar {
    width: 100vw;
    max-width: 100vw;
  }

  .result-console-head {
    min-height: 116px !important;
    display: block !important;
    padding: 15px 16px !important;
    overflow: hidden;
  }

  .result-console .result-identity {
    width: 100%;
    max-width: 100% !important;
    padding-right: 0;
  }

  .result-console .result-identity > .eyebrow {
    display: block;
    max-width: calc(100% - 104px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .result-console .result-pair-line {
    width: 100%;
    gap: 9px;
    margin-top: 12px;
    padding-right: 2px;
  }

  .result-console .result-pair-line h2 {
    flex: 0 1 auto;
    margin: 9px 0 7px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(25px, 7.7vw, 31px) !important;
  }

  .result-console .result-pair-line .result-pair-flags {
    position: static !important;
    min-width: 54px;
    margin-top: 1px;
  }

  .result-console .result-pair-line .pair-flag {
    width: 32px;
    height: 32px;
  }

  .result-console .result-state {
    position: absolute;
    top: 13px;
    right: 15px;
    z-index: 5;
  }

  .result-console .direction-panel::after {
    right: 8px !important;
    width: 88px !important;
    max-width: 27% !important;
  }
}

@media (min-width: 901px) {
  body.signal-focus-mode {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.signal-focus-mode .page-content {
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.signal-focus-mode .market-tabs {
    flex: 0 0 auto;
  }

  .live-signal-layout.is-focus-active {
    flex: 1 1 auto;
    min-height: 0;
  }

  .live-signal-layout.is-focus-active > .live-control-card,
  .live-signal-layout.is-focus-active > .live-result-card {
    height: 100%;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .live-signal-layout.is-focus-active .live-loading-state {
    height: 100%;
    min-height: 0 !important;
  }

  .live-signal-layout.is-focus-active .result-console {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .live-signal-layout.is-focus-active .result-ledger,
  .live-signal-layout.is-focus-active .signal-metric-grid {
    min-height: 0;
    overflow: hidden;
  }

  .live-signal-layout.is-focus-active .signal-metric-grid {
    height: 100%;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .live-signal-layout.is-focus-active .signal-metric-grid article {
    min-height: 0 !important;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  body.signal-focus-mode .market-tabs,
  .live-signal-layout.is-focus-active > .live-control-card {
    display: none !important;
  }

  .live-signal-layout.is-focus-active {
    display: block !important;
  }

  .live-signal-layout.is-focus-active .result-new-signal {
    display: inline-flex !important;
  }

  .live-signal-layout.is-focus-active .live-result-actions {
    display: grid !important;
    grid-template-columns: .78fr 1.22fr;
    gap: 9px;
  }
}

/* Hard viewport lock for mobile browsers: Android may keep scrolling the root
   element even when body overflow is disabled. */
html.signal-focus-mode,
html.signal-focus-mode body,
body.signal-focus-mode .app-shell {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
}

@supports (height: 100dvh) {
  html.signal-focus-mode,
  html.signal-focus-mode body,
  body.signal-focus-mode .app-shell {
    height: 100dvh;
  }
}

/* On desktop the shell already starts after the fixed 252px sidebar. Keeping
   the root-lock width at 100% would add that offset a second time and clip the
   result console beyond the right edge of the viewport. */
@media (min-width: 901px) {
  body.signal-focus-mode .app-shell {
    width: auto !important;
  }

  .live-signal-layout.is-focus-active,
  .live-signal-layout.is-focus-active > .live-control-card,
  .live-signal-layout.is-focus-active > .live-result-card {
    min-width: 0;
    max-width: 100%;
  }

  body.signal-focus-mode .page-content {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .result-console .result-console-head {
    min-height: 118px !important;
    display: block !important;
    overflow: hidden;
  }

  .result-console .result-identity {
    position: static;
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .result-console .result-identity > .eyebrow {
    position: absolute;
    left: 16px;
    top: 16px;
    max-width: calc(100% - 132px);
  }

  .result-console .result-state {
    top: 12px;
    right: 14px;
  }

  .result-console .result-pair-line {
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .result-console .result-pair-line h2 {
    position: absolute;
    left: 16px;
    top: 45px;
    max-width: calc(100% - 118px);
    margin: 0 !important;
    text-align: left;
  }

  .result-console .result-pair-line .result-pair-flags {
    position: absolute !important;
    top: 44px;
    right: 30px;
    margin: 0;
  }

  .result-console .result-meta {
    position: absolute;
    left: 16px;
    bottom: 14px;
  }
}

@media (max-width: 900px) and (max-height: 760px) {
  .topbar {
    height: calc(64px + env(safe-area-inset-top)) !important;
    min-height: calc(64px + env(safe-area-inset-top)) !important;
  }

  body.signal-focus-mode .page-content {
    height: calc(100vh - 64px - env(safe-area-inset-top));
    height: calc(100dvh - 64px - env(safe-area-inset-top));
    padding-block: 7px !important;
  }

  .live-signal-layout.is-focus-active .result-console-head {
    min-height: 108px !important;
  }

  .live-signal-layout.is-focus-active .result-console .direction-panel {
    min-height: 140px !important;
    padding-block: 13px !important;
  }

  .live-signal-layout.is-focus-active .result-console .strength-card {
    min-height: 112px !important;
    padding-block: 11px !important;
  }

  .live-signal-layout.is-focus-active .result-console .direction-icon {
    width: 56px !important;
    height: 56px !important;
    flex-basis: 56px !important;
  }

  .live-signal-layout.is-focus-active .result-console .direction-copy strong {
    font-size: 40px !important;
  }

  .live-signal-layout.is-focus-active .result-console .direction-panel::after {
    width: 78px !important;
  }

  .live-signal-layout.is-focus-active .result-console-footer {
    padding-block: 7px !important;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .live-signal-layout {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
}

/* Result focus mode: on phones/tablets the active loading/result view consumes
   the available dynamic viewport, so the document itself never needs to scroll. */
@media (max-width: 900px) {
  .result-console .result-identity {
    padding-right: 0;
  }

  .result-console .result-identity > .eyebrow {
    display: block;
    max-width: calc(100% - 112px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .result-console .result-pair-line {
    margin-top: 12px;
  }

  body.signal-focus-mode {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.signal-focus-mode .page-content {
    width: 100%;
    height: calc(100vh - 68px - env(safe-area-inset-top));
    height: calc(100dvh - 68px - env(safe-area-inset-top));
    padding: 10px 12px !important;
    overflow: hidden;
  }

  body.signal-focus-mode .market-tabs {
    display: none !important;
  }

  .live-signal-layout.is-focus-active {
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .live-signal-layout.is-focus-active > .live-control-card {
    display: none !important;
  }

  .live-signal-layout.is-focus-active > .live-result-card {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    max-height: 100%;
    overflow: hidden !important;
  }

  .live-signal-layout.is-focus-active .live-loading-state {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
  }

  .live-signal-layout.is-focus-active .result-console {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .live-signal-layout.is-focus-active .result-ledger {
    min-height: 0;
    overflow: hidden;
  }

  .live-signal-layout.is-focus-active .signal-metric-grid {
    height: 100%;
    min-height: 0;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .live-signal-layout.is-focus-active .signal-metric-grid article {
    min-height: 0 !important;
  }

  .live-signal-layout.is-focus-active .result-new-signal {
    display: inline-flex !important;
  }

  .live-signal-layout.is-focus-active .live-result-actions {
    width: 100%;
    display: grid !important;
    grid-template-columns: .78fr 1.22fr !important;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .live-signal-layout.is-focus-active .result-console-footer {
    padding: 9px 12px !important;
  }

  .live-signal-layout.is-focus-active .result-console-footer .btn {
    width: 100%;
    min-height: 40px !important;
    padding: 0 9px !important;
    font-size: 9px !important;
  }
}

@media (max-width: 480px) {
  .live-signal-layout.is-focus-active .result-console-head {
    min-height: clamp(92px, 14dvh, 112px) !important;
  }

  .live-signal-layout.is-focus-active .result-console .direction-panel {
    min-height: clamp(136px, 21dvh, 168px) !important;
    padding-block: clamp(14px, 2.5dvh, 20px) !important;
  }

  .live-signal-layout.is-focus-active .result-console .strength-card {
    min-height: clamp(108px, 17dvh, 142px) !important;
    padding-block: clamp(12px, 2.2dvh, 18px) !important;
  }

  .live-signal-layout.is-focus-active .result-console .signal-metric-grid article {
    padding-block: clamp(9px, 1.7dvh, 14px) !important;
  }

  .live-signal-layout.is-focus-active .result-console .signal-metric-grid article > small {
    display: block;
    bottom: 5px;
    height: 7px;
  }
}

/* News Signal: compact scanner and clean, terminal-like recommendations. */
.news-control-card .news-scan-form {
  margin-top: 20px;
}

.news-result-head {
  align-items: flex-end;
  padding-bottom: 14px;
}

.news-result-head h2 {
  margin-top: 5px;
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.news-result-badge {
  display: flex;
  align-items: center;
  gap: 7px;
}

.news-result-badge span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  color: #707a98;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-result-badge span b {
  color: #e8ebf7;
  font-size: 10px;
  letter-spacing: 0;
}

.news-signal-list {
  gap: 10px;
  margin-top: 14px;
}

.news-signal-item {
  position: relative;
  overflow: hidden;
  padding: 15px 16px 13px 18px;
  border-color: rgba(148, 163, 184, .14) !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, rgba(13, 17, 32, .82), rgba(7, 10, 22, .66)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.news-signal-item::before {
  content: "";
  position: absolute;
  inset: 13px auto 13px 0;
  width: 2px;
  border-radius: 0 3px 3px 0;
  background: #ff667f;
  box-shadow: 0 0 12px rgba(255, 102, 127, .3);
}

.news-signal-item.news-direction-call::before {
  background: #3fffc4;
  box-shadow: 0 0 12px rgba(63, 255, 196, .3);
}

.news-signal-top {
  gap: 12px;
}

.news-signal-identity {
  gap: 4px;
}

.news-signal-identity strong {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  letter-spacing: -.04em;
}

.news-signal-identity span {
  color: #747e9b;
  font-size: 8px;
  letter-spacing: .015em;
}

.news-direction-box {
  min-width: 72px;
  padding: 7px 9px;
  gap: 5px;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: transparent !important;
}

.news-direction-box b {
  font-size: 13px;
}

.news-direction-box span {
  font-size: 9px;
  letter-spacing: .08em;
}

.news-release-names {
  display: -webkit-box;
  overflow: hidden;
  margin: 11px 0 0;
  color: #d9deec;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-strength-row {
  margin-top: 11px;
}

.news-strength-row > div:first-child {
  margin-bottom: 6px;
}

.news-strength-label,
.news-strength-row strong {
  font-size: 8px;
  letter-spacing: .08em;
}

.news-strength-bar {
  height: 4px;
}

.news-tag-row {
  gap: 5px;
  margin-top: 10px;
}

.news-tag-row span {
  padding: 4px 7px;
  border-color: rgba(157, 140, 255, .18);
  border-radius: 7px;
  background: rgba(157, 140, 255, .07);
  color: #a9a1d8;
  font-size: 7px;
  letter-spacing: .06em;
}

@media (max-width: 620px) {
  .news-control-card .news-scan-form {
    margin-top: 16px;
  }

  .news-result-card {
    padding: 16px !important;
  }

  .news-result-head {
    align-items: center;
    gap: 8px;
  }

  .news-result-head h2 {
    font-size: 20px;
    white-space: nowrap;
  }

  .news-result-badge {
    gap: 8px;
  }

  .news-result-badge span {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .news-signal-item {
    padding: 14px 13px 12px 16px;
  }

  .news-signal-item:hover {
    transform: none !important;
  }
}

@media (max-width: 380px) {
  .news-result-head h2 {
    font-size: 19px;
  }

  .news-result-badge {
    gap: 6px;
  }

  .news-result-badge span {
    font-size: 6px;
  }

  .news-result-badge span b {
    font-size: 9px;
  }
}

/* Reference-inspired economic analysis card. */
.news-signal-item.news-analysis-card {
  --news-tone: 63, 255, 196;
  --news-tone-color: #3fffc4;
  padding: 22px !important;
  border: 1px solid rgba(137, 128, 207, .3) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 100% 0, rgba(85, 80, 210, .12), transparent 38%),
    linear-gradient(155deg, rgba(20, 25, 47, .74), rgba(8, 11, 27, .77)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 18px 42px rgba(0, 0, 0, .24) !important;
  backdrop-filter: blur(3px) saturate(1.04);
}

.news-signal-item.news-analysis-card.news-direction-put {
  --news-tone: 255, 86, 112;
  --news-tone-color: #ff667f;
}

.news-signal-item.news-analysis-card::before {
  content: none !important;
  display: none !important;
}

.news-analysis-event-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.news-currency-flag {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  background: #151a2e;
  color: #d9dded;
  font-size: 8px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .28);
}

.news-currency-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-analysis-event-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.news-analysis-event-copy > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-analysis-event-copy strong {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  letter-spacing: -.035em;
}

.news-analysis-event-copy small {
  color: #79819d;
  font-size: 8px;
  font-weight: 750;
}

.news-impact-badge {
  padding: 4px 7px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 999px;
  color: #a7aec3;
  background: rgba(148, 163, 184, .07);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.news-impact-high {
  border-color: rgba(255, 70, 112, .27);
  background: rgba(255, 70, 112, .1);
  color: #ff6588;
}

.news-impact-medium {
  border-color: rgba(255, 190, 77, .25);
  background: rgba(255, 190, 77, .09);
  color: #ffc45d;
}

.news-analysis-title {
  margin: 17px 0 0;
  color: #f7f8ff;
  font-family: 'Sora', sans-serif;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.24;
  letter-spacing: -.045em;
}

.news-analysis-target {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: #6f7897;
  font-size: 8px;
  font-weight: 750;
}

.news-analysis-target i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20bfff;
  box-shadow: 0 0 8px rgba(32, 191, 255, .5);
}

.news-analysis-target strong {
  color: #48a9ff;
  font-size: 9px;
}

.news-analysis-target b {
  margin-left: auto;
  color: var(--news-tone-color);
  font-size: 8px;
  letter-spacing: .08em;
}

.news-analysis-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.news-analysis-figures > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(133, 143, 179, .15);
  border-radius: 14px;
  background: rgba(3, 7, 19, .3);
}

.news-analysis-figures > div > i {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(23, 169, 255, .11);
  color: #25baff;
  font-size: 12px;
  font-style: normal;
}

.news-analysis-figures > div > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.news-analysis-figures small {
  color: #6f7895;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.news-analysis-figures strong {
  overflow: hidden;
  color: #f4f6ff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-analysis-bias {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(var(--news-tone), .24);
  border-radius: 17px;
  background:
    radial-gradient(circle at 12% 50%, rgba(var(--news-tone), .13), transparent 35%),
    rgba(3, 15, 15, .43);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 0 24px rgba(var(--news-tone), .06);
}

.news-analysis-bias > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--news-tone), .55);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(var(--news-tone), .82), rgba(var(--news-tone), .27));
  color: #fff;
  font: 900 25px 'Sora', sans-serif;
  box-shadow: 0 0 20px rgba(var(--news-tone), .3), inset 0 1px rgba(255, 255, 255, .3);
}

.news-analysis-bias > div {
  display: grid;
  gap: 2px;
}

.news-analysis-bias small {
  color: #8890a9;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.news-analysis-bias strong {
  color: var(--news-tone-color);
  font: 900 25px/1 'Sora', sans-serif;
  letter-spacing: -.04em;
}

.news-analysis-bias b {
  margin-top: 3px;
  color: var(--news-tone-color);
  font-size: 9px;
}

.news-analysis-logic {
  margin-top: 13px;
  padding: 14px 15px;
  border: 1px solid rgba(133, 143, 179, .17);
  border-radius: 15px;
  background: rgba(3, 7, 19, .25);
}

.news-analysis-logic > span {
  color: #7c88aa;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.news-analysis-logic p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: #cbd1df;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.news-confirmation-strip {
  width: 100%;
  min-height: 43px;
  margin-top: 14px;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid rgba(69, 197, 255, .35);
  border-radius: 12px;
  background: linear-gradient(100deg, #136be8, #06b9f2) !important;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 139, 255, .2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .065em;
}

.news-confirmation-strip b {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 620px) {
  .news-signal-item.news-analysis-card {
    padding: 17px !important;
    border-radius: 19px !important;
  }

  .news-currency-flag {
    width: 38px;
    height: 38px;
  }

  .news-analysis-title {
    margin-top: 15px;
    font-size: 18px;
  }

  .news-analysis-figures {
    margin-top: 15px;
    gap: 8px;
  }

  .news-analysis-figures > div {
    gap: 8px;
    padding: 11px;
  }

  .news-analysis-figures > div > i {
    width: 27px;
    height: 27px;
  }

  .news-analysis-bias {
    grid-template-columns: 51px minmax(0, 1fr);
    gap: 11px;
    padding: 13px;
  }

  .news-analysis-bias > span {
    width: 47px;
    height: 47px;
    border-radius: 13px;
    font-size: 22px;
  }

  .news-analysis-logic {
    padding: 13px;
  }

  .news-confirmation-strip {
    min-height: 42px;
    padding-inline: 13px;
    font-size: 7px;
  }
}

/* Keep the metric glyph centered inside its circle on phones. Desktop uses
   the roomier original geometry. */
@media (max-width: 520px) {
  .result-console .signal-metric-grid article,
  .result-console .signal-metric-grid article:nth-child(2),
  .result-console .signal-metric-grid article:nth-child(4) {
    padding-right: 48px !important;
  }

  .result-console .signal-metric-grid article::after {
    top: 50% !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    transform: translateY(-50%) !important;
  }

  .result-console .signal-metric-grid article::before {
    top: 50% !important;
    right: 19px !important;
    width: 14px !important;
    height: 14px !important;
  }

  .result-console .signal-metric-grid article[data-trend-icon="flat"]::before,
  .result-console .signal-metric-grid article:has(.trend-sideways)::before {
    height: 3px !important;
  }
}
