/* Dashboard overview + sidebar enhancements */

/* Welcome / hero: no card border */
#section-overview .overview-hero.welcome-banner {
  border: none;
  border-left: none;
  box-shadow: none;
  background: transparent;
  padding: 0 0 20px;
  margin-bottom: 8px;
  overflow: visible;
  border-radius: 0;
}

#section-overview .welcome-eyebrow {
  padding-left: 3px;
  letter-spacing: 1.5px;
  line-height: 1.45;
}

#section-overview .overview-hero.welcome-banner::after {
  display: none;
}

/* Stat cards: product-first hierarchy on overview */
#section-overview .stats-grid {
  margin-bottom: 12px;
}

#section-overview .stats-grid--product {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

#section-overview .stat-card {
  border: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.02);
}

#section-overview .stat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: none;
}

#section-overview .stat-card::before {
  display: none;
}

#section-overview .stat-card--primary {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

#section-overview .stat-card--primary:hover {
  background: rgba(212, 175, 55, 0.1);
}

#section-overview .stat-card--primary .stat-card-value {
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  color: var(--gold);
}

#section-overview .stat-card-unit {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dim, #9ca3af);
  vertical-align: baseline;
}

/* Overview stat values: heading font (no slashed zero mono) */
#section-overview .stat-card-value {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
}

#section-overview .stat-card-value--compact {
  line-height: 1.1;
  letter-spacing: 0.01em;
}

#section-overview .stat-card[data-stat="days"] .stat-card-value {
  color: var(--text-primary);
}

#section-overview .stat-card[data-stat="besthang"] .stat-card-value.mono {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  #section-overview .stats-grid--product {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #section-overview .stats-grid--product {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Sidebar nav groups (Linear-style) */
.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-nav-label {
  display: block;
  padding: 6px 14px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  user-select: none;
}

body.sidebar-collapsed .sidebar-nav-label {
  display: none;
}

body.sidebar-collapsed .sidebar-nav-group {
  margin-top: 6px;
  padding-top: 6px;
}

/* Calculator honesty note */
.calc-honesty-note {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--text-dim, #9ca3af);
  line-height: 1.45;
}

.calc-honesty-note.is-warning {
  color: #fbbf24;
}

.calc-required {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold, #d4af37);
  margin-left: 6px;
}

/* Lightweight empty / skeleton placeholders in sections */
.section-empty-skeleton {
  display: grid;
  gap: 10px;
  padding: 8px 0 4px;
}

.section-empty-skeleton .skeleton-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  background-size: 200% 100%;
  animation: wdhc-skel 1.4s ease-in-out infinite;
}

.section-empty-skeleton .skeleton-block {
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  background-size: 200% 100%;
  animation: wdhc-skel 1.4s ease-in-out infinite;
}

@keyframes wdhc-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Tier progress under metrics */
.overview-tier-progress {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: none;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: none;
}

.overview-tier-progress .tier-progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.overview-tier-progress .tier-progress-fill {
  background: var(--tier-progress-color, var(--gold));
  box-shadow: 0 0 12px color-mix(in srgb, var(--tier-progress-color, var(--gold)) 45%, transparent);
}

.overview-tier-progress .tier-progress-next-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 0;
  border-top: none;
}

.tier-progress-next-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Pro qualification card */
.overview-pro-card {
  margin-bottom: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.08) 0%, rgba(8, 8, 10, 0.95) 55%);
}

.overview-pro-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.overview-pro-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.overview-pro-card-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.overview-pro-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.overview-pro-stat {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-pro-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.overview-pro-stat-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

.overview-pro-card-note {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.overview-pro-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}

.overview-pro-link:hover {
  text-decoration: underline;
}

.overview-pro-founding {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-transform: uppercase;
}

.overview-pro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.overview-pro-card--qualified {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.08);
}

.btn-outline--gold {
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold);
}

@media (max-width: 768px) {
  .overview-pro-card-stats {
    grid-template-columns: 1fr;
  }
}

#section-overview .stat-card-label {
  font-family: var(--font-heading);
}

#section-overview .stat-card[data-stat="consistency"] .stat-card-value {
  font-variant-numeric: tabular-nums;
}

