/* Settings screen */

.settings-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #101c22;
  color: #ffffff;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #1f2933;
}

.settings-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.settings-logo-text {
  font-size: 20px;
  font-weight: 600;
}

/* Navigation icons */

.settings-nav {
  display: flex;
  gap: 8px;
}

.settings-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 8px;
}

.settings-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.settings-nav-btn-active {
  background: rgba(19, 164, 236, 0.15);
}

.settings-nav-icon {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.settings-main {
  flex: 1;
  padding: 16px;
  padding-bottom: 80px;
  overflow-y: auto;
}

.settings-section {
  margin-bottom: 24px;
}

.settings-section-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.settings-card {
  border-radius: 18px;
  background: #020617;
  border: 1px solid #1f2933;
  overflow: hidden;
}

/* Tier card */

.settings-card-tier {
  padding: 0;
  border: none;
  background: #020617;
}

.settings-tier-top {
  padding: 18px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.settings-tier-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(19, 164, 236, 0.12);
  color: #13a4ec;
  font-size: 13px;
  font-weight: 600;
}

.settings-tier-sub {
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.settings-link-button {
  border: none;
  background: none;
  padding: 0 0 0 4px;
  color: #13a4ec;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.settings-tier-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #1f2933;
}

.settings-stat {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.settings-stat-value {
  font-size: 18px;
  font-weight: 700;
}

.settings-stat-label {
  font-size: 12px;
  color: #9ca3af;
}

/* Rows */

.settings-row {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
}

.settings-row + .settings-row {
  border-top: 1px solid #1f2933;
}

.settings-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.settings-row-icon-danger {
  background: rgba(248, 113, 113, 0.18);
}

.settings-row-title {
  font-size: 15px;
}

.settings-row-danger .settings-row-title {
  color: #f87171;
}

.settings-row-danger .settings-row-icon {
  color: #f87171;
}

.settings-row-chevron {
  font-size: 20px;
  color: #6b7280;
}

/* Switch */

.settings-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-flex;
  align-items: center;
}

.settings-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #4b5563;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.settings-switch-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.settings-switch input:checked + .settings-switch-slider {
  background-color: #13a4ec;
}

.settings-switch input:checked + .settings-switch-slider::before {
  transform: translateX(18px);
}

/* Footer */

.settings-footer {
  padding: 12px 0 16px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

.settings-version {
  opacity: 0.8;
}
