.dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6rem 2rem 4rem;
  max-width: 960px;
  margin: 0 auto;
  gap: 2.5rem;
  position: relative;
}

.dashboardBg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(0, 212, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 107, 53, 0.05), transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(26, 39, 68, 0.3), transparent 70%),
    linear-gradient(180deg, #080c14 0%, #0c1220 30%, #0e1528 60%, #0a0e17 100%);
  pointer-events: none;
  z-index: -1;
}

/* === Patreon Banner === */
.patreonBanner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 107, 53, 0.06);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 8px;
  flex-wrap: wrap;
}

.patreonBannerIcon {
  color: var(--shell-orange);
  flex-shrink: 0;
}

.patreonBannerText {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--star-white);
  flex: 1;
}

.patreonBannerLink {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--plasma-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  transition: border-color 0.2s ease;
  white-space: nowrap;
}

.patreonBannerLink:hover {
  border-color: var(--plasma-cyan);
}

.patreonBannerClose {
  background: none;
  border: none;
  color: var(--hull-grey);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.patreonBannerClose:hover {
  color: var(--chrome-silver);
}

/* === Survey A banner (www issue #123) === */
.surveyBanner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 8px;
  flex-wrap: wrap;
}

.surveyBannerIcon {
  color: var(--plasma-cyan);
  flex-shrink: 0;
}

.surveyBannerText {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--star-white);
  flex: 1;
}

.surveyBannerLink {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--plasma-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  transition: border-color 0.2s ease;
  white-space: nowrap;
}

.surveyBannerLink:hover {
  border-color: var(--plasma-cyan);
}

.surveyBannerClose {
  background: none;
  border: none;
  color: var(--hull-grey);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.surveyBannerClose:hover {
  color: var(--chrome-silver);
}

/* === Header === */
.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hull-grey);
}

.headerTitle {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--plasma-cyan), var(--shell-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.headerUser {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--chrome-silver);
}

.logoutBtn {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--chrome-silver);
  background: transparent;
  border: 1px solid var(--hull-grey);
  border-radius: 4px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.logoutBtn:hover {
  color: var(--claw-red);
  border-color: var(--claw-red);
}

/* === Manage Account Button === */
.manageBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--plasma-cyan);
  background: transparent;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 4px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.manageBtn:hover {
  background: rgba(0, 212, 255, 0.08);
  border-color: var(--plasma-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}

/* === Intro Box === */
.introBox {
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(26, 39, 68, 0.4));
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.introIcon {
  color: var(--shell-orange);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.introText {
  color: var(--chrome-silver);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.introText strong {
  color: var(--star-white);
}

/* === Section Divider === */
.sectionDivider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sectionDivider::before,
.sectionDivider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hull-grey), transparent);
}

.sectionDividerLabel {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plasma-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* === Player Sections (flat layout, no tabs) === */
.playerSections {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.overviewShipRow {
  display: flex;
  gap: 1.5rem;
}

.overviewShipRow > .playerSection {
  flex: 1;
  min-width: 0;
}

.playerSection {
  width: 100%;
  background: linear-gradient(180deg, rgba(26, 39, 68, 0.35), rgba(13, 19, 33, 0.55));
  border: 1px solid var(--hull-grey);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.playerSectionTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.playerSectionTitleRow .playerSectionTitle {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sectionRefreshBtn {
  background: transparent;
  border: 1px solid var(--hull-grey);
  border-radius: 4px;
  color: var(--chrome-silver);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  transition: all 0.15s ease;
}

.sectionRefreshBtn:hover {
  color: var(--plasma-cyan);
  border-color: var(--plasma-cyan);
}

.playerSectionTitle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plasma-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.playerSectionTitle svg {
  opacity: 0.7;
  flex-shrink: 0;
}

.playerSectionRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* === Steps === */
.step {
  width: 100%;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.4), rgba(13, 19, 33, 0.6));
  border: 1px solid var(--hull-grey);
  border-radius: 10px;
  padding: 2rem;
}

.stepLabel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stepLabel h2 {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--star-white);
  margin: 0;
}

.stepNum {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--space-black);
  background: linear-gradient(135deg, var(--shell-orange), var(--claw-red));
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stepDesc {
  color: var(--chrome-silver);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.stepDesc code {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  color: var(--plasma-cyan);
  font-size: 0.85rem;
  background: rgba(0, 212, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.optionalBadge {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--chrome-silver);
  border: 1px solid var(--hull-grey);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === Registration Code === */
.registrationBlock {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.registrationCodeRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--space-black);
  border: 1px solid var(--plasma-cyan);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}

.registrationCode {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--plasma-cyan);
  letter-spacing: 0.06em;
  flex: 1;
  word-break: break-all;
  user-select: all;
}

.copyBtn {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--space-black);
  background: var(--plasma-cyan);
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.copyBtn:hover {
  background: var(--star-white);
}

.registrationActions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rotateBtn {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--chrome-silver);
  background: transparent;
  border: 1px solid var(--hull-grey);
  border-radius: 4px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}

.rotateBtn:hover:not(:disabled) {
  color: var(--shell-orange);
  border-color: var(--shell-orange);
}

.rotateBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rotateHint {
  font-size: 0.75rem;
  color: var(--hull-grey);
  font-style: italic;
}

/* === Linked Players === */
.linkedPlayers {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  padding: 1rem;
}

.linkedPlayers h3 {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--chrome-silver);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.linkedPlayers ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.linkedPlayers li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--star-white);
}

.playerDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bio-green);
  flex-shrink: 0;
}

.claimNote {
  font-size: 0.8rem;
  color: var(--hull-grey);
  line-height: 1.5;
}

.claimNote code {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* === Doc Links === */
.linkGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.docLink {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(26, 39, 68, 0.5);
  border: 1px solid var(--hull-grey);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  color: var(--star-white);
  text-decoration: none;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.docLink:hover {
  border-color: var(--plasma-cyan);
  color: var(--plasma-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.docLink svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.docLink:hover svg {
  opacity: 1;
}

/* === States === */
.loadingState {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem;
  justify-content: center;
  color: var(--chrome-silver);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--hull-grey);
  border-top-color: var(--plasma-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.errorBox {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid var(--claw-red);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--claw-red);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.card {
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.6), rgba(13, 19, 33, 0.8));
  border: 1px solid var(--nebula-blue);
  border-radius: 12px;
  padding: 3rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.title {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--plasma-cyan), var(--shell-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.subtitle {
  color: var(--chrome-silver);
  margin-bottom: 2rem;
}

/* === Setup Section (inherited by SetupTabs component) === */
.setupSection {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* === Setup Guide (used by SetupTabs component) === */
.setupContainer {
  max-width: 900px;
  margin: 0 auto 2rem;
  position: relative;
}

/* Dropdown selector */
.setupDropdown {
  position: relative;
  margin-bottom: 0.75rem;
  z-index: 10;
}

.setupDropdownTrigger {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 212, 255, 0.02));
  border: 1.5px solid var(--plasma-cyan);
  border-radius: 8px;
  color: var(--star-white);
  cursor: pointer;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.15s ease;
  box-shadow:
    0 0 12px rgba(0, 212, 255, 0.06),
    inset 0 1px 0 rgba(0, 212, 255, 0.08);
}

.setupDropdownTrigger:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 212, 255, 0.04));
  box-shadow:
    0 0 20px rgba(0, 212, 255, 0.12),
    inset 0 1px 0 rgba(0, 212, 255, 0.12);
}

.setupDropdownTrigger:focus-visible {
  outline: 2px solid var(--plasma-cyan);
  outline-offset: 2px;
}

.setupDropdownPrefix {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--chrome-silver);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--hull-grey);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  user-select: none;
}

.setupDropdownIcon {
  flex-shrink: 0;
  color: var(--plasma-cyan);
}

.setupDropdownLabel {
  flex: 1;
  text-align: left;
}

.setupDropdownChevron {
  flex-shrink: 0;
  opacity: 0.5;
  color: var(--chrome-silver);
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.setupDropdownTrigger:hover .setupDropdownChevron {
  opacity: 0.8;
}

.setupDropdownChevronOpen {
  transform: rotate(180deg);
  opacity: 0.9;
}

.setupDropdownHint {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--hull-grey);
  margin-top: 0.4rem;
  padding-left: 0.15rem;
}

.setupDropdownHint strong {
  color: var(--chrome-silver);
  font-weight: 500;
}

.setupHintLink {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--chrome-silver);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(160, 180, 200, 0.3);
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.setupHintLink:hover {
  color: var(--plasma-cyan);
  text-decoration-color: var(--plasma-cyan);
}

.setupDropdownList {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  background: var(--deep-void);
  border: 1.5px solid var(--plasma-cyan);
  border-radius: 8px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(0, 212, 255, 0.1);
  max-height: 320px;
  overflow-y: auto;
  animation: dropdownSlide 0.15s ease;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.setupDropdownOption {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--chrome-silver);
  transition: background 0.1s ease, color 0.1s ease;
}

