    /* Analytics Overview */
    .analytics-overview {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }
    .analytics-card {
      background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 16px;
      position: relative;
      overflow: hidden;
      transition: border-color 0.2s, transform 0.2s;
    }
    .analytics-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
    }
    .analytics-card-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
    }
    .analytics-card-icon {
      font-size: 16px;
    }
    .analytics-card-title {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      color: var(--text-dim);
      letter-spacing: 0.5px;
    }
    .analytics-card-body {
      display: flex;
      align-items: baseline;
      gap: 10px;
      margin-bottom: 8px;
    }
    .analytics-card-value {
      font-size: 32px;
      font-weight: 700;
      color: var(--text);
      line-height: 1;
    }
    .analytics-card-unit {
      font-size: 14px;
      color: var(--text-dim);
      font-weight: 500;
    }
    .analytics-card-change {
      font-size: 13px;
      font-weight: 600;
      padding: 2px 8px;
      border-radius: 4px;
      white-space: nowrap;
    }
    .analytics-card-change.positive {
      color: var(--green);
      background: rgba(79, 174, 78, 0.15);
    }
    .analytics-card-change.negative {
      color: var(--red);
      background: rgba(236, 57, 66, 0.15);
    }
    .analytics-card-change.neutral {
      color: var(--text-dim);
      background: transparent;
    }
    .analytics-card-change:empty,
    .analytics-card-change.hidden {
      display: none;
    }
    .analytics-card-change .change-label {
      font-size: 10px;
      font-weight: 400;
      opacity: 0.7;
      margin-left: 2px;
    }
    .analytics-card-sparkline {
      display: block;
      width: 100% !important;
      height: 40px !important;
      max-height: 40px;
      margin-top: 8px;
      opacity: 0.8;
    }

    /* Collapsible Sections */
    .analytics-section-header.collapsible {
      cursor: pointer;
      user-select: none;
    }
    .analytics-section-header.collapsible:hover {
      opacity: 0.8;
    }
    .collapse-icon {
      color: var(--text-dim);
      font-size: 10px;
      transition: transform 0.2s;
    }
    .collapsible-content {
      overflow: hidden;
      transition: max-height 0.3s ease, opacity 0.2s ease;
    }
    .collapsible-content.collapsed {
      max-height: 0 !important;
      opacity: 0;
      padding: 0 !important;
    }
    .collapsed + .collapse-icon,
    .collapsible-content.collapsed ~ .collapse-icon {
      transform: rotate(-90deg);
    }
    .analytics-section {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 16px;
      min-width: 0; /* Fix for grid children overflow */
      overflow: hidden;
    }
    .analytics-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .analytics-section-header h3 {
      font-size: 14px;
      font-weight: 600;
    }
    /* Length Analysis Table (Compact) */
    .length-analysis-table {
      font-size: 11px;
    }
    .length-analysis-header,
    .length-analysis-row {
      display: grid;
      grid-template-columns: 40px 50px 55px 1fr 40px;
      gap: 6px;
      align-items: center;
      padding: 6px 0;
    }
    .length-analysis-header {
      font-size: 9px;
      text-transform: uppercase;
      color: var(--text-dim);
      font-weight: 600;
      border-bottom: 1px solid var(--border);
      padding-bottom: 6px;
      margin-bottom: 2px;
    }
    .length-analysis-row {
      border-bottom: 1px solid rgba(255,255,255,0.05);
      transition: background 0.15s;
    }
    .length-analysis-row:hover {
      background: var(--bg-hover);
    }
    .length-analysis-row:last-child {
      border-bottom: none;
    }
    .length-analysis-row.premium .col-length {
      color: var(--yellow);
      font-weight: 600;
    }
    .length-analysis-row.leader {
      background: rgba(52, 152, 219, 0.08);
      border-left: 2px solid var(--accent);
    }
    .length-analysis-summary {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid var(--border);
      font-size: 11px;
      color: var(--text-dim);
    }
    .length-analysis-summary strong {
      color: var(--text);
    }
    .col-length { font-weight: 500; }
    .col-sales { text-align: right; }
    .col-price { text-align: right; color: var(--text-dim); }
    .col-volume {
      position: relative;
      display: flex;
      align-items: center;
    }
    .col-volume .volume-bar {
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      height: 16px;
      background: rgba(52, 152, 219, 0.3);
      border-radius: 3px;
      z-index: 0;
    }
    .col-volume .volume-value {
      position: relative;
      z-index: 1;
      font-weight: 500;
      padding-left: 4px;
      font-size: 10px;
    }
    .col-share { text-align: right; color: var(--text-dim); font-size: 10px; }

    /* Key Insights (Compact) */
    .key-insights-list {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }
    .key-insight {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      background: var(--bg);
      border-radius: 6px;
      border: 1px solid var(--border);
    }
    .key-insight.insight-highlight {
      background: rgba(52, 152, 219, 0.1);
      border-color: var(--accent);
    }
    .key-insight.insight-premium {
      background: rgba(241, 196, 15, 0.1);
      border-color: var(--yellow);
    }
    .key-insight.insight-info {
      background: rgba(155, 89, 182, 0.1);
      border-color: #9b59b6;
    }
    .insight-icon {
      font-size: 14px;
      line-height: 1;
    }
    .insight-content {
      flex: 1;
      min-width: 0;
    }
    .insight-label {
      font-size: 9px;
      text-transform: uppercase;
      color: var(--text-dim);
      font-weight: 600;
    }
    .insight-value {
      font-size: 12px;
      font-weight: 600;
      color: var(--text);
    }
    .insight-detail {
      font-size: 10px;
      color: var(--text-dim);
    }

    .analytics-list {
      max-height: 300px;
      overflow-y: auto;
    }
    .analytics-list-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 5px 0;
      border-bottom: 1px solid var(--border);
    }
    .top-sale-item {
      position: relative;
      padding: 6px 8px;
    }
    .top-sale-bar {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      background: rgba(241, 196, 15, 0.06);
      border-radius: 4px;
      pointer-events: none;
    }
    .analytics-list-item:last-child { border-bottom: none; }
    .analytics-list-item .rank {
      width: 22px;
      font-size: 11px;
      font-weight: 600;
      color: var(--text-dim);
    }
    .analytics-list-item .username {
      flex: 1;
      font-family: monospace;
      color: var(--accent);
      font-size: 12px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .analytics-list-item .price {
      font-size: 12px;
      font-weight: 500;
      color: var(--yellow);
      white-space: nowrap;
    }
    .analytics-list-item .date {
      font-size: 10px;
      color: var(--text-dim);
      white-space: nowrap;
    }
    .analytics-mini-card {
      background: var(--bg);
      border-radius: 8px;
      padding: 12px;
      text-align: center;
    }
    .analytics-mini-card .label {
      font-size: 10px;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-bottom: 4px;
    }
    .analytics-mini-card .value {
      font-size: 24px;
      font-weight: 600;
      color: var(--text);
    }
    .analytics-mini-card .sub {
      font-size: 11px;
      color: var(--text-dim);
      margin-top: 2px;
    }
    .analytics-bar {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 4px 0;
    }
    .analytics-bar .label {
      width: 56px;
      font-size: 12px;
      color: var(--text-dim);
      flex-shrink: 0;
    }
    .analytics-bar .bar-container {
      flex: 1;
      height: 24px;
      background: var(--bg);
      border-radius: 5px;
      overflow: hidden;
    }
    .analytics-bar .bar {
      height: 100%;
      background: var(--accent);
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding-right: 6px;
      font-size: 11px;
      color: #000;
      font-weight: 600;
      min-width: 28px;
    }
    .analytics-bar .stat-price {
      width: 90px;
      font-size: 11px;
      color: var(--text-dim);
      text-align: right;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .analytics-bar .stat-change {
      width: 52px;
      font-size: 11px;
      text-align: right;
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* ============ PRO Feature Lock Overlay ============ */
    .pro-feature {
      position: relative;
    }
    .pro-lock-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(4px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      z-index: 10;
      border-radius: 10px;
    }
    .pro-lock-overlay .lock-icon {
      font-size: 24px;
    }
    .pro-lock-overlay .lock-text {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-dim);
    }
    .pro-lock-overlay .btn {
      margin-top: 4px;
      background: var(--accent);
      color: #000;
    }
    .pro-lock-overlay.hidden {
      display: none;
    }

    /* ============ Chart Container ============ */
    .chart-container {
      position: relative;
      width: 100%;
      min-width: 0; /* Fix for flexbox/grid children overflow */
    }
    .chart-container canvas {
      display: block;
      max-width: 100%;
    }


    /* ============ Watchlist Performance ============ */
    .watchlist-perf-stats {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-bottom: 12px;
    }
    .watchlist-perf-stat {
      text-align: center;
      padding: 10px 4px;
      background: var(--bg);
      border-radius: 6px;
    }
    .watchlist-perf-stat-value {
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
      line-height: 1.2;
    }
    .watchlist-perf-stat-label {
      font-size: 10px;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-top: 4px;
      font-weight: 500;
    }
    .watchlist-perf-movers-title {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-bottom: 6px;
      letter-spacing: 0.3px;
    }
    .watchlist-perf-movers {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .watchlist-perf-mover {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 5px 8px;
      border-radius: 4px;
      transition: background 0.15s;
    }
    .watchlist-perf-mover:hover {
      background: var(--bg-hover);
    }
    .watchlist-perf-mover .username {
      font-family: monospace;
      font-size: 13px;
      color: var(--accent);
      text-decoration: none;
      flex: 1;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .watchlist-perf-mover .username:hover {
      text-decoration: underline;
    }
    .watchlist-perf-mover .mover-length {
      font-size: 11px;
      color: var(--text-dim);
      flex-shrink: 0;
    }
    .watchlist-perf-mover .mover-prices {
      font-size: 11px;
      color: var(--text-dim);
      white-space: nowrap;
      flex-shrink: 0;
    }
    .watchlist-perf-mover .mover-change {
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
      min-width: 42px;
      text-align: right;
      flex-shrink: 0;
    }
    .watchlist-perf-empty {
      text-align: center;
      padding: 24px 16px;
      color: var(--text-dim);
      font-size: 12px;
    }

    /* ============ Activity Heatmap ============ */
    .heatmap-grid {
      display: grid;
      grid-template-columns: 40px repeat(24, 1fr);
      gap: 2px;
      font-size: 10px;
    }
    .heatmap-row {
      display: contents;
    }
    .heatmap-day-label {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding-right: 8px;
      color: var(--text-dim);
      font-weight: 500;
    }
    .heatmap-cell {
      aspect-ratio: 1;
      border-radius: 3px;
      min-height: 16px;
      cursor: pointer;
      transition: transform 0.1s;
    }
    .heatmap-cell:hover {
      transform: scale(1.2);
      z-index: 1;
    }
    .heatmap-hour-labels {
      display: contents;
    }
    .heatmap-hour-label {
      text-align: center;
      color: var(--text-dim);
      font-size: 9px;
      padding-top: 4px;
    }
    .heatmap-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 12px;
    }
    .heatmap-peak {
      font-size: 11px;
      color: var(--text-dim);
    }
    .heatmap-peak strong {
      color: var(--text);
    }
    .heatmap-legend {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 10px;
      color: var(--text-dim);
    }
    .heatmap-legend-gradient {
      display: flex;
      gap: 2px;
    }
    .heatmap-legend-gradient span {
      width: 16px;
      height: 12px;
      border-radius: 2px;
    }

    /* ============ PRO Filters ============ */
    .pro-filters {
      opacity: 1;
      transition: opacity 0.2s;
    }
    .pro-filters.disabled {
      opacity: 0.5;
      pointer-events: none;
    }
    .pro-filters select {
      background: var(--bg);
      border-color: var(--border);
    }

    /* ============ Market Insights (combined block) ============ */
    .market-insights-highlights {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
      margin-bottom: 0;
    }
    .market-insights-highlights:empty {
      display: none;
    }
    .market-insights-highlights:empty + .market-insights-divider {
      display: none;
    }
    .market-insights-divider {
      height: 1px;
      background: var(--border);
      margin: 12px 0;
    }
    .market-highlight {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 6px;
    }
    .market-highlight-icon {
      font-size: 14px;
      line-height: 1;
      flex-shrink: 0;
    }
    .market-highlight-content {
      flex: 1;
      min-width: 0;
    }
    .market-highlight-label {
      font-size: 9px;
      text-transform: uppercase;
      color: var(--text-dim);
      font-weight: 600;
    }
    .market-highlight-username {
      font-size: 12px;
      font-weight: 600;
      color: var(--accent);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .market-highlight-username a {
      color: inherit;
      text-decoration: none;
    }
    .market-highlight-username a:hover {
      text-decoration: underline;
    }
    .market-highlight-price {
      font-size: 11px;
      font-weight: 600;
      color: var(--green);
      white-space: nowrap;
      flex-shrink: 0;
    }
    .market-highlight-meta {
      font-size: 10px;
      color: var(--text-dim);
    }

    /* ============ Filter Chips ============ */
    .filter-chips {
      display: flex;
      flex-wrap: wrap;
    }
    .filter-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      background: var(--accent);
      color: #000;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 500;
    }
    .filter-chip .chip-remove {
      cursor: pointer;
      opacity: 0.7;
      font-size: 14px;
      line-height: 1;
    }
    .filter-chip .chip-remove:hover {
      opacity: 1;
    }

    /* ============ Loading Skeleton ============ */
    .skeleton {
      background: linear-gradient(90deg, var(--bg) 25%, var(--bg-hover) 50%, var(--bg) 75%);
      background-size: 200% 100%;
      animation: skeleton-loading 1.5s infinite;
      border-radius: 4px;
    }
    @keyframes skeleton-loading {
      0% { background-position: 200% 0; }
      100% { background-position: -200% 0; }
    }
    .skeleton-text {
      height: 14px;
      width: 80%;
      margin: 4px 0;
    }
    .skeleton-stat {
      height: 28px;
      width: 60px;
      margin: 0 auto;
    }
    .skeleton-chart {
      height: 200px;
      width: 100%;
    }
    .skeleton-bar {
      height: 20px;
      margin: 6px 0;
    }

    /* ============ Period Subtitle ============ */
    .analytics-period-subtitle {
      font-size: 12px;
      color: var(--text-dim);
      text-align: right;
      margin-bottom: 8px;
      min-height: 16px;
    }

    /* Section title group (h3 + subtitle inline) */
    .analytics-section-title-group {
      display: flex;
      align-items: baseline;
      gap: 8px;
      min-width: 0;
    }

    /* Section subtitle */
    .analytics-section-subtitle {
      font-size: 11px;
      color: var(--text-dim);
      font-weight: 400;
      white-space: nowrap;
    }

    /* Card subtitle (TON Price) */
    .analytics-card-subtitle {
      font-size: 9px;
      color: var(--text-dim);
      font-weight: 400;
    }
