/* ------------------------------------------------ */
/* SETTINGS PANEL */
/* ------------------------------------------------ */

.settings-block {
  background: #000;
  border: 2px solid var(--neon);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--glow-soft);
  margin-bottom: 12px;
}

.settings-title {
  font-size: 16px;
  color: var(--neon);
  margin-bottom: 8px;
}

.settings-layout-row {
  display: flex;
  gap: 20px;
}

.settings-layout-option {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  border: 2px solid var(--neon);
  cursor: pointer;
  font-size: 20px;
  text-align: left;
  transition: 0.2s;
}

.settings-layout-option:hover {
  background: rgba(0, 255, 0, 0.08);
  transform: scale(1.05);
}

.settings-layout-underline {
  margin-top: 4px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.settings-layout-option.active .settings-layout-underline {
  background: #b300ff;
}

.settings-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-hex {
  width: 40px;
  height: 40px;
  position: relative;
  background: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  font-weight: bold;
  text-shadow: var(--glow-soft);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  border: 2px solid var(--neon);
  transition: 0.2s;
}

.color-hex:hover {
  transform: scale(1.1);
}

.color-hex::before,
.color-hex::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 2px;
  background: var(--neon);
  left: 50%;
  transform: translateX(-50%);
}

.color-hex::before { top: 4px; }
.color-hex::after { bottom: 4px; }

.color-hex.active {
  border-color: #b300ff;
  box-shadow: 0 0 8px #b300ff, 0 0 16px #b300ff;
}

/* ------------------------------------------------ */
/* SWITCH – GLOW / EASTER / KONVERTÁLÁSOK */
/* ------------------------------------------------ */

.settings-switch-row,
.settings-conversion-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.settings-conversion-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-conversion-item {
  gap: 16px;
}

.settings-conversion-item > span {
  color: var(--neon);
  font-size: 15px;
}

.settings-base-item {
  justify-content: flex-start;
  gap: 14px;
}

.settings-base-lock {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--neon);
  border-radius: 10px;
  box-shadow: var(--glow-soft);
  font-size: 30px;
}

.settings-base-item > span {
  font-size: 18px;
  font-weight: bold;
}

.settings-switch {
  position: relative;
  width: 90px;
  height: 32px;
  flex: 0 0 90px;
  border-radius: 10px;
  border: 3px solid var(--neon);
  background: #000;
  box-shadow: var(--glow-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.settings-switch-highlight {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 38px;
  height: 22px;
  border-radius: 6px;
  background: var(--neon);
  box-shadow: var(--glow-soft);
  transition: left 0.25s ease;
}

.settings-switch.off .settings-switch-highlight {
  left: 47px;
}

.settings-switch-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: #b300ff;
  font-weight: bold;
  pointer-events: none;
}

.settings-conversion-item:last-child {
  justify-content: space-between;
}

.settings-conversion-item:last-child > span {
  flex: 1;
}

body.mobile-layout .converter-root { flex-direction: column; }

body.mobile-layout .sidebar {
  width: auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px;
  border-right: 0;
  border-bottom: 3px solid var(--neon);
}

body.mobile-layout .mode-btn {
  flex: 1 1 130px;
  max-width: 180px;
}

body.mobile-layout .main-panel {
  min-height: 0;
  padding: 20px;
}

body.mobile-layout .panel {
  min-width: min(350px, calc(100vw - 50px));
  max-width: calc(100vw - 50px);
  box-sizing: border-box;
}

body.mobile-layout .unit-row {
  gap: 12px;
  flex-wrap: wrap;
}

body.mobile-layout .unit-select {
  width: min(150px, 40vw);
}

body.mobile-layout .converter-title {
  position: static;
  transform: none;
  text-align: center;
  margin: 12px 0 0;
}