/* Sidebar Grip Age meta */
.sidebar-qs-meta {
  display: block;
  font-size: 0.65rem;
  color: #888;
  margin-top: 2px;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

/* Submit hang stepper */
.submit-stepper {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.submit-step {
  flex: 1;
  min-width: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #999;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-step span {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
}

.submit-step.is-active {
  border-color: rgba(212, 175, 55, 0.45);
  color: #f0d878;
  background: rgba(212, 175, 55, 0.1);
}

.submit-step.is-done {
  border-color: rgba(110, 207, 138, 0.35);
  color: #9ed9b0;
}

.submit-step-panel[hidden] { display: none !important; }

.submit-step-nav {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.submit-step-nav .btn-primary,
.submit-step-nav .btn-outline {
  flex: 1;
}

/* Leaderboard around-you */
.portal-lb-mode {
  display: flex;
  gap: 6px;
}

.portal-lb-you-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

tr.portal-lb-you {
  background: rgba(212, 175, 55, 0.1) !important;
}

/* Settings */
.settings-section-label {
  margin: 0 0 12px;
  font-family: var(--font-heading, Oswald, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
}

.settings-account-card {
  padding: 18px 20px;
}

.settings-account-line {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #e8e8e8;
  font-weight: 600;
}

.settings-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.progress-insight {
  margin: 10px 0 0;
  max-width: 40rem;
  font-size: 0.95rem;
  color: #c8c8c8;
  line-height: 1.45;
  padding: 8px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.06);
  border-radius: 0 8px 8px 0;
}

.overview-more-details {
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 0;
}

.overview-more-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  color: #bbb;
  letter-spacing: 0.3px;
}

.overview-more-summary::-webkit-details-marker { display: none; }

.overview-more-details[open] .overview-more-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.overview-more-details .overview-secondary-grid {
  padding: 16px;
  margin: 0;
}

.tl-primary-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(10, 10, 10, 0.95) 60%);
}

.tl-insights-details {
  padding: 0 16px 16px;
}

.tl-insights-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 4px;
  font-weight: 600;
  color: #bbb;
}

.tl-insights-summary::-webkit-details-marker { display: none; }

/* Welcome insight line */
#section-overview .welcome-insight {
  margin: 10px 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #c8c8c8;
  font-weight: 500;
  letter-spacing: 0.01em;
}

#section-overview .welcome-insight:not([hidden]) {
  padding: 8px 12px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.06);
  border-radius: 0 8px 8px 0;
}

/* Primary CTA band */
.overview-primary-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 8px 0 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(10, 10, 10, 0.9) 55%);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.overview-primary-btn {
  min-width: 180px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.overview-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Empty states */
.overview-empty-state {
  text-align: center;
  padding: 28px 20px;
}

.overview-empty-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #eee;
}

.overview-empty-copy {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: #999;
  line-height: 1.5;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.overview-empty-inline {
  list-style: none;
  text-align: center;
  padding: 20px 12px !important;
}

.featured-hang-empty {
  margin-bottom: 20px;
  border: 1px dashed rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.02);
}

/* Demoted streak as details */
.streak-card--demoted {
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
}

.streak-card--demoted > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.streak-card--demoted > summary::-webkit-details-marker { display: none; }

.streak-card--demoted[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.streak-card--demoted .streak-card-body {
  padding: 16px 18px 20px;
}

.overview-secondary-grid {
  margin-top: 8px;
}

.profile-card--compact .profile-edit-link {
  margin-top: 12px;
}

/* Hang history · card list with always-on embed + link */
.hang-history-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hang-sort-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  font-weight: 600;
}

.hang-sort-select {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e8e8e8;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  background-image: linear-gradient(45deg, transparent 50%, #D4AF37 50%),
    linear-gradient(135deg, #D4AF37 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.hang-sort-select:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.5);
}

.hang-history-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.hang-card {
  background: linear-gradient(160deg, rgba(18, 18, 18, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 18px 18px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hang-card:hover {
  border-color: rgba(212, 175, 55, 0.22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hang-card.hang-row-highlight {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 14px 40px rgba(0, 0, 0, 0.4);
}

.hang-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 14px;
}

.hang-card-time-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hang-card-time {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hang-card-type {
  font-size: 0.82rem;
  color: #999;
  font-weight: 600;
}

.hang-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.hang-card-date {
  font-size: 0.85rem;
  color: #888;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hang-card-video {
  display: grid;
  gap: 10px;
}

.hang-card-player {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hang-card-player iframe,
.hang-card-player video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
}

.hang-card-player--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.92rem;
  aspect-ratio: auto;
  min-height: 72px;
  padding: 16px;
}

.hang-card-video--empty {
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.hang-card-no-video {
  margin: 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.hang-card-video-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.hang-card-video-host {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  font-weight: 600;
}

.hang-card-notes {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: #888;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .hang-card-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hang-card-badges { justify-content: flex-start; }
  .hang-card-time { font-size: 1.35rem; }
}

/* Featured hang video · Strava-style "activity media" block */
.featured-hang-video-card {
  margin-bottom: 20px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 55%),
    linear-gradient(160deg, rgba(18, 18, 18, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.featured-hang-video-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.featured-hang-video-title {
  margin: 0 0 4px;
}

.featured-hang-video-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted, #888);
  line-height: 1.4;
}

.featured-hang-video-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.featured-hang-video-time {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.featured-hang-video-status {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #bbb;
}

.featured-hang-video-status.is-verified {
  color: #6ecf8a;
  border-color: rgba(110, 207, 138, 0.35);
  background: rgba(110, 207, 138, 0.08);
}

.featured-hang-video-status.is-approved {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
}

.featured-hang-video-status.is-pending {
  color: #e0b060;
  border-color: rgba(224, 176, 96, 0.35);
  background: rgba(224, 176, 96, 0.08);
}

.featured-hang-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-hang-video-frame video,
.featured-hang-video-frame iframe,
.featured-hang-video-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  background: #000;
}

.featured-hang-video-frame.is-embed iframe {
  object-fit: cover;
}

.featured-hang-video-thumb-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.featured-hang-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.featured-hang-video-play::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 18px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #0a0a0a;
}

.featured-hang-video-fallback {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  color: #aaa;
  font-size: 0.95rem;
}

.featured-hang-video-fallback a {
  color: var(--gold);
  font-weight: 600;
}

.featured-hang-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

/* Hang history video column */
.hang-video-cell {
  white-space: nowrap;
}

.hang-video-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hang-video-link:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.55);
  text-decoration: none;
  color: #f0d060;
}

.hang-video-none {
  color: #555;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .featured-hang-video-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .featured-hang-video-frame {
    max-height: 280px;
  }
}

/* Sticky quick actions */
.overview-quick-actions--sticky {
  position: sticky;
  top: 12px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1025px) {
  .overview-quick-actions--sticky {
    top: 16px;
  }
}

/* Activity feed: compact desktop rows */
#section-overview .activity-feed {
  padding: 16px 18px;
  margin-bottom: 20px;
}

#section-overview .activity-feed-list {
  gap: 4px;
}

#section-overview .activity-feed-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
}

#section-overview .activity-feed-icon {
  width: 32px;
  height: 32px;
}

#section-overview .activity-feed-main {
  min-width: 0;
}

