:root {
      --bg: #f5f8fc;
      --card: #ffffff;
      --ink: #0f1b2d;
      --muted: #61708a;
      --muted-2: #8a97aa;
      --line: #dbe5f2;
      --line-soft: #edf2f8;
      --navy: #071831;
      --navy-2: #0c2446;
      --blue: #315cff;
      --blue-soft: #eaf0ff;
      --green: #14975a;
      --green-soft: #e9f8f0;
      --orange: #f59f18;
      --orange-soft: #fff3dc;
      --red: #ef4a4a;
      --red-soft: #ffeded;
      --violet: #6857ff;
      --violet-soft: #f0eeff;
      --shadow: 0 28px 70px rgba(31, 56, 88, 0.16);
      --shadow-soft: 0 12px 32px rgba(31, 56, 88, 0.08);
      --radius-xl: 26px;
      --radius-lg: 18px;
      --radius-md: 14px;
      --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scrollbar-width: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
      display: none;
    }

    body {
      user-select: none;
    }

    html,
    body {
      width: 1180px;
      height: 810px;
      margin: 0;
      overflow: hidden;
      background: transparent;
      color: var(--ink);
      font-family: var(--font);
    }

    .hero-preview-shell {
      width: 1180px;
      height: 810px;
      margin: 0;
      position: relative;
      overflow: hidden;
    }

    .dashboard {
      width: 1180px;
      height: 810px;
      display: grid;
      grid-template-columns: 164px minmax(0, 1fr) 238px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 26px;
      background: rgba(255, 255, 255, 0.78);
      box-shadow: none;
      backdrop-filter: blur(18px);
    }

    .sidebar {
      display: flex;
      flex-direction: column;
      padding: 22px 14px;
      color: #fff;
      background:
        radial-gradient(circle at 20% 0%, rgba(61, 92, 184, 0.45), transparent 34%),
        linear-gradient(180deg, #07172d 0%, #08192f 55%, #061122 100%);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 0 10px 24px;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .brand-mark {
      width: 22px;
      height: 22px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, #4774ff, #87a2ff);
      box-shadow: 0 8px 18px rgba(49, 92, 255, 0.35);
      font-size: 12px;
    }

    .nav {
      display: grid;
      gap: 8px;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px 12px;
      border-radius: 10px;
      color: rgba(255, 255, 255, 0.78);
      font-size: 13px;
      line-height: 1;
    }

    .nav-item.active {
      color: #fff;
      background: rgba(255, 255, 255, 0.09);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }

    .nav-icon {
      width: 18px;
      height: 18px;
      display: inline-grid;
      place-items: center;
      color: rgba(255, 255, 255, 0.86);
    }

    .sidebar-footer {
      margin-top: auto;
      padding: 12px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.08);
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .avatar {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: linear-gradient(135deg, #f0caa3, #9a6547);
      position: relative;
      overflow: hidden;
    }

    .avatar::after {
      content: "";
      position: absolute;
      inset: 15px 6px -3px;
      border-radius: 50% 50% 0 0;
      background: #0b2748;
    }

    .user-title {
      font-size: 12px;
      font-weight: 700;
    }

    .user-plan {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.58);
      margin-top: 2px;
    }

    .main {
      min-width: 0;
      padding: 22px;
      border-right: 1px solid var(--line-soft);
      background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.74)),
        radial-gradient(circle at 50% 100%, rgba(49, 92, 255, 0.08), transparent 48%);
    }

    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 14px;
    }

    h2 {
      margin: 0;
      font-size: 22px;
      letter-spacing: -0.04em;
    }

    .top-actions {
      display: flex;
      gap: 10px;
      align-items: center;
      color: var(--muted);
      font-size: 12px;
    }

    .pill, .date-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 9px 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
      box-shadow: 0 6px 18px rgba(31,56,88,0.04);
    }

    .live-dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #27c474;
      box-shadow: 0 0 0 4px rgba(39, 196, 116, 0.14);
    }

    .metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 14px;
    }

    .metric-card,
    .panel,
    .side-card {
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: rgba(255,255,255,0.92);
      box-shadow: var(--shadow-soft);
    }

    .metric-card {
      height: 98px;
      padding: 14px;
      overflow: hidden;
      position: relative;
    }

    .metric-label {
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 10px;
    }

    .metric-value {
      font-weight: 850;
      letter-spacing: -0.045em;
      font-size: clamp(18px, 1.72vw, 23px);
      line-height: 1.1;
    }

    .metric-sub {
      margin-top: 8px;
      font-size: 12px;
      color: var(--green);
      font-weight: 650;
    }

    .metric-spark {
      position: absolute;
      right: 12px;
      bottom: 10px;
      width: 76px;
      height: 38px;
    }

    .confidence-value {
      color: var(--orange);
    }

    .confidence-track {
      margin-top: 12px;
      width: 92px;
      height: 7px;
      border-radius: 999px;
      background: #edf1f6;
      overflow: hidden;
    }

    .confidence-fill {
      width: 78%;
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #f7b733, #ff8f1f);
    }

    .grid-main {
      display: grid;
      grid-template-columns: 1.12fr 0.92fr;
      gap: 12px;
    }

    .chart-panel {
      grid-column: 1 / -1;
      padding: 16px;
      height: 218px;
      position: relative;
    }

    .panel-title-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }

    .panel-title {
      font-size: 15px;
      font-weight: 800;
      letter-spacing: -0.02em;
    }

    .legend {
      display: flex;
      gap: 18px;
      color: var(--muted);
      font-size: 11px;
      margin-bottom: 8px;
    }

    .legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .legend-line {
      width: 17px;
      height: 2px;
      background: var(--blue);
      border-radius: 999px;
    }

    .legend-line.dashed {
      background: repeating-linear-gradient(90deg, #8ea0bd 0 6px, transparent 6px 10px);
      height: 2px;
    }

    .legend-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--red);
    }

    .chart {
      width: 100%;
      height: 145px;
      display: block;
    }

    .tooltip {
      position: absolute;
      left: 56%;
      top: 92px;
      width: 142px;
      padding: 12px;
      border-radius: 12px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: 0 18px 38px rgba(31,56,88,0.18);
      font-size: 11px;
      color: var(--muted);
    }

    .tooltip strong {
      color: var(--ink);
      display: block;
      margin-bottom: 4px;
    }

    .tooltip .impact {
      margin-top: 6px;
      color: #43506a;
      font-weight: 750;
    }

    .balances-panel,
    .assets-panel {
      padding: 16px;
      height: 248px;
    }

    .donut-row {
      display: grid;
      grid-template-columns: 86px 1fr;
      gap: 16px;
      align-items: center;
      margin-top: 14px;
    }

    .donut {
      width: 86px;
      height: 86px;
      border-radius: 50%;
      background: conic-gradient(var(--blue) 0 42%, #5b78ff 42% 73%, var(--navy) 73% 90%, #a3adbd 90% 100%);
      position: relative;
    }

    .donut::after {
      content: "";
      position: absolute;
      inset: 18px;
      border-radius: 50%;
      background: #fff;
      box-shadow: inset 0 0 0 1px var(--line-soft);
    }

    .exchange-list {
      display: grid;
      gap: 9px;
      font-size: 12px;
      color: var(--muted);
    }

    .exchange-item {
      display: grid;
      grid-template-columns: 10px 1fr auto auto;
      gap: 8px;
      align-items: center;
    }

    .color-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--blue);
    }

    .color-dot.bybit { background: #5b78ff; }
    .color-dot.okx { background: var(--navy); }
    .color-dot.other { background: #a3adbd; }

    .exchange-percent,
    .asset-value {
      color: var(--ink);
      font-weight: 750;
    }

    .asset-list {
      display: grid;
      gap: 9px;
      margin-top: 14px;
      font-size: 12px;
    }

    .asset-row {
      display: grid;
      grid-template-columns: 24px 1fr auto auto;
      align-items: center;
      gap: 10px;
    }

    .coin {
      width: 22px;
      height: 22px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      font-size: 11px;
      font-weight: 850;
      color: #fff;
      background: var(--orange);
    }

    .coin.eth { background: #627eea; }
    .coin.sol { background: #111827; }
    .coin.usdt { background: #26a17b; }
    .asset-name span {
      display: block;
      color: var(--muted-2);
      margin-top: 1px;
      font-size: 11px;
    }

    .asset-pnl { color: var(--green); font-weight: 700; }
    .asset-pnl.loss { color: var(--red); }

    .insight-bar {
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid #cfdbef;
      background: linear-gradient(90deg, #eef4ff, #ffffff);
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .insight-icon {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, #6d8dff, #dfe8ff);
      color: #fff;
      flex: 0 0 auto;
    }

    .insight-copy {
      min-width: 0;
      flex: 1;
      font-size: 12px;
      color: var(--muted);
    }

    .insight-copy strong {
      display: block;
      color: var(--ink);
      font-size: 13px;
      margin-bottom: 2px;
    }

    .review-btn {
      border: 0;
      border-radius: 10px;
      background: var(--navy);
      color: #fff;
      padding: 11px 14px;
      font-weight: 800;
      font-size: 12px;
      white-space: nowrap;
      cursor: default;
      box-shadow: 0 10px 24px rgba(7,24,49,0.22);
    }

    .right-rail {
      min-width: 0;
      padding: 22px 14px 22px 0;
      display: grid;
      gap: 12px;
      align-content: start;
      background: rgba(255,255,255,0.72);
    }

    .side-card {
      padding: 15px;
    }

    .side-title-row {
      min-width: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 14px;
      font-size: 14px;
      font-weight: 850;
    }

    .badge-count {
      min-width: 28px;
      height: 28px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      color: var(--red);
      background: var(--red-soft);
      font-size: 12px;
      font-weight: 850;
    }

    .issue-list {
      display: grid;
      gap: 9px;
    }

    .issue {
      min-width: 0;
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr) auto;
      gap: 9px;
      align-items: center;
      font-size: 12px;
    }

    .issue-icon {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: var(--red-soft);
      color: var(--red);
      font-size: 11px;
      font-weight: 850;
    }

    .issue-icon.orange { background: var(--orange-soft); color: var(--orange); }
    .issue-icon.blue { background: var(--blue-soft); color: var(--blue); }
    .issue-icon.violet { background: var(--violet-soft); color: var(--violet); }
    .issue-detail { color: var(--muted); font-size: 11px; margin-top: 2px; }
    .issue span:nth-child(2),
    .recent-item span:nth-child(2) {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .issue-value { color: var(--red); font-weight: 800; white-space: nowrap; }
    .issue-value.orange { color: var(--orange); }
    .issue-value.blue { color: var(--blue); }

    .review-link {
      display: flex;
      justify-content: space-between;
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--line-soft);
      color: var(--navy-2);
      font-size: 12px;
      font-weight: 800;
    }

    .confidence-card {
      min-width: 0;
      display: grid;
      grid-template-columns: 78px minmax(0, 1fr);
      gap: 16px;
      align-items: center;
    }

    .confidence-ring {
      width: 78px;
      height: 78px;
      border-radius: 50%;
      background: conic-gradient(#36b66a 0 56%, #f8b83f 56% 78%, #ef5350 78% 100%);
      position: relative;
    }

    .confidence-ring::after {
      content: "";
      position: absolute;
      inset: 13px;
      border-radius: 50%;
      background: #fff;
      box-shadow: inset 0 0 0 1px var(--line-soft);
    }

    .confidence-center {
      position: absolute;
      inset: 13px;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      pointer-events: none;
    }

    .confidence-center strong {
      font-size: 18px;
      line-height: 1;
      font-weight: 900;
      color: var(--ink);
    }

    .confidence-center span {
      margin-top: 3px;
      font-size: 9px;
      line-height: 1;
      color: var(--muted);
      font-weight: 650;
    }

    .confidence-breakdown {
      display: grid;
      gap: 9px;
      font-size: 11px;
      color: var(--muted);
    }

    .confidence-item {
      display: grid;
      grid-template-columns: 8px 1fr auto;
      gap: 7px;
      align-items: center;
    }

    .recent-list {
      display: grid;
      gap: 10px;
      font-size: 12px;
    }

    .recent-item {
      display: grid;
      grid-template-columns: 24px 1fr auto;
      gap: 9px;
      align-items: start;
    }

    .recent-item strong {
      display: block;
      margin-bottom: 2px;
      font-size: 12px;
    }

    .recent-time {
      color: var(--muted-2);
      font-size: 11px;
      white-space: nowrap;
    }

    .hero-caption {
      display: none;
    }
