    :root {
      --bg-dark: #050214;
      --bg-purple: #200E73;
      --bg-blue: #0A36D9;
      --positive: #5BB539;
      --danger: #C71824;
      --alert: #F2851D;
      --highlight: #F2D03B;
      --text-main: #FFFFFF;
      --text-muted: #8896C0;
      --glass-bg: rgba(32, 14, 115, 0.20);
      --glass-bg2: rgba(10, 54, 217, 0.10);
      --glass-border: rgba(10, 54, 217, 0.40);
      --glass-border2: rgba(32, 14, 115, 0.50);
      --glow-blue: 0 0 20px rgba(10, 54, 217, 0.50);
      --glow-green: 0 0 18px rgba(91, 181, 57, 0.50);
      --glow-red: 0 0 18px rgba(199, 24, 36, 0.50);
      --glow-yellow: 0 0 18px rgba(242, 208, 59, 0.50);
      --radius: 14px;
      --radius-sm: 8px;
      --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    *,
    *::before,
    *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box
    }

    html {
      scroll-behavior: smooth
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg-dark);
      color: var(--text-main);
      overflow-x: hidden;
      min-height: 100vh;
    }

    ::-webkit-scrollbar {
      width: 5px
    }

    ::-webkit-scrollbar-track {
      background: var(--bg-dark)
    }

    ::-webkit-scrollbar-thumb {
      background: var(--bg-purple);
      border-radius: 4px
    }

    h1,
    h2,
    h3,
    h4,
    .sg {
      font-family: 'Space Grotesk', sans-serif
    }

    .bg-orbs {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden
    }

    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(100px);
      animation: orbFloat 12s ease-in-out infinite alternate;
      opacity: 0.35
    }

    .orb1 {
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(32, 14, 115, 0.8), transparent);
      left: -150px;
      top: -100px;
      animation-delay: 0s
    }

    .orb2 {
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(10, 54, 217, 0.5), transparent);
      right: -100px;
      top: 200px;
      animation-delay: -4s
    }

    .orb3 {
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(32, 14, 115, 0.6), transparent);
      left: 30%;
      bottom: -50px;
      animation-delay: -8s
    }

    @keyframes orbFloat {
      0% {
        transform: translate(0, 0) scale(1)
      }

      100% {
        transform: translate(30px, 20px) scale(1.08)
      }
    }

    /* INTRO */
    #intro-page {
      position: fixed;
      inset: 0;
      z-index: 9999;
      background: var(--bg-dark);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: opacity 1.2s ease;
    }

    .intro-overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      background: radial-gradient(ellipse at center, transparent 20%, rgba(5, 2, 20, 0.92) 80%);
    }

    .intro-grid {
      position: absolute;
      inset: 0;
      z-index: 2;
      pointer-events: none;
      background-image: linear-gradient(rgba(10, 54, 217, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 54, 217, 0.05) 1px, transparent 1px);
      background-size: 52px 52px;
    }

    .intro-content {
      position: relative;
      z-index: 3;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
    }

    .logo-ring-wrap {
      position: relative;
      width: 140px;
      height: 140px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 28px;
    }

    .logo-ring {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      border: 1.5px solid rgba(10, 54, 217, 0.4);
      animation: ringPulse 2.5s ease-in-out infinite;
    }

    .logo-ring2 {
      position: absolute;
      inset: 10px;
      border-radius: 50%;
      border: 1px solid rgba(242, 208, 59, 0.3);
      animation: ringPulse 2.5s ease-in-out infinite 0.8s;
    }

    @keyframes ringPulse {

      0%,
      100% {
        transform: scale(1);
        opacity: 0.5
      }

      50% {
        transform: scale(1.06);
        opacity: 1
      }
    }

    #intro-logo {
      width: 90px;
      height: 90px;
      filter: drop-shadow(0 0 24px rgba(10, 54, 217, 0.9)) drop-shadow(0 0 60px rgba(242, 208, 59, 0.4));
      animation: logoGlow 2.8s ease-in-out infinite alternate;
      position: relative;
      z-index: 2;
    }

    @keyframes logoGlow {
      from {
        filter: drop-shadow(0 0 18px rgba(10, 54, 217, 0.8)) drop-shadow(0 0 40px rgba(242, 208, 59, 0.3))
      }

      to {
        filter: drop-shadow(0 0 38px rgba(10, 54, 217, 1)) drop-shadow(0 0 80px rgba(242, 208, 59, 0.6))
      }
    }

    .intro-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 3.6rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      line-height: 1;
      margin-bottom: 12px;
      background: linear-gradient(135deg, #fff 0%, rgba(120, 160, 255, 0.9) 50%, var(--highlight) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      opacity: 0;
      animation: fadeUp 0.8s 0.6s ease forwards;
    }

    .intro-tagline {
      font-size: 1rem;
      letter-spacing: 5px;
      text-transform: uppercase;
      color: var(--highlight);
      text-shadow: 0 0 14px rgba(242, 208, 59, 0.55);
      opacity: 0;
      animation: fadeUp 0.8s 1.2s ease forwards;
    }

    .intro-divider {
      width: 120px;
      height: 1px;
      margin: 22px auto;
      background: linear-gradient(90deg, transparent, var(--bg-blue), var(--highlight), var(--bg-blue), transparent);
      opacity: 0;
      animation: fadeUp 0.8s 1.5s ease forwards;
    }

    .intro-sub {
      font-size: 0.85rem;
      color: var(--text-muted);
      letter-spacing: 2px;
      text-transform: uppercase;
      opacity: 0;
      animation: fadeUp 0.8s 1.8s ease forwards;
    }

    .intro-enter-btn {
      margin-top: 40px;
      padding: 13px 38px;
      background: linear-gradient(135deg, var(--bg-purple), var(--bg-blue));
      border: 1px solid rgba(10, 54, 217, 0.5);
      color: #fff;
      cursor: pointer;
      border-radius: 40px;
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 600;
      font-size: 0.88rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      transition: all 0.3s;
      box-shadow: 0 0 24px rgba(10, 54, 217, 0.4);
      opacity: 0;
      animation: fadeUp 0.8s 2.2s ease forwards;
    }

    .intro-enter-btn:hover {
      box-shadow: 0 0 40px rgba(10, 54, 217, 0.7), 0 0 20px rgba(242, 208, 59, 0.25);
      transform: translateY(-3px);
      border-color: var(--highlight)
    }

    .intro-skip {
      position: absolute;
      bottom: 28px;
      right: 28px;
      z-index: 10;
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.15);
      color: var(--text-muted);
      font-size: 0.75rem;
      letter-spacing: 2px;
      padding: 7px 18px;
      border-radius: 4px;
      cursor: pointer;
      text-transform: uppercase;
      transition: all 0.25s;
    }

    .intro-skip:hover {
      border-color: var(--highlight);
      color: var(--highlight)
    }

    .intro-bar {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 2px;
      width: 0;
      background: linear-gradient(90deg, var(--bg-blue), var(--highlight));
      animation: introBar 5s 0.5s linear forwards;
    }

    @keyframes introBar {
      to {
        width: 100%
      }
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(18px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    /* LOADING */
    #data-loader {
      position: fixed;
      inset: 0;
      z-index: 8000;
      background: rgba(5, 2, 20, 0.92);
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 18px;
      backdrop-filter: blur(8px);
    }

    .loader-ring {
      width: 56px;
      height: 56px;
      border: 3px solid rgba(10, 54, 217, 0.2);
      border-top: 3px solid var(--bg-blue);
      border-radius: 50%;
      animation: spin 0.9s linear infinite;
    }

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

    .loader-text {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.88rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .loader-sub {
      font-size: 0.72rem;
      color: rgba(136, 150, 192, 0.6);
      letter-spacing: 1px;
    }

    /* NAVBAR */
    nav {
      display: none;
      position: fixed;
      top: 0;
      width: 100%;
      padding: 0 36px;
      height: 66px;
      background: rgba(5, 2, 20, 0.82);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--glass-border);
      z-index: 1000;
      justify-content: space-between;
      align-items: center;
    }

    .nav-brand {
      display: flex;
      align-items: center;
      gap: 11px;
      cursor: pointer;
      flex-shrink: 0;
    }

    .nav-brand-logo {
      width: 36px;
      height: 36px;
      filter: drop-shadow(0 0 10px rgba(10, 54, 217, 0.8));
    }

    .nav-brand-text {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.25rem;
      font-weight: 800;
      letter-spacing: 0.1em;
      background: linear-gradient(135deg, #fff, rgba(130, 180, 255, 0.8));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .nav-brand-text span {
      background: linear-gradient(135deg, var(--highlight), var(--alert));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .nav-center {
      display: flex;
      align-items: center;
      gap: 4px
    }

    .nav-link {
      padding: 8px 16px;
      border-radius: 8px;
      color: var(--text-muted);
      font-size: 0.82rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1px;
      cursor: pointer;
      transition: all 0.25s;
      border: 1px solid transparent;
      white-space: nowrap;
    }

    .nav-link:hover {
      color: var(--text-main);
      background: rgba(10, 54, 217, 0.1)
    }

    .nav-link.active {
      color: var(--highlight);
      border-color: rgba(242, 208, 59, 0.2);
      background: rgba(242, 208, 59, 0.05);
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 12px
    }

    .search-wrap {
      position: relative;
      display: flex;
      align-items: center;
    }

    .search-wrap svg {
      position: absolute;
      left: 12px;
      color: var(--text-muted);
      width: 15px;
      height: 15px;
      flex-shrink: 0
    }

    .search-bar {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--glass-border);
      padding: 9px 16px 9px 36px;
      border-radius: 30px;
      color: #fff;
      width: 220px;
      outline: none;
      font-size: 0.83rem;
      transition: all 0.25s;
      font-family: 'Inter', sans-serif;
    }

    .search-bar::placeholder {
      color: var(--text-muted)
    }

    .search-bar:focus {
      border-color: var(--highlight);
      width: 260px;
      box-shadow: 0 0 16px rgba(242, 208, 59, 0.1)
    }

    .live-chip {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(91, 181, 57, 0.08);
      border: 1px solid rgba(91, 181, 57, 0.28);
      border-radius: 20px;
      padding: 5px 13px;
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--positive);
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.2s;
    }

    .live-chip:hover {
      background: rgba(91, 181, 57, 0.14);
    }

    .live-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--positive);
      box-shadow: 0 0 8px var(--positive);
      animation: ldot 1.5s ease-in-out infinite;
    }

    @keyframes ldot {

      0%,
      100% {
        opacity: 1;
        transform: scale(1)
      }

      50% {
        opacity: 0.3;
        transform: scale(0.6)
      }
    }

    /* FILTER BAR */
    .filter-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 22px;
      flex-wrap: wrap;
    }

    .filter-btn {
      padding: 7px 16px;
      border-radius: 20px;
      font-size: 0.74rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.22s;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text-muted);
      font-family: 'Space Grotesk', sans-serif;
    }

    .filter-btn:hover {
      border-color: var(--highlight);
      color: var(--highlight)
    }

    .filter-btn.active {
      background: rgba(242, 208, 59, 0.1);
      border-color: rgba(242, 208, 59, 0.4);
      color: var(--highlight)
    }

    .filter-btn.fb-buy {
      border-color: rgba(91, 181, 57, 0.3);
      color: var(--positive)
    }

    .filter-btn.fb-buy.active {
      background: rgba(91, 181, 57, 0.1);
      border-color: rgba(91, 181, 57, 0.5)
    }

    .filter-btn.fb-avoid {
      border-color: rgba(199, 24, 36, 0.3);
      color: var(--danger)
    }

    .filter-btn.fb-avoid.active {
      background: rgba(199, 24, 36, 0.1);
      border-color: rgba(199, 24, 36, 0.5)
    }

    .filter-btn.fb-watch {
      border-color: rgba(242, 208, 59, 0.3);
      color: var(--highlight)
    }

    .filter-btn.fb-watch.active {
      background: rgba(242, 208, 59, 0.1);
      border-color: rgba(242, 208, 59, 0.5)
    }

    .sort-select {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: var(--text-muted);
      padding: 7px 14px;
      border-radius: 20px;
      font-size: 0.74rem;
      font-weight: 600;
      cursor: pointer;
      outline: none;
      font-family: 'Space Grotesk', sans-serif;
      letter-spacing: 1px;
      text-transform: uppercase;
      transition: all 0.22s;
    }

    .sort-select:hover,
    .sort-select:focus {
      border-color: var(--glass-border);
      color: var(--text-main)
    }

    .sort-select option {
      background: var(--bg-dark)
    }

    .coin-count {
      margin-left: auto;
      font-size: 0.73rem;
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid rgba(255, 255, 255, 0.08);
      padding: 5px 13px;
      border-radius: 20px;
      font-family: 'Space Grotesk', sans-serif;
    }

    .coin-count strong {
      color: var(--highlight)
    }

    /* REFRESH BAR */
    .refresh-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
      font-size: 0.74rem;
      color: var(--text-muted);
    }

    .refresh-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--positive);
      box-shadow: 0 0 6px var(--positive);
    }

    .refresh-btn {
      background: rgba(10, 54, 217, 0.1);
      border: 1px solid rgba(10, 54, 217, 0.3);
      color: #7eb3ff;
      padding: 4px 13px;
      border-radius: 14px;
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase;
      cursor: pointer;
      font-family: 'Space Grotesk', sans-serif;
      transition: all 0.2s;
    }

    .refresh-btn:hover {
      background: rgba(10, 54, 217, 0.2)
    }

    .refresh-btn:disabled {
      opacity: 0.4;
      cursor: not-allowed
    }

    .error-banner {
      background: rgba(199, 24, 36, 0.08);
      border: 1px solid rgba(199, 24, 36, 0.25);
      border-radius: var(--radius-sm);
      padding: 10px 16px;
      font-size: 0.78rem;
      color: var(--danger);
      margin-bottom: 16px;
      display: none;
      align-items: center;
      gap: 10px;
    }

    /* APP */
    #app-container {
      display: none;
      padding: 80px 36px 60px;
      min-height: 100vh;
      position: relative;
      z-index: 1;
    }

    .view {
      display: none;
      animation: viewIn 0.45s ease forwards
    }

    .view.active {
      display: block
    }

    @keyframes viewIn {
      from {
        opacity: 0;
        transform: translateY(14px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    /* GLASS PANEL */
    .glass-panel {
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius);
      padding: 24px;
      backdrop-filter: blur(16px);
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
      position: relative;
      overflow: hidden;
    }

    .glass-panel::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(10, 54, 217, 0.5), transparent);
    }

    /* BADGES */
    .badge {
      padding: 5px 13px;
      border-radius: 20px;
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .badge.green {
      background: rgba(91, 181, 57, 0.15);
      color: var(--positive);
      border: 1px solid rgba(91, 181, 57, 0.35)
    }

    .badge.red {
      background: rgba(199, 24, 36, 0.15);
      color: var(--danger);
      border: 1px solid rgba(199, 24, 36, 0.35)
    }

    .badge.yellow {
      background: rgba(242, 208, 59, 0.15);
      color: var(--highlight);
      border: 1px solid rgba(242, 208, 59, 0.35)
    }

    .badge.blue {
      background: rgba(10, 54, 217, 0.2);
      color: #7eb3ff;
      border: 1px solid rgba(10, 54, 217, 0.4)
    }

    /* BUTTONS */
    .btn {
      background: linear-gradient(135deg, var(--bg-purple), var(--bg-blue));
      color: #fff;
      border: none;
      padding: 11px 24px;
      border-radius: 8px;
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      font-size: 0.8rem;
      box-shadow: 0 4px 18px rgba(10, 54, 217, 0.3);
      border: 1px solid rgba(10, 54, 217, 0.4);
    }

    .btn:hover {
      box-shadow: 0 6px 28px rgba(10, 54, 217, 0.55);
      transform: translateY(-2px)
    }

    .btn-ghost {
      background: transparent;
      border: 1px solid var(--glass-border);
      color: var(--text-muted);
      padding: 9px 20px;
      border-radius: 8px;
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 600;
      cursor: pointer;
      font-size: 0.78rem;
      letter-spacing: 1px;
      text-transform: uppercase;
      transition: all 0.25s;
    }

    .btn-ghost:hover {
      border-color: var(--highlight);
      color: var(--highlight)
    }

    .btn-danger {
      background: rgba(199, 24, 36, 0.15);
      border: 1px solid rgba(199, 24, 36, 0.4);
      color: var(--danger);
      padding: 9px 20px;
      border-radius: 8px;
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 600;
      cursor: pointer;
      font-size: 0.78rem;
      letter-spacing: 1px;
      text-transform: uppercase;
      transition: all 0.25s;
    }

    .btn-danger:hover {
      background: rgba(199, 24, 36, 0.25);
      box-shadow: var(--glow-red)
    }

    /* SECTION */
    .section-label {
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, var(--glass-border), transparent)
    }

    .page-title {
      font-size: 2.4rem;
      font-weight: 800;
      margin-bottom: 8px;
      line-height: 1.1
    }

    .page-sub {
      color: var(--text-muted);
      font-size: 0.93rem;
      margin-bottom: 28px
    }

    /* STAT BOX */
    .stat-box {
      background: rgba(0, 0, 0, 0.28);
      padding: 17px 20px;
      border-radius: var(--radius-sm);
      border: 1px solid rgba(255, 255, 255, 0.07);
      transition: all var(--transition);
    }

    .stat-box:hover {
      border-color: var(--glass-border);
      background: rgba(10, 54, 217, 0.08)
    }

    .stat-label {
      font-size: 0.72rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      margin-bottom: 7px
    }

    .stat-value {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.3rem;
      font-weight: 700
    }

    .divider {
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
      margin: 20px 0
    }

    /* DASHBOARD */
    .dashboard-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 20px;
      flex-wrap: wrap;
      gap: 16px;
    }

    .market-bar {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 14px;
      margin-bottom: 24px;
    }

    .mbar-item {
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: var(--radius-sm);
      padding: 14px 18px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      transition: all 0.3s;
    }

    .mbar-item:hover {
      border-color: var(--glass-border)
    }

    .mbar-label {
      font-size: 0.68rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1.5px
    }

    .mbar-value {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.05rem;
      font-weight: 700
    }

    .mbar-sub {
      font-size: 0.68rem;
      color: var(--text-muted);
      margin-top: 2px
    }

    /* SKELETON */
    .skeleton {
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
      border-radius: 4px;
    }

    @keyframes shimmer {
      0% {
        background-position: 200% 0
      }

      100% {
        background-position: -200% 0
      }
    }

    .skeleton-card {
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius);
      padding: 20px;
      height: 260px;
    }

    /* COIN GRID */
    .coin-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
      gap: 18px
    }

    .coin-card {
      cursor: pointer;
      transition: all var(--transition);
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius);
      padding: 20px;
      position: relative;
      overflow: hidden;
    }

    .coin-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(10, 54, 217, 0.45), transparent);
      transition: opacity 0.3s;
    }

    .coin-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 14px 40px rgba(10, 54, 217, 0.3);
      border-color: rgba(242, 208, 59, 0.3)
    }

    .coin-card:hover::before {
      background: linear-gradient(90deg, transparent, rgba(242, 208, 59, 0.4), transparent)
    }

    .coin-card-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px
    }

    .coin-avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.8rem;
      font-weight: 700;
      flex-shrink: 0;
      border: 2px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 0 14px rgba(10, 54, 217, 0.35);
      overflow: hidden;
    }

    .coin-avatar img {
      width: 28px;
      height: 28px;
      object-fit: contain;
    }

    .coin-name {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.02rem;
      font-weight: 700;
      margin-bottom: 2px
    }

    .coin-symbol {
      font-size: 0.75rem;
      color: var(--text-muted);
      letter-spacing: 1px
    }

    .coin-rank {
      font-size: 0.66rem;
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.05);
      padding: 1px 6px;
      border-radius: 4px;
      margin-right: 4px
    }

    .coin-price {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.45rem;
      font-weight: 700;
      margin: 10px 0 4px;
    }

    .coin-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.79rem;
      margin-bottom: 12px
    }

    .coin-change {
      font-weight: 600
    }

    .rs-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px
    }

    .rs-track {
      flex: 1;
      height: 5px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 3px;
      overflow: hidden
    }

    .rs-fill {
      height: 100%;
      border-radius: 3px;
      transition: width 0.8s ease
    }

    .rs-label {
      font-size: 0.72rem;
      color: var(--text-muted);
      width: 62px;
      text-align: right;
      flex-shrink: 0
    }

    .mini-chart-box {
      height: 68px;
      margin-top: 10px
    }

    .hype-indicator {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.77rem;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

    .hype-dots {
      display: flex;
      gap: 3px
    }

    .hype-dot {
      width: 8px;
      height: 8px;
      border-radius: 2px;
      background: rgba(255, 255, 255, 0.1)
    }

    .hype-dot.on {
      background: var(--danger)
    }

    .hype-dot.mid {
      background: var(--alert)
    }

    .hype-dot.low {
      background: var(--positive)
    }

    .coin-footer-stats {
      display: flex;
      gap: 14px;
      font-size: 0.72rem;
      color: var(--text-muted);
      margin-top: 6px;
      padding-top: 8px;
      border-top: 1px solid rgba(255, 255, 255, 0.05)
    }

    .cfs-item {
      display: flex;
      flex-direction: column;
      gap: 2px
    }

    .cfs-label {
      font-size: 0.64rem;
      text-transform: uppercase;
      letter-spacing: 1px
    }

    .cfs-value {
      color: var(--text-main);
      font-weight: 600;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.78rem
    }

    /* COIN DETAIL */
    .back-bar {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px
    }

    .detail-grid {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 24px
    }

    .main-chart-box {
      height: 360px;
      margin-top: 18px
    }

    .detail-stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 20px
    }

    .ring-outer {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .ring-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center
    }

    .ring-svg {
      transform: rotate(-90deg)
    }

    .ring-bg {
      fill: none;
      stroke: rgba(255, 255, 255, 0.07)
    }

    .ring-fill {
      fill: none;
      stroke-linecap: round;
      transition: stroke-dashoffset 1.3s cubic-bezier(0.4, 0, 0.2, 1)
    }

    .ring-inner {
      position: absolute;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center
    }

    .ring-val {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 2rem;
      font-weight: 800;
      line-height: 1
    }

    .ring-sub {
      font-size: 0.62rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 2px;
      margin-top: 3px
    }

    .decision-engine {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 26px;
      text-align: center;
      border-radius: var(--radius-sm);
      position: relative;
      overflow: hidden;
    }

    .de-pulse {
      position: absolute;
      inset: 0;
      border-radius: var(--radius-sm);
      animation: dePulse 2.5s ease-in-out infinite;
      pointer-events: none
    }

    @keyframes dePulse {

      0%,
      100% {
        opacity: 0.4;
        transform: scale(1)
      }

      50% {
        opacity: 0.8;
        transform: scale(1.03)
      }
    }

    .de-emoji {
      font-size: 2.8rem;
      margin-bottom: 10px
    }

    .de-label {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: 2px
    }

    .de-conf {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-top: 6px
    }

    .ai-story {
      position: relative;
      padding: 20px 20px 20px 28px;
      border-left: 3px solid var(--bg-blue);
      background: rgba(10, 54, 217, 0.06);
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      font-style: italic;
      color: #CBD5F0;
      line-height: 1.75;
      font-size: 0.9rem;
    }

    .ai-story-label {
      position: absolute;
      top: -10px;
      left: 20px;
      background: var(--bg-dark);
      padding: 2px 8px;
      font-size: 0.65rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--bg-blue);
      border-radius: 4px;
      border: 1px solid rgba(10, 54, 217, 0.4);
    }

    .svc-track {
      width: 100%;
      background: rgba(255, 255, 255, 0.06);
      height: 9px;
      border-radius: 5px;
      overflow: hidden;
      margin-bottom: 3px
    }

    .svc-fill {
      height: 100%;
      border-radius: 5px;
      transition: width 1s ease
    }

    .svc-row {
      margin-bottom: 18px
    }

    .svc-labels {
      display: flex;
      justify-content: space-between;
      font-size: 0.78rem;
      margin-bottom: 8px;
      font-weight: 500
    }

    .fp-grid {
      display: grid;
      grid-template-columns: repeat(14, 1fr);
      gap: 2px;
      margin-top: 8px
    }

    .fp-cell {
      aspect-ratio: 1;
      border-radius: 2px;
      transition: opacity 0.4s
    }

    .vdna {
      display: flex;
      align-items: flex-end;
      gap: 2px;
      height: 55px;
      padding: 4px 0
    }

    .vdna-bar {
      flex: 1;
      border-radius: 2px 2px 0 0;
      min-height: 4px
    }

    .onchain-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-top: 12px
    }

    .oc-box {
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: var(--radius-sm);
      padding: 12px 14px;
      text-align: center
    }

    .oc-label {
      font-size: 0.64rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1.5px;
      margin-bottom: 5px
    }

    .oc-val {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.96rem;
      font-weight: 700
    }

    /* MANIP LAB */
    .lab-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px
    }

    .slider-group {
      margin-bottom: 26px
    }

    .slider-group label {
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;
      font-weight: 600;
      font-size: 0.85rem;
      color: #CBD5F0;
    }

    .slider-group label span {
      color: var(--highlight);
      font-family: 'Space Grotesk', sans-serif;
    }

    input[type=range] {
      width: 100%;
      accent-color: var(--bg-blue);
      height: 5px;
      -webkit-appearance: none;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 3px;
      cursor: pointer;
      outline: none;
    }

    input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 17px;
      height: 17px;
      border-radius: 50%;
      background: var(--bg-blue);
      border: 2px solid rgba(10, 54, 217, 0.5);
      box-shadow: 0 0 10px rgba(10, 54, 217, 0.6);
      cursor: pointer;
      transition: transform 0.2s;
    }

    input[type=range]::-webkit-slider-thumb:hover {
      transform: scale(1.3)
    }

    .sim-result {
      margin-top: 28px;
      padding: 22px;
      background: rgba(0, 0, 0, 0.45);
      border-radius: var(--radius-sm);
      border: 1px dashed var(--glass-border);
      text-align: center;
    }

    .sim-score-big {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 4rem;
      font-weight: 800;
      line-height: 1;
      margin: 10px 0;
      transition: color 0.5s;
    }

    .replay-step {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 10px 14px;
      border-radius: var(--radius-sm);
      background: rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.06);
      margin-bottom: 8px;
      transition: all 0.3s;
    }

    .replay-step.active {
      background: rgba(199, 24, 36, 0.1);
      border-color: rgba(199, 24, 36, 0.3)
    }

    .replay-step.done {
      background: rgba(91, 181, 57, 0.07);
      border-color: rgba(91, 181, 57, 0.25)
    }

    .rs-ico {
      font-size: 1.1rem;
      flex-shrink: 0;
      margin-top: 1px
    }

    .rs-text {
      flex: 1
    }

    .rs-title {
      font-weight: 600;
      font-size: 0.84rem;
      margin-bottom: 2px
    }

    .rs-desc {
      font-size: 0.78rem;
      color: var(--text-muted)
    }

    .rs-time {
      font-size: 0.7rem;
      color: var(--text-muted);
      flex-shrink: 0;
      font-family: 'Space Grotesk', sans-serif;
      margin-top: 2px
    }

    .replay-chart-box {
      height: 220px;
      margin-top: 16px
    }

    .gravity-map {
      position: relative;
      width: 100%;
      height: 260px;
      overflow: hidden;
      border-radius: var(--radius-sm);
      background: radial-gradient(ellipse at center, rgba(10, 54, 217, 0.06), transparent 70%);
    }

    .g-bubble {
      position: absolute;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.65rem;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.3s;
      animation: gFloat 5s ease-in-out infinite alternate;
    }

    .g-bubble:hover {
      transform: scale(1.18) !important;
      z-index: 10
    }

    @keyframes gFloat {
      from {
        margin-top: 0
      }

      to {
        margin-top: -8px
      }
    }

    /* INSIGHTS */
    .insights-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-bottom: 24px
    }

    .madness-gauge {
      position: relative;
      height: 260px;
      display: flex;
      align-items: center;
      justify-content: center
    }

    .madness-center {
      position: absolute;
      text-align: center
    }

    .madness-label {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.55rem;
      font-weight: 800
    }

    .madness-sub {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-top: 3px
    }

    .mad-row {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 11px;
      font-size: 0.8rem
    }

    .mad-lbl {
      width: 120px;
      color: var(--text-muted);
      flex-shrink: 0
    }

    .mad-track {
      flex: 1;
      height: 7px;
      background: rgba(255, 255, 255, 0.07);
      border-radius: 4px;
      overflow: hidden
    }

    .mad-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 1.2s ease
    }

    .mad-num {
      width: 36px;
      text-align: right;
      font-weight: 600;
      color: var(--highlight);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.82rem
    }

    /* TIME TRAVEL */
    .era-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 28px
    }

    .era-card {
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius);
      padding: 20px;
      cursor: pointer;
      transition: all 0.28s;
      position: relative;
      overflow: hidden;
    }

    .era-card::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--bg-blue), transparent);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .era-card:hover {
      border-color: rgba(242, 208, 59, 0.3);
      transform: translateY(-3px)
    }

    .era-card:hover::before {
      opacity: 1
    }

    .era-card.selected {
      border-color: var(--highlight);
      background: rgba(242, 208, 59, 0.06)
    }

    .era-card.selected::before {
      opacity: 1;
      background: linear-gradient(90deg, transparent, var(--highlight), transparent)
    }

    .era-year {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.4rem;
      font-weight: 800;
      margin-bottom: 5px;
      color: var(--highlight)
    }

    .era-title {
      font-size: 0.88rem;
      font-weight: 600;
      margin-bottom: 6px
    }

    .era-desc {
      font-size: 0.78rem;
      color: var(--text-muted);
      line-height: 1.5
    }

    .tt-results {
      display: none;
      margin-top: 8px
    }

    .tt-chart-box {
      height: 320px;
      margin-bottom: 20px
    }

    .tt-ai {
      border-left: 3px solid var(--highlight);
      padding: 16px 18px;
      background: rgba(242, 208, 59, 0.04);
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      font-size: 0.88rem;
      color: #CBD5F0;
      line-height: 1.7;
      font-style: italic;
    }

    /* ALERTS */
    #alerts-container {
      position: fixed;
      bottom: 28px;
      right: 28px;
      z-index: 2000;
      display: flex;
      flex-direction: column;
      gap: 10px;
      pointer-events: none;
    }

    .toast {
      pointer-events: all;
      background: rgba(8, 4, 32, 0.97);
      border-radius: var(--radius-sm);
      box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
      color: #fff;
      min-width: 300px;
      max-width: 360px;
      animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      display: flex;
      align-items: stretch;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.07);
    }

    .toast-bar {
      width: 4px;
      flex-shrink: 0
    }

    .toast-body {
      flex: 1;
      padding: 14px 16px
    }

    .toast-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.85rem;
      font-weight: 700;
      margin-bottom: 4px
    }

    .toast-msg {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.45
    }

    .toast-close {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.3);
      cursor: pointer;
      padding: 0 14px;
      font-size: 1.1rem;
      transition: color 0.2s;
      align-self: flex-start;
      margin-top: 12px;
    }

    .toast-close:hover {
      color: #fff
    }

    @keyframes toastIn {
      from {
        transform: translateX(110%);
        opacity: 0
      }

      to {
        transform: translateX(0);
        opacity: 1
      }
    }

    @keyframes toastOut {
      from {
        transform: translateX(0);
        opacity: 1
      }

      to {
        transform: translateX(110%);
        opacity: 0
      }
    }

    /* STATUS BAR */
    #status-bar {
      display: none;
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      height: 26px;
      background: rgba(5, 2, 20, 0.96);
      border-top: 1px solid var(--glass-border);
      align-items: center;
      padding: 0 18px;
      gap: 18px;
      z-index: 990;
      font-size: 0.65rem;
      letter-spacing: 1px;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .sb-item {
      display: flex;
      align-items: center;
      gap: 5px
    }

    .sb-ok {
      color: var(--positive)
    }

    .sb-warn {
      color: var(--alert)
    }

    .sb-sep {
      width: 1px;
      height: 14px;
      background: var(--glass-border)
    }

    #sb-time {
      color: var(--positive);
      font-weight: 600
    }

    /* UTILS */
    .flex {
      display: flex;
      align-items: center
    }

    .flex-between {
      display: flex;
      align-items: center;
      justify-content: space-between
    }

    .gap-8 {
      gap: 8px
    }

    .gap-12 {
      gap: 12px
    }

    .gap-16 {
      gap: 16px
    }

    .mt-4 {
      margin-top: 4px
    }

    .mt-8 {
      margin-top: 8px
    }

    .mt-12 {
      margin-top: 12px
    }

    .mt-16 {
      margin-top: 16px
    }

    .mt-20 {
      margin-top: 20px
    }

    .mt-24 {
      margin-top: 24px
    }

    .mb-4 {
      margin-bottom: 4px
    }

    .mb-8 {
      margin-bottom: 8px
    }

    .mb-12 {
      margin-bottom: 12px
    }

    .mb-16 {
      margin-bottom: 16px
    }

    .mb-20 {
      margin-bottom: 20px
    }

    .mb-24 {
      margin-bottom: 24px
    }

    .text-green {
      color: var(--positive)
    }

    .text-red {
      color: var(--danger)
    }

    .text-yellow {
      color: var(--highlight)
    }

    .text-orange {
      color: var(--alert)
    }

    .text-muted {
      color: var(--text-muted)
    }

    .text-blue {
      color: #7eb3ff
    }

    .mono {
      font-family: 'Space Grotesk', sans-serif
    }

    .text-sm {
      font-size: 0.82rem
    }

    .text-xs {
      font-size: 0.72rem
    }

    .up {
      color: var(--positive)
    }

    .dn {
      color: var(--danger)
    }

    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px
    }

    .grid-4 {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px
    }

    .italic {
      font-style: italic
    }

    .tag {
      display: inline-block;
      padding: 2px 9px;
      border-radius: 10px;
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 1px;
      text-transform: uppercase
    }

    .tag-pump {
      background: rgba(199, 24, 36, 0.15);
      color: var(--danger);
      border: 1px solid rgba(199, 24, 36, 0.3)
    }

    .tag-gem {
      background: rgba(91, 181, 57, 0.15);
      color: var(--positive);
      border: 1px solid rgba(91, 181, 57, 0.3)
    }

    .tag-stable {
      background: rgba(10, 54, 217, 0.2);
      color: #7eb3ff;
      border: 1px solid rgba(10, 54, 217, 0.4)
    }

    .tag-viral {
      background: rgba(242, 208, 59, 0.15);
      color: var(--highlight);
      border: 1px solid rgba(242, 208, 59, 0.3)
    }

    /* ============================================================
   NEW FEATURES: TOOLS PAGE STYLES
============================================================ */

    /* --- Tools grid --- */
    .tools-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
    }

    .tool-card {
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius);
      padding: 24px;
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(16px);
    }

    .tool-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(10, 54, 217, 0.5), transparent);
    }

    .tool-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 6px;
    }

    .tool-icon {
      font-size: 1.5rem;
    }

    .tool-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
    }

    .tool-desc {
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-bottom: 20px;
      line-height: 1.5;
    }

    /* --- Input fields --- */
    .cx-input {
      width: 100%;
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      color: var(--text-main);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.88rem;
      outline: none;
      transition: border-color 0.22s;
    }

    .cx-input:focus {
      border-color: var(--bg-blue);
    }

    .cx-input::placeholder {
      color: var(--text-muted)
    }

    .cx-select {
      width: 100%;
      background: rgba(0, 0, 0, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      color: var(--text-main);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.84rem;
      outline: none;
      cursor: pointer;
      transition: border-color 0.22s;
    }

    .cx-select:focus {
      border-color: var(--bg-blue);
    }

    .cx-select option {
      background: var(--bg-dark);
    }

    .input-label {
      font-size: 0.7rem;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 6px;
      display: block;
    }

    .input-group {
      margin-bottom: 14px;
    }

    /* --- RSI Gauge --- */
    .rsi-gauge-wrap {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin: 18px 0 12px;
    }

    .rsi-arc-svg {
      overflow: visible;
    }

    .rsi-big-num {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 2.8rem;
      font-weight: 800;
      text-align: center;
      transition: color 0.5s;
    }

    .rsi-zone-label {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      text-align: center;
      margin-top: 4px;
    }

    .rsi-zones {
      display: flex;
      gap: 8px;
      margin-top: 14px;
      justify-content: center;
    }

    .rsi-zone-chip {
      padding: 4px 10px;
      border-radius: 10px;
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 1px;
    }

    .rsi-zone-os {
      background: rgba(91, 181, 57, 0.15);
      color: var(--positive);
      border: 1px solid rgba(91, 181, 57, 0.3);
    }

    .rsi-zone-n {
      background: rgba(10, 54, 217, 0.18);
      color: #7eb3ff;
      border: 1px solid rgba(10, 54, 217, 0.35);
    }

    .rsi-zone-ob {
      background: rgba(199, 24, 36, 0.15);
      color: var(--danger);
      border: 1px solid rgba(199, 24, 36, 0.3);
    }

    .rsi-bar-track {
      height: 8px;
      background: rgba(255, 255, 255, 0.07);
      border-radius: 4px;
      overflow: hidden;
      margin: 10px 0 4px;
      position: relative;
    }

    .rsi-bar-fill {
      height: 100%;
      border-radius: 4px;
      transition: width 0.8s ease;
    }

    .rsi-bar-labels {
      display: flex;
      justify-content: space-between;
      font-size: 0.64rem;
      color: var(--text-muted);
    }

    .rsi-price-inputs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .rsi-interpretation {
      background: rgba(0, 0, 0, 0.3);
      border-radius: var(--radius-sm);
      padding: 14px;
      margin-top: 14px;
      font-size: 0.82rem;
      line-height: 1.6;
      border-left: 3px solid var(--bg-blue);
    }

    .rsi-history-box {
      height: 140px;
      margin-top: 14px;
    }

    /* --- Coin Comparison --- */
    .comp-selector-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 20px;
    }

    .comp-vs {
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--text-muted);
    }

    .comp-grid {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 0;
      margin-top: 4px;
    }

    .comp-col {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .comp-header {
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-sm) var(--radius-sm) 0 0;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .comp-header-name {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1rem;
      font-weight: 700;
    }

    .comp-header-sym {
      font-size: 0.72rem;
      color: var(--text-muted);
    }

    .comp-row {
      display: flex;
      align-items: center;
      padding: 10px 16px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      border-top: none;
      font-size: 0.82rem;
      transition: background 0.2s;
    }

    .comp-row:hover {
      background: rgba(10, 54, 217, 0.05);
    }

    .comp-row:last-child {
      border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }

    .comp-row-val {
      font-family: 'Space Grotesk', sans-serif;
      font-weight: 700;
    }

    .comp-row-label {
      font-size: 0.7rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      width: 100%;
      text-align: center;
      padding: 8px 0 4px;
      font-family: 'Space Grotesk', sans-serif;
    }

    .comp-mid-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      background: rgba(0, 0, 0, 0.2);
    }

    .comp-mid-label {
      font-size: 0.62rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      padding: 10px 8px;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .comp-winner {
      background: rgba(91, 181, 57, 0.06);
    }

    .comp-loser {
      background: rgba(199, 24, 36, 0.04);
    }

    .comp-chart-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 16px;
    }

    .comp-sparkbox {
      height: 100px;
    }

    .comp-verdict {
      text-align: center;
      margin-top: 16px;
      padding: 16px;
      background: rgba(0, 0, 0, 0.3);
      border-radius: var(--radius-sm);
      border: 1px solid var(--glass-border);
    }

    .comp-verdict-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.72rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .comp-verdict-text {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1rem;
      font-weight: 700;
    }

    /* --- Risk/Reward --- */
    .rr-inputs {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 12px;
      margin-bottom: 18px;
    }

    .rr-result-box {
      background: rgba(0, 0, 0, 0.4);
      border-radius: var(--radius-sm);
      padding: 20px;
      margin-top: 4px;
      border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .rr-ratio-big {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 3.2rem;
      font-weight: 800;
      text-align: center;
      line-height: 1;
      margin: 8px 0;
    }

    .rr-ratio-label {
      font-size: 0.7rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--text-muted);
      text-align: center;
      margin-bottom: 12px;
    }

    .rr-breakdown {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 16px;
    }

    .rr-b-box {
      background: rgba(0, 0, 0, 0.3);
      border-radius: var(--radius-sm);
      padding: 12px;
      text-align: center;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .rr-b-label {
      font-size: 0.64rem;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      color: var(--text-muted);
      margin-bottom: 5px;
    }

    .rr-b-val {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.96rem;
      font-weight: 700;
    }

    .rr-verdict {
      margin-top: 16px;
      padding: 14px 16px;
      border-radius: var(--radius-sm);
      font-size: 0.84rem;
      line-height: 1.6;
      border-left: 3px solid var(--bg-blue);
    }

    .rr-levels-chart {
      height: 160px;
      margin-top: 18px;
    }

    .rr-position-sizer {
      margin-top: 20px;
      padding: 18px;
      background: rgba(10, 54, 217, 0.06);
      border-radius: var(--radius-sm);
      border: 1px solid rgba(10, 54, 217, 0.2);
    }

    .rr-position-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      margin-bottom: 14px;
      color: #7eb3ff;
    }

    .rr-pos-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    .rr-pos-box {
      background: rgba(0, 0, 0, 0.3);
      border-radius: var(--radius-sm);
      padding: 10px;
      text-align: center;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .rr-pos-label {
      font-size: 0.62rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      margin-bottom: 4px;
    }

    .rr-pos-val {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.9rem;
      font-weight: 700;
    }

    .tools-full-width {
      margin-top: 24px;
    }

    /* --- Responsive Tools --- */
    @media(max-width:1200px) {
      .tools-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

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

      .rr-inputs {
        grid-template-columns: 1fr;
      }

      .rr-breakdown {
        grid-template-columns: 1fr 1fr;
      }

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

      .comp-mid-col {
        display: none;
      }
    }

    /* RESPONSIVE */
    @media(max-width:900px) {
      .market-bar {
        grid-template-columns: repeat(2, 1fr)
      }

      .detail-grid {
        grid-template-columns: 1fr
      }

      .lab-grid {
        grid-template-columns: 1fr
      }

      .insights-grid {
        grid-template-columns: 1fr
      }

      .era-cards {
        grid-template-columns: 1fr
      }

      #app-container {
        padding: 80px 16px 60px
      }

      nav {
        padding: 0 16px
      }

      .nav-center {
        display: none
      }

      .page-title {
        font-size: 1.8rem
      }
    }

    @media(max-width:600px) {
      .market-bar {
        grid-template-columns: 1fr
      }

      .coin-grid {
        grid-template-columns: 1fr
      }

      .intro-title {
        font-size: 2.4rem
      }

      .search-bar {
        width: 160px
      }
    }
