:root {
  --navy: #111b43;
  --navy-2: #24356e;
  --blue: #3158c9;
  --cyan: #46b7c8;
  --gold: #eead35;
  --gold-2: #ee7f22;
  --ink: #1a2438;
  --muted: #6d7788;
  --line: #e4eaf1;
  --bg: #f7f8f4;
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 52px rgba(35, 44, 77, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --mx: 50%;
  --my: 18%;
  position: relative;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 6%, rgba(238, 173, 53, 0.16), transparent 30%),
    radial-gradient(circle at 84% 0%, rgba(49, 88, 201, 0.12), transparent 26%),
    linear-gradient(180deg, #fbfbf7 0%, #f4f7f8 46%, #faf9f3 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(238, 173, 53, 0.22), transparent 24%),
    radial-gradient(circle at calc(100% - var(--mx)) calc(var(--my) + 18%), rgba(70, 183, 200, 0.18), transparent 28%),
    linear-gradient(115deg, transparent 16%, rgba(255, 255, 255, 0.5) 34%, transparent 52%);
  filter: blur(36px);
  opacity: 0.72;
  animation: backgroundFlow 15s ease-in-out infinite alternate;
}

body::after {
  z-index: 0;
  background:
    linear-gradient(105deg, transparent 0 28%, rgba(238, 173, 53, 0.09) 38%, transparent 50% 100%),
    linear-gradient(75deg, transparent 0 46%, rgba(49, 88, 201, 0.08) 55%, transparent 68% 100%);
  mix-blend-mode: multiply;
  opacity: 0.56;
  transform: translateX(-12%);
  animation: lightSweep 18s linear infinite;
}

@keyframes backgroundFlow {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.05); }
}

@keyframes lightSweep {
  to { transform: translateX(12%); }
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.auth-view,
.client-view {
  min-height: 100vh;
  padding: 34px;
}

.auth-view {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px;
}

.auth-card img {
  width: 168px;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 16px 24px rgba(17, 27, 67, 0.14));
}

.auth-card > span,
.client-header span {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card h1,
.client-header h1 {
  margin: 10px 0 12px;
  color: var(--navy);
  font-size: 34px;
}

.auth-card p,
.client-header p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form,
.client-form {
  display: grid;
  gap: 14px;
}

.auth-form label,
.client-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form input,
.client-form input,
.client-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-form input:focus,
.client-form input:focus,
.client-form textarea:focus {
  border-color: rgba(238, 173, 53, 0.72);
  box-shadow: 0 0 0 4px rgba(238, 173, 53, 0.12);
}

.auth-form button,
.client-form button,
.client-header button,
.client-actions button,
#refreshClients,
#backToClients {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-form button:hover,
.client-form button:hover,
.client-header button:hover,
.client-actions button:hover,
#refreshClients:hover,
#backToClients:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(238, 127, 34, 0.16);
}

.auth-form em,
.client-form em {
  min-height: 18px;
  color: #b54708;
  font-size: 12px;
  font-style: normal;
}

.client-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.client-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 26px 28px;
}

.client-header img {
  width: 150px;
  display: block;
  margin-bottom: 10px;
}

.client-header button,
#refreshClients {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(238, 173, 53, 0.24);
}

.client-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.client-header .ghost-action {
  color: #667085;
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(204, 212, 224, 0.72);
  box-shadow: none;
}

.client-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 22px;
}

.client-form-panel,
.client-list-panel {
  padding: 24px;
}

.client-form-panel {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}

.optional-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions button[type="button"] {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(204, 212, 224, 0.9);
}

.client-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.client-empty,
.client-item {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.client-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.client-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(35, 44, 77, 0.08);
}

.client-item strong,
.client-item span,
.client-item small {
  display: block;
}

.client-item strong {
  color: var(--navy);
  font-size: 19px;
}

.client-item span {
  margin-top: 6px;
  color: #40506a;
}

.client-item small {
  margin-top: 6px;
  color: var(--muted);
}

.client-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.client-actions button {
  min-height: 34px;
  color: var(--navy);
  background: rgba(49, 88, 201, 0.08);
}

