/* ---------- Card (Auth / Main) ---------- */
.card {
  width: calc(100% - (var(--page-pad) * 2));
  max-width: var(--mobile-width);
  max-height: 92vh;
  margin: auto;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(28, 28, 34, 0.85), rgba(20, 20, 26, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
  padding: 12px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
}

/* Card in Admin Mode */
.card.admin-mode {
  position: absolute !important;
  z-index: 100;
  top: calc(var(--page-pad) + env(safe-area-inset-top)) !important;
  bottom: calc(var(--page-pad) + env(safe-area-inset-bottom) + var(--action-bar-height) + var(--action-bar-gap)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  width: calc(100% - (var(--page-pad) * 2)) !important;
  max-width: var(--mobile-width) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 18px;
  transition: max-width 0.05s ease-out;
}

/* ---------- Common UI ---------- */
.brand {
  display: none;
}

.toast {
  position: fixed; top: calc(env(safe-area-inset-top, 0px) + 48px); left: 50%; transform: translateX(-50%) translateY(-30px);
  background: rgba(30, 30, 36, 0.95); color: #f0f0f0;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 14px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 99999; max-width: 88vw; text-align: center;
  font-size: 14px; font-weight: 500; line-height: 1.4;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast.toast-success { border-color: rgba(76, 217, 100, 0.4); background: rgba(20, 40, 25, 0.95); color: #8fffaa; }
.toast.toast-error { border-color: rgba(255, 80, 100, 0.4); background: rgba(50, 18, 22, 0.95); color: #ff8a9a; }
.toast.toast-warning { border-color: rgba(255, 200, 60, 0.4); background: rgba(50, 40, 15, 0.95); color: #ffd97a; }

/* Legacy tabs (kept for non-auth usage) */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.tab {
  padding: 12px; text-align: center; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08); cursor: pointer;
  background: rgba(255, 255, 255, 0.05); transition: all 0.15s ease; color: #e8e8ec;
}
.tab.active {
  background: rgba(78, 205, 196, 0.15); color: #4ECDC4;
  border-color: rgba(78, 205, 196, 0.3);
}

label { display: block; font-size: 14px; opacity: 0.9; margin: 4px 0 4px; }
input:not(.filter-input):not(.auth-input):not(.wsch-finput-el):not(.wsch-tgl-cb), textarea {
  width: 100%; padding: 13px; margin: 0 0 10px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.06);
  color: inherit; box-sizing: border-box; outline: none;
  transition: border 0.15s, background 0.15s;
  font-size: 16px !important;
}
input:not(.filter-input):not(.auth-input):not(.wsch-finput-el):not(.wsch-tgl-cb):focus, textarea:focus { border-color: #4ECDC4; background: rgba(255, 255, 255, 0.12); }

.btn {
  width: 100%; padding: 13px; margin-top: 8px; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; background: linear-gradient(135deg, #4ECDC4, #38A89D);
  color: #000; cursor: pointer; font-size: 15px; font-weight: 650;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 10px 24px rgba(78, 205, 196, 0.25);
  text-align: center;
}
.btn:hover { background: linear-gradient(135deg, #5ED8D0, #4ECDC4); }
.btn:active { transform: translateY(1px); }

/* ── Auth Panel ── */
#auth-panel {
  display: flex;
  flex-direction: column;
  animation: authFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ── */
.auth-header {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}
.auth-header-bg {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(78,205,196,0.1) 0%, rgba(56,168,157,0.04) 40%, rgba(15,15,22,0.7) 100%);
  border: 1px solid rgba(78,205,196,0.12);
  border-radius: 14px;
  overflow: hidden;
}
.auth-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(78,205,196,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,205,196,0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 10%, transparent 70%);
}
.auth-orb {
  position: absolute; border-radius: 50%;
  filter: blur(35px); opacity: 0.45;
  animation: authOrbFloat 10s ease-in-out infinite alternate;
}
.auth-orb-1 { width: 90px; height: 90px; background: rgba(78,205,196,0.25); top: -15px; left: 15%; }
.auth-orb-2 { width: 70px; height: 70px; background: rgba(56,168,157,0.18); top: 5px; right: 12%; animation-delay: -3.5s; }
.auth-orb-3 { width: 45px; height: 45px; background: rgba(94,231,222,0.15); bottom: -8px; left: 55%; animation-delay: -6s; }
@keyframes authOrbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(5px, -4px) scale(1.08); }
  100% { transform: translate(-3px, 3px) scale(1.12); }
}
.auth-header-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 32px 16px 26px;
}
.auth-logo-ring {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: rgba(78,205,196,0.08);
  border: 1px solid rgba(78,205,196,0.18);
  box-shadow: 0 8px 28px rgba(78,205,196,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
  margin-bottom: 6px;
}
.auth-logo-ring svg { filter: drop-shadow(0 2px 8px rgba(78,205,196,0.35)); }
.auth-hero-title {
  font-size: 22px; font-weight: 800; color: #eef; letter-spacing: 1.5px;
}
.auth-hero-sub {
  font-size: 12.5px; color: #667; font-weight: 500; text-align: center; letter-spacing: 0.1px;
}

/* ── Tabs ── */
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 3px; margin: 0 0 18px;
}
.auth-tab {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 8px; font-size: 13px; font-weight: 600; color: #556;
  cursor: pointer; border-radius: 9px; transition: color 0.25s;
  position: relative; z-index: 1; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.auth-tab.active { color: #4ECDC4; }
.auth-tab:not(.active):hover { color: #889; }
.auth-tab svg { opacity: 0.85; }
.auth-tab-indicator {
  position: absolute; top: 3px; left: 3px;
  width: calc(50% - 3px); height: calc(100% - 6px);
  background: rgba(78,205,196,0.1);
  border: 1px solid rgba(78,205,196,0.18);
  border-radius: 9px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.15, 1);
  pointer-events: none;
}

/* ── Form ── */
.auth-form { display: flex; flex-direction: column; gap: 10px; }

/* ── Input Fields ── */
.auth-field {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.035);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 0 14px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  gap: 10px; position: relative;
}
.auth-field:focus-within {
  border-color: rgba(78,205,196,0.5);
  background: rgba(78,205,196,0.04);
  box-shadow: 0 0 0 3.5px rgba(78,205,196,0.08);
}
.auth-field-icon {
  flex-shrink: 0; color: #4a4f5e;
  display: flex; align-items: center;
  transition: color 0.25s, transform 0.25s;
}
.auth-field:focus-within .auth-field-icon,
.auth-field-select.active .auth-field-icon {
  color: #4ECDC4; transform: scale(1.05);
}
.auth-input {
  flex: 1; background: transparent !important; border: none !important; outline: none !important;
  color: #e8e8ec; font-size: 14px; padding: 13.5px 0;
  margin: 0 !important; box-sizing: border-box; width: 100%; min-width: 0;
  font-family: inherit;
}
.auth-input::placeholder { color: #4a4f5e; font-weight: 400; transition: color 0.2s; }
.auth-field:focus-within .auth-input::placeholder { color: #667; }

/* ── Eye Toggle ── */
.auth-eye {
  flex-shrink: 0; background: none; border: none; color: #3a3f4e;
  cursor: pointer; padding: 6px; display: flex; align-items: center;
  border-radius: 8px; transition: all 0.2s;
}
.auth-eye:hover { color: #4ECDC4; background: rgba(78,205,196,0.08); }
.auth-eye.visible { color: #4ECDC4; }

/* ── Custom Dropdown ── */
.auth-field-select { cursor: pointer; }
.auth-field-select.active {
  border-color: rgba(78,205,196,0.5);
  background: rgba(78,205,196,0.04);
  box-shadow: 0 0 0 3.5px rgba(78,205,196,0.08);
}
.auth-dropdown { flex: 1; position: relative; min-width: 0; }
.auth-dropdown-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13.5px 0; cursor: pointer; user-select: none; gap: 8px;
}
.auth-dropdown-value {
  font-size: 14px; color: #e8e8ec;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.auth-dropdown-value.placeholder { color: #4a4f5e; font-weight: 400; }
.auth-dropdown-arrow {
  flex-shrink: 0; color: #4a4f5e;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.15, 1), color 0.2s;
}
.auth-dropdown.open .auth-dropdown-arrow { transform: rotate(180deg); color: #4ECDC4; }
.auth-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -14px; right: -14px;
  background: rgba(22,22,30,0.98);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 4px; z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(78,205,196,0.06);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  max-height: 240px; overflow-y: auto; overscroll-behavior: contain;
}
.auth-dropdown.open .auth-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.auth-dropdown-item {
  padding: 10px 12px; font-size: 13.5px; color: #99a;
  border-radius: 8px; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; gap: 8px; user-select: none;
}
.auth-dropdown-item:hover { background: rgba(78,205,196,0.08); color: #dde; }
.auth-dropdown-item.active { background: rgba(78,205,196,0.12); color: #4ECDC4; font-weight: 600; }
.auth-dropdown-item.active::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: #4ECDC4; flex-shrink: 0;
}
.auth-dropdown-menu::-webkit-scrollbar { width: 4px; }
.auth-dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.auth-dropdown-menu::-webkit-scrollbar-thumb { background: rgba(78,205,196,0.2); border-radius: 4px; }

/* ── Password Hint ── */
.auth-pass-hint {
  font-size: 11.5px; color: #4a5060; padding: 0 4px; margin-top: -4px;
}

/* ── Buttons ── */
.auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; margin-top: 8px;
  border: none; border-radius: 12px; cursor: pointer;
  font-size: 14px; font-weight: 700; font-family: inherit; letter-spacing: 0.2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.15, 1);
  position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.auth-btn::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s;
}
.auth-btn:active { transform: scale(0.98) !important; }
.auth-btn-primary {
  background: linear-gradient(135deg, #4ECDC4 0%, #38A89D 100%);
  color: #0a0a10;
  box-shadow: 0 8px 24px rgba(78,205,196,0.25), 0 2px 8px rgba(78,205,196,0.15);
}
.auth-btn-primary::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}
.auth-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(78,205,196,0.35), 0 4px 12px rgba(78,205,196,0.2);
}
.auth-btn-primary:hover::before { opacity: 1; }
.auth-btn-secondary {
  background: rgba(78,205,196,0.08);
  border: 1.5px solid rgba(78,205,196,0.2);
  color: #4ECDC4; box-shadow: none;
}
.auth-btn-secondary:hover {
  background: rgba(78,205,196,0.14);
  border-color: rgba(78,205,196,0.35);
  box-shadow: 0 6px 20px rgba(78,205,196,0.12);
  transform: translateY(-1px);
}

/* Settings Sheet */
.settings-sheet {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  z-index: 2000;
}
.settings-sheet.show { display: flex; }
.settings-panel {
  width: 92%; max-width: 380px;
  max-height: 85vh; overflow-y: auto;
  background: rgba(18, 18, 24, 0.98);
  border-radius: 20px; padding: 24px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(78,205,196,0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(78,205,196,0.15) transparent;
}
.settings-panel::-webkit-scrollbar { width: 3px; }
.settings-panel::-webkit-scrollbar-thumb { background: rgba(78,205,196,0.15); border-radius: 2px; }
.settings-close-btn {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.settings-close-btn:hover { color: var(--c-danger); border-color: rgba(231,76,60,0.2); background: rgba(231,76,60,0.08); }

/* Profile */
.stg-profile {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stg-avatar {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(78,205,196,0.25), rgba(78,205,196,0.08));
  border: 1px solid rgba(78,205,196,0.2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(78,205,196,0.1);
  position: relative; cursor: pointer; overflow: hidden;
}
.stg-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 14px;
}
.stg-avatar-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45); opacity: 0; transition: opacity .2s;
  font-size: 18px; border-radius: 14px;
}
.stg-avatar:hover .stg-avatar-overlay { opacity: 1; }
.stg-avatar-letter {
  font-size: 22px; font-weight: 800; color: #4ECDC4;
  text-transform: uppercase;
}
.stg-user-info { min-width: 0; }
.stg-username {
  font-size: 16px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stg-role {
  font-size: 11px; font-weight: 600; color: rgba(78,205,196,0.6);
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px;
}

/* Sections */
.stg-sections { display: flex; flex-direction: column; gap: 6px; }
.stg-section {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px; overflow: hidden;
}
.stg-section-title {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 10px 14px 6px;
}
.stg-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  cursor: pointer; transition: background 0.15s;
  border-top: 1px solid rgba(255,255,255,0.03);
}
.stg-row:first-child, .stg-section-title + .stg-row { border-top: none; }
.stg-row:hover { background: rgba(255,255,255,0.04); }
.stg-row-icon { font-size: 15px; flex-shrink: 0; width: 22px; text-align: center; }
.stg-row-label { flex: 1; font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75); }
.stg-row-arrow { color: rgba(255,255,255,0.2); font-size: 18px; font-weight: 300; }
.stg-row-value { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.3); flex-shrink: 0; margin-right: 4px; }
.stg-notif-status {
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
  padding: 2px 8px; border-radius: 6px;
  flex-shrink: 0; margin-right: 4px; text-transform: uppercase;
}
.stg-notif-status[data-state="granted"] { color: #34d399; background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.15); }
.stg-notif-status[data-state="denied"] { color: #f87171; background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.15); }
.stg-notif-status[data-state="default"] { color: #fbbf24; background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.15); }
.stg-notif-status[data-state="unsupported"] { color: #888; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }

.stg-form-panel {
  margin-top: 8px; padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
}
.stg-form-title {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.stg-form-hint {
  font-size: 11px; color: rgba(255,255,255,0.3); margin: -4px 0 10px;
}
.stg-form-actions { display: flex; gap: 8px; margin-top: 12px; }
.stg-select-full {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3); color: #e8e8ec;
  font-size: 13px; box-sizing: border-box;
  cursor: pointer;
}
.stg-select-full:focus { border-color: rgba(78,205,196,0.3); outline: none; }
.stg-select-full option { background: #1a1a22; color: #e8e8ec; }
.stg-form-pending {
  margin-top: 10px; padding: 8px 12px; border-radius: 8px;
  background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.15);
  font-size: 11px; color: rgba(251,191,36,0.8);
  display: flex; align-items: center; gap: 8px;
}
.stg-pending-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fbbf24; flex-shrink: 0;
  animation: um-pulse 2s ease-in-out infinite;
}

/* Toggle */
.stg-toggle {
  position: relative; width: 38px; height: 22px; flex-shrink: 0; cursor: pointer;
}
.stg-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.stg-toggle-slider {
  position: absolute; inset: 0; border-radius: 11px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.25s;
}
.stg-toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  left: 2px; top: 2px;
  background: rgba(255,255,255,0.5);
  transition: all 0.25s;
}
.stg-toggle input:checked + .stg-toggle-slider {
  background: rgba(78,205,196,0.3);
  border-color: rgba(78,205,196,0.3);
}
.stg-toggle input:checked + .stg-toggle-slider::before {
  transform: translateX(16px);
  background: #4ECDC4;
  box-shadow: 0 0 6px rgba(78,205,196,0.4);
}

/* Password Form */
.stg-input {
  width: 100%; padding: 10px 12px; margin-top: 8px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.3); color: #e8e8ec;
  font-size: 13px; box-sizing: border-box;
  transition: border-color 0.2s;
}
.stg-input:focus { border-color: rgba(78,205,196,0.3); outline: none; }
.stg-input::placeholder { color: rgba(255,255,255,0.25); }
.stg-btn {
  flex: 1; padding: 9px; border-radius: 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: none;
}
.stg-btn-secondary { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.6); }
.stg-btn-secondary:hover { background: rgba(255,255,255,0.1); }
.stg-btn-primary { background: rgba(78,205,196,0.2); color: #4ECDC4; }
.stg-btn-primary:hover { background: rgba(78,205,196,0.3); }

/* Select */
.stg-select {
  padding: 5px 8px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.7);
  font-size: 11px; font-weight: 600; cursor: pointer;
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  padding-right: 22px;
}
.stg-select:focus { border-color: rgba(78,205,196,0.3); }
.stg-select option { background: #1a1a22; color: #e8e8ec; }

/* Range slider */
.stg-range-wrap {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.stg-range {
  width: 80px; height: 4px; -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.1); border-radius: 2px; outline: none;
}
.stg-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #4ECDC4; border: 2px solid rgba(0,0,0,0.3);
  cursor: pointer; box-shadow: 0 0 6px rgba(78,205,196,0.3);
}
.stg-range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #4ECDC4; border: 2px solid rgba(0,0,0,0.3);
  cursor: pointer;
}
.stg-range-val {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4);
  min-width: 18px; text-align: center;
}

/* Color picker */
.stg-colors {
  display: flex; gap: 6px; flex-shrink: 0;
}
.stg-color-btn {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid transparent;
  background: var(--sc); cursor: pointer;
  transition: all 0.2s; position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.stg-color-btn:hover { transform: scale(1.15); }
.stg-color-btn.active {
  border-color: #fff;
  box-shadow: 0 0 10px var(--sc), 0 2px 6px rgba(0,0,0,0.3);
}

/* Logout */
.stg-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px; margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(231,76,60,0.15);
  background: rgba(231,76,60,0.06);
  color: #e74c3c; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.stg-logout:hover { background: rgba(231,76,60,0.12); border-color: rgba(231,76,60,0.3); }

/* Version */
.stg-version {
  text-align: center; margin-top: 14px;
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.15); letter-spacing: 1px;
}