:root {
  --bg-main: #0e1018;
  --bg-glass: rgba(255,255,255,0.04);
  --border-soft: rgba(255,255,255,0.08);

  --accent: #2dd4bf;
  --accent-dark: #0f766e;

  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-main);

  background:
    radial-gradient(1200px 600px at 10% -10%, #1f2933 0%, transparent 60%),
    radial-gradient(1000px 600px at 90% 10%, #111827 0%, transparent 55%),
    linear-gradient(180deg, #0b0d14, #0e1018);
}

.panel-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(15, 18, 28, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.panel-header h1 {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
  letter-spacing: .2px;
}

#searchInput {
  flex: 1;
  max-width: 260px;
  padding: 8px 12px;

  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft);
  border-radius: 10px;

  color: var(--text-main);
}

#searchInput::placeholder {
  color: var(--text-soft);
}

.toggle-btn {
  border: none;
  background: var(--accent);
  color: #022c22;
  font-size: 18px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.container {
  margin: 110px auto 40px;
  width: calc(100% - 32px);
  max-width: 460px;

  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-soft);
  border-radius: 22px;

  padding: 32px 28px;
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.container h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 26px;
  letter-spacing: .3px;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.setting-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

input[type="text"],
input[type="number"] {
  padding: 14px 14px;

  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border-soft);
  border-radius: 14px;

  color: var(--text-main);
  font-size: 14px;
}

input::placeholder {
  color: #6b7280;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,212,191,.15);
}

button {
  margin-top: 6px;
  width: 120px;

  padding: 12px 0;
  border-radius: 14px;
  border: none;

  font-weight: 600;
  font-size: 14px;

  color: #022c22;
  background: linear-gradient(180deg, #2dd4bf, #14b8a6);
  cursor: pointer;

  box-shadow:
    0 10px 30px rgba(45,212,191,.35),
    inset 0 -1px 0 rgba(0,0,0,.2);
}

button:active {
  transform: translateY(1px);
}

@media (max-width: 480px) {
  .container {
    padding: 28px 22px;
  }

  button {
    width: 100%;
  }
}

.settings-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
  font-size: 14px;
  color: #e5e7eb;
}

.setting-input {
  display: flex;
  gap: 10px;
}

.setting-input input {
  flex: 1;
}

.btn-save {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.btn-logout {
  background: rgba(255,255,255,.06);
  color: #e5e7eb;
  box-shadow: none;
}

.btn-logout:hover {
  background: rgba(255,255,255,.12);
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #1f2937;
  border-radius: 999px;
  transition: .3s;
}

.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 4px;
  top: 4px;
  background: white;
  border-radius: 50%;
  transition: .3s;
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
}

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

.custom-select {
  position: relative;
  min-width: 180px;
  font-family: Inter, sans-serif;
}

.select-display {
  background: linear-gradient(
    145deg,
    rgba(15, 23, 42, 0.85),
    rgba(2, 6, 23, 0.9)
  );
  backdrop-filter: blur(14px);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  color: #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all .25s ease;
}

.select-display:hover {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.15);
}

.select-options {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: linear-gradient(
    160deg,
    rgba(2, 6, 23, 0.95),
    rgba(15, 23, 42, 0.92)
  );
  backdrop-filter: blur(18px);
  border: 1px solid rgba(45, 212, 191, 0.25);
  border-radius: 14px;
  overflow: hidden;
  display: none;
  z-index: 80;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  animation: dropdownFade .25s ease;
}

.custom-select.open .select-options {
  display: block;
}

.option {
  padding: 14px 16px;
  cursor: pointer;
  color: #e5e7eb;
  transition: all .2s ease;
}

.option:hover {
  background: rgba(45, 212, 191, 0.12);
}

.option.active {
  background: rgba(45, 212, 191, 0.22);
  color: #5eead4;
}

.arrow {
  font-size: 14px;
  opacity: .7;
  transition: transform .25s ease;
}

.custom-select.open .arrow {
  transform: rotate(180deg);
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}