.sp-content {
  padding: 20px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.sp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.sp-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.sp-header .bc {
  font-size: 11px;
  color: #9ca3af;
}

.sp-header .bc a {
  color: #9ca3af;
  text-decoration: none;
}

.sp-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.sp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sp-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.sp-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 20px;
}

.sp-row:last-of-type {
  margin-bottom: 0;
}

.sp-label {
  width: 180px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  flex-shrink: 0;
  padding-top: 8px;
}

.sp-input-wrap {
  flex: 1;
}

.sp-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #111827;
  font-family: inherit;
  background: #fff;
  transition: .15s;
  outline: none;
}

.sp-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
}

.sp-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 30px;
}

/* Photo row specific */
.sp-photo-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.sp-photo-desc {
  font-size: 11px;
  color: #9ca3af;
}

.sp-avatar {
  position: relative;
  width: 56px;
  height: 56px;
}

.sp-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
}

.sp-avatar .cam {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #3b82f6;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Input with icon */
.sp-input-icon {
  position: relative;
}

.sp-input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 12px;
}

.sp-input-icon .sp-input {
  padding-left: 32px;
}

/* Color picker */
.sp-color-picker {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}

.sp-color-picker input[type="color"] {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.sp-color-picker input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.sp-color-picker input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.sp-color-picker input[type="text"] {
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  color: #374151;
  outline: none;
  flex: 1;
}

/* Upload zone */
.sp-upload-zone {
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  transition: .15s;
}

.sp-upload-zone:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.sp-upload-zone i {
  font-size: 20px;
  color: #3b82f6;
  margin-bottom: 8px;
  display: block;
}

.sp-upload-zone p {
  font-size: 11px;
  color: #374151;
  font-weight: 500;
  margin-bottom: 4px;
}

.sp-upload-zone span {
  font-size: 9px;
  color: #9ca3af;
}

.sp-upload-btn {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
}

/* Bio Editor */
.sp-editor {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.sp-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.sp-editor-toolbar button {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 12px;
}

.sp-editor-toolbar button:hover {
  background: #e5e7eb;
  color: #111827;
}

.sp-editor-area {
  min-height: 100px;
  padding: 12px;
  font-size: 12px;
  color: #374151;
  background: #fff;
}

.sp-editor-footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  font-size: 10px;
  color: #9ca3af;
}

/* Buttons */
.sp-btn-primary {
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

.sp-btn-primary:hover {
  background: #2563eb;
}

.sp-btn-danger {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

.sp-btn-danger:hover {
  background: #dc2626;
}

.sp-btn-outline {
  background: transparent;
  color: #374151;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}

.sp-btn-outline:hover {
  background: #f9fafb;
}

.sp-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  gap: 10px;
}

/* Delete account */
.sp-warn-text {
  font-size: 12px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 16px;
}

.sp-warn-text a {
  color: #3b82f6;
  text-decoration: none;
}

.sp-warn-text a:hover {
  text-decoration: underline;
}

.sp-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #111827;
  font-weight: 500;
  cursor: pointer;
}

.sp-checkbox input {
  accent-color: #ef4444;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.sp-delete-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.sp-delete-btns {
  display: flex;
  gap: 10px;
}

/* Toggle */
.toggle {
  position: relative;
  width: 34px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

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

.toggle span {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #d1d5db;
  cursor: pointer;
  transition: .2s;
}

.toggle span::before {
  content: '';
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 2px;
  top: 2px;
  transition: .2s;
}

.toggle input:checked + span {
  background: #3b82f6;
}

.toggle input:checked + span::before {
  transform: translateX(15px);
}

@media (max-width: 640px) {
  .sp-content {
    padding: 16px;
  }
  
  .sp-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .sp-label {
    width: 100%;
    padding-top: 0;
  }
  
  .sp-photo-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .sp-delete-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .sp-delete-btns {
    width: 100%;
    justify-content: flex-end;
  }
}
