/* =============================================
   Naru2day — Settings Page Styles
   ============================================= */

main>h5.fw-bold {
  font-family: 'Reggae One', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 400 !important;
  color: var(--wn-orange);
  text-align: center;
  margin-bottom: 2rem !important;
  text-shadow: 0 2px 10px rgba(255, 107, 0, 0.4);
  letter-spacing: 1px;
}

.wn-settings-wrap {
  background: url('../img/Fondo_Pergamino.webp') center center / cover no-repeat;
  background-color: #CE9D66;
  border: 2px solid #C19A6B;
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.wn-settings-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(220px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 1.5rem 2.5rem;
  border-top: 1px solid rgba(139, 90, 43, 0.2);
  transition: background .2s, box-shadow .2s;
}

.wn-settings-row:first-child {
  border-top: 0;
}

.wn-settings-row:hover {
  background: rgba(139, 90, 43, 0.08);
}

.wn-settings-row-title {
  font-family: 'Reggae One', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #1a0f0a;
  margin: 0 0 0.4rem;
  letter-spacing: 0.5px;
}

.wn-settings-row-title i {
  color: var(--wn-orange);
  filter: drop-shadow(0 0 4px rgba(255, 107, 0, 0.4));
}

.wn-settings-row-desc {
  font-family: 'Klee One', cursive;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5c4033;
  line-height: 1.45;
  margin: 0;
}

.wn-settings-row-warn {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c62828;
  line-height: 1.35;
  margin-top: 0.5rem;
}

.wn-settings-row-warn i {
  margin-right: 4px;
  font-size: 0.75rem;
}

.wn-settings-ctrl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wn-settings-section {
  background: rgba(139, 90, 43, 0.1);
  border: 1px solid rgba(139, 90, 43, 0.22);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
}

.wn-settings-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #5c4033;
  margin-bottom: 0.6rem;
}

.wn-toggle-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wn-toggle-btn {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(139, 90, 43, 0.3);
  color: #5c4033;
  border-radius: 9px;
  padding: 7px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}

.wn-toggle-btn:hover {
  border-color: #8B5A2B;
  color: #4A2E15;
}

.wn-toggle-btn.active {
  background: rgba(255, 107, 0, .15);
  border-color: var(--wn-orange);
  color: var(--wn-orange);
}

.wn-ninja-select {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(139, 90, 43, 0.35);
  border-radius: 8px;
  color: #1a0f0a;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
}

.wn-ninja-select:hover,
.wn-ninja-select:focus {
  border-color: #8B5A2B;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.15);
}

/* ── Language flag dropdown ── */
.wn-lang-dropdown {
  position: relative;
  width: 100%;
}

.wn-lang-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(139,90,43,0.35);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a0f0a;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.wn-lang-trigger:hover {
  border-color: #8B5A2B;
  background: rgba(255,255,255,0.7);
}

.wn-lang-trigger:focus-visible {
  outline: none;
  border-color: var(--wn-orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}

.wn-lang-trigger img {
  border-radius: 3px;
  flex-shrink: 0;
}

.wn-lang-trigger span {
  flex: 1;
  text-align: center;
}

.wn-lang-arrow {
  color: #8B5A2B;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.wn-lang-trigger[aria-expanded="true"] .wn-lang-arrow {
  transform: rotate(180deg);
}

.wn-lang-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fdf3e3;
  border: 1.5px solid #C19A6B;
  border-radius: 10px;
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  list-style: none;
  margin: 0;
  padding: 4px;
}

.wn-lang-list.open {
  display: block;
}

.wn-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a0f0a;
  transition: background 0.15s;
}

.wn-lang-option span {
  flex: 1;
  text-align: center;
}

.wn-lang-option:hover {
  background: rgba(255,107,0,0.1);
}

.wn-lang-option.selected {
  background: rgba(255,107,0,0.15);
  font-weight: 700;
  color: var(--wn-orange);
}

.wn-lang-option img {
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── Generic custom select (same style, no flags) ── */
.wn-select-dropdown {
  position: relative;
  width: 100%;
}

.wn-select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(139,90,43,0.35);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a0f0a;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.wn-select-trigger:hover {
  border-color: #8B5A2B;
  background: rgba(255,255,255,0.7);
}

.wn-select-trigger:focus-visible {
  outline: none;
  border-color: var(--wn-orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}

.wn-select-text {
  flex: 1;
  text-align: center;
}

.wn-select-trigger[aria-expanded="true"] .wn-lang-arrow {
  transform: rotate(180deg);
}

.wn-select-list {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fdf3e3;
  border: 1.5px solid #C19A6B;
  border-radius: 10px;
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  list-style: none;
  margin: 0;
  padding: 4px;
}

.wn-select-list.open {
  display: block;
}

.wn-select-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a0f0a;
  transition: background 0.15s;
}

.wn-select-option:hover {
  background: rgba(255,107,0,0.1);
}

.wn-select-option.selected {
  background: rgba(255,107,0,0.15);
  font-weight: 700;
  color: var(--wn-orange);
}

.wn-volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.wn-volume-slider {
  -webkit-appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(139, 90, 43, 0.2);
  outline: none;
  cursor: pointer;
  accent-color: var(--wn-orange);
}

.wn-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wn-orange);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
  border: 2px solid #fff;
}

.wn-volume-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--wn-orange);
  min-width: 40px;
  text-align: right;
}

.wn-mute-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.83rem;
  color: #5c4033;
  cursor: pointer;
  font-family: inherit;
}

.wn-mute-label input {
  accent-color: var(--wn-orange);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.wn-export-textarea {
  background: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(139, 90, 43, 0.3);
  border-radius: 10px;
  color: #1a0f0a;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  resize: vertical;
  width: 100%;
  padding: 10px;
  min-height: 100px;
  transition: border-color .18s, box-shadow .18s;
}

.wn-export-textarea:focus {
  outline: none;
  border-color: #8B5A2B;
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.15);
}

.wn-settings-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #1A3B20, #0D2010);
  border: 1px solid var(--wn-green);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wn-settings-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wn-transfer-code {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--wn-orange);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(139, 90, 43, 0.4);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(139, 90, 43, 0.1);
  flex: 1;
  max-width: 180px;
}

.wn-transfer-input {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(139, 90, 43, 0.35);
  border-radius: 8px;
  color: #1a0f0a;
  font-size: 1.25rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 10px 12px;
  width: 100%;
  text-transform: uppercase;
  transition: all .2s;
  outline: none;
  flex: 1;
  max-width: 180px;
}

.wn-transfer-input:focus {
  border-color: #8B5A2B;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.15);
}

.wn-settings-wrap.wn-fade-in {
  animation-delay: .05s;
}

.wn-push-action-btn {
  max-width: 300px;
  font-weight: 700;
}

.wn-generate-code-btn {
  max-width: 220px;
  font-weight: 700;
}

.wn-transfer-action-btn {
  font-weight: 700;
  display: flex;
  align-items: center;
}

.wn-transfer-code-hint {
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .wn-settings-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 1.2rem 1.25rem;
  }

  .wn-settings-wrap {
    border-radius: 14px;
  }
}