#section-overview .activity-feed-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#section-overview .activity-feed-meta {
  text-align: right;
  min-width: 72px;
}

#section-overview .activity-feed-time {
  display: block;
  font-size: 0.82rem;
}

#section-overview .activity-feed-date {
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  #section-overview .activity-feed-item {
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto auto;
  }

  #section-overview .activity-feed-type {
    grid-column: 2;
  }

  #section-overview .activity-feed-meta {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* Activity feed clickable rows */
.activity-feed-item--clickable {
  cursor: pointer;
  transition: background 0.15s ease;
}

.activity-feed-item--clickable:hover {
  background: rgba(212, 175, 55, 0.06);
}

.hang-row-highlight td {
  background: rgba(212, 175, 55, 0.12) !important;
}

.hang-row-highlight td:first-child {
  box-shadow: inset 3px 0 0 var(--gold);
}

/* Sidebar rank link */
.sidebar-profile-rank--link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-profile-rank--link:hover {
  color: var(--gold-light);
}

/* Sidebar collapse (desktop) */
.sidebar-collapse-toggle {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sidebar-collapse-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.sidebar-collapse-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

@media (min-width: 1025px) {
  .sidebar-brand-link {
    width: 100%;
  }

  .sidebar-brand {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-right: 16px;
  }

  .sidebar-collapse-toggle {
    display: inline-flex;
  }

  :root {
    --sidebar-width-collapsed: 76px;
  }

  body.sidebar-collapsed {
    --sidebar-width: var(--sidebar-width-collapsed);
  }

  body.sidebar-collapsed .sidebar-brand-text,
  body.sidebar-collapsed .sidebar-profile-info,
  body.sidebar-collapsed .sidebar-link span,
  body.sidebar-collapsed .sidebar-qs-label,
  body.sidebar-collapsed .sidebar-unit-label,
  body.sidebar-collapsed .btn-sidebar-split span,
  body.sidebar-collapsed .btn-sidebar-primary span,
  body.sidebar-collapsed .sidebar-actions-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  body.sidebar-collapsed .sidebar-brand-link {
    justify-content: center;
  }

  body.sidebar-collapsed .sidebar-brand-logo {
    height: 40px;
    max-width: 48px;
  }

  body.sidebar-collapsed .sidebar-profile {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
  }

  body.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
  }

  body.sidebar-collapsed .sidebar-quick-stats {
    grid-template-columns: 1fr;
  }

  body.sidebar-collapsed .sidebar-qs-value {
    font-size: 0.75rem;
  }

  body.sidebar-collapsed .btn-sidebar-primary,
  body.sidebar-collapsed .btn-sidebar-split {
    padding: 10px;
    min-height: 40px;
  }

  body.sidebar-collapsed .btn-sidebar-split svg,
  body.sidebar-collapsed .btn-sidebar-primary svg {
    margin: 0;
  }

  body.sidebar-collapsed .sidebar-footer {
    padding-left: 10px;
    padding-right: 10px;
  }

  body.sidebar-collapsed .sidebar-collapse-toggle svg {
    transform: rotate(180deg);
  }

  body.sidebar-collapsed .sidebar-link[title] {
    position: relative;
  }
}

/* Section empty states */
.section-empty-state {
  padding: 28px 24px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.04);
  text-align: center;
}

.section-empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.section-empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.55;
}

/* Share modal: preview-first layout */
.modal-share .share-card-v3 {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 16px;
}

.share-preview-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.5;
}