/* Hero inline editor — edit mode chrome + modal */
.profile-menu-item--hero-color i.fa-solid {
  color: var(--gold-2, #f4d06f);
  opacity: 0.9;
}
.profile-menu-item--hero-color:hover {
  background: rgba(244, 208, 111, 0.1);
}
.profile-menu-item--hero-color:hover i.fa-solid {
  color: var(--gold-light, #fff3c4);
  opacity: 1;
}

.profile-menu-item--edit-hero {
  color: var(--gold-2, #f4d06f);
  font-weight: 600;
}
.profile-menu-item--edit-hero.is-active {
  background: rgba(244, 208, 111, 0.12);
}
.profile-menu-item--edit-hero i {
  color: var(--gold-2, #f4d06f);
}
.profile-menu-item--reset-hero {
  color: rgba(247, 234, 208, 0.92);
}
.profile-menu-item--reset-hero:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}
.profile-menu-item--reset-hero i {
  color: #f87171;
}

html.hero-edit-mode #home .home-first-screen {
  position: relative;
}
html.hero-edit-mode #home .home-first-screen::before {
  content: "Hero edit mode — click the pencil on any highlighted block";
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  background: rgba(8, 10, 16, 0.92);
  color: #fff3c4;
  border: 1px solid rgba(244, 208, 111, 0.35);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-edit-wrap {
  position: relative;
  display: block;
  max-width: 100%;
}
.hero-edit-wrap.hero-edit-wrap--inline {
  display: inline-block;
}
.hero-edit-wrap.hero-edit-wrap--flex {
  display: inline-flex;
  max-width: 100%;
}

html.hero-edit-mode .hero-edit-wrap > [data-hero-edit-id],
html.hero-edit-mode .hero-edit-wrap.hero-edit-target {
  outline: 2px dashed rgba(244, 208, 111, 0.75);
  outline-offset: 4px;
  border-radius: 4px;
}

.hero-edit-wrap.hero-edit-wrap--announcement {
  display: block;
  width: 100%;
  max-width: 100%;
}
html.hero-edit-mode .hero-edit-wrap--announcement > [data-hero-edit-id] {
  padding-right: 2.85rem !important;
  box-sizing: border-box;
}
.hero-edit-wrap--announcement .hero-edit-pencil {
  top: 50%;
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  left: auto;
  transform: translateY(-50%);
  z-index: 12;
}
.hero-edit-wrap--announcement .hero-edit-pencil:hover {
  transform: translateY(-50%) scale(1.06);
}

.hero-edit-pencil {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  z-index: 5;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(135deg, #e8c547 0%, #f4d06f 100%);
  color: #141414;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-edit-pencil:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.hero-edit-pencil i {
  font-size: 0.7rem;
  pointer-events: none;
}

.hero-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.hero-edit-modal[hidden] {
  display: none !important;
}
body.hero-edit-modal-open {
  overflow: hidden;
}
.hero-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(4px);
}
.hero-edit-modal__panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #fff;
  color: #141414;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  padding: 1.25rem 1.35rem 1.35rem;
}
.hero-edit-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hero-edit-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.hero-edit-modal__sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #5c5c5c;
}
.hero-edit-modal__close {
  border: none;
  background: #f0f0f0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.hero-edit-modal__field {
  margin-bottom: 0.85rem;
}
.hero-edit-modal__field > span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5c5c5c;
  margin-bottom: 0.35rem;
}
.hero-edit-modal__field textarea,
.hero-edit-modal__field input[type="text"],
.hero-edit-modal__field select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.92rem;
}
.hero-edit-modal__field textarea {
  min-height: 5rem;
  resize: vertical;
}
.hero-edit-modal__styles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.hero-edit-modal__styles .hero-edit-modal__field--full {
  grid-column: 1 / -1;
}
.hero-edit-modal__preview {
  margin: 0.5rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: linear-gradient(165deg, #141820 0%, #080a10 100%);
  min-height: 3.5rem;
}
.hero-edit-modal__preview-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(247, 234, 208, 0.55);
  margin-bottom: 0.45rem;
}
.hero-edit-modal__preview-inner {
  word-break: break-word;
}
.hero-edit-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}
.hero-edit-modal__foot .btn-luxe {
  min-width: 6.5rem;
}

.hero-edit-modal--title .hero-edit-modal__panel {
  width: min(100%, 560px);
}

.hero-edit-modal__word-colors {
  margin: 0 0 1rem;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  background: #f7f7f8;
  border: 1px solid #e8e8ec;
}
.hero-edit-modal__word-colors-title {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #141414;
}
.hero-edit-modal__word-colors-hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #5c5c5c;
  line-height: 1.45;
}
.hero-edit-modal__word-colors-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.hero-edit-modal__word-colors-add input[type="text"] {
  flex: 1 1 140px;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
}
.hero-edit-modal__word-colors-add input[type="color"] {
  width: 2.5rem;
  height: 2.1rem;
  padding: 0.15rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.hero-edit-modal__word-colors-add .btn-luxe {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  min-width: auto;
}
.hero-edit-modal__word-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.hero-edit-modal__word-empty {
  font-size: 0.8rem;
  color: #888;
  padding: 0.35rem 0;
}
.hero-edit-modal__word-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 0.82rem;
}
.hero-edit-modal__word-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.hero-edit-modal__word-label {
  flex: 1;
  font-weight: 600;
  color: #141414;
}
.hero-edit-modal__word-hex {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: #666;
}
.hero-edit-modal__word-remove {
  border: none;
  background: transparent;
  color: #888;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}
.hero-edit-modal__word-remove:hover {
  color: #ef4444;
}
