.settings-view {
  gap: var(--nebula-spacing-xl);
}

.settings-header-copy {
  display: grid;
  gap: var(--nebula-spacing-xs);
  padding-left: var(--nebula-spacing-xl);
}

.settings-header-copy .muted {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.72;
}

.settings-header-copy .view-title {
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.settings-body {
  display: grid;
  gap: var(--nebula-spacing-lg);
  padding: 0 var(--nebula-spacing-xl);
}

.settings-category-bar {
  display: flex;
  gap: 10px;
  padding-bottom: var(--nebula-spacing-md);
  border-bottom: 2px solid rgba(79, 216, 255, 0.15);
  position: relative;
}

.settings-category {
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--nebula-radius-sm);
  border: none;
  background: rgba(24, 38, 68, 0.5);
  font-weight: 660;
  font-size: 16px;
  position: relative;
  transition: 
    background-color var(--nebula-duration-nav) var(--nebula-ease-console),
    color var(--nebula-duration-nav) var(--nebula-ease-console);
}

.settings-category.is-focused {
  background: rgba(38, 58, 98, 0.7);
}

.settings-category.is-active {
  background: rgba(50, 78, 128, 0.8);
  color: var(--nebula-color-accent);
}

.settings-category::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -14px;
  height: 3px;
  background: linear-gradient(90deg, var(--nebula-color-accent), rgba(79, 216, 255, 0.6));
  border-radius: 2px 2px 0 0;
  box-shadow: 0 0 12px rgba(79, 216, 255, 0.6);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--nebula-duration-nav) var(--nebula-ease-console);
}

.settings-category.is-active::after {
  transform: scaleX(1);
}

.settings-panel {
  display: flex;
  flex-direction: column;
  gap: var(--nebula-spacing-lg);
  min-height: 440px;
  background:
    linear-gradient(160deg, rgba(65, 108, 189, 0.18), rgba(24, 36, 72, 0.65)),
    radial-gradient(circle at 75% 25%, rgba(79, 216, 255, 0.08), transparent 48%),
    var(--nebula-color-panel);
  border-radius: var(--nebula-radius-md);
  padding: var(--nebula-spacing-lg);
  box-shadow: 
    0 8px 24px rgba(2, 6, 18, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.settings-panel-head {
  display: grid;
  gap: 8px;
  padding-bottom: var(--nebula-spacing-md);
  border-bottom: 1px solid rgba(79, 216, 255, 0.12);
}

.settings-panel-title {
  margin: 0;
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.settings-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--nebula-spacing-md);
}

.settings-card {
  border: 1px solid rgba(79, 216, 255, 0.15);
  border-radius: var(--nebula-radius-md);
  padding: var(--nebula-spacing-lg);
  min-height: 180px;
  background:
    linear-gradient(165deg, rgba(70, 108, 186, 0.28), rgba(22, 34, 68, 0.88));
  text-align: left;
  display: grid;
  align-content: space-between;
  position: relative;
  overflow: hidden;
  transition: 
    transform var(--nebula-duration-nav) var(--nebula-ease-console),
    border-color var(--nebula-duration-nav) var(--nebula-ease-console);
}

.settings-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 216, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--nebula-duration-nav) var(--nebula-ease-console);
}

.settings-card.is-focused {
  transform: scale(1.04);
  border-color: rgba(79, 216, 255, 0.5);
}

.settings-card.is-focused::before {
  opacity: 1;
}

.settings-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.settings-card p {
  margin: 0;
  position: relative;
  z-index: 1;
}

.settings-card-info {
  border-style: dashed;
  opacity: 0.85;
}

.settings-card.is-disabled {
  opacity: 0.55;
  border-style: dashed;
  filter: grayscale(0.15);
}

.settings-card.is-disabled.is-focused {
  transform: none;
}
