/* Pilot dashboard — /pilot/ */

.rcs-dash-wrap {
  max-width: min(980px, calc(100vw - 24px));
}

.rcs-dash-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rcs-dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}

.rcs-dash-greeting {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rcs-dash-tier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  color: var(--rcs-muted);
}

.rcs-dash-tier-until {
  font-size: 13px;
  color: var(--rcs-muted);
}

.rcs-dash-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.rcs-dash-stat {
  min-width: 72px;
  text-align: center;
}

.rcs-dash-stat-val {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.rcs-dash-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rcs-muted);
}

.rcs-dash-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.rcs-dash-status-pill {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--rcs-border);
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .rcs-dash-status-pill {
  background: rgba(15, 23, 42, 0.02);
}

.rcs-dash-status-pill.is-live {
  border-color: var(--rcs-accent);
  background: var(--rcs-accent-dim);
}

.rcs-dash-status-pill.is-active {
  border-color: rgba(56, 189, 248, 0.45);
}

.rcs-dash-status-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rcs-muted);
  margin-bottom: 4px;
}

.rcs-dash-status-pill strong {
  font-size: 14px;
  line-height: 1.35;
}

.rcs-dash-hub .rcs-dash-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.rcs-dash-hub-divider {
  margin: 16px 0 14px;
  border-top: 1px solid var(--rcs-border);
}

.rcs-dash-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.rcs-dash-cta-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.rcs-dash-cta-body {
  margin: 0;
  font-size: 14px;
  color: var(--rcs-muted);
  max-width: 42ch;
}

.rcs-dash-activity-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.rcs-dash-activity-head h2 {
  margin: 0;
}

.rcs-dash-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rcs-dash-club-chips {
  margin-bottom: 14px;
}

.rcs-dash-chip {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rcs-border);
  background: transparent;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rcs-dash-chip:hover {
  border-color: var(--rcs-accent);
}

.rcs-dash-chip.is-active {
  border-color: var(--rcs-accent);
  background: var(--rcs-accent-dim);
  color: var(--rcs-accent);
}

.rcs-dash-activity-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}

.rcs-dash-activity-stat {
  text-align: center;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--rcs-border);
}

.rcs-dash-medals-head h2 {
  margin: 0 0 6px;
}

.rcs-dash-medals-head .rcs-hint {
  margin: 0 0 14px;
}

.rcs-dash-medals-total {
  margin: 0 0 10px;
  font-weight: 700;
}

.rcs-dash-medals-bar-wrap {
  margin-bottom: 14px;
}

.rcs-dash-medals-bar-label {
  font-size: 13px;
  color: var(--rcs-muted);
  margin-bottom: 6px;
}

.rcs-dash-medals-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

[data-theme="light"] .rcs-dash-medals-bar {
  background: rgba(15, 23, 42, 0.08);
}

.rcs-dash-medals-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rcs-accent);
  transition: width 0.25s ease;
}

.rcs-dash-medals-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
}

.rcs-dash-medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--rcs-border);
  text-align: center;
}

.rcs-dash-medal.is-earned {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.rcs-dash-medal.is-locked {
  opacity: 0.72;
}

.rcs-dash-medal-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.rcs-dash-medal-name {
  font-size: 12px;
  font-weight: 700;
}

.rcs-dash-medal-th {
  font-size: 11px;
  color: var(--rcs-muted);
}

.rcs-dash-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rcs-dash-recent-head h2 {
  margin: 0;
}

.rcs-dash-recent-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--rcs-accent);
  text-decoration: none;
}

.rcs-dash-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rcs-dash-recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rcs-border);
}

.rcs-dash-recent-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rcs-dash-recent-main strong {
  display: block;
  font-size: 14px;
}

.rcs-dash-recent-meta {
  display: block;
  font-size: 12px;
  color: var(--rcs-muted);
  margin-top: 2px;
}

.rcs-dash-recent-dur {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.rcs-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.rcs-dash-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--rcs-border);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

[data-theme="light"] .rcs-dash-tile {
  background: rgba(15, 23, 42, 0.02);
}

.rcs-dash-tile strong {
  font-size: 15px;
}

.rcs-dash-tile span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--rcs-muted);
}

.rcs-dash-tile:hover {
  border-color: var(--rcs-accent);
  background: var(--rcs-accent-dim);
}

.rcs-dash-tile.locked {
  opacity: 0.72;
  pointer-events: none;
}

.rcs-dash-tile-btn {
  appearance: none;
  cursor: pointer;
  font: inherit;
  width: 100%;
}

.rcs-dash-unlock {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.78);
  pointer-events: auto;
}

.rcs-dash-unlock[hidden] {
  display: none !important;
}

body.rcs-dash-unlock-open {
  overflow-y: scroll;
}

[data-theme="light"] .rcs-dash-unlock {
  background: rgba(15, 23, 42, 0.55);
}

.rcs-dash-unlock-panel {
  position: relative;
  max-width: min(400px, calc(100vw - 32px));
  width: 100%;
  text-align: center;
  padding: 28px 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: var(--rcs-panel, #111827);
  color: var(--rcs-text, #f9fafb);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .rcs-dash-unlock-panel {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
}

.rcs-dash-unlock-close {
  position: absolute;
  top: 10px;
  right: 12px;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--rcs-muted);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.rcs-dash-unlock-close:hover {
  color: var(--rcs-text);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .rcs-dash-unlock-close:hover {
  background: rgba(15, 23, 42, 0.06);
}

.rcs-dash-unlock-badge {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 10px;
}

.rcs-dash-unlock-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #22c55e;
}

.rcs-dash-unlock-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--rcs-text);
  text-transform: none;
}

.rcs-dash-unlock-body {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rcs-muted);
}

.rcs-dash-unlock-btn {
  min-width: 140px;
}

/* Profile medal shelf (shared) */
.rcs-profile-medals-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.rcs-profile-medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--rcs-border);
  text-align: center;
}

.rcs-profile-medal.is-earned {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.rcs-profile-medal.is-locked {
  opacity: 0.72;
}

.rcs-profile-medal-icon {
  font-size: 1.4rem;
}

.rcs-profile-medal-name {
  font-size: 12px;
  font-weight: 700;
}

.rcs-profile-medal-th {
  font-size: 11px;
  color: var(--rcs-muted);
}

.rcs-profile-medals-total {
  margin: 0;
  font-weight: 700;
}
