.settings-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0;
}

.settings-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 8px 4px 10px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-transform: uppercase;
  font-family: inherit;
}

.settings-tab:hover {
  color: rgba(255,255,255,0.75);
}

.settings-tab.active {
  color: #d4af37;
  border-bottom-color: #d4af37;
}

.settings-tab-content {
  display: block;
}

.settings-tab-content.hidden {
  display: none;
}

/* OPTIONS TAB */
.options-tab-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #d4af37;
  text-transform: uppercase;
  margin: 18px 0 14px;
  opacity: 0.8;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-card {
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,0.18), transparent 55%)
    rgba(12,12,16,0.82);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 14px 12px 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  min-height: 100px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.option-card:hover {
  background: rgba(212,175,55,0.07);
  border-color: rgba(212,175,55,0.3);
  transform: translateY(-1px);
}

.option-card:active {
  transform: scale(0.97);
}

.option-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.3em;
  min-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.option-card-icon {
  font-size: 26px;
  line-height: 1;
  margin: 2px 0;
  padding: 4px;
}

.option-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.3em;
}

/* Multi-section option card for face tuning */
.option-card-multi {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 4px;
  margin-top: 6px;
}

.option-sub {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-sub:hover {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.35);
  transform: translateY(-1px);
}

.option-sub.selected {
  background: rgba(212,175,55,0.3);
  border-color: rgba(212,175,55,0.8);
}

.option-sub-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.option-sub.disabled {
  cursor: default;
  opacity: 0.35;
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.08);
}

.option-sub.disabled:hover {
  transform: none;
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.08);
}

/* INFO TAB */
.info-content {
  padding: 8px 0;
  background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.10), transparent 55%)
    rgba(8, 10, 14, 0.65);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 16px 14px;
}

.info-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.info-logo {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #d4af37;
  font-size: 24px;
  text-align: left;
  text-shadow:
    0 0 12px rgba(212,175,55,0.6),
    0 0 24px rgba(255,255,255,0.25);
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(212,175,55,0.05));
  border: 1px solid rgba(212,175,55,0.45);
  display: inline-block;
}

.info-text {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin-bottom: 18px;
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.08),
    rgba(0,0,0,0.55)
  );
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 6px 20px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 6px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.10), transparent 55%)
    rgba(15, 17, 22, 0.78);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 8px 22px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.04);
}

.info-key {
  font-size: 16px;
  font-weight: 600;
  color: #d4af37;
}

.info-val {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
}

#settings-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#settings-overlay:not(.hidden) {
  opacity: 1;
}

#settings-overlay.hidden {
  display: none;
}

#settings-panel {
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  background: linear-gradient(135deg, rgba(25, 25, 28, 0.2) 0%, rgba(18, 18, 22, 0.2) 100%);
  color: #f5f5f5;
  border-radius: 0 0 24px 24px;
  padding: 32px 36px 36px;
  box-shadow: 
    0 10px 50px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: fixed;
  left: 0;
  top: 0;
  transform: translateY(-20px);
  opacity: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  box-sizing: border-box;
}

#settings-overlay:not(.hidden) #settings-panel {
  transform: translateY(0);
  opacity: 1;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
  padding-top: 4px;
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 4px;
  padding-right: 4px;
  border-radius: 8px 8px 0 0;
  cursor: grab;
}

.settings-logo {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #d4af37;
  font-size: 17px;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.12), transparent 60%) rgba(0, 0, 0, 0.8);
  text-shadow:
    0 0 3px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(212, 175, 55, 0.6);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.settings-logo:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.settings-title {
  flex: 1;
  text-align: center;
}

.settings-header:active {
  cursor: grabbing;
}

#settings-close {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f5;
  font-size: 22px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
}

#settings-close:hover {
  background: rgba(255, 80, 80, 0.2);
  color: #ff6b6b;
  transform: rotate(90deg) scale(1.1);
}

#settings-close:active {
  transform: rotate(90deg) scale(0.95);
}

#settings-info {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  font-size: 18px;
  font-style: italic;
  padding: 7px 0;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#settings-info:hover {
  background: rgba(212, 175, 55, 0.25);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
  transform: scale(1.05);
}

#settings-info:active {
  transform: scale(0.95);
}

.settings-section {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.settings-section:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.settings-section.collapsed .section-content {
  max-height: 0;
  opacity: 0;
  padding: 0 16px;
  margin-top: 0;
}

.settings-section:not(.collapsed) .section-content {
  max-height: 1000px;
  opacity: 1;
  padding: 0 16px 16px;
  margin-top: 12px;
}

.section-content {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s ease,
              padding 0.3s ease,
              margin-top 0.3s ease;
  overflow: hidden;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.85;
  color: #d4af37;
  padding: 16px;
  margin: 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(0, 0, 0, 0.75);
}

.accordion-title {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 40px;
  transition: background 0.2s ease;
}

.accordion-title:hover {
  background: rgba(212, 175, 55, 0.05);
}

.accordion-title::after {
  content: '▼';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  transition: transform 0.3s ease;
}

.settings-section.collapsed .accordion-title::after {
  transform: translateY(-50%) rotate(-90deg);
}

#admin-toggle-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  opacity: 0.4;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#admin-toggle-btn:hover {
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.28);
}

#admin-toggle-btn.active {
  background: rgba(212, 175, 55, 0.5);
  border-color: rgba(212, 175, 55, 0.6);
  opacity: 0.7;
}

#settings-panel {
  position: relative;
}

@media (min-width: 600px) {
  #settings-panel {
    border-radius: 0 0 16px 16px;
    margin-top: 0;
  }
}

/* ===== SETTINGS REPORT TAB ===== */

.sr-global {
  margin-bottom: 20px;
}

.sr-section {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.08), transparent 55%)
    rgba(12, 12, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.sr-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af37;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  background: rgba(0, 0, 0, 0.55);
}

.sr-section-body {
  padding: 6px 12px 10px;
}

.sr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  margin-bottom: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

.sr-row:hover {
  background: rgba(212, 175, 55, 0.06);
}

.sr-key {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

.sr-val {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-align: right;
}

.sr-faces-header {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4af37;
  margin: 24px 0 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.sr-faces-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sr-face-card {
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.06), transparent 55%)
    rgba(14, 14, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sr-face-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.sr-face-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.4);
}

.sr-face-name {
  font-size: 13px;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.04em;
}

.sr-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.sr-badge-default {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.08);
}

.sr-face-body {
  padding: 6px 10px 10px;
}

.sr-face-body .sr-row {
  padding: 5px 8px;
  margin-bottom: 2px;
}

.sr-face-body .sr-key {
  font-size: 11px;
}

.sr-face-body .sr-val {
  font-size: 12px;
}

@media (min-width: 600px) {
  .sr-faces-grid {
    grid-template-columns: 1fr 1fr;
  }
}