/* Account Settings Page */

.settings-main {
  padding: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.settings-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px 0;
}

/* Settings Card */
.settings-card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.settings-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.settings-card-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
}

.settings-card-body {
  padding: 20px;
}

/* Profile */
.profile-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5cb8e6 0%, #3a8fbf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.avatar-upload-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: #5cb8e6;
  border: 1px solid rgba(92,184,230,0.3);
  cursor: pointer;
  transition: border-color 0.15s;
}

.avatar-upload-btn:hover {
  border-color: #5cb8e6;
}

.profile-fields {
  flex: 1;
  min-width: 0;
}

/* Form Elements */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #8a94a6;
  margin-bottom: 6px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: #0a0e17;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #5cb8e6;
}

.form-input.readonly {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Toggle switches */
.toggle-list {
  display: flex;
  flex-direction: column;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.toggle-row:last-child { border-bottom: none; }

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.toggle-desc {
  font-size: 12px;
  color: #64748b;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #374151;
  border-radius: 24px;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: #5cb8e6;
}

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

/* Save row */
.settings-save-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: #5cb8e6;
  color: #0a0e17;
  transition: background 0.15s;
}

.btn-primary:hover { background: #4da8d6; }

.btn-save {
  padding: 12px 32px;
  font-size: 15px;
}

/* Danger Zone */
.danger-zone {
  border-color: rgba(239,68,68,0.3);
}

.danger-zone .settings-card-header h3 {
  color: #ef4444;
}

.danger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.danger-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.danger-title {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.danger-desc {
  font-size: 12px;
  color: #64748b;
}

.btn-danger {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(239,68,68,0.4);
  background: transparent;
  color: #ef4444;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-danger:hover {
  background: rgba(239,68,68,0.1);
  border-color: #ef4444;
}

/* Responsive */
@media (max-width: 640px) {
  .settings-main { padding: 16px; }
  .profile-row { flex-direction: column; align-items: center; }
  .form-grid { grid-template-columns: 1fr; }
  .danger-row { flex-direction: column; align-items: flex-start; }
}