.client-actions button:first-child {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
}

.client-actions button:last-child {
  color: #b42318;
  background: rgba(244, 63, 94, 0.08);
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  color: #172033;
  background:
    linear-gradient(160deg, rgba(238, 173, 53, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(245, 248, 250, 0.86) 58%, rgba(232, 237, 246, 0.9) 100%);
  border-right: 1px solid rgba(204, 212, 224, 0.66);
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px 25px;
  height: 260px;
  background: radial-gradient(circle, rgba(49, 88, 201, 0.14), transparent 66%);
  pointer-events: none;
}

.brand {
  position: relative;
  display: flex;
  gap: 0;
  align-items: center;
  min-height: 76px;
  z-index: 1;
}

.brand-mark {
  display: grid;
  place-items: center start;
  width: 168px;
  height: 74px;
  overflow: visible;
}

.brand img {
  width: 158px;
  max-width: none;
  filter: drop-shadow(0 10px 18px rgba(17, 27, 67, 0.14));
}

.brand > span:last-child {
  display: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  letter-spacing: 0;
}

.brand small {
  margin-top: 4px;
  color: #707a8d;
  font-size: 12px;
}

.nav {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 36px;
  z-index: 1;
}

.nav a {
  position: relative;
  padding: 13px 14px;
  border-radius: 8px;
  color: #5e697c;
  font-size: 14px;
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  transform: translateX(-110%);
  transition: transform 0.42s ease;
}

.nav a:hover,
.nav a.active {
  color: #162044;
  background: linear-gradient(135deg, rgba(238, 173, 53, 0.2), rgba(49, 88, 201, 0.08));
}

.nav a:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 26px rgba(35, 44, 77, 0.08);
}

.nav a:hover::after {
  transform: translateX(110%);
}

.sidebar-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(210, 217, 228, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  z-index: 1;
}

.sidebar-card span,
.sidebar-card small {
  display: block;
  color: #707a8d;
  font-size: 12px;
}

.sidebar-card strong {
  display: block;
  margin: 8px 0;
  font-size: 22px;
}

.sidebar-card button {
  width: 100%;
  margin-top: 14px;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.panel {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(238, 173, 53, 0.16), transparent 25%),
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, 0.32), transparent 55% 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.panel:hover {
  transform: translateY(-3px);
  border-color: rgba(238, 173, 53, 0.28);
  box-shadow: 0 22px 62px rgba(35, 44, 77, 0.13);
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  min-height: 330px;
  padding: 34px 38px;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 16%, rgba(49, 88, 201, 0.18), transparent 34%),
    radial-gradient(circle at 8% 18%, rgba(238, 173, 53, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 246, 249, 0.82));
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(49, 88, 201, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 88, 201, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18), #000 62%, rgba(0, 0, 0, 0.28));
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -150px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 27, 67, 0.08), transparent 68%);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.topline {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(49, 88, 201, 0.14);
  border-radius: 999px;
  color: #566176;
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(245, 163, 0, 0.18);
}

.hero h1 {
  margin: 34px 0 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.hero h1 small {
  display: block;
  margin-top: 14px;
  color: #667085;
  font-size: 18px;
  font-weight: 600;
}

.hero p {
  margin: 0;
  color: #3f4a5f;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-meta span {
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: #667085;
  font-size: 13px;
}

.hero-meta b {
  color: #172033;
}

.hero-platforms {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-platform {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 0;
  color: #3f4a5f;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  animation: orbitFloat 4.8s ease-in-out infinite;
  animation-delay: var(--delay);
  transition: filter 0.18s ease, scale 0.18s ease;
}

.hero-platform:hover,
.hero-platform.is-hovered {
  filter: saturate(1.12) drop-shadow(0 16px 20px rgba(35, 44, 77, 0.18));
  scale: 1.16;
}

.hero-platform i {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
}

.hero-platform img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(35, 44, 77, 0.16));
}

.hero-platform .custom-logo {
  width: 44px;
  height: 44px;
  overflow: visible;
  filter: drop-shadow(0 10px 12px rgba(35, 44, 77, 0.16));
}

.hero-platform b {
  display: none;
}

