/* Edit Profile — focused field set + type scale */

.ep-page {
  max-width: none;
  width: 100%;
}

.ep-intro {
  margin-bottom: 1.1rem;
}

.ep-crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.ep-crumb a:hover { color: var(--brand); }

.ep-crumb i,
.ep-crumb svg {
  width: 13px !important;
  height: 13px !important;
  opacity: 0.5;
}

.ep-crumb strong {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.78rem;
}

.ep-intro__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ep-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, #fff);
}

.ep-kicker i,
.ep-kicker svg {
  width: 13px !important;
  height: 13px !important;
}

.ep-intro .page-title {
  margin: 0 0 0.25rem;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.ep-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.ep-secure-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.04);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ep-secure-link:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  transform: translateY(-1px);
}

.ep-secure-link i,
.ep-secure-link svg {
  width: 15px !important;
  height: 15px !important;
  color: var(--brand);
}

.ep-dossier {
  display: grid;
  gap: 1rem;
}

.ep-studio {
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.06);
  overflow: hidden;
}

.ep-studio__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(90deg, var(--brand-soft), #fff 55%);
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.ep-studio__bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ep-studio__bar i,
.ep-studio__bar svg {
  width: 15px !important;
  height: 15px !important;
}

.ep-studio__bar em {
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.ep-block {
  padding: 1.25rem 1.25rem 1.35rem;
}

.ep-block--last {
  border-bottom: 0;
}

/* Image uploader */
.ep-image {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
}

.ep-image__preview {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--brand-mid), var(--brand-deep));
  color: #fff;
  font-family: "Syne", sans-serif !important;
  font-size: 1.55rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 166, 126, 0.22);
  position: relative;
}

.ep-image__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-image__preview.has-image span {
  display: none;
}

.ep-image__meta strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.ep-image__meta p {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.ep-image__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ep-image__btn:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: var(--brand-soft);
}

.ep-image__btn i,
.ep-image__btn svg {
  width: 14px !important;
  height: 14px !important;
}

/* Fields */
.ep-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
}

.ep-field label em {
  color: var(--coral);
  font-style: normal;
  font-weight: 700;
}

.ep-input {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 50px;
  padding: 0.15rem 0.7rem 0.15rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ep-input:hover {
  border-color: #d1d5db;
}

.ep-input:focus-within {
  background: #fff;
  border-color: color-mix(in srgb, var(--brand) 50%, #e5e7eb);
  box-shadow: 0 0 0 4px rgba(0, 166, 126, 0.1);
}

.ep-input__lead {
  width: 16px !important;
  height: 16px !important;
  color: #9ca3af;
  flex-shrink: 0;
}

.ep-input:focus-within .ep-input__lead {
  color: var(--brand);
}

.ep-input input,
.ep-input select,
.ep-input textarea {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.72rem 0.2rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
  font-family: "Poppins", sans-serif !important;
}

.ep-input select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.15rem center;
  padding-right: 1.35rem;
}

.ep-input--area {
  align-items: flex-start;
  min-height: 0;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.ep-input--area .ep-input__lead {
  margin-top: 0.2rem;
}

.ep-input textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.45;
  font-size: 0.92rem;
}

.ep-input input::placeholder,
.ep-input textarea::placeholder {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* Actions */
.ep-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(10px);
  position: sticky;
  bottom: 0.85rem;
  z-index: 5;
}

.ep-actions__note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.ep-actions__note i,
.ep-actions__note svg {
  width: 14px !important;
  height: 14px !important;
  color: var(--brand);
}

.ep-actions__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ep-btn i,
.ep-btn svg {
  width: 15px !important;
  height: 15px !important;
}

.ep-btn--ghost {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink-soft);
}

.ep-btn--ghost:hover {
  background: #fff;
  border-color: var(--line-strong);
}

.ep-btn--soft {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 18%, #fff);
  color: var(--brand-deep);
}

.ep-btn--soft:hover {
  background: #d1fae5;
}

.ep-btn--primary {
  min-width: 150px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-deep));
  box-shadow: 0 10px 22px rgba(0, 166, 126, 0.28);
}

.ep-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 166, 126, 0.34);
}

@media (max-width: 575.98px) {
  .ep-image {
    flex-direction: column;
    align-items: flex-start;
  }

  .ep-actions {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .ep-actions__btns {
    flex-direction: column-reverse;
  }

  .ep-btn {
    width: 100%;
  }
}
