/* ── Home Dashboard ────────────────────────────────────────────────── */

/* ── Topbar separator ─────────────────────────────────────────────── */
.topbar-sep { color: var(--muted2); font-size: 12px }

/* ── Announcement Banners ─────────────────────────────────────────── */
.home-ann-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; margin: 0;
  border-bottom: 1px solid var(--border2);
}
.home-ann-icon { font-size: 14px; flex-shrink: 0; }
.home-ann-body { flex: 1; min-width: 0 }
.home-ann-title {
  font-size: 12px; font-weight: 500; line-height: 1.4;
}
.home-ann-text {
  font-size: 11px; margin-top: 2px; line-height: 1.4;
}
.home-ann-actions {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.home-ann-cta-btn {
  background: var(--rose-12, rgba(244, 63, 94, 0.12));
  border: 1px solid var(--rose-20, rgba(244, 63, 94, 0.2));
  border-radius: 6px; font-size: 11px; font-weight: 600;
  cursor: pointer; padding: 5px 12px; line-height: 1;
  color: var(--rose); white-space: nowrap;
  font-family: var(--ff-body); transition: all 0.15s ease;
  text-decoration: none;
}
.home-ann-cta-btn:hover { background: var(--rose-20, rgba(244, 63, 94, 0.2)); }
.home-ann-dismiss {
  background: none; border: 1px solid var(--border2);
  border-radius: 6px; font-size: 11px; font-weight: 500;
  cursor: pointer; padding: 5px 12px; line-height: 1;
  color: var(--muted); white-space: nowrap; flex-shrink: 0;
  font-family: var(--ff-body); transition: all 0.15s ease;
}
.home-ann-dismiss:hover { color: var(--text); border-color: var(--text-secondary) }

/* Type-based coloring */
.home-ann-info {
  background: rgba(96, 165, 250, 0.06);
  border-left: 3px solid var(--blue);
}
.home-ann-info .home-ann-title { color: var(--blue) }
.home-ann-info .home-ann-text { color: var(--muted) }
.home-ann-info .home-ann-cta-btn { color: var(--blue); background: rgba(96, 165, 250, 0.12); border-color: rgba(96, 165, 250, 0.2) }
.home-ann-info .home-ann-cta-btn:hover { background: rgba(96, 165, 250, 0.2) }

.home-ann-warning {
  background: rgba(251, 191, 36, 0.06);
  border-left: 3px solid var(--amber);
}
.home-ann-warning .home-ann-title { color: var(--amber) }
.home-ann-warning .home-ann-text { color: var(--muted) }
.home-ann-warning .home-ann-cta-btn { color: var(--amber); background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.2) }
.home-ann-warning .home-ann-cta-btn:hover { background: rgba(251, 191, 36, 0.2) }