@keyframes orbitFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 286px;
}

.hero-visual > img {
  position: absolute;
  top: 14px;
  right: -12px;
  width: 240px;
  opacity: 0.1;
  filter: drop-shadow(0 20px 35px rgba(17, 27, 67, 0.16));
}

.radar {
  position: relative;
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(49, 88, 201, 0.16);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(49, 88, 201, 0.06));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 18px 44px rgba(35, 44, 77, 0.08);
  z-index: 1;
}

.radar span {
  position: absolute;
  border: 1px solid rgba(245, 163, 0, 0.32);
  border-radius: 50%;
}

.radar span:nth-child(1) { inset: 26px; }
.radar span:nth-child(2) { inset: 54px; }
.radar span:nth-child(3) { inset: 82px; }

.radar b {
  color: #172033;
  font-size: 34px;
  letter-spacing: 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.metric-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  min-height: 138px;
  padding: 20px;
  transform-style: preserve-3d;
}

.metric-card:hover i {
  transform: translateY(-3px) rotate(-4deg) scale(1.06);
  box-shadow: 0 16px 28px rgba(35, 44, 77, 0.14);
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
}

.metric-card span {
  font-size: 14px;
}

.metric-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 32px;
  line-height: 1;
}

.metric-card small {
  font-size: 12px;
}

.metric-card em {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #167647;
  background: #ecfdf3;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.metric-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.metric-card svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tone-blue i { background: linear-gradient(135deg, #2f70ff, #36c5dc); }
.tone-gold i { background: linear-gradient(135deg, var(--gold), var(--gold-2)); }
.tone-violet i { background: linear-gradient(135deg, #7c6cf2, #3e58d8); }
.tone-rose i { background: linear-gradient(135deg, #ff7784, #ffb199); }
.tone-teal i { background: linear-gradient(135deg, #24b894, #46b7c8); }

.charts-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.growth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.ecosystem-card,
.term-card,
.trend-panel {
  padding: 24px;
}

.ecosystem-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.96fr) minmax(260px, 1.04fr) minmax(190px, 0.96fr);
  gap: 28px;
  align-items: center;
  min-height: 326px;
  margin-top: 22px;
}

.ecosystem-map::before {
  content: "";
  position: absolute;
  inset: 34px 18%;
  background:
    linear-gradient(90deg, transparent 0 4%, rgba(49, 88, 201, 0.18) 10%, transparent 33% 67%, rgba(238, 173, 53, 0.18) 90%, transparent 96% 100%),
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(49, 88, 201, 0.08) 38px, transparent 40px);
  mask-image: linear-gradient(90deg, transparent, #000 15% 85%, transparent);
  pointer-events: none;
}

.eco-column {
  display: grid;
  gap: 11px;
  position: relative;
  z-index: 2;
}

.eco-node {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(155, 171, 197, 0.32);
  border-radius: 8px;
  color: #40506a;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.72)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 26px rgba(35, 44, 77, 0.05);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.eco-node::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(238, 173, 53, 0.05), rgba(49, 88, 201, 0.28));
}

.eco-column-left .eco-node::before {
  left: calc(100% + 2px);
}

.eco-column-right .eco-node::before {
  right: calc(100% + 2px);
  transform: rotate(180deg);
}

.eco-node:hover,
.eco-node.is-hovered {
  transform: translateY(-3px) scale(1.012);
  border-color: rgba(238, 173, 53, 0.5);
  box-shadow: 0 12px 26px rgba(35, 44, 77, 0.08);
}

.eco-node span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--gold));
}

.eco-node .eco-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: transparent;
  animation: logoBreath 4.8s ease-in-out infinite;
  animation-delay: calc(var(--lane, 0) * -0.42s);
}

.eco-node .eco-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(35, 44, 77, 0.14));
}

.eco-node .eco-logo .custom-logo {
  width: 32px;
  height: 32px;
  overflow: visible;
  filter: drop-shadow(0 8px 10px rgba(35, 44, 77, 0.14));
}

.eco-node b,
.eco-node em {
  font-size: 13px;
}

.eco-node em {
  color: #172033;
  font-style: normal;
  font-weight: 800;
}