.setupDropdownOptionFocused {
  background: rgba(0, 212, 255, 0.08);
  color: var(--star-white);
}

.setupDropdownOptionActive {
  color: var(--plasma-cyan);
  font-weight: 600;
}

.setupDropdownOptionIcon {
  flex-shrink: 0;
  opacity: 0.6;
}

.setupDropdownOptionActive .setupDropdownOptionIcon {
  opacity: 1;
}

.setupDropdownCheck {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.8;
}

.setupContentWrapper {
  background: var(--deep-void);
  border: 1px solid var(--hull-grey);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.2),
    0 10px 30px rgba(0, 0, 0, 0.2);
}

.setupPanel {
  display: none;
  animation: setupFadeIn 0.3s ease;
}

.setupPanelActive {
  display: block;
}

@keyframes setupFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.setupHeader {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--hull-grey);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.04), transparent);
}

.setupHeader h3 {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--star-white);
  margin: 0;
}

.setupInstructions {
  padding: 1.25rem;
}

.instructionStep {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(61, 90, 108, 0.2);
}

.instructionStep:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.instructionStep::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--shell-orange), var(--claw-red));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--star-white);
}

.instructionStep h4 {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--star-white);
  margin-bottom: 0.35rem;
}

.instructionStep p {
  font-size: 1rem;
  color: var(--chrome-silver);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.instructionStep p:last-child {
  margin-bottom: 0;
}

.instructionStep a {
  color: var(--plasma-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.instructionStep a:hover {
  color: var(--star-white);
}

.setupCode {
  background: var(--space-black);
  border: 1px solid var(--hull-grey);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--plasma-cyan);
  overflow-x: auto;
  margin: 0.5rem 0;
  position: relative;
}

.setupCodeJson {
  color: var(--bio-green);
  white-space: pre;
  line-height: 1.4;
}

.setupCodeKey {
  color: var(--plasma-cyan);
}

.setupCodeString {
  color: var(--shell-orange);
}

.setupPrompt {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid var(--shell-orange);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: var(--shell-orange);
  margin: 0.5rem 0;
}

.setupPrompt::before {
  content: '> ';
  color: var(--bio-green);
}

.setupNote {
  background: rgba(0, 212, 255, 0.04);
  border-left: 2px solid var(--plasma-cyan);
  padding: 0.5rem 0.75rem;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--chrome-silver);
}

.setupNote strong {
  color: var(--plasma-cyan);
}

.setupWarning {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 1.25rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.5);
  border-radius: 6px;
}

.setupWarningIcon {
  color: #ffaa00;
  flex-shrink: 0;
  margin-top: 2px;
}

.setupWarningBody {
  flex: 1;
  min-width: 0;
}

.setupWarningBody p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #ffd666;
  line-height: 1.5;
}

.setupWarningBody strong {
  color: #ffaa00;
}

.setupWarningLink {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #ffaa00;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}

.setupWarningLink:hover {
  color: #ffd666;
}

.setupFooter {
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--hull-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.setupFooterTip {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--chrome-silver);
}

.setupFooterTip .tipIcon {
  color: var(--bio-green);
  margin-right: 0.35rem;
  vertical-align: -2px;
  display: inline-block;
}

.setupLink {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--plasma-cyan);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.setupLink:hover {
  color: var(--shell-orange);
}

/* Copy button for code blocks */
.copyable {
  position: relative;
  cursor: pointer;
  padding-right: 3.5rem !important;
}

.copyable::after {
  content: '\1F4CB';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.copyable:hover::after {
  opacity: 1;
}

.copied::after {
  content: '\2713';
  color: var(--bio-green);
  opacity: 1;
}

.setupCode.copyable,
.setupPrompt.copyable {
  transition: border-color 0.2s ease, background 0.2s ease;
}

.setupCode.copyable:hover,
.setupPrompt.copyable:hover {
  border-color: var(--plasma-cyan);
}

.setupCode.copyable:active,
.setupPrompt.copyable:active {
  background: rgba(0, 212, 255, 0.1);
}

/* === Main Tabs === */
.mainTabs {
  width: 100%;
  display: flex;
  gap: 2px;
  background: var(--space-black);
  border: 1px solid var(--hull-grey);
  border-radius: 8px;
  padding: 3px;
  position: relative;
}

.mainTab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--chrome-silver);
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mainTab:hover {
  color: var(--star-white);
  background: rgba(26, 39, 68, 0.4);
}

.mainTab svg {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.mainTab:hover svg {
  opacity: 0.9;
}

.mainTabActive {
  color: var(--plasma-cyan);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 212, 255, 0.03));
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow:
    0 0 12px rgba(0, 212, 255, 0.06),
    inset 0 1px 0 rgba(0, 212, 255, 0.1);
}