.home-ann-maintenance {
  background: rgba(251, 146, 60, 0.06);
  border-left: 3px solid #fb923c;
}
.home-ann-maintenance .home-ann-title { color: #fb923c }
.home-ann-maintenance .home-ann-text { color: var(--muted) }
.home-ann-maintenance .home-ann-cta-btn { color: #fb923c; background: rgba(251, 146, 60, 0.12); border-color: rgba(251, 146, 60, 0.2) }
.home-ann-maintenance .home-ann-cta-btn:hover { background: rgba(251, 146, 60, 0.2) }

.home-ann-feature {
  background: var(--rose-04);
  border-left: 3px solid var(--rose);
}
.home-ann-feature .home-ann-title { color: var(--rose) }
.home-ann-feature .home-ann-text { color: var(--muted) }
.home-ann-feature .home-ann-cta-btn { color: var(--rose); background: var(--rose-12, rgba(244, 63, 94, 0.12)); border-color: var(--rose-20, rgba(244, 63, 94, 0.2)) }
.home-ann-feature .home-ann-cta-btn:hover { background: var(--rose-20, rgba(244, 63, 94, 0.2)) }

.home-ann-release {
  background: var(--rose-04);
  border-left: 3px solid var(--rose);
}
.home-ann-release .home-ann-title { color: var(--rose) }
.home-ann-release .home-ann-text { color: var(--muted) }
.home-ann-release .home-ann-cta-btn { color: var(--rose); background: var(--rose-12, rgba(244, 63, 94, 0.12)); border-color: var(--rose-20, rgba(244, 63, 94, 0.2)) }
.home-ann-release .home-ann-cta-btn:hover { background: var(--rose-20, rgba(244, 63, 94, 0.2)) }

/* ── Season Bar (full width) ──────────────────────────────────────── */
.home-season-bar {
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
}
.home-season-bar:empty { display: none }
.home-season-bar-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px;
}
.home-season-bar-info { flex-shrink: 0 }
.home-season-bar-progress { flex: 1; min-width: 0 }

/* ── Stats Row ───────────────────────────────────────────────────── */
.home-stats-row {
  display: flex;
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
}
.home-stats-left {
  display: flex;
  flex: 1;
}
.home-stat-cell {
  flex: 1;
  padding: 12px 14px;
  border-right: 1px solid var(--border2);
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.home-stat-cell:last-child { border-right: none }
.home-stat-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 15px;
}
.home-si-rose { background: var(--rose-15) }
.home-si-green { background: var(--green-bg) }
.home-si-blue { background: var(--blue-bg) }
.home-si-purple { background: rgba(167, 139, 250, 0.12) }
.home-si-amber { background: var(--yellow-bg) }
.home-stat-icon svg { width: 15px; height: 15px }
.home-stat-label {
  font-size: 10px; color: var(--muted2);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.home-stat-value {
  font-size: 18px; font-weight: 600;
  color: var(--cream); line-height: 1.2;
}
.home-stat-sub { font-size: 11px; color: var(--muted); margin-top: 1px }
.home-stat-sub.green { color: var(--green) }
.home-stat-sub.accent { color: var(--rose) }

/* ── Content Grid ─────────────────────────────────────────────────── */
.home-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 300px;
  overflow: hidden;
}
.home-left {
  overflow-y: auto;
  border-right: 1px solid var(--border2);
}
.home-right {
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.home-left::-webkit-scrollbar,
.home-right::-webkit-scrollbar { width: 0 }

/* ── Sections ─────────────────────────────────────────────────────── */
.home-section { padding: 18px 22px }
.home-section + .home-section { border-top: 1px solid var(--border2) }
.home-section-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}
.home-section-title {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted2); font-weight: 500;
}
.home-section-action {
  font-size: 12px; color: var(--rose);
  cursor: pointer; background: none; border: none;
  font-family: var(--ff-body);
}
.home-section-action:hover { text-decoration: underline }

/* ── Companion Strip ──────────────────────────────────────────────── */
.home-comp-strip {
  display: flex; gap: 10px;
  overflow-x: auto; padding-bottom: 4px;
}
.home-comp-strip::-webkit-scrollbar { display: none }

.home-comp-card {
  min-width: 150px; max-width: 150px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 14px 12px 12px;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.home-comp-card:hover {
  background: var(--cream-04);
  border-color: var(--cream-12);
}
.home-comp-card.active {
  border-color: var(--rose-30);
  background: var(--rose-04);
}

.home-cc-top { display: flex; align-items: center; gap: 9px }
.home-cc-avatar-wrap { position: relative; flex-shrink: 0 }
.home-cc-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--cream-12);
  background: var(--bg2);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500;
  color: var(--muted);
}
.home-cc-avatar img { width: 100%; height: 100%; object-fit: cover }
.home-cc-dot {
  position: absolute; bottom: 0; right: 0;
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--bg3);
}
.home-cc-dot.online { background: var(--green) }
.home-cc-dot.busy { background: var(--amber) }
.home-cc-dot.idle { background: var(--muted2) }