.eco-node.search-side span {
  background: transparent;
}

.eco-core {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 262px;
  padding: 28px 22px;
  border: 1px solid rgba(49, 88, 201, 0.12);
  border-radius: 8px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 18%, rgba(238, 173, 53, 0.34), transparent 30%),
    radial-gradient(circle at 78% 28%, rgba(70, 183, 200, 0.28), transparent 34%),
    radial-gradient(circle at 46% 74%, rgba(141, 120, 223, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(14, 25, 65, 0.96), rgba(37, 72, 135, 0.92));
  box-shadow: 0 22px 48px rgba(28, 45, 89, 0.2);
  overflow: hidden;
}

.eco-core::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, 0.08),
    0 0 0 36px rgba(255, 255, 255, 0.025);
}

.eco-core::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(238, 173, 53, 0.22), rgba(70, 183, 200, 0.18), transparent 42%);
  animation: coreLightSpin 8s linear infinite;
  opacity: 0.9;
}

.eco-core img {
  position: absolute;
  width: 226px;
  opacity: 0.14;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.22));
}

.eco-core strong,
.eco-core small {
  position: relative;
  z-index: 2;
}

.eco-core strong {
  max-width: 240px;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

.eco-core small {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.flow-infinity {
  position: relative;
  z-index: 2;
  width: 210px;
  height: 96px;
  margin-bottom: 14px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
  overflow: visible;
}

.flow-shadow,
.flow-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-shadow {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 24;
}

.flow-path {
  stroke: url(#flowGradient);
  stroke-width: 12;
  stroke-dasharray: 92 44;
  filter: url(#flowGlow);
  animation: infinityDash 4.2s linear infinite, infinityGlow 3.4s ease-in-out infinite alternate;
}

@keyframes infinityGlow {
  from { opacity: 0.76; }
  to { opacity: 1; }
}

@keyframes infinityDash {
  to { stroke-dashoffset: -272; }
}

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

@keyframes logoBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.05); }
}

.term-cloud {
  position: relative;
  min-height: 360px;
  margin-top: 22px;
  overflow: hidden;
  perspective: 900px;
  background:
    radial-gradient(circle at 18% 78%, rgba(238, 173, 53, 0.13), transparent 18%),
    radial-gradient(circle at 50% 82%, rgba(238, 173, 53, 0.16), transparent 20%),
    radial-gradient(circle at 82% 76%, rgba(70, 183, 200, 0.13), transparent 20%),
    radial-gradient(circle at 50% 42%, rgba(70, 183, 200, 0.08), transparent 24%),
    radial-gradient(circle at 32% 52%, rgba(238, 173, 53, 0.09), transparent 28%),
    radial-gradient(circle at 74% 38%, rgba(70, 183, 200, 0.12), transparent 30%);
}

.term-cloud::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(49, 88, 201, 0.08);
  border-radius: 999px;
  opacity: 0.72;
  transform: rotate(-5deg);
}

.term-cloud::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: min(760px, 88%);
  height: 122px;
  border: 1px solid rgba(238, 173, 53, 0.1);
  border-radius: 999px;
  opacity: 0.8;
  transform: translateX(-50%) rotate(2deg);
  box-shadow: 0 0 42px rgba(238, 173, 53, 0.08);
}

.term-bubble {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  min-height: 44px;
  max-width: min(360px, 72vw);
  border: 1px solid rgba(238, 173, 53, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  color: #152044;
  background:
    linear-gradient(135deg, rgba(238, 173, 53, 0.18), rgba(49, 88, 201, 0.06)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(35, 44, 77, 0.07);
  cursor: pointer;
  font-size: var(--size);
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) translate(0, 34px) scale(0.34);
  transform-origin: center;
  filter: blur(12px);
  animation: termFountain 8.6s cubic-bezier(0.17, 0.84, 0.31, 1) infinite;
  animation-delay: var(--delay);
  transition: box-shadow 0.18s ease;
  will-change: transform, opacity, filter;
}

.term-bubble:hover,
.term-bubble.is-hovered {
  animation-play-state: paused;
  box-shadow: 0 16px 34px rgba(35, 44, 77, 0.12);
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%) translate(calc(var(--dx) * 0.62), calc(var(--dy) * 0.62)) scale(1.18);
}