.mainTabActive svg {
  opacity: 1;
}

.playerCount {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--space-black);
  background: var(--plasma-cyan);
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  line-height: 1;
}

/* === Players Container === */
.playersContainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.emptyPlayers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--chrome-silver);
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.3), rgba(13, 19, 33, 0.5));
  border: 1px dashed var(--hull-grey);
  border-radius: 10px;
}

.emptyPlayers svg {
  color: var(--hull-grey);
  opacity: 0.5;
}

.emptyPlayers h3 {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--star-white);
  margin: 0;
}

.emptyPlayers p {
  font-size: 0.9rem;
  color: var(--hull-grey);
  margin: 0;
  max-width: 320px;
}

.switchTabBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.switchTabBtn:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--plasma-cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.12);
}

/* === Play as Human Tab === */
.humanTab {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.settingsTab {
  width: 100%;
  padding: 1.5rem 0;
}

.humanWarning {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.08), rgba(26, 39, 68, 0.4));
  border: 1px solid rgba(255, 170, 0, 0.35);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  width: 100%;
}

.humanWarningIcon {
  color: #ffaa00;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.humanWarningTitle {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffd666;
  margin: 0 0 0.5rem;
}

.humanWarningText {
  font-size: 0.9rem;
  color: var(--chrome-silver);
  line-height: 1.6;
  margin: 0;
}

.humanPlayBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--space-black);
  background: linear-gradient(135deg, var(--shell-orange), var(--claw-red));
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.humanPlayBtn:hover {
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.35);
  transform: translateY(-1px);
}

/* === Player Tabs (card row) === */
.playerTabsHeader {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.showHiddenBtn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--hull-grey);
  border-radius: 4px;
  color: var(--chrome-silver);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.showHiddenBtn:hover {
  opacity: 1;
  color: var(--plasma-cyan);
}

.playerTabs {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--hull-grey);
  border-left: 1px solid var(--hull-grey);
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.playerCardHidden {
  opacity: 0.5;
}

.hideActive {
  color: var(--plasma-cyan);
}

.playerCard {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  min-width: 120px;
  max-width: 180px;
  flex: 1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--empire-color, transparent) 6%, transparent), transparent);
  border: none;
  border-right: 1px solid var(--hull-grey);
  border-bottom: 1px solid var(--hull-grey);
  cursor: pointer;
  transition: background 0.15s ease;
}

.playerCard:hover {
  background: rgba(22, 32, 64, 0.5);
}

.playerCardActive {
  background: rgba(26, 39, 68, 0.5);
}

.playerCardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.playerCardHeader .onlineDot {
  filter: drop-shadow(0 0 6px var(--bio-green)) drop-shadow(0 0 2px var(--bio-green));
}

.playerCardHeader .offlineDot {
  color: var(--chrome-silver);
  opacity: 0.5;
}

.playerCardHeaderRight {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.playBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: rgba(0, 212, 255, 0.15);
  color: var(--plasma-cyan);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.playBtn:hover {
  background: rgba(0, 212, 255, 0.3);
  color: var(--star-white);
}

.playerCardName {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--chrome-silver);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playerCardBody {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 1;
}

.playerCardBars {
  display: flex;
  gap: 5px;
  height: 48px;
  align-items: flex-end;
}

.playerCardChat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--chrome-silver);
  opacity: 0.7;
}

.miniBarTrack {
  width: 8px;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.miniBarFill {
  width: 100%;
  border-radius: 2px;
  transition: height 0.3s ease;
}

.playerCardCredits {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--chrome-silver);
}

