/* V3 account settings modal styles */

.v3-settings-card {
  max-width: 520px;
  width: 100%;
}
.v3-settings-section {
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  padding: 20px 0;
}
.v3-settings-section:first-of-type {
  border-top: none;
  padding-top: 4px;
}
.v3-settings-heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.v3-settings-help {
  font-size: 12px;
  color: var(--text-dim, #9aa);
  margin-bottom: 14px;
  line-height: 1.5;
}
.v3-settings-field {
  display: block;
  font-size: 12px;
  color: var(--text-dim, #9aa);
  margin-bottom: 12px;
}
.v3-settings-field input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 6px;
  color: var(--text, #fff);
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}
.v3-settings-field input:focus {
  outline: none;
  border-color: var(--accent, #6cf);
}
.v3-settings-field input[readonly] {
  opacity: 0.65;
  cursor: not-allowed;
}
.v3-settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.v3-settings-toast {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}
.v3-settings-toast.ok {
  background: rgba(64,200,120,0.15);
  color: #6f6;
  border: 1px solid rgba(64,200,120,0.3);
}
.v3-settings-toast.error {
  background: rgba(255,80,80,0.15);
  color: #f99;
  border: 1px solid rgba(255,80,80,0.3);
}

/* Fallback modal styles if the host page doesn't provide them */
#v3SettingsModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#v3SettingsModal[hidden] { display: none; }
#v3SettingsModal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}
#v3SettingsModal .modal-card {
  position: relative;
  background: var(--surface, #1a1d23);
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 12px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
#v3SettingsModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
#v3SettingsModal .modal-header h3 {
  margin: 0;
  font-size: 18px;
}
