.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.overlay.active {
  display: flex;
}

.receita-modal {
  width: 95%;
  max-width: 1000px;
  max-height: 92vh;
  background: #fff;
  border-radius: 16px;
  overflow-y: auto;
  position: relative;
}

.modal-hero {
  position: relative;
}

.modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15));
  border-radius: 16px 16px 0 0;
}

.modal-hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.modal-hero-content {
  position: absolute;
  bottom: 28px;
  left: 32px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 70%;
}

.modal-hero-content h2 {
  position: relative;
  z-index: 3;
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.modal-hero .tag {
  position: relative;
  z-index: 4;
  background: #e70731;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.modal-info-bar {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 20px 32px;
  background: #fff;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  color: #e70731;
}

.modal-info-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.modal-actions {
  margin-left: auto;
  display: flex;
  gap: 18px;
  font-size: 20px;
  color: #e70731;
  cursor: pointer;
}

.modal-actions span:hover {
  opacity: 0.8;
}

.modal-content {
  padding: 36px 40px;
}

.modal-content section {
  margin-bottom: 36px;
}

.modal-content h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.modal-content ul,
.modal-content ol {
  padding-left: 22px;
}

.modal-content li {
  margin-bottom: 14px;
  line-height: 1.6;
  color: #444;
}

.close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 22px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 10;
}

.chef-area {
  display: none;
  background: #fff;
  margin: 30px auto;
  padding: 25px;
  padding-top: 60px;
  width: 90%;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.08);
}

.chef-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 5px;
}

.chef-sub {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
}

.chef-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.chef-actions button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #e70731;
  color: white;
  font-weight: 600;
}

.chef-recipe-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.premium-modal {
  background: #fff;
  width: 90%;
  max-width: 850px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  position: relative;
}

.modal-image-header {
  position: relative;
  height: 380px;
  background: #000;
}

.modal-image-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.header-text-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: #fff;
  z-index: 2;
}

.tags-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.tag-label {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  text-transform: capitalize;
}

.tag-label.status {
  background: #e70731;
}

#form-titulo-overlay {
  font-size: 28px;
  font-weight: 600;
  outline: none;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: text;
}

#form-titulo-overlay:hover {
  background: rgba(255, 255, 255, 0.1);
}

#form-titulo-overlay:focus {
  background: rgba(255, 255, 255, 0.2);
  border: 1px dashed rgba(255,255,255,0.5);
}

.image-action-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 30px;
  z-index: 3;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}

.action-btn:hover .icon-circle {
  background: rgba(255,255,255,0.3);
}

.modal-content-body {
  padding: 25px 40px;
}

.recipe-meta-bar {
  display: flex;
  justify-content: flex-start;
  gap: 50px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta-icon {
  color: #e70731;
  font-size: 24px;
}

.meta-text label {
  display: block;
  font-size: 12px;
  color: #666;
  font-weight: bold;
}

.meta-text input {
  border: none;
  font-weight: bold;
  color: #222;
  font-size: 14px;
  width: 80px;
  padding: 0;
}

.separator {
  border: 0;
  border-top: 1px solid #eee;
  margin: 15px 0;
}

.section-title {
  font-size: 18px;
  color: #222;
  margin: 20px 0 10px;
}

.required {
  color: #e70731;
  margin-left: 3px;
}

#form-ingredients, #form-steps {
  width: 100%;
  border: none;
  border-left: 1px solid #eee;
  padding-left: 15px;
  font-size: 15px;
  color: #555;
  min-height: 100px;
  resize: vertical;
  line-height: 1.8;
}

.modal-footer-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.btn-save-gray {
  background-color: #e70731;
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.btn-save-gray:hover {
  background-color: #b82627;
}

.btn-share-outline {
  background-color: transparent;
  color: #e70731;
  border: 1px solid #e70731;
  padding: 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.btn-share-outline:hover {
  background-color: rgba(231, 7, 49, 0.05);
}

.tag-wrapper {
  position: relative;
  display: inline-block;
}

#form-tag-select {
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 12px;
  z-index: 10;
}

.chef-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
}

.chef-item:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  background: #fff5f5;
}

.chef-item span {
  font-weight: 600;
  font-size: 16px;
  color: #222;
  flex: 1;
  margin-right: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chef-item strong {
  font-weight: 600;
  font-size: 14px;
  color: #e70731;
  background: #ffe5e9;
  padding: 6px 12px;
  border-radius: 6px;
}

.chef-item strong:hover {
  background: #e70731;
  color: #fff;
}

#btnEditarReceita {
  display: none;
}