.home-cc-meta { min-width: 0; flex: 1 }
.home-cc-name {
  font-size: 13px; font-weight: 500; color: var(--cream);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-cc-stage {
  font-size: 10px; color: var(--muted2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-cc-schedule {
  font-size: 9px; color: var(--muted2); opacity: 0.7;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.home-cc-gift {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 10px; color: var(--rose); font-weight: 400;
  margin-left: 6px; vertical-align: baseline;
}

.home-cc-mood {
  font-size: 10px; color: var(--muted);
  background: var(--cream-04); border-radius: 4px;
  padding: 3px 7px; width: fit-content;
  border: 1px solid var(--border2);
}

.home-cc-xp-wrap { display: flex; flex-direction: column; gap: 3px }
.home-cc-xp-label {
  font-size: 10px; color: var(--muted2);
  display: flex; justify-content: space-between;
}
.home-cc-xp-bar {
  height: 3px; background: var(--cream-12);
  border-radius: 2px; overflow: hidden;
}
.home-cc-xp-fill {
  height: 100%; background: var(--rose);
  border-radius: 2px;
}

.home-cc-btn {
  width: 100%; padding: 5px 0; border-radius: 7px;
  font-size: 11px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--rose-30);
  background: var(--rose-15);
  color: var(--rose);
  font-family: var(--ff-body);
  text-align: center;
  transition: background 0.15s;
}
.home-cc-btn:hover { background: var(--rose-20) }

.home-comp-card.home-add-card {
  border-style: dashed;
  border-color: var(--border2);
  align-items: center; justify-content: center;
  gap: 6px; opacity: 0.5; cursor: pointer;
}
.home-comp-card.home-add-card:hover {
  opacity: 0.75; border-color: var(--cream-12);
}
.home-add-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cream-04); border: 1px solid var(--cream-12);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--muted2);
}
.home-add-label { font-size: 11px; color: var(--muted2); text-align: center }

/* ── Activity Feed ────────────────────────────────────────────────── */
.home-activity-list { display: flex; flex-direction: column }
.home-activity-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border2);
}
.home-activity-item:last-child { border-bottom: none }
.home-activity-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.home-ai-rose { background: var(--rose-15) }
.home-ai-green { background: var(--green-bg) }
.home-ai-amber { background: var(--yellow-bg) }
.home-ai-blue { background: var(--blue-bg) }
.home-ai-purple { background: rgba(167, 139, 250, 0.12) }
.home-activity-body { flex: 1; min-width: 0 }
.home-activity-text {
  font-size: 13px; color: var(--cream); line-height: 1.45;
}
.home-activity-text em { font-style: normal; color: var(--rose) }
.home-activity-time { font-size: 11px; color: var(--muted2); margin-top: 2px }
.home-activity-right {
  display: flex; align-items: center; flex-shrink: 0; padding-top: 2px;
}
.home-pill {
  font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 500;
}
.home-pill-rose {
  background: var(--rose-15); color: var(--rose);
  border: 1px solid var(--rose-20);
}
.home-pill-green {
  background: var(--green-bg); color: var(--green);
  border: 1px solid var(--green-border);
}
.home-pill-amber {
  background: var(--yellow-bg); color: var(--yellow);
  border: 1px solid var(--yellow-border);
}
.home-pill-purple {
  background: rgba(167, 139, 250, 0.12); color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* ── Right Column Panels ──────────────────────────────────────────── */
.home-panel {
  padding: 18px;
  border-bottom: 1px solid var(--border2);
}
.home-panel:last-child { border-bottom: none }
.home-panel-title {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted2);
  font-weight: 500; margin-bottom: 12px;
}
.home-panel-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 12px;
}
.home-panel-head .home-panel-title { margin-bottom: 0 }

/* Season progress (in full-width bar) */
.home-season-eyebrow {
  font-size: 10px; color: var(--muted2);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 2px;
}
.home-season-level {
  font-size: 20px; font-weight: 600; color: var(--cream);
  letter-spacing: -0.5px; line-height: 1.1;
}
.home-season-xp {
  font-size: 11px; color: var(--muted); margin-top: 2px;
}
.home-xp-track {
  height: 4px; background: var(--cream-12);
  border-radius: 2px; overflow: hidden;
}
.home-xp-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--rose-d), var(--rose));
}
.home-xp-pct {
  font-size: 11px; color: var(--rose); margin-top: 4px; text-align: right;
}