/* === Player Link Button (in linked players list) === */
.playerLinkBtn {
  background: none;
  border: none;
  color: var(--star-white);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.playerLinkBtn:hover {
  color: var(--plasma-cyan);
}

/* === Player Detail === */
.playerDetail {
  width: 100%;
  background: linear-gradient(180deg, rgba(26, 39, 68, 0.35), rgba(13, 19, 33, 0.55));
  border: 1px solid var(--hull-grey);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* === Detail Sub-Tabs === */
.detailTabs {
  display: flex;
  border-bottom: 1px solid var(--hull-grey);
  background: rgba(0, 0, 0, 0.2);
  overflow-x: auto;
  scrollbar-width: none;
}

.detailTabs::-webkit-scrollbar {
  display: none;
}

.detailTab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--chrome-silver);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.detailTab:hover {
  color: var(--star-white);
  background: rgba(0, 212, 255, 0.04);
}

.detailTab svg {
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.detailTab:hover svg {
  opacity: 0.8;
}

.detailTabActive {
  color: var(--plasma-cyan);
  border-bottom-color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.04);
}

.detailTabActive svg {
  opacity: 1;
}

/* === Detail Panel === */
.detailPanel {
  padding: 1.5rem;
  min-height: 200px;
  animation: panelFadeIn 0.2s ease;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.emptyPanel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  color: var(--hull-grey);
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-align: center;
}

.emptyPanel code {
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

/* === Overview Grid === */
.overviewGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  border-top: 1px solid var(--hull-grey);
  border-left: 1px solid var(--hull-grey);
  border-radius: 6px;
  overflow: hidden;
}

.overviewItem {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--hull-grey);
  border-bottom: 1px solid var(--hull-grey);
  min-width: 0;
}

.overviewLabel {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--hull-grey);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.overviewValue {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--star-white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overviewValue svg {
  flex-shrink: 0;
}

.onlineDot {
  color: var(--bio-green);
  filter: drop-shadow(0 0 4px var(--bio-green));
}

.offlineDot {
  color: var(--hull-grey);
}

/* === Ship Panel === */
.shipPanel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shipHeader {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hull-grey);
}

.shipHeader > svg {
  color: var(--plasma-cyan);
  opacity: 0.6;
  flex-shrink: 0;
}

.shipName {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--star-white);
  margin: 0;
}

.shipClass {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--chrome-silver);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shipBars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === Stat Bars (gauge readouts) === */
.statBar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.statBarLabel {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.statBarLabel span:first-child {
  color: var(--chrome-silver);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.statBarLabel span:last-child {
  color: var(--hull-grey);
  font-size: 0.7rem;
}

.statBarTrack {
  height: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(61, 90, 108, 0.4);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.statBarTrack::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.15) 3px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
}

.statBarFill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  box-shadow: 0 0 8px currentColor;
}

/* === Skills Grid === */
.skillGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  border-top: 1px solid var(--hull-grey);
  border-left: 1px solid var(--hull-grey);
  border-radius: 6px;
  overflow: hidden;
}

.skillItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-right: 1px solid var(--hull-grey);
  border-bottom: 1px solid var(--hull-grey);
}

.skillName {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--chrome-silver);
  text-transform: capitalize;
}

.skillLevel {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  border: 1px solid rgba(0, 212, 255, 0.15);
}

/* === Stats Grid === */
.statGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hull-grey);
  border-left: 1px solid var(--hull-grey);
  border-radius: 6px;
  overflow: hidden;
}

.statItem {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--hull-grey);
  border-bottom: 1px solid var(--hull-grey);
  text-align: center;
}

.statValue {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--star-white);
}

.statLabel {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--hull-grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === Credentials === */
.credentialsBlock {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.credentialRow {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.credentialLabel {
  font-family: var(--font-orbitron), 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--hull-grey);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.credentialUsername {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--star-white);
  letter-spacing: 0.02em;
}

.passwordField {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--hull-grey);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  min-height: 2.25rem;
}

.passwordValue {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--plasma-cyan);
  flex: 1;
  word-break: break-all;
  user-select: all;
}

.passwordHidden {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--hull-grey);
  font-style: italic;
  flex: 1;
}

.passwordToggle,
.passwordCopy {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hull-grey);
  border-radius: 4px;
  padding: 0.3rem;
  cursor: pointer;
  color: var(--chrome-silver);
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.passwordToggle:hover,
.passwordCopy:hover {
  color: var(--plasma-cyan);
  border-color: var(--plasma-cyan);
  background: rgba(0, 212, 255, 0.06);
}

.credentialActions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.resetPasswordBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--chrome-silver);
  background: transparent;
  border: 1px solid var(--hull-grey);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}

.resetPasswordBtn:hover:not(:disabled) {
  color: var(--shell-orange);
  border-color: var(--shell-orange);
}

.resetPasswordBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinning {
  animation: spin 0.8s linear infinite;
}

.resetPasswordHint {
  font-size: 0.75rem;
  color: var(--hull-grey);
  font-style: italic;
}

/* === Captain's Log === */
.logList {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hull-grey) transparent;
}

.logList::-webkit-scrollbar {
  width: 4px;
}

.logList::-webkit-scrollbar-track {
  background: transparent;
}

.logList::-webkit-scrollbar-thumb {
  background: var(--hull-grey);
  border-radius: 2px;
}

.logEntry {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(61, 90, 108, 0.3);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--plasma-cyan);
}

.logTimestamp {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--hull-grey);
  margin-bottom: 0.5rem;
}

.logTimestamp svg {
  opacity: 0.5;
}

.logContent {
  font-family: var(--font-space-grotesk), 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  color: var(--chrome-silver);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* === Responsive === */
@media (max-width: 900px) {
  .statGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .dashboard {
    padding: 5rem 1rem 2rem;
    gap: 1.5rem;
  }

  .header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .headerRight {
    flex-direction: column;
    gap: 0.5rem;
  }

  .step {
    padding: 1.25rem;
  }

  .stepLabel {
    gap: 0.75rem;
  }

  .stepLabel h2 {
    font-size: 1rem;
  }

  .registrationCode {
    font-size: 0.7rem;
  }

  .linkGrid {
    grid-template-columns: 1fr;
  }

  .setupDropdownTrigger {
    font-size: 0.85rem;
    padding: 0.7rem 0.85rem;
  }

  .setupDropdownPrefix {
    font-size: 0.55rem;
    padding: 0.15rem 0.4rem;
  }

  .setupDropdownHint {
    font-size: 0.7rem;
  }

  .setupDropdownOption {
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
  }

  .setupInstructions {
    padding: 1rem;
  }

  .instructionStep {
    padding-left: 2rem;
  }

  .instructionStep::before {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.6rem;
  }

  .instructionStep h4 {
    font-size: 0.95rem;
  }

  .instructionStep p {
    font-size: 0.85rem;
  }

  .setupCode {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .setupPrompt {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .setupHeader {
    padding: 0.75rem 1rem;
  }

  .setupHeader h3 {
    font-size: 1rem;
  }

  .setupFooter {
    padding: 0.6rem 1rem;
  }

  .mainTab {
    font-size: 0.7rem;
    padding: 0.6rem 0.75rem;
    gap: 0.35rem;
  }

  .playerCard {
    padding: 0.4rem 0.5rem;
    min-width: 70px;
  }

  .detailTabs {
    gap: 0;
  }

  .detailTab {
    font-size: 0.65rem;
    padding: 0.55rem 0.65rem;
    gap: 0.25rem;
  }

  .detailPanel {
    padding: 1rem;
  }

  .overviewShipRow {
    flex-direction: column;
  }

  .overviewGrid {
    grid-template-columns: 1fr;
  }

  .skillGrid {
    grid-template-columns: 1fr;
  }

  .statGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shipName {
    font-size: 0.95rem;
  }

  .playerSectionRow {
    grid-template-columns: 1fr;
  }

  .introBox {
    padding: 1rem 1.1rem;
  }

  .introText {
    font-size: 0.88rem;
  }

  .manageBtn {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }

  .sectionDividerLabel {
    font-size: 0.75rem;
  }

  .playerSection {
    padding: 1.1rem;
  }

  .playerSectionTitle {
    font-size: 0.78rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
  }
}

/* Onboarding fork (shown to players with no characters yet) */
.onboardChoice {
  width: 100%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(26, 39, 68, 0.4));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
}

.onboardHeading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--plasma-cyan);
  font-family: var(--font-orbitron), sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.onboardCards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.onboardCard {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(26, 39, 68, 0.5);
  border: 1px solid var(--hull-grey);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  color: var(--star-white);
  text-decoration: none;
  transition: all 0.2s ease;
}

.onboardCard:hover {
  border-color: var(--plasma-cyan);
  transform: translateY(-2px);
}

.onboardCard svg {
  color: var(--chrome-silver);
}

.onboardCardPrimary {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: var(--glow-cyan);
}

.onboardCardPrimary svg {
  color: var(--plasma-cyan);
}

.onboardCardTitle {
  font-family: var(--font-orbitron), sans-serif;
  font-size: 0.95rem;
  color: var(--star-white);
}

.onboardCardDesc {
  font-family: var(--font-jetbrains), 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--chrome-silver);
  line-height: 1.4;
}