@keyframes termFountain {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translate(-50%, -50%) translate(0, 42px) scale(0.26);
  }
  12% {
    opacity: 0.26;
    filter: blur(9px);
    transform: translate(-50%, -50%) translate(calc(var(--dx) * 0.12), calc(var(--dy) * 0.12 + 28px)) scale(0.46);
  }
  28% {
    opacity: 0.92;
    filter: blur(1.5px);
    transform: translate(-50%, -50%) translate(calc(var(--dx) * 0.36), calc(var(--dy) * 0.36 + 8px)) scale(0.86);
  }
  46% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) translate(calc(var(--dx) * 0.68), calc(var(--dy) * 0.68)) scale(1.14);
  }
  68% {
    opacity: 0.68;
    filter: blur(0.8px);
    transform: translate(-50%, -50%) translate(calc(var(--dx) * 0.92), calc(var(--dy) * 0.92 - 6px)) scale(1.28);
  }
  86% {
    opacity: 0.18;
    filter: blur(3px);
    transform: translate(-50%, -50%) translate(calc(var(--dx) * 1.08), calc(var(--dy) * 1.08 - 14px)) scale(1.38);
  }
  100% {
    opacity: 0;
    filter: blur(5px);
    transform: translate(-50%, -50%) translate(calc(var(--dx) * 1.16), calc(var(--dy) * 1.16 - 22px)) scale(1.48);
  }
}

.trend-panel {
  margin-top: 22px;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.trend-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #5e697c;
  font-size: 12px;
}

.trend-legend i {
  width: 18px;
  height: 8px;
  border-radius: 999px;
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(70px, 1fr));
  gap: 18px;
  min-height: 300px;
  margin-top: 28px;
  padding: 10px 8px 0;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(#eef2f7 1px, transparent 1px);
  background-size: 100% 52px;
}

.trend-day {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  min-width: 0;
  text-align: center;
}

.trend-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  height: 250px;
}

.trend-bars span {
  width: 12px;
  border-radius: 6px 6px 0 0;
  background: var(--bar);
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.trend-bars span:hover,
.trend-bars span.is-hovered {
  transform: translateY(-5px);
  filter: saturate(1.12);
}

.trend-day small {
  color: #667085;
  font-size: 12px;
}

.chart-card {
  min-width: 0;
  min-height: 460px;
  padding: 24px;
}

.chart-card:hover .section-title span,
.ecosystem-card:hover .section-title span,
.term-card:hover .section-title span,
.trend-panel:hover .section-title span,
.keyword-panel:hover .section-title span {
  text-shadow: 0 0 18px rgba(238, 173, 53, 0.28);
}

.section-title span {
  display: inline-flex;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 8px 0 0;
  font-size: 22px;
}

.section-title.inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.donut-wrap {
  display: grid;
  gap: 22px;
  place-items: center;
  margin-top: 24px;
}

.donut-chart {
  width: min(300px, 100%);
}

.donut-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.donut-chart circle {
  transition: 0.45s ease;
}

.donut-segment {
  cursor: pointer;
  outline: none;
  transition: stroke-dasharray 0.95s cubic-bezier(0.2, 0.8, 0.2, 1), stroke-width 0.45s ease, filter 0.45s ease;
}

.donut-segment:hover,
.donut-segment.is-hovered {
  stroke-width: 34;
  filter: drop-shadow(0 8px 14px rgba(28, 38, 70, 0.18));
}

.donut-chart text:first-of-type {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.donut-chart text:last-of-type {
  fill: var(--ink);
  font-size: 25px;
  font-weight: 900;
}

.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  width: 100%;
}

.legend-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 6px 7px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.legend-item:hover,
.legend-item.is-hovered {
  background: rgba(238, 173, 53, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(35, 44, 77, 0.06);
}

.legend-item span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}

.legend-item b {
  color: #344054;
  font-weight: 700;
}

.legend-item em {
  font-style: normal;
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 560px;
}

.platform-pills span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #4b5565;
  font-size: 12px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.platform-pills span:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 10px 20px rgba(35, 44, 77, 0.08);
}

