/* ── Model Index Page ────────────────────────── */

.model-index-page {
  padding-top: 72px;
  padding-bottom: 80px;
}

/* Hero */
.mi-hero {
  text-align: center;
  padding: 48px 0 36px;
}

.mi-hero h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 12px;
}

.mi-hero p {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.mi-update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  background: rgba(148,163,184,0.08);
  border: 1px solid rgba(148,163,184,0.15);
  padding: 6px 14px;
  border-radius: 100px;
}

/* Section */
.mi-section {
  margin-bottom: 48px;
}

.mi-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 24px;
}

/* ── Hot Rising Grid ── */
.mi-hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mi-hot-card {
  background: transparent;
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.mi-hot-card:hover {
  border-color: rgba(13,148,136,0.2);
  transform: translateY(-2px);
}

.mi-hot-rank {
  font-size: 28px;
  font-weight: 900;
  color: #0d9488;
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}

.mi-hot-card:nth-child(1) .mi-hot-rank { color: #F59E0B; }
.mi-hot-card:nth-child(2) .mi-hot-rank { color: #7c3aed; }

.mi-hot-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 3px;
}

.mi-hot-vendor {
  font-size: 12px;
  color: #64748b;
}

.mi-hot-rise {
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
  margin-left: auto;
  flex-shrink: 0;
}

.mi-hot-rise::before {
  content: '↑';
  margin-right: 2px;
}

/* ── Rank Table ── */
.mi-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 14px;
}

.mi-rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mi-rank-table th {
  background: rgba(148,163,184,0.06);
  font-weight: 600;
  color: #475569;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148,163,184,0.12);
  white-space: nowrap;
}

.mi-rank-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148,163,184,0.08);
  color: #334155;
  vertical-align: middle;
}

.mi-rank-table tr:hover td {
  background: rgba(13,148,136,0.03);
}

.mi-rank-table tr:last-child td {
  border-bottom: none;
}

.mi-rank-num {
  font-weight: 800;
  color: #0d9488;
  width: 36px;
}

.mi-rank-name {
  font-weight: 700;
  color: #1e293b;
}

.mi-rank-name a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

.mi-rank-name a:hover {
  color: #0d9488;
}

.mi-rank-trend-up {
  color: #10b981;
  font-weight: 600;
}

.mi-rank-trend-stable {
  color: #94a3b8;
  font-weight: 500;
}

.mi-rank-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(13,148,136,0.08);
  color: #0d9488;
  border: 1px solid rgba(13,148,136,0.15);
}

.mi-rank-score {
  font-weight: 700;
  color: #1e293b;
}

.mi-rank-price {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* ── Dashboard Grid ── */
.mi-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.mi-card {
  background: transparent;
  border: 1px solid rgba(148,163,184,0.12);
  border-radius: 16px;
  padding: 24px;
}

.mi-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

/* Share Chart (horizontal bars) */
.mi-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mi-share-row:last-child {
  margin-bottom: 0;
}

.mi-share-label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  width: 70px;
  flex-shrink: 0;
}

.mi-share-bar-bg {
  flex: 1;
  height: 20px;
  background: rgba(148,163,184,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.mi-share-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease;
}

.mi-share-pct {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* Category Bars */
.mi-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mi-cat-row:last-child {
  margin-bottom: 0;
}

.mi-cat-name {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  width: 60px;
  flex-shrink: 0;
}

.mi-cat-bar-bg {
  flex: 1;
  height: 22px;
  background: rgba(148,163,184,0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.mi-cat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #0d9488, #2dd4bf);
  transition: width 1s ease;
}

.mi-cat-val {
  font-size: 12px;
  color: #64748b;
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}

.mi-cat-growth {
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  flex-shrink: 0;
}

/* Price Bars */
.mi-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mi-price-row:last-child {
  margin-bottom: 0;
}

.mi-price-label {
  font-size: 12px;
  color: #475569;
  width: 90px;
  flex-shrink: 0;
}

.mi-price-bar-bg {
  flex: 1;
  height: 22px;
  background: rgba(148,163,184,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.mi-price-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  transition: width 1s ease;
}

.mi-price-count {
  font-size: 12px;
  color: #64748b;
  flex-shrink: 0;
  text-align: right;
  width: 50px;
}

/* Responsive */
@media (max-width: 960px) {
  .mi-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mi-hero h1 {
    font-size: 28px;
  }
  .mi-hot-grid {
    grid-template-columns: 1fr;
  }
}