.edit-container {
  width: 100%;
  background-color: #ffffff;
  min-height: 100vh;
  max-width: 440px;
  margin: auto;
  text-align: left;
}

/* ── Tabs ── */
.edit-tabs {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #e8e6e3;
}

.edit-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  color: #666;
}

.edit-tab.active {
  background: #1a1a1a;
  color: #fff;
}

/* ── Inputs ─ */
.edit-input {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #eceae6;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  margin-bottom: 12px;
  color: #333;
}

.edit-input::placeholder {
  color: #aaa;
}

/* ── Year stepper ── */
.edit-year-row {
  display: flex;
  align-items: center;
  background: #eceae6;
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 12px;
}

.edit-year-row input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 15px;
  outline: none;
  color: #333;
}

.edit-year-row input::placeholder {
  color: #aaa;
}

.edit-stepper {
  display: flex;
  gap: 4px;
  align-items: center;
}

.edit-stepper button {
  width: 32px;
  height: 32px;
  border: none;
  background: #d6d3cf;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  line-height: 1;
}

/* ─ Rating ─ */
.edit-rating-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
}

.edit-rating-label span {
  font-weight: 700;
  color: #333;
}

.edit-rating-row {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.edit-rating-btn {
  width: 38px;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: #eceae6;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.15s;
}

.edit-rating-btn:last-child {
  width: auto;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

/* ── Additional info toggle ── */
.edit-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
}

.edit-section-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.edit-toggle-icon {
  width: 22px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.edit-additional-fields {
  margin-bottom: 20px;
}

/* ── Textarea ── */
textarea.edit-input {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

.edit-helper-text {
  font-size: 13px;
  color: #999;
  margin-top: -8px;
  margin-bottom: 12px;
  padding-left: 4px;
}

/* ── Upload ── */
.edit-upload-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.edit-upload-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.edit-upload-slot {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.edit-upload-slot.filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edit-upload-slot.empty {
  background: #eceae6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-upload-slot.empty svg {
  width: 28px;
  height: 28px;
  opacity: 0.35;
}

.edit-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.edit-upload-meta {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
  margin-bottom: 24px;
  padding-left: 4px;
}

/* ── Card Color ── */
.edit-color-label {
  font-size: 15px;
  color: #333;
  margin-bottom: 10px;
}

.edit-color-options {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.edit-color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ddd;
  cursor: pointer;
  position: relative;
}

.edit-color-dot.selected {
  border-color: #333;
}

.edit-color-dot.selected::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #333;
}

.edit-color-dot.yellow {
  background: #d4f027;
}

.edit-color-dot.black {
  background: #1a1a1a;
}

/* ── Buttons ── */
.edit-btn-save {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: #d4f027;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  color: #1a1a1a;
  transition: opacity 0.15s;
}

.edit-btn-save:active {
  opacity: 0.85;
}

.edit-btn-next {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: #eceae6;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: #666;
}

.edit-btn-next:active {
  background: #ddd;
}