.platform-pills i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(46px, 1fr));
  gap: 16px;
  align-items: end;
  min-height: 330px;
  margin-top: 36px;
  padding: 10px 8px 0;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(#eef2f7 1px, transparent 1px);
  background-size: 100% 54px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.bar-item {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  height: 330px;
  min-width: 0;
  text-align: center;
}

.bar-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}

.bar-track span {
  position: relative;
  display: block;
  width: min(64px, 76%);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bar), #fff 16%), var(--bar));
  box-shadow: 0 14px 26px color-mix(in srgb, var(--bar), transparent 72%);
  transform: scaleY(0);
  transform-origin: bottom;
  opacity: 0;
  cursor: pointer;
  transition: transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.42s ease, filter 0.22s ease, box-shadow 0.22s ease;
}

.bar-chart.is-visible .bar-track span {
  transform: scaleY(1);
  opacity: 1;
}

.bar-chart.is-visible .bar-item:nth-child(2) .bar-track span { transition-delay: 0.05s; }
.bar-chart.is-visible .bar-item:nth-child(3) .bar-track span { transition-delay: 0.1s; }
.bar-chart.is-visible .bar-item:nth-child(4) .bar-track span { transition-delay: 0.15s; }
.bar-chart.is-visible .bar-item:nth-child(5) .bar-track span { transition-delay: 0.2s; }
.bar-chart.is-visible .bar-item:nth-child(6) .bar-track span { transition-delay: 0.25s; }
.bar-chart.is-visible .bar-item:nth-child(7) .bar-track span { transition-delay: 0.3s; }
.bar-chart.is-visible .bar-item:nth-child(8) .bar-track span { transition-delay: 0.35s; }
.bar-chart.is-visible .bar-item:nth-child(9) .bar-track span { transition-delay: 0.4s; }
.bar-chart.is-visible .bar-item:nth-child(10) .bar-track span { transition-delay: 0.45s; }
.bar-chart.is-visible .bar-item:nth-child(11) .bar-track span { transition-delay: 0.5s; }

.bar-track span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 42%);
  opacity: 0;
  transform: translateY(20%);
}

.bar-chart.is-visible .bar-track span::after {
  animation: chartSheen 1.15s ease both;
}

.bar-track span:hover,
.bar-track span.is-hovered {
  transform: scaleY(1) translateY(-8px);
  filter: saturate(1.08);
  box-shadow: 0 20px 32px color-mix(in srgb, var(--bar), transparent 62%);
}

@keyframes chartSheen {
  0% { opacity: 0; transform: translateY(34%); }
  35% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-28%); }
}

.bar-track b {
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  color: #344054;
  font-size: 12px;
}

.bar-item small {
  color: #59657a;
  font-size: 12px;
  white-space: nowrap;
}

.keyword-panel {
  min-width: 0;
  margin-top: 22px;
  padding: 24px;
}

.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.report-tabs button {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: #4b5565;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  overflow: hidden;
  transition: 0.18s ease;
}

.report-tabs button::after,
.filters button::after,
.evidence-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  transform: translateX(-120%);
  transition: transform 0.38s ease;
}

.report-tabs button span {
  color: #8a93a3;
  font-size: 12px;
}

.report-tabs button.active,
.report-tabs button:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(49, 88, 201, 0.18);
}

.report-tabs button:hover::after,
.filters button:hover::after,
.evidence-btn:hover::after {
  transform: translateX(120%);
}

.report-tabs button.active span,
.report-tabs button:hover span {
  color: rgba(255, 255, 255, 0.72);
}

.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(238, 173, 53, 0.22);
  border-radius: 8px;
  color: #7a5b1b;
  background: rgba(238, 173, 53, 0.1);
  font-size: 13px;
  line-height: 1.6;
}

.notice strong {
  color: #a56010;
  white-space: nowrap;
}

.table-head {
  align-items: center;
}

.search {
  display: grid;
  gap: 8px;
  min-width: 280px;
}