.home-milestones {
  display: flex; gap: 6px;
  flex-shrink: 0; min-width: 0;
}
.home-ms-chip {
  border-radius: 7px; padding: 7px 10px;
  background: var(--cream-04); border: 1px solid var(--border2);
  min-width: 0;
}
.home-ms-chip.earned {
  border-color: var(--rose-30);
  background: var(--rose-04);
}
.home-ms-lv {
  font-size: 9px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted2);
}
.home-ms-reward {
  font-size: 11px; color: var(--muted); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-ms-chip.earned .home-ms-reward { color: var(--rose) }

/* Leaderboard */
.home-lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 8px;
  cursor: pointer; transition: background 0.12s;
}
.home-lb-row:hover { background: var(--cream-04) }
.home-lb-row.home-you-row {
  background: var(--rose-bg);
  border: 1px solid var(--rose-12);
  border-radius: 8px;
}
.home-lb-rank {
  font-size: 12px; width: 18px; text-align: center;
  font-weight: 600; flex-shrink: 0;
}
.home-rank-gold { color: var(--gold) }
.home-rank-silver { color: var(--silver) }
.home-rank-bronze { color: var(--bronze) }
.home-rank-you { color: var(--muted2) }
.home-lb-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--cream-12);
  font-size: 10px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); flex-shrink: 0;
}
.home-lb-name {
  font-size: 12px; color: var(--cream); flex: 1;
  min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.home-lb-score { font-size: 11px; color: var(--muted2); flex-shrink: 0 }
.home-you-badge {
  font-size: 9px; background: var(--rose-15);
  color: var(--rose); border-radius: 4px; padding: 1px 6px;
  border: 1px solid var(--rose-20);
}
.home-lb-divider { height: 1px; background: var(--border2); margin: 6px 0 }

/* Gallery spotlight */
.home-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.home-gallery-card {
  border-radius: 9px; overflow: hidden;
  position: relative; cursor: pointer;
  border: 1px solid var(--border2);
  background: var(--bg3);
  transition: border-color 0.15s;
}
.home-gallery-card:hover { border-color: var(--cream-12) }
.home-gallery-card.featured { grid-column: span 2 }

.home-gallery-img {
  width: 100%; display: block;
  aspect-ratio: 4/3; object-fit: cover;
}
.home-gallery-card.featured .home-gallery-img { aspect-ratio: 16/7 }

.home-gallery-placeholder {
  width: 100%; display: block;
}
.home-gallery-placeholder.featured { aspect-ratio: 16/7 }
.home-gallery-placeholder:not(.featured) { aspect-ratio: 4/3 }
.home-gp-1 { background: linear-gradient(145deg, var(--av-comp-dark), var(--av-comp-lighter)) }
.home-gp-2 { background: linear-gradient(145deg, var(--bg2), var(--bg3)) }
.home-gp-3 { background: linear-gradient(145deg, var(--bg3), var(--bg2)) }

.home-gallery-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 10px 9px;
  background: linear-gradient(transparent, var(--black-60));
}
.home-gallery-author {
  font-size: 11px; color: var(--cream-15);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-gallery-meta {
  font-size: 10px; color: var(--muted2); margin-top: 1px;
}

/* Empty state */
.home-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; gap: 12px; color: var(--muted2);
  text-align: center; padding: 48px;
}
.home-empty-title {
  font-family: var(--ff-display); font-size: 20px; color: var(--cream);
}
.home-empty-sub { font-size: 13px; max-width: 280px; line-height: 1.6 }

/* Skeleton loading — uses shared .skel-shimmer from base.css */
.home-skel-stat { height: 36px; width: 80px }
.home-skel-card { min-width: 150px; height: 180px; border-radius: 12px }
.home-skel-activity { height: 48px; width: 100%; margin-bottom: 8px }
.home-skel-panel { height: 120px; width: 100% }

/* Community sidebar sections */
.home-csb-section { margin-bottom: 16px }
.home-csb-section:last-child { margin-bottom: 0 }
.home-csb-label { font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px }
.home-csb-empty { font-size: 12px; color: var(--muted2); text-align: center; padding: 24px 0 }

/* Community feed cards (sidebar) */
.home-feed-list { display: flex; flex-direction: column; gap: 6px }
.home-feed-card { display: flex; align-items: center; gap: 10px; background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; cursor: pointer; transition: background 0.15s }
.home-feed-card:hover { background: var(--cream-04) }
.home-feed-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex-shrink: 0; margin: 6px 0 6px 8px }
.home-feed-card-body { padding: 6px 10px 6px 0; min-width: 0; flex: 1 }
.home-feed-card-name { font-size: 12px; color: var(--cream); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.home-feed-card-creator { font-size: 10px; color: var(--muted2); margin-top: 1px; display: flex; align-items: center; gap: 4px }
.home-feed-card-avatar { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; flex-shrink: 0 }
.home-feed-card-badge { font-size: 10px; color: var(--accent); margin-top: 1px; font-weight: 500 }
.home-feed-card-meta { font-size: 10px; color: var(--muted2); margin-top: 1px }
.home-feed-adv-icon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin: 6px 0 6px 8px; background: var(--cream-06); border-radius: 8px; color: var(--muted) }