.search span {
  color: var(--muted);
  font-size: 12px;
}

.search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  outline: none;
  color: var(--ink);
  background: #fff;
}

.search input:focus {
  border-color: rgba(245, 163, 0, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 163, 0, 0.12);
}

.filters {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.filters div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filters span {
  width: 42px;
  color: var(--muted);
  font-size: 13px;
}

.filters button {
  position: relative;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: #4b5565;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: 0.18s ease;
}

.filters button:hover,
.filters button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(238, 127, 34, 0.16);
}

.table-wrap {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

th,
td {
  padding: 17px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

th {
  color: #667085;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

td {
  color: #475467;
  transition: background 0.18s ease, color 0.18s ease;
}

tbody tr {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

tbody tr:hover {
  transform: translateX(3px);
  box-shadow: inset 3px 0 0 rgba(238, 173, 53, 0.7);
}

tbody tr:hover td {
  background: rgba(238, 173, 53, 0.045);
}

td strong {
  color: #1d2939;
}

.platform-tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.platform-tag {
  color: var(--tag);
  background: color-mix(in srgb, var(--tag), #fff 88%);
}

.status.ok {
  color: #067647;
  background: #ecfdf3;
}

.status.warn {
  color: #b54708;
  background: #fffaeb;
}

.evidence-btn {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: #2355c4;
  background: rgba(49, 88, 201, 0.08);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.evidence-btn:hover {
  transform: translateY(-2px);
  background: rgba(49, 88, 201, 0.12);
  box-shadow: 0 10px 20px rgba(49, 88, 201, 0.12);
}

.empty {
  text-align: center;
  color: var(--muted);
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
  margin: 22px 0 12px;
}

.insight-card {
  padding: 24px;
}

.insight-card:hover h2,
.insight-card:hover h3 {
  color: var(--navy);
}

.insight-card.primary:hover h2 {
  color: #fff;
  text-shadow: 0 0 24px rgba(238, 173, 53, 0.22);
}

.insight-card span {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.insight-card h2,
.insight-card h3 {
  margin: 10px 0 12px;
}

.insight-card h2 {
  max-width: 720px;
  font-size: 26px;
  line-height: 1.34;
}

.insight-card h3 {
  font-size: 21px;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.insight-card.primary {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(238, 173, 53, 0.26), transparent 42%),
    linear-gradient(135deg, #111b43, #24356e);
}

.chart-tooltip {
  position: fixed;
  z-index: 1000;
  width: min(300px, calc(100vw - 32px));
  padding: 14px 15px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(238, 173, 53, 0.18), transparent 44%),
    rgba(17, 27, 67, 0.94);
  box-shadow: 0 18px 42px rgba(17, 27, 67, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.chart-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.chart-tooltip span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.chart-tooltip strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.chart-tooltip p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.55;
}

.insight-card.primary p,
.insight-card.primary span {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    height: auto;
  }

  .nav {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
  }

  .sidebar-card {
    display: none;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .charts-layout,
  .growth-layout,
  .client-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 16px;
  }

  .auth-view,
  .client-view {
    padding: 16px;
  }

  .auth-card,
  .client-header,
  .client-form-panel,
  .client-list-panel {
    padding: 20px;
  }

  .client-header,
  .client-item {
    display: grid;
  }

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

  .client-actions {
    justify-content: flex-start;
  }

  .sidebar {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }

  .hero-platforms {
    inset: 4px 0 0;
  }

  .hero-visual {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 300px;
  }

  .radar {
    width: 170px;
    height: 170px;
  }

  .hero-meta {
    display: grid;
  }

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

  .section-title.inline,
  .table-head {
    display: grid;
  }

  .search {
    min-width: 0;
  }

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

  .bar-chart {
    grid-template-columns: repeat(8, minmax(64px, 72px));
    overflow-x: auto;
  }

  .ecosystem-map {
    grid-template-columns: 1fr;
  }

  .ecosystem-map::before,
  .eco-node::before {
    display: none;
  }

  .trend-chart {
    grid-template-columns: repeat(8, 76px);
    overflow-x: auto;
  }

  .chart-card {
    min-height: auto;
  }
}
