/* ============================================
   ARQUIVO: css/styles.css (COMPLETO E LIMPO)
   - Base do seu CSS completo (o que estava funcionando)
   - Duplicações removidas (patches repetidos)
   - Correções de sintaxe (vírgulas soltas etc.)
   - Mantém o visual (sem “inventar” layout novo)
   ============================================ */

html {
  scroll-behavior: smooth;
}

* { margin:0; padding:0; box-sizing:border-box; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:#fff;
  min-height:100vh;
  font-weight:400;
  color:#111827;
}

a { color:inherit; text-decoration:none; }
.hidden { display:none !important; }

.container { max-width:1280px; margin:0 auto; padding:0 1rem; }

/* ============================================
   HEADER
   ============================================ */
#header{
  background:#fff;

  position:sticky; top:0; z-index:50;
  height:105px;
}

.header-content{
  display:flex;
  justify-content:space-between;
  align-items:center;
  height:105px;
  gap:1.5rem;
}

.logo{ display:flex; align-items:center; gap:1rem; }
.logo h1{ font-size:2rem; font-weight:600; white-space:nowrap; }

.logo-receita{ color:#1f2937; }
.logo-fit{ color:#1f2937; }
.logo-app{ color:#16a34a; font-weight:700; }

.logo-icon{
  width:45px; height:45px;
  background:#16a34a;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.logo-icon svg{ width:30px; height:30px; stroke:#fff; stroke-width:2; }

.search-container{ flex:1; max-width:500px; position:relative; }
.search-input{
  width:100%;
  height: 48px !important;
  padding:.875rem 3rem .875rem 1rem;
  border:2px solid #e5e7eb;
  border-radius:9999px;
  font-size:1rem;
  transition:border-color .2s;
  font-weight:400;
}
.search-input:focus{ outline:none; border-color:#16a34a; }
.search-icon{
  position:absolute; right:1rem; top:50%;
  transform:translateY(-50%);
  width:1.25rem; height:1.25rem;
  stroke:#9ca3af; stroke-width:2;
  pointer-events:none;
}

.header-tools{ display:flex; gap:.5rem; }
.tool-btn{
  position:relative;
  width:48px; height:48px;
  border-radius:50%;
  border:none;
  cursor:pointer;
  transition:all .2s;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}

.tool-btn svg{
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.tool-counter{
  position:absolute; top:-4px; right:-4px;
  background:#ef4444; color:#fff;
  font-size:.75rem; font-weight:600;
  min-width:20px; height:20px;
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  padding:0 6px;
}

.tool-blue, .tool-purple, .tool-orange { background:#dbeafe; color:#2563eb; }
.tool-blue:hover, .tool-purple:hover, .tool-orange:hover { background:#bfdbfe; }

.header-actions{ display:flex; align-items:center; gap:.75rem; }

.header-greeting{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:240px;
  flex-shrink:0;
  line-height:1.15;
}
.header-greeting-title{
  font-size:1rem;
  font-weight:600;
  color:#111827;
  white-space:nowrap;
}
.header-greeting-subtitle{
  font-size:.9rem;
  font-weight:400;
  color:#6b7280;
  margin-top:.15rem;
  white-space:nowrap;
}

.badge{
  background:#3b82f6;
  color:#fff;
  padding:.75rem 1.5rem;
  border-radius:9999px;
  display:flex; align-items:center; gap:.5rem;

  font-weight: 600; /* ← MESMO PESO */
  font-size: 0.95rem; /* ← MESMO TAMANHO */

  white-space:nowrap;
  height:48px !important;
  flex-shrink:0;
}


.badge.premium{
  background:linear-gradient(135deg,#fbbf24 0%, #f59e0b 100%);
}
.icon{ width:1.25rem; height:1.25rem; stroke-width:2; }

.btn-premium{
  background:#16a34a;
  color:#fff;
  padding:.75rem 1.5rem;
  border-radius:9999px;
  border:none;
  font-weight:600;
  font-size:1rem;
  cursor:pointer;
  transition:background .2s;
  white-space:nowrap;
  height:48px;
  flex-shrink:0;
}
.btn-premium:hover{ background:#15803d; }

/* ============================================
   SLIDER HERO
   ============================================ */
.hero-slider-fullwidth{
  width:100%;
  height:clamp(220px, 34vh, 360px);
  position:relative;
  overflow:hidden;
  margin:0;
  padding:0;
  background:#ccc;
}

.hero-slider-fullwidth.hidden{ display:none; }

.slider-track-new{
  display:flex;
  height:100%;
  width:100%;
  transition:transform .5s ease;
}
.slide-new{
  min-width:100%;
  width:100%;
  height:100%;
  flex-shrink:0;
  position:relative;
  overflow:hidden;
}
.slide-new img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.slide-overlay-new{
  position:absolute;
  bottom:0; left:0; right:0;
  padding:3rem;
  color:#fff;
  background:linear-gradient(to top, rgba(0,0,0,.78) 0%, transparent 100%);
}
.slide-title-new{ font-size:2.5rem; font-weight:600; margin-bottom:.5rem; }
.slide-description-new{ font-size:1.2rem; opacity:.95; font-weight:400; }

.slider-dots-new{
  position:absolute; bottom:2rem; left:50%;
  transform:translateX(-50%);
  display:flex; gap:.5rem; z-index:10;
}
.slider-dot-new{
  width:12px; height:12px;
  border-radius:50%;
  background:rgba(255,255,255,.5);
  border:none; cursor:pointer;
  transition:all .3s;
}
.slider-dot-new.active{ background:#fff; width:32px; border-radius:6px; }

.slider-arrow-new{
  position:absolute; top:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,.3);
  color:#fff;
  border:none;
  width:55px; height:55px;
  border-radius:50%;
  cursor:pointer;
  font-size:1rem;
  display:flex; align-items:center; justify-content:center;
  transition:all .3s;
  backdrop-filter:blur(4px);
  z-index:10;
}
.slider-arrow-new:hover{ background:rgba(255,255,255,.5); }
.slider-arrow-new.prev{ left:2rem; }
.slider-arrow-new.next{ right:2rem; }

/* ============================================
   CATEGORIAS
   ============================================ */
.categories-new{ max-width:1200px; margin:2rem auto; padding:0 2rem; }
.categories-grid-new{
  display:flex;
  justify-content:center;
  gap:.75rem;
  flex-wrap:wrap;
  padding:1rem 0;
}

.category-card-new{
  padding:1rem 1.5rem;
  border:2px solid #f0f0f0;
  border-radius:50px;
  cursor:pointer;
  transition:all .3s;
  font-weight:600;
  font-size:.95rem;
  white-space:nowrap;
  align-items: center;
  line-height: 0.5 !important;
  position: relative;
  z-index: 1;
}

.category-card-new:hover{
  border-color:#16a34a;
  color:#16a34a;
  transform:translateY(-4px);
  box-shadow:0 8px 16px rgba(22,163,74,.2);
}

.category-card-new.active{
  transform: translateY(-2px);
  opacity: 0.9;
  background:#16a34a;
  color:#fff;
  font-size: 0.95rem;
  border-color:#16a34a;
  box-shadow: 0 8px 16px rgba(22,163,74,.22);
  z-index: 2;
  filter: drop-shadow(0 8px 14px rgba(22,163,74,.35));
}

/* Mobile categorias com scroll horizontal */
@media (max-width:768px){
  .categories-new{ padding:0 1rem; }

  .categories-grid-new{
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    overflow-y: visible;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding:1.25rem 1rem;
    cursor:grab;
  }
  .categories-grid-new::-webkit-scrollbar{ display:none; }
}

/* ============================================
   RECEITAS (GRID)
   ============================================ */
.recipe-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(350px, 1fr));
  gap:1.5rem;
  padding:2rem 0;
}
.recipe-card{
  background:#fff;
  border-radius:1.25rem;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
  transition:all .3s;
  cursor:pointer;
}
.recipe-card:hover{
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  transform:translateY(-4px);
}
.recipe-image-container{ position:relative; height:224px; overflow:hidden; }
.recipe-image{ width:100%; height:100%; object-fit:cover; }
.recipe-category{
  position:absolute; top:1rem; left:1rem;
  background:#16a34a; color:#fff;
  padding:.375rem 1rem;
  border-radius:9999px;
  font-size:.875rem;
  font-weight:600;
  z-index:2;
}


/* ícone branco limpo e proporcional */
.recipe-overlay .lock-icon {
  width: 46px;
  height: 46px;
  stroke: #ffffff;
  opacity: 0.95;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}   


.recipe-overlay { 
  z-index: 2; 
}
.recipe-image { 
  position: relative; 
  z-index: 1; 
}


.recipe-content{ padding:1.2rem; }
.recipe-title{ font-size:1.25rem; font-weight:600; color:#1f2937; margin-bottom:.75rem; }
.recipe-meta{
  display:flex; gap:1rem;
  margin-bottom:1rem;
  color:#6b7280;
  font-size:.875rem;
  align-items:center;
  font-weight:400;
}
.meta-icon{ width:1rem; height:1rem; stroke:currentColor; flex-shrink:0; }
.recipe-stats{ display:flex; justify-content:space-between; margin-bottom:1rem; }
.stat{ text-align:center; }
.stat-value{ font-size:1.5rem; font-weight:600; }
.stat-value.calories{ color:#16a34a; }
.stat-value.protein{ color:#3b82f6; }
.stat-label{ font-size:.75rem; color:#9ca3af; font-weight:400; }

.recipe-button{
  width:100%;
  padding:.575rem;
  border:none;
  border-radius:.75rem;
  font-weight:600;
  cursor:pointer;
  transition:all .2s;
  display:flex; align-items:center; justify-content:center;
  gap:.5rem;
  font-size:1rem;
}
.recipe-button.unlocked{ background:#16a34a; color:#fff; }
.recipe-button.unlocked:hover{ background:#15803d; }
.recipe-button.locked{ background:#3b82f6; color:#fff; }
.recipe-button.locked:hover{ background:#2563eb; }

/* ============================================
   DETALHE DA RECEITA (base)
   ============================================ */
.back-button{
  margin:1.5rem;
  padding:.75rem 1.5rem;
  background:#e5e7eb;
  border:none;
  border-radius:.75rem;
  cursor:pointer;
  transition:background .2s;
  font-weight:600;
  font-size:1rem;
}
.back-button:hover{ background:#d1d5db; }

.detail-image{ width:100%; height:384px; object-fit:cover; }
.detail-content{ padding:2rem; }

.detail-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2rem;
  margin-bottom:2rem;
  flex-wrap:wrap;
}
.detail-title{
  font-size:2.2rem;
  font-weight:600;
  color:#1f2937;
  margin:0;
  flex:1;
}

.btn-add-list{
  padding:.875rem 1.5rem;
  background:#16a34a;
  color:#fff;
  border:none;
  border-radius:.75rem;
  font-size:1rem;
  cursor:pointer;
  transition:background .2s;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  white-space:nowrap;
}
.btn-add-list:hover{ background:#15803d; }

.detail-stats{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:1rem;
  margin-bottom:2rem;
}
.detail-stat{
  padding:1.5rem;
  border-radius:1rem;
  text-align:center;
  background:#f0fdf4;
}
.detail-stat-value{ font-size:2rem; font-weight:600; color:#16a34a; margin-bottom:.25rem; }
.detail-stat-label{ font-size:.875rem; color:#6b7280; font-weight:400; }

.detail-section{ margin-bottom:2rem; }
.section-title{ font-size:1.5rem; font-weight:600; color:#1f2937; margin-bottom:1rem; }

.ingredients-list, .instructions-list{ list-style:none; }
.ingredient-item{ display:flex; gap:.75rem; padding:.5rem 0; color:#374151; font-weight:400; }
.check-icon{ color:#16a34a; margin-top:.25rem; font-weight:600; }

.instruction-item{ display:flex; gap:1rem; margin-bottom:1rem; }
.instruction-number{
  flex-shrink:0;
  width:2rem; height:2rem;
  background:#16a34a;
  color:#fff;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:600;
}
.instruction-text{ padding-top:.25rem; color:#374151; font-weight:400; }

/* ============================================
   MODAIS — PADRÃO ÚNICO
   ============================================ */
body.modal-open{ overflow:hidden; height:100vh; }

.modal{
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1rem;
  overflow:auto;
}

.modal::before{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
}

.modal-overlay{ display:none; } /* mantém compatibilidade com seu HTML */

.modal-surface,
.modal-content,
.modal-content-medium,
.modal-content-large,
.modal-content-xlarge{
  position:relative;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 22px 60px rgba(0,0,0,.22);
  border-radius:14px;
  padding:1.5rem;
  max-height:85vh;
  overflow:auto;
  width:100%;
}

/* tamanhos */
.modal-content{ max-width:28rem; }
.modal-content-medium{ max-width:36rem; }
.modal-content-large{ max-width:48rem; }
.modal-content-xlarge{ max-width:80rem; }

/* Scroll invisível (Chrome/Safari/Firefox) */
.modal-surface,
.modal-content,
.modal-content-medium,
.modal-content-large,
.modal-content-xlarge{
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.modal-surface::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.modal-content-medium::-webkit-scrollbar,
.modal-content-large::-webkit-scrollbar,
.modal-content-xlarge::-webkit-scrollbar{
  width:0 !important; height:0 !important;
}

/* “empurra” a área de scroll pro lado (pra nunca aparecer a barra) */
.modal-surface,
.modal-content,
.modal-content-medium,
.modal-content-large,
.modal-content-xlarge{
  padding-right:18px;
  margin-right:-18px;
}

.modal-close{
  position:absolute;
  top:12px;
  right:12px;
  width:40px;
  height:40px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:9999px;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .15s ease, background .15s ease;
  z-index:10;
}
.modal-close:hover{
  background:#f3f4f6;
  transform:scale(1.06);
}
.modal-close svg{ width:20px; height:20px; stroke:#111827; stroke-width:2; }

.modal-title{
  font-size:1.3rem;
  font-weight:600;
  margin-bottom:1.25rem;
  color:#111827;
  padding-right:3rem;
}

/* Botões padrão */
.btn-secondary,
.btn-primary{
  padding:.875rem;
  border:none;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  transition:all .2s;
  font-size:1rem;
  
}
.btn-secondary{ background:#e5e7eb; color:#374151; width: 100%; }
.btn-secondary:hover{ background:#d1d5db; width: 100%; }
.btn-primary{ background:#16a34a; color:#fff; width: 100%; }
.btn-primary:hover{ background:#15803d; width: 100%; }

/* ============================================
   CALCULADORA / FORMS
   ============================================ */
.calculator-form{ display:flex; flex-direction:column; gap:0rem; }
.form-row{ display:grid; grid-template-columns:repeat(2, 1fr); gap:.7rem; }
.form-group{ display:flex; flex-direction:column; }
.form-group label{
  font-size:.875rem;
  font-weight:600;
  margin-bottom:.5rem;
  color:#374151;
}
.form-group input,
.form-group select{
  padding:.75rem 1rem;
  border:2px solid #d1d5db;
  border-radius:10px;
  font-size:1rem;
  transition:border-color .2s;
  font-weight:400;
}
.form-group input:focus,
.form-group select:focus{
  outline:none;
  border-color:#16a34a;
}
.btn-calculate{
  width:100%;
  padding:.875rem;
  background:#16a34a;
  color:#fff;
  border:none;
  border-radius:10px;
  font-weight:600;
  font-size:1rem;
  cursor:pointer;
  transition:background .2s;
}
.btn-calculate:hover{ background:#15803d; }

.calc-results{ margin-top:1.25rem; }
.result-box{
  background:#dbeafe;
  padding:1.25rem;
  border-radius:12px;
  margin-bottom:1rem;
}
.result-box h4{ font-size:1.05rem; font-weight:600; margin-bottom:1rem; }
.result-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1rem; text-align:center; }
.result-value{ font-size:1.6rem; font-weight:600; }
.result-label{ font-size:.875rem; color:#6b7280; font-weight:400; margin-top:.25rem; }

/* ============================================
   LISTA DE COMPRAS
   ============================================ */
.shopping-empty{ text-align:center; padding:3rem 1rem; color:#9ca3af; }
.shopping-empty svg{ width:4rem; height:4rem; margin:0 auto 1rem; opacity:.5; }

.shopping-item{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.75rem;
  border:2px solid #e5e7eb;
  border-radius:12px;
  margin-bottom:.7rem;
  transition:background .2s;
}
.shopping-item:hover{ background:#f9fafb; }
.shopping-item input[type="checkbox"]{ width:1.25rem; height:1.25rem; cursor:pointer; }

.shopping-item-content{ flex:1; }
.shopping-item-text{ color:#374151; font-weight:400; }
.shopping-item-text.checked{ text-decoration:line-through; color:#9ca3af; }
.shopping-item-recipe{ font-size:.75rem; color:#9ca3af; font-weight:400; }

.btn-delete{
  padding:.5rem;
  background:none;
  border:none;
  color:#ef4444;
  cursor:pointer;
  border-radius:10px;
  transition:background .2s;
}
.btn-delete:hover{ background:#fee2e2; }

.btn-clear-list{
	font-size: 16px;
  width:100%;
  margin-top:1rem;
  padding:.75rem;
  background:#16a34a;
  color:#fff;
  border:none;
  height:50px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  transition:all .2s;
}
.btn-clear-list:hover{ background:#16a34a; }

/* ============================================
   PLANEJADOR SEMANAL
   ============================================ */
.week-planner-wrapper{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.week-table{
  width:100%;
  min-width:900px;
  border-collapse:collapse;
  margin-top:1rem;
}
.week-table th, .week-table td{
  border:2px solid #e5e7eb;
  padding:.75rem;
  text-align:center;
}
.week-table th{
  background:#f3f4f6;
  font-weight:600;
  font-size:.875rem;
}
.week-table td{ min-width:120px; vertical-align:top; font-weight:400; }
.week-table tbody tr:last-child td{
  background:#fffbeb;
  font-weight:600;
  color:#ea580c;
  font-size:1.05rem;
}
.planned-meal{ background:#d1fae5; padding:.5rem; border-radius:10px; text-align:left; }
.planned-meal-name{ font-size:.875rem; font-weight:600; margin-bottom:.25rem; }
.planned-meal-cal{ font-size:.75rem; color:#6b7280; font-weight:400; margin-bottom:.5rem; }
.btn-remove-meal{
  font-size:.75rem;
  color:#dc2626;
  background:none;
  border:none;
  cursor:pointer;
  text-decoration:underline;
  font-weight:600;
}
.btn-remove-meal:hover{ color:#991b1b; }
.empty-slot{ color:#9ca3af; font-size:.875rem; font-weight:400; }

.btn-save-plan{
  width:100%;
  margin-top:1.5rem;
  padding:1rem;
  background:#16a34a;
  color:#fff;
  border:none;
  border-radius:10px;
  font-weight:600;
  font-size:1.05rem;
  cursor:pointer;
  transition:background .2s;
}
.btn-save-plan:hover{ background:#15803d; }
.btn-save-plan:disabled{ background:#9ca3af; cursor:not-allowed; }

/* ============================================
   PREMIUM MODAL (ajuste fino)
   ============================================ */
.premium-hero{ text-align:center; margin-bottom:1rem; }
.premium-badge-icon{
  width:56px; height:56px;
  border-radius:9999px;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto .75rem;
  background:linear-gradient(135deg,#16a34a 0%, #15803d 100%);
}
.premium-badge-icon svg{ width:28px; height:28px; color:#fff; }
.premium-title{ font-size:1.45rem; font-weight:600; margin:0 0 .35rem; color:#111827; }
.premium-subtitle{ color:#6b7280; font-size:.95rem; font-weight:400; margin:0; }

.premium-warning{
  background:#fffbeb;
  border-left:4px solid #f59e0b;
  padding:.875rem;
  border-radius:10px;
  margin:1rem 0;
}
.premium-warning p{ margin:0; color:#92400e; font-weight:600; font-size:.9rem; }

#premium-modal .input-group label{ font-weight:600; }

#premium-modal #premium-code-input{
  border-radius:8px !important;
  border:2px solid #e5e7eb !important;
  padding:.75rem 1rem !important;
  font-size:1rem !important;
  font-weight:400 !important;
}
#premium-modal #premium-code-input:focus{ border-color:#16a34a !important; outline:none !important; }

/* Botão "Agora não" - HOVER */
#premium-modal .btn-cancel:hover,
.btn-cancel:hover {
  background: #15803d;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Botão "Ativar Premium" - garantir tamanho igual */
#premium-modal .btn-primary,
.btn-primary {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
}

.premium-footer{ padding-top:1rem; border-top:1px solid #e5e7eb; text-align:center; margin-top:1rem; }
.premium-footer-text{ color:#6b7280; font-size:.85rem; font-weight:400; margin:0 0 .75rem; }

.premium-links{ display:flex; gap:.625rem; justify-content:center; flex-wrap:wrap; }
.premium-link{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.55rem 1rem;
  border-radius:10px;
  font-weight:600;
  font-size:.85rem;
  text-decoration:none;
}
.premium-link svg{
  width:18px; height:18px;
  stroke-width:2;
}
.premium-link.whatsapp{ background:#25D366; color:#fff; }
.premium-link.instagram{ background:#111; color:#fff; }

/* ============================================
   FAQ (sem emoji + padrão verde)
   ============================================ */
#faq-content{ padding-right:18px; margin-right:-18px; overflow:auto; max-height:calc(85vh - 120px); }
#faq-content{ scrollbar-width:none; -ms-overflow-style:none; }
#faq-content::-webkit-scrollbar{ width:0 !important; height:0 !important; }

/* “mata” pesos exagerados dentro do FAQ (inclusive os inline do JS) */
#faq-content, #faq-content * { font-weight:400 !important; }

.faq-section{
  border:1px solid #e5e7eb;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  margin-bottom:12px;
}
.faq-header{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  cursor:pointer;
  border:none;
  color:#111827;
}
.faq-title{
  font-weight:600 !important;
  font-size:1rem;
}
.faq-chevron{
  width:30px; height:30px;
  border-radius:9999px;
  background:#16a34a;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  transition:transform .2s ease, background .2s ease;
}
.faq-chevron svg{ width:18px; height:18px; stroke:#fff; stroke-width:2; }
.faq-section.open .faq-chevron{ transform:rotate(90deg); background:#15803d; }

.faq-body{ padding:14px 16px; background:#fff; }
.faq-q{ color:#16a34a; font-weight:600 !important; margin-bottom:6px; }
.faq-a{ color:#6b7280; font-size:.95rem; line-height:1.45; }

.faq-help{
  text-align:center;
  padding:1.25rem;
  background:#f0fdf4;
  border-radius:12px;
  border:1px solid rgba(22,163,74,.15);
  margin-top:12px;
}
.faq-help h4{ margin:0 0 .75rem; font-weight:600 !important; }
.faq-help-links{ display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; }
.faq-help-links a{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.65rem 1.1rem;
  border-radius:9999px;
  font-weight:600 !important;
  text-decoration:none;
  color:#fff;
}
.faq-help-links a svg{ width:18px; height:18px; stroke:#fff; stroke-width:2; }
.faq-help-links .wa{ background:#25D366; }
.faq-help-links .ig{ background:linear-gradient(45deg,#f09433,#bc1888); }

/* ============================================
   RESPONSIVO BASE
   ============================================ */
@media (max-width:1024px){
  .recipe-grid{ grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width:768px){
  #header{ height:auto; }
  .header-content{
    flex-direction:column;
    height:auto;
    padding:1rem 0;
    gap:1rem;
  }
  .logo h1{ font-size:1.5rem; }
  .search-container{ width:100%; max-width:100%; }
  .header-tools, .header-actions{ width:100%; justify-content:center; }
  .recipe-grid{ grid-template-columns:1fr; }
  .detail-title{ font-size:1.7rem; }
  .detail-stats{ grid-template-columns:repeat(2, 1fr); }
  .form-row{ grid-template-columns:1fr; }

  .hero-slider-fullwidth{ height:300px; }
  .slide-title-new{ font-size:1.75rem; }
  .slide-description-new{ font-size:1rem; }
  .slide-overlay-new{ padding:2rem 1.5rem; }
  .slider-arrow-new{ width:50px; height:50px; font-size:1.5rem; }
  .slider-arrow-new.prev{ left:1rem; }
  .slider-arrow-new.next{ right:1rem; }
}

@media (max-width:480px){
  .hero-slider-fullwidth{ height:285px;  }
  .slide-title-new{ font-size:1.5rem;  }
  .category-card-new{ padding:1.0rem 1.20rem; font-size:.875rem; border-radius: 50px; }
}

/* ================================
   PATCH — alinhamento Premium Modal
   (mantido 1x — estava duplicado)
   ================================ */
#premium-modal .modal-content{
  padding-right: 1.5rem !important;
  margin-right: 10px !important;
  display: grid;
  gap: 14px;
}

#premium-modal .premium-hero{
  margin-bottom: 0 !important;
  text-align: center;
}

#premium-modal .premium-title{
  line-height: 1.15;
  font-weight: 650;
}

#premium-modal .premium-subtitle{
  margin-top: 2px;
  font-weight: 450;
}

#premium-modal .input-group{
  display: grid;
  gap: 8px;
  margin-bottom: 0 !important;
}

#premium-modal .input-group label{
  font-weight: 600;
}

#premium-modal #premium-code-input{
  width: 100% !important;
  border-radius: 9px !important;
}

#premium-modal .modal-actions{
  display: grid !important;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  align-items: stretch;
}

#premium-modal .btn-secondary,
#premium-modal .btn-primary{
  height: 46px;
  border-radius: 12px;
}

#premium-modal .premium-link svg{
  width: 20px;
  height: 20px;
}

/* Evita a página "balançar" quando a scrollbar aparece/some */
html { scrollbar-gutter: stable; }

/* fallback para navegadores que não suportam scrollbar-gutter */
@supports not (scrollbar-gutter: stable) {
  html { overflow-y: scroll; }
}

/* ================================
   ANTI-FLASH com CSS Variables
   ================================ */
:root {
  --badge-bg: #3b82f6;
  --show-premium-btn: none;
}

.badge {
  min-width: 160px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#premium-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;

}

/* Ícone estrela para premium */
.badge.premium svg {
  fill: currentColor;
  stroke: none;
}

/* Badge premium */
.badge.premium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

.badge.ready {
  opacity: 1;
}

body.premium-active #premium-btn {
  display: none !important;
}

/* ================================
   FIX: Centralização Mobile/iPhone
   ================================ */
@media (max-width:768px){
  .modal{
    align-items:center !important;
    justify-content:center !important;
    padding:1rem !important;
  }

  .modal-content,
  .modal-content-medium,
  .modal-content-large,
  .modal-content-xlarge{
    max-height:90vh !important;
    margin:auto !important;
  }
}

/* iPhone Safari: fix específico */
@supports (-webkit-touch-callout: none) {
  .modal{
    align-items:center !important;
    justify-content:center !important;
  }

  .modal-surface,
  .modal-content,
  .modal-content-medium,
  .modal-content-large,
  .modal-content-xlarge{
    margin:auto !important;
  }
}

/* ================================
   FIX: Botões dias da semana - Grid responsivo
   ================================ */
.detail-section div[style*="display:flex"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

.detail-section button.btn-secondary {
  background: #e5e7eb !important;
  color: #374151 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 0.75rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  width: 100% !important;
  text-align: center !important;
}

.detail-section button.btn-secondary:hover {
  background: #d1d5db !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.detail-section button.btn-secondary:active {
  transform: translateY(0) !important;
}

@media (max-width: 640px) {
  #notification-title {
    font-size: 1.3rem;
    margin: 0px 0px 14px 51px !important;
  }

  .detail-section div[style*="display:flex"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ================================
   FIX: Centralizar categorias verticalmente
   ================================ */
.categories-new {
  margin: 1.5rem auto !important;
  padding: 0 2rem !important;
}

.categories-grid-new {
  padding: 9px 10px 23px 10px !important;
}

/* Remove margem do slider */
.hero-slider-fullwidth {
  margin-bottom: 0 !important;
}

/* ================================
   FIX: Remover margem do grid de receitas
   ================================ */
.recipe-grid {
  padding: 0 !important;
  margin: 0 !important;
}

.container {
  padding: 0 1rem !important;
}

/* ================================
   LAYOUT TURBINADO - RECEITA DETALHADA
   ================================ */
.detail-hero-image {
  width: 100%;
  height: 400px !important;
  object-fit: cover;
}

.detail-content-wrapper {
  padding: 2rem;
  max-width: 1248px;
  margin: 0 auto;
}

.detail-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

/* Tags */
.tags-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: #f0fdf4;
  color: #16a34a;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #bbf7d0;
}

/* Stats */
.detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-stat {
  padding: 1rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #bbf7d0;
  text-align: center;
}

.detail-stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  color: #16a34a;
  margin-bottom: 0.25rem;
}

.detail-stat-label {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Seções */
.detail-section {
  margin-bottom: 2.5rem;
}

.section-title {
	margin-top: 25px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-icon {
  width: 28px;
  height: 28px;
  color: #16a34a;
}

/* Planejamento Semanal */
.planner-subtitle {
  font-size: 0.95rem;
  color: #3b82f6;
  margin-bottom: 1rem;
}

.planner-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.planner-day {
  padding: 0.875rem 1.25rem;
  background: #e5e7eb;
  color: #374151;
  border-radius: 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.planner-day:hover {
  background: #d1d5db;
  transform: translateY(-2px);
}

/* Benefícios */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.benefit-item {
  padding: 1rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.benefit-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #16a34a;
  margin-top: 0.125rem;
}

/* Ingredientes em 2 colunas */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid #bbf7d0;
  transition: all 0.2s;
}

.ingredient-item:hover {
  background: #f0fdf4;
  border-color: #16a34a;
  transform: translateX(4px);
}

.ingredient-icon-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #16a34a;
}

.ingredient-icon {
  width: 20px;
  height: 20px;
  color: #16a34a;
}

.ingredient-content {
  flex: 1;
}

.ingredient-text {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ingredient-quantity {
  display: inline-block;
  font-weight: 600;
  color: #16a34a;
  margin-right: 0.5rem;
}

.ingredient-optional {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.125rem 0.5rem;
  background: #fef3c7;
  color: #92400e;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Modo de Preparo */
.instructions-list {
  list-style: none;
}

.instruction-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-direction: column;
}

.instruction-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.instruction-number {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.instruction-text {
  padding-top: 0.25rem;
  color: #374151;
  flex: 1;
  line-height: 1.6;
}

.instruction-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 600 / 370;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  align-self: center;
}

/* Dicas */
.tips-list {
  display: grid;
  gap: 0.75rem;
}

.tip-item {
  padding: 1rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left: 4px solid #f59e0b;
  border-radius: 0.5rem;
  color: #92400e;
  font-size: 0.95rem;
}

/* Alérgenos */
.allergens-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.allergen-badge {
  padding: 0.5rem 1rem;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #fecaca;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.allergen-icon {
  width: 16px;
  height: 16px;
}

/* Mobile */
@media (max-width: 768px) {

	
	
  .back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px !important;
    height: 65px !important;
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 1;
    transform: scale(1);
  }

  .detail-title { font-size: 1.7rem; }
  .detail-hero-image { height: 200px !important; margin-top: -15px !important; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .ingredients-grid { grid-template-columns: 1fr; }
  .planner-days { grid-template-columns: repeat(2, 1fr); }
  .instruction-image { max-width: 100%; }
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #e5e7eb;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  margin: 1.5rem 1.5rem 0.5rem 0.5rem;
}

.back-btn svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 5;
}

/* Botão Adicionar à Lista */
.btn-add-shopping {
	height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2rem;
}

.btn-add-shopping:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-add-shopping svg { flex-shrink: 0; }

/* Modal de Notificação */
.modal-content-small {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  z-index: 10001;
}

.modal-content-small .modal-title {
  font-size: 1rem !important;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.modal-content-small .modal-text {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.modal-content-small .btn-primary {
  width: 100%;
  padding: 0.875rem;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-content-small .btn-primary:hover {
  background: #15803d;
  transform: translateY(-2px);
}

/* Modal Escolha de Refeição */
.meal-options { display: grid; gap: 0.75rem; margin: 1.5rem 0; }

.meal-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  text-align: left;
}

.meal-option-btn:hover {
  background: #f0fdf4;
  border-color: #16a34a;
  transform: translateX(4px);
}

.meal-option-btn svg {
  width: 24px;
  height: 24px;
  color: #16a34a;
  flex-shrink: 0;
}

.meal-option-btn span { flex: 1; }

/* Botão "Agora não" - ESTADO NORMAL */
#premium-modal .btn-cancel,
.btn-cancel {
	
  width: 100%;
  padding: 0.875rem;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: #16a34a;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* ================================
   BOTÃO VOLTAR AO TOPO
   ================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 1;
  transform: scale(1);
}

.back-to-top:hover {
  background: #15803d;
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.4);
}

.back-to-top:active { transform: scale(0.95); }

.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2.5;
}

.back-to-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

/* Mobile */
@media (max-width: 768px) {
  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .back-to-top svg { width: 20px; height: 20px; }
}

/* ================================
   BREADCRUMBS  (FIXED)
   ================================ */
.breadcrumbs-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem !important;
  flex-wrap: wrap;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-link {
  color: #16a34a;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.breadcrumb-link:hover {
  color: #15803d;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #d1d5db;
  user-select: none;
}

.breadcrumb-current {
	padding-top: 15px;
  color: #374151;
  font-weight: 400;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
      font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

@media (max-width: 768px) {
  .breadcrumbs-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.10rem;
  }

  .breadcrumbs {
    font-size: 0.8125rem;
    margin: 0.0rem 1.5rem 0.5rem 0.6rem;
  }

  .breadcrumb-current { max-width: 250px; }
}

/* ================================
   MODAL REFEIÇÕES - ÍCONES E HORÁRIOS NA MESMA LINHA
   ================================ */
.meal-selector-options { display: flex; flex-direction: column; gap: 0.15rem; }

.meal-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 10px;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.meal-option:hover {
  background: #f0fdf4;
  border-color: #16a34a;
  transform: translateX(4px);
}

.meal-icon { width: 24px; height: 24px; color: #16a34a; flex-shrink: 0; }

.meal-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  text-align: left;
}

.meal-time {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
  white-space: nowrap;
  margin-left: auto;
}

/* ================================
   NOTIFICAÇÃO - QUEBRA DE LINHA E CENTRALIZAÇÃO
   ================================ */
#notification-message {
  white-space: pre-line !important;
  text-align: center !important;
  line-height: 1.6 !important;
}

#notification-title {
  margin: 0px 0px 14px 51px !important;
}

/* ================================
   TAB BAR MOBILE
   ================================ */
.tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s;
  color: #6b7280;
}

.tab-item:active { transform: scale(0.95); }
.tab-item.active { color: #16a34a; }

.tab-icon { width: 24px; height: 24px; }

.tab-label { font-size: 0.75rem; font-weight: 500; }

/* ================================
   DROPDOWN PLANNER (abre pra cima)
   ================================ */
.planner-dropdown {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.planner-dropdown.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.planner-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.planner-dropdown-content {
  position: relative;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1rem 6rem 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.planner-dropdown-item {
	height:40px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  text-align: left;
  width: 100%;
}

.planner-dropdown-item:active {
  transform: scale(0.98);
  background: #f0fdf4;
  border-color: #16a34a;
}

.planner-dropdown-icon { width: 20px; height: 20px; color: #16a34a; flex-shrink: 0; }

/* ================================
   MENU HAMBÚRGUER
   ================================ */
.hamburger-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.hamburger-menu.hidden { opacity: 0; pointer-events: none; }

.hamburger-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hamburger-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85%;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.hamburger-menu.hidden .hamburger-content { transform: translateX(100%); }

.hamburger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.hamburger-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.hamburger-logo-icon { width: 24px; height: 24px; color: #16a34a; }

.hamburger-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #6b7280;
  transition: color 0.2s;
}

.hamburger-close:active { color: #1f2937; }

.hamburger-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hamburger-section { display: flex; flex-direction: column; gap: 0.25rem; }

.hamburger-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hamburger-section-title svg { width: 18px; height: 18px; color: #16a34a; }

.hamburger-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2937;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.hamburger-link:active { background: #f3f4f6; transform: scale(0.98); }

.hamburger-link svg { width: 20px; height: 20px; color: #6b7280; flex-shrink: 0; }

.hamburger-sublink { padding-left: 2.5rem; font-size: 0.9rem; color: #6b7280; }

.hamburger-divider { height: 1px; background: #e5e7eb; margin: 0.5rem 0; }

.hamburger-premium-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.hamburger-premium-btn:active { background: #15803d; transform: scale(0.98); }

.hamburger-premium-btn svg { width: 20px; height: 20px; }

/* ================================
   RODAPÉ DESKTOP
   ================================ */
.footer {
  display: none;
  background: #1f2937;
  color: #fff;
  margin-top: 4rem;
  padding: 3rem 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-section { display: flex; flex-direction: column; gap: 1rem; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-logo-icon { width: 32px; height: 32px; color: #16a34a; }

.footer-description {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 350px;
}

.footer-title { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: inline-block;
}

.footer-link:hover { color: #16a34a; }

.footer-social { display: flex; align-items: center; gap: 0.5rem; }

.footer-social-icon { width: 20px; height: 20px; }

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 1.5rem;
  text-align: center;
}

.footer-copyright {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* ================================
   RESPONSIVE - MOBILE / DESKTOP
   ================================ */
@media (max-width: 768px) {
  .tab-bar { display: flex; }
  body { padding-bottom: 70px; }
  .footer { display: none; }
  
  .slider-arrow-new.next {
  display:none;}
	  
 .slider-arrow-new.prev {
	   display:none;}
	 
  
}

@media (min-width: 769px) {
  .footer { display: block; }
  .tab-bar { display: none !important; }
  .planner-dropdown { display: none !important; }
  .hamburger-menu { display: none !important; }
}

/* ================================
   BOTÃO HAMBÚRGUER - FORÇA APARECER NO MOBILE
   ================================ */
body .hamburger-btn,
#header .hamburger-btn,
.header-content .hamburger-btn {
  display: none !important;
}

@media (max-width: 768px) {
  body .hamburger-btn,
  #header .hamburger-btn,
  .header-content .hamburger-btn {
    display: block !important;
    position: relative !important;
    z-index: 100 !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-left: auto !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0.5rem !important;
    color: #1f2937 !important;
  }

  .hamburger-btn:active { color: #16a34a !important; }

  .hamburger-btn svg,
  .hamburger-btn i {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ================================
   HEADER - LAYOUT MOBILE
   ================================ */
@media (max-width: 768px) {
  .header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
  }

  .logo { flex: 0 0 auto !important; order: 1 !important; }

  .hamburger-btn {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    order: 2 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    position: relative !important;
    z-index: 100 !important;
  }

  .header-actions,
  .search-container {
    order: 3 !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .header-content {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    grid-template-rows: auto auto !important;
    gap: 1rem !important;
    align-items: center !important;
  }

  .logo { grid-column: 1 !important; grid-row: 1 !important; }

  .header-greeting {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    align-self: center !important;
  }

  .header-greeting-title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: .95rem !important;
  }

  .header-greeting-subtitle {
    font-size: .76rem !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
  }

  .hamburger-btn {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .search-container { grid-column: 1 / -1 !important; grid-row: 2 !important; }
  .header-actions { grid-column: 1 / -1 !important; grid-row: 3 !important; }

  .header-tools { display: none !important; }
}

@media (max-width: 768px) {
  .premium-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 10 !important;
  }
}

/* Oculta botões de ferramentas no mobile (aparecem na tab bar) */
@media (max-width: 768px) {
  #calculator-btn,
  #shopping-btn,
  #planner-btn,
  #faq-btn,
  .header-actions .icon-btn {
    display: none !important;
  }

  #credits-badge,
  #premium-btn { display: flex !important; }
}

/* =========================================================
   RECEITAFIT.APP — UI POLISH (OVERRIDE FINAL)
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Tokens */
:root{
  --rf-ease: cubic-bezier(.2,0,.2,1);
  --rf-fast: 140ms;
  --rf-faster: 100ms;

  --rf-lift: -2px;
  --rf-lift-strong: -4px;
  --rf-shadow: 0 10px 22px rgba(17,24,39,.12);
  --rf-shadow-strong: 0 14px 30px rgba(17,24,39,.14);

  /* ✅ reduz o “blur” em iOS: scale alto + subpixel costuma borrar texto */
  --rf-active-scale: 1.04;
}

/* Base: transições padronizadas */
.tool-btn, .category-card-new, .btn-primary, .btn-secondary,
.btn-premium, .back-btn, .slider-arrow-new, .slider-dot-new,
.btn-calculate, .meal-option-btn, .modal-actions button,
.btn-clear-list, .btn-delete {
  transition: transform var(--rf-fast) var(--rf-ease),
              box-shadow var(--rf-fast) var(--rf-ease),
              background-color var(--rf-fast) var(--rf-ease),
              border-color var(--rf-fast) var(--rf-ease),
              filter var(--rf-fast) var(--rf-ease);
  will-change: transform;
}

/* =========================
   DESKTOP HOVER (sem scale)
   ========================= */
@media (hover: hover) and (pointer: fine) {

  .tool-btn:hover,
  .category-card-new:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-premium:hover,
  .back-btn:hover,
  .slider-arrow-new:hover,
  .slider-dot-new:hover,
  .btn-calculate:hover,
  .meal-option-btn:hover,
  .modal-actions button:hover,
  .btn-clear-list:hover{
 /*    transform: translateY(var(--rf-lift)); */
    box-shadow: var(--rf-shadow);
  }

  .recipe-card:hover{
    transform: translateY(var(--rf-lift-strong)) !important;
    box-shadow: var(--rf-shadow-strong) !important;
  }

  .back-btn:hover{ box-shadow: var(--rf-shadow); }
}

/* =========================
   MOBILE (toque)
   ========================= */
@media (pointer: coarse) {

  .tool-btn, .category-card-new, .btn-primary, .btn-secondary,
  .btn-premium, .back-btn, .slider-arrow-new, .slider-dot-new,
  .btn-calculate, .meal-option-btn, .modal-actions button,
  .btn-clear-list, .btn-delete {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
    transition-duration: var(--rf-faster) !important;
  }

  .tool-btn:active,
  .category-card-new:active,
  .btn-primary:active,
  .btn-secondary:active,
  .btn-premium:active,
  .back-btn:active,
  .slider-arrow-new:active,
  .slider-dot-new:active,
  .btn-calculate:active,
  .meal-option-btn:active,
  .modal-actions button:active,
  .btn-clear-list:active{
    transform: scale(var(--rf-active-scale));
    box-shadow: var(--rf-shadow);
  }

  .recipe-card:active{
    transform: translateY(-3px) !important;
    box-shadow: var(--rf-shadow-strong) !important;
  }
}

/* HEADER MOBILE — layout 72x68 SOMENTE nos ícones (não no Premium) */
@media (max-width: 768px) {

  .tool-btn svg{
    width: 30px;
    height: 25px;
    stroke-width: 2;
  }

  .header-tools .tool-btn:not(#premium-btn):not(.btn-premium):not(.premium-btn) {
    width: 72px !important;
    height: 68px !important;
    background: #DDDDDD !important;
    border-radius: 40px !important;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .10);
  }

  .header-tools .tool-btn:not(#premium-btn):not(.btn-premium):not(.premium-btn):active {
    background: #AAAAAA !important;
  }

  #premium-btn, .btn-premium, .premium-btn {
    width: auto !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 0.95rem;
    background: #16a34a !important;
    color: #fff !important;
    border: none !important;

    border-radius: 9999px !important;
    padding: 0 18px !important;
  }

  /* FIX: seletor correto (tinha typo .premium-btnhover) */
  #premium-btn:hover, .btn-premium:hover, .premium-btn:hover {
    background: #15803d;
    transform: none!important;
    box-shadow: none !important;
  }
}

/* “Pill” do header no desktop */
.tool-btn{ border-radius: 9999px; }

.tool-btn.is-active{
  background: #e8fff0 !important;
  border: 1px solid rgba(22,163,74,.28) !important;
  box-shadow: 0 10px 22px rgba(22,163,74,.14) !important;
}

/* Planejador: menor altura no mobile */
@media (max-width: 768px) {
  #planner-modal .modal-content-xlarge{
    max-height: 72vh !important;
    overflow: auto !important;
  }
}

/* Planejador: scroll invisível */
.week-planner-wrapper{
  overflow: auto !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.week-planner-wrapper::-webkit-scrollbar{ display:none; }

/* LISTA DE COMPRAS — lixeira 20x20 */
.btn-delete svg{ width: 20px !important; height: 20px !important; }

/* VOLTAR / PREMIUM — remove “copiar” */
.back-btn, .btn-premium{
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* GRID DE RECEITAS — 2/3/4 */
#recipe-grid, .recipe-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

@media (max-width: 1024px) {
  #recipe-grid, .recipe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 768px) {
  #recipe-grid, .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

/* CARD DE RECEITA — ALINHAMENTO MOBILE */
.recipe-card { display: flex; flex-direction: column; height: 100%; }

.recipe-content { display: flex; flex-direction: column; flex: 1; }

.recipe-title {
    min-height: 2.2em;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-meta, .recipe-stats { margin-top: auto; }

.recipe-button { margin-top: 0px; }

/* BOTÃO LOCK — texto diferente no mobile */
.btn-label-mobile { display: none; }
.btn-label-desktop { display: inline; }

@media (max-width: 768px) {
  .btn-label-desktop { display: none; }
  .btn-label-mobile { display: inline; }

  .recipe-button.locked { padding: 8px 10px; gap: 8px; }

  .recipe-button.locked .btn-label-mobile {
    font-weight: 700;
    font-size: 0.95rem;
  }
}

/* Recipe Detail = tela independente */
:root { --header-h: 0px; }

.recipe-detail {
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 1rem 0;
}

/* garante que o grid some de verdade */
#recipe-grid.hidden { display: none !important; }

/* garante que popups fiquem acima do modal premium */
#notification-modal { z-index: 9999 !important; }
#confirm-modal { z-index: 9998 !important; }

/* Logo sem hover/efeito */
.logo, .logo * {
	letter-spacing: -1px !important;
	    gap: 0rem !important;
  transition: none !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
  box-shadow: none !important;
}
.logo:hover,
.logo:active,
.logo:focus,
.logo:focus-visible {
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}
@media (pointer: coarse) {
  .logo, .logo * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .site-logo:hover,
  .header-logo:hover,
  .logo:hover { opacity: 0.92; }
}

@media (max-width: 768px) {
  #header { box-shadow: none !important; }
}

/* ✅ Trava scroll pra cima quando receita aberta */
body.detail-open { overflow-y: scroll; }

/* TRANSIÇÃO SUAVE ENTRE TELAS */
#recipe-grid, #recipe-detail, #heroSlider, .categories-new {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#recipe-grid.fade-out,
#recipe-detail.fade-out,
#heroSlider.fade-out,
.categories-new.fade-out {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

#recipe-grid.fade-in,
#recipe-detail.fade-in,
#heroSlider.fade-in,
.categories-new.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* FIX: BOTÕES MODAL PREMIUM FOCADOS */
#premium-modal .modal-content,
#premium-modal .modal-content * {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#premium-modal .btn-primary,
#premium-modal .btn-cancel,
#premium-modal input,
#premium-modal button {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: auto !important;
}

#premium-modal { z-index: 3000 !important; }
#premium-modal .modal-overlay { z-index: 1 !important; }
#premium-modal .modal-content { z-index: 2 !important; position: relative !important; }






/* =====================================================
   PATCH FINAL — Anti-blur iOS + micro ajustes seguros
   (override only — não altera classes existentes)
   ===================================================== */

/* 1) Reduz blur de texto em botões (iOS / Safari) */
@media (pointer: coarse) {
  .tool-btn:active,
  .category-card-new:active,
  .btn-primary:active,
  .btn-secondary:active,
  .btn-premium:active,
  .back-btn:active,
  .slider-arrow-new:active,
  .slider-dot-new:active,
  .btn-calculate:active,
  .meal-option-btn:active,
  .modal-actions button:active,
  .btn-clear-list:active {
    transform: scale(1.03) !important; /* antes era mais agressivo */
  }
}

/* 2) Força renderização de texto mais nítida */
button,
.tool-btn,
.btn-primary,
.btn-secondary,
.btn-premium,
.recipe-button {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

/* 3) Scrollbar hack só no desktop (evita desalinhamento mobile) */
@media (min-width: 769px) {
  .modal-surface,
  .modal-content,
  .modal-content-medium,
  .modal-content-large,
  .modal-content-xlarge {
    padding-right: 18px;
    margin-right: -18px;
  }
}

@media (max-width: 768px) {
  .modal-surface,
  .modal-content,
  .modal-content-medium,
  .modal-content-large,
  .modal-content-xlarge {

    margin-right: 0 !important;
  }
}

/* 4) Foco acessível sem sombra feia */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(22,163,74,.55);
  outline-offset: 2px;
}

/* 5) Remove highlight estranho de toque em cards */
.recipe-card button {
  -webkit-tap-highlight-color: transparent;
}



/* =====================================================
   PATCH EXTRA — iOS Safari text blur fix (override only)
   ===================================================== */

/* 1) iOS: texto borra quando o botão é transformado (scale/translate).
   => No mobile, REMOVER transform dos BOTÕES (mantém UI nítida). */
@media (pointer: coarse) {

  /* Botões com texto (principais) */
  button,
  .btn-primary, .btn-secondary, .btn-premium,
  .recipe-button,
  .planner-day,
  .meal-option, .meal-option-btn,
  .hamburger-link, .hamburger-premium-btn,
  .tab-item,
  .modal-actions button,
  .btn-clear-list,
  .btn-delete,
  .back-btn {
    transform: none !important;
    will-change: auto !important;
  }

  /* Também zera no estado ativo (onde costuma borrar mais) */
  button:active,
  .btn-primary:active, .btn-secondary:active, .btn-premium:active,
  .recipe-button:active,
  .planner-day:active,
  .meal-option:active, .meal-option-btn:active,
  .hamburger-link:active, .hamburger-premium-btn:active,
  .tab-item:active,
  .modal-actions button:active,
  .btn-clear-list:active,
  .btn-delete:active,
  .back-btn:active {
    transform: none !important;
  }

  /* Mantém o “feedback” sem scale: usa leve brilho/sombra */
  button:active,
  .btn-primary:active, .btn-secondary:active, .btn-premium:active,
  .recipe-button:active,
  .planner-day:active,
  .meal-option:active, .meal-option-btn:active,
  .hamburger-link:active, .hamburger-premium-btn:active,
  .tab-item:active,
  .modal-actions button:active,
  .btn-clear-list:active {
    filter: brightness(0.97) !important;
    box-shadow: 0 10px 22px rgba(17,24,39,.10) !important;
  }

  /* Cards podem continuar com “efeito” sem afetar texto do botão */
  .recipe-card:active {
    transform: translateY(-3px) !important;
  }
}

/* 2) Força composição estável no Safari (evita blur intermitente) */
button,
.btn-primary, .btn-secondary, .btn-premium,
.recipe-button,
.planner-day,
.meal-option, .meal-option-btn,
.hamburger-link, .hamburger-premium-btn,
.tab-item,
.modal-actions button,
.back-btn {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 3) Evita zoom/troca de métrica no iOS que piora blur */
html {
  -webkit-text-size-adjust: 100%;
}

/* =====================================================
   PATCH — Categorias nítidas no iOS/mobile
   (remove transform/filters que borram texto)
   ===================================================== */
@media (pointer: coarse) {

  /* Remove scale/translate do pill (texto borra no iOS) */
  .category-card-new,
  .category-card-new:active,
  .category-card-new:hover {
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
  }

  /* Feedback de toque sem transform */
  .category-card-new:active {
    filter: brightness(0.97) !important;
    box-shadow: 0 10px 22px rgba(17,24,39,.10) !important;
  }

  /* Mantém destaque do ativo sem drop-shadow (drop-shadow borra no iOS) */
  .category-card-new.active {
    filter: none !important;
    box-shadow: 0 8px 16px rgba(22,163,74,.22) !important;
  }
}

/* Garante composição estável do texto do pill */
.category-card-new {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 3) Cards no mobile: imagem menor para ganhar tela */
@media (max-width: 768px) {
  .recipe-image-container {
    height: 160px !important; /* antes: 224px */
  }
}


/* =========================================
   PATCH — “LOGO NÃO DANÇA” (mobile)
   - trava layout e evita reflow quando Premium/badge muda
   - sem trocar flex/grid do seu header, só estabiliza
   ========================================= */
@media (max-width: 768px) {

  /* 1) Estabiliza o bloco do header (não deixa variar com conteúdos) */
  #header .header-content{
    position: relative !important;
    width: 100% !important;
  }

  /* 2) Reserva “colunas” invisíveis nas laterais:
        esquerda = hambúrguer
        direita = espaço equivalente (pra logo ficar no centro real) */
  #header .header-content::before,
  #header .header-content::after{
    content: "" !important;
    display: block !important;
    width: 44px !important;      /* mesma “largura” do botão hambúrguer */
    height: 1px !important;
    flex: 0 0 44px !important;
  }

  /* 3) Garante que a logo fica central e não empurra */
  #header .logo{
     margin: 10px 53% 5px !important;
    margin-right: auto !important;
    justify-content: center !important;
    text-align: center !important;
    flex: 0 1 auto !important;
  }

  /* 4) Trava o hambúrguer numa largura fixa (evita variar) */
  #header .hamburger-btn{
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
  }

  /* 5) Evita “pulo” quando Premium some/aparece (display troca causa reflow).
        Em vez de display:none, mantém espaço com visibility/opacity quando possível */
  body.premium-active #premium-btn{
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    display: inline-flex !important; /* mantém espaço */
  }
}



@media (max-width: 768px) {
  #header .header-content{
    gap: 8px !important;          /* era 1rem em alguns trechos */
    padding: 10px 0 !important;   /* reduz altura */
  }

  /* reduz padding interno da busca pra subir um pouco */
  #header .search-container{
    margin-top: 0 !important;
  }
}


/* =====================================================
   PATCH — Tab bar sempre visível (Planner / Modais)
   ===================================================== */

/* 1) Garante que a tab bar fique ACIMA dos modais */
.tab-bar,
.tabbar,
.bottom-tab-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0;
  right: 0;
  z-index: 1200 !important;
  background: #fff;
}

/* 2) Modal do planner NÃO cobre a tab bar */
#planner-modal {
  bottom: 64px !important; /* altura da tab bar */
}

/* 3) Modal genérico respeita a tab bar */
.modal {
  padding-bottom: 80px !important;
}

/* 4) Remove overlay “cego” que intercepta clique */
.modal::after {
  pointer-events: none !important;
}

/* 5) Evita que body.modal-open esconda a tab bar */
body.modal-open .tab-bar,
body.modal-open .tabbar,
body.modal-open .bottom-tab-bar {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* 6) Segurança: ícones da tab bar sempre acima */
.tab-bar *,
.tabbar *,
.bottom-tab-bar * {
  pointer-events: auto !important;
}



/* =========================================
   PATCH FINAL — Back-to-top acima da Tab Bar (mobile)
   ========================================= */
@media (max-width: 768px) {
  .back-to-top {
    /* sobe o botão para não ficar atrás da tab bar */
    bottom: calc(78px + 16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;

    /* garante que fica acima de tudo no mobile */
    z-index: 2500 !important;
  }

  .lock-icon {
    width: 2.3rem !important;
    height: 2.3rem !important;
    margin-top: 30px !important;
    stroke: #fff;
    stroke-width: 2;
	
  }
}

/* =========================================
   PATCH DEFINITIVO — Centralizar badge Premium (mobile)
   independe de grid/flex/estrutura
   ========================================= */
@media (max-width: 768px) {
  /* O botão amarelo é SEMPRE o credits-badge em Premium */
  body.premium-active #credits-badge {
    position: relative !important;

    /* força centralização visual */
    left: 41% !important;
    top: 0px !important;
    transform: translateX(-50%) !important;

    /* evita heranças estranhas */
    margin: 0 !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    white-space: nowrap;
  }

  .header-actions,
  .search-container {
    margin-top: 8px !important;
  }

  .categories-new {
    margin: 0.5rem auto !important;
  }
}

@media (max-width: 768px) {
  .container {
    margin: -10px auto !important;
  }
   
}





/* =========================================
   PREMIUM — Padronização Badges / Disabled
   ========================================= */

/* bloquear clique + feedback visual */
.is-disabled,
.is-disabled * {
  pointer-events: none !important;
  opacity: .55 !important;
  filter: grayscale(0.15) !important;
}

/* (Opcional) cursor */
.is-disabled { cursor: not-allowed !important; }

/* =========================================
   TAB BAR — Ícone Premium (estrela)
   Regras:
   - aberto pelo tab: verde outline (sem fill)
   - premium ativo: amarelo preenchido (pode ser sólido ou gradiente)
   ========================================= */

/* ajuste: coloque a classe .tab-premium no botão/aba premium */
.tab-premium svg {
  transition: filter .2s ease, color .2s ease;
}

/* estado: modal aberto via TAB => verde outline */
body.premium-modal-open.premium-open--tab .tab-premium svg {
  fill: none !important;
  stroke: #16a34a !important;
}

/* estado: premium ativo => amarelo preenchido */
body.premium-active .tab-premium svg {
  fill: #f59e0b !important;     /* sólido (simples e confiável) */
  stroke: #f59e0b !important;
}

/* Se você quiser “parecer” gradiente sem mexer no SVG:
   leve brilho (não é gradiente real, mas dá sensação premium) */
body.premium-active .tab-premium svg {
  filter: drop-shadow(0 4px 10px rgba(245,158,11,.25));
}

/* =========================================
   HEADER/HAMBURGER — Badge amarelo enquanto modal aberto
   (seu header já funciona: vamos garantir pro hamburger também)
   ========================================= */

/* quando o modal abrir por hamburger, força o badge a ficar premium */
body.premium-modal-open.premium-open--hamburger #credits-badge,
body.premium-modal-open.premium-open--hamburger .badge {
  background: linear-gradient(135deg,#fbbf24 0%, #f59e0b 100%) !important;
}



/* TAB BAR - estado ativo (ícone + texto) */
.tab-item.active,
.tab-item.active .tab-label,
.tab-item.active .tab-icon {
  color: #16a34a !important;
}

/* Para ícones lucide dentro do <i> */
.tab-item.active svg {
  stroke: #16a34a !important;
}


/* ================================
   TAB BAR - PREMIUM CONDICIONAL
   ================================ */
.tab-premium.has-premium .tab-icon {
  color: #fbbf24 !important;
}

.tab-premium.has-premium .tab-label {
  color: #6b7280 !important; /* Mantém cinza mesmo com premium */
}

.tab-premium .tab-icon {
  color: #6b7280;
  transition: color 0.2s;
}

.tab-premium .tab-label {
  color: #6b7280;
  transition: color 0.2s;
}

.tab-premium.active .tab-icon,
.tab-premium.active .tab-label {
  color: #16a34a !important;
}


/* ================================
   MENU HAMBÚRGUER - PREMIUM CONDICIONAL
   ================================ */
.hamburger-premium-btn.has-premium {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
  animation: shine 2s ease-in-out infinite;
}

.hamburger-premium-btn.has-premium:active {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  transform: scale(0.98);
}

.hamburger-premium-btn {
	height: 40px;
  background: #16a34a !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.hamburger-premium-btn:active {
  background: #15803d !important;
  transform: scale(0.98);
}

.hamburger-premium-btn svg {
  width: 20px;
  height: 20px;
}

@keyframes shine {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}







.hero-btn--overlay{

  position: absolute;
  left: 17px;
  font-size: 16px;
  right: 17px;
  top: 33px;
  height: 48px;
  z-index: 45;
font-family:inherit;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  background: rgba(255,255,255,0.92);
  color: #111827;
}


/* ===============================
   TOUR CARD (overlay no banner)
   - Não define font-size/font-weight (herda do site)
   =============================== */

.tour-card{
	top: 90px;
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 30px !important;
  z-index: 46; /* acima do botão (45) */
}

.tour-card-inner{
  background: rgba(255,255,255,0.98);
  color: #111827;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  overflow: hidden;
}

.tour-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 0 12px;
}

.tour-counter{
font-size:14px;	
	font-weight:600;
  
}

.tour-x{
	
	font-weight:700;
	font-family:inherit;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: #16a34a !important;
  color: #fff;

}

.tour-text{
  padding: 10px 12px 12px 12px;
  line-height: 1.45;
  min-height: 56px;
}

.tour-actions{
  display: flex;
  gap: 8px;
}

.tour-btn{
  flex: 1;
  border: 0;
  padding: 12px 12px;
  background: transparent;
}

.tour-btn.ghost{
	font-weight: 700;
  background: #ffffff;
  font-family:inherit;
  font-size: 16px;
  border-top: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
}

.tour-btn.primary{
	font-weight: 700;
	font-family:inherit;
	font-size: 16px;
  background: #3b82f6;
  color: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
}














/* =========================================================
   MOBILE - FINALIZA AQUI
   ========================================================= */



/* =========================================================
   WEB - TOUR (badge + card) CENTRALIZADOS SEM MEXER NO SLIDER
   ========================================================= */
@media (min-width: 769px) {



.btn-clear-list {
    width: 100%;
    font-size: 15px; 
    margin-top: 1rem;
    padding: .75rem;
    background: #16a34a;
    color: #fff;
    border: none;
    height: 50px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}



  /* 1) BADGE (botão "Como funciona o Premium") */
  .hero-btn--overlay{
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);

    width: min(1248px, calc(100vw - 64px));
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 45;
    border: 0;
    border-radius: 12px;

    font-size: 18px;

    font-family: inherit;

    background: rgba(255,255,255,0.92);
    color: #111827;

    cursor: pointer;
  }

  /* 2) CARD do Tour */
  #tour-card{
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);

    width: min(1248px, calc(100vw - 64px));
    z-index: 50;

    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0,0,0,.22);
  }

  #tour-card .tour-card-inner{
    background: rgba(255,255,255,.92);
    color: #111827;

    padding: 15px 26px 20px;
  }

  /* topo: contador + fechar */
  #tour-card .tour-top{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  #tour-counter{
    font-size: 20px;
    font-weight: 700;
    opacity: .85;
    min-width: 48px;
    margin-top: 4px;
  }

  #tour-close{
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 0;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
  }

  #tour-text{
    font-size: 20px;
    line-height: 1.55;
    font-weight: 400;

  padding: 10px 12px 12px 12px;
  line-height: 1.45;
  min-height: 56px;
}

  #tour-card .tour-actions{
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 18px;
  }

  #tour-prev,
  #tour-next{
    height: 50px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 500;
    padding: 0 22px;
    min-width: 240px;
    cursor: pointer;
  }

  #tour-prev:disabled{
    opacity: .45;
    cursor: not-allowed;
  }

  /* 3) Responsivo (tablet) */
  @media (max-width: 980px){
    .hero-btn--overlay,
    #tour-card{
      width: calc(100vw - 32px);
    }

    #tour-card .tour-card-inner{
      padding: 18px 18px 16px;
    }

    #tour-text{
      font-size: 18px;
    }

    #tour-prev,
    #tour-next{
      min-width: 0;
      width: 100%;
    }
  }
}



@media (min-width: 769px){

  /* garante que o card cresça conforme conteúdo */
  #tour-card{
    height: auto !important;
    max-height: none !important;
    overflow: visible !important; /* não corta a área dos botões */
  }

  /* garante espaço interno suficiente pro footer de botões */
  #tour-card .tour-card-inner{
    padding-bottom: 26px !important;
	height: 222px;
  }

  /* ações sempre dentro do card */
  #tour-card .tour-actions{
    margin-top: 0px !important;
    padding-top: 6px !important;
  }

  /* se os botões estão "grudando" na borda */
  #tour-prev,
  #tour-next{
    margin-bottom: 0 !important;
	
	
	
	
  }
}






/* =========================================================
   PLANEJADOR — SCROLL HORIZONTAL (WEB)
   Track: #f3f4f6 | radius 999px
   ========================================================= */

.planner-scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px; /* espaço para a barra */
}

/* garante que exista “largura” pra rolar */
.planner-scroll-x table {
  min-width: 1100px; /* ajuste se quiser mais/menos */
  width: max-content;
}

/* WebKit (Chrome/Safari/Edge) */
.planner-scroll-x::-webkit-scrollbar {
  height: 10px;
}

.planner-scroll-x::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 999px;
}

.planner-scroll-x::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.planner-scroll-x::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Firefox */
.planner-scroll-x {
  scrollbar-color: #cbd5e1 #f3f4f6;
  scrollbar-width: thin;
}



/* =========================================================
   PLANEJADOR — SCROLL HORIZONTAL (SEM ESPAÇO BRANCO)
   ========================================================= */

.planner-scroll-x{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  padding-bottom: 12px;     /* espaço pra scrollbar */
}

/* 🔥 aqui é o ponto: preencher o container + manter min-width */
.planner-scroll-x table{
  width: 100%;              /* preenche o container -> não sobra “vão” */
  min-width: 1100px;        /* garante scroll quando a tela for menor */
  border-collapse: separate; /* mantém seu layout de tabela ok */
}

/* WebKit scrollbar */
.planner-scroll-x::-webkit-scrollbar{ height: 10px; }
.planner-scroll-x::-webkit-scrollbar-track{
  background: #f3f4f6;
  border-radius: 999px;
}
.planner-scroll-x::-webkit-scrollbar-thumb{
  background: #cbd5e1;
  border-radius: 999px;
}
.planner-scroll-x::-webkit-scrollbar-thumb:hover{ background: #94a3b8; }

/* Firefox */
.planner-scroll-x{
  scrollbar-color: #cbd5e1 #fff;
  scrollbar-width: thin;
}




/* =========================================================
   ARREDONDANDO OS CANTOS DA TABELA DO PLANEJADOR
   ========================================================= */

/* canto superior esquerdo */
.planner-scroll-x table thead tr:first-child th:first-child {
  border-top-left-radius: 14px;
}

/* canto superior direito */
.planner-scroll-x table thead tr:first-child th:last-child {
  border-top-right-radius: 14px;
}

/* canto inferior esquerdo */
.planner-scroll-x table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 14px;
}

/* canto inferior direito */
.planner-scroll-x table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 14px;
}





/* =========================================================
   MOBILE — META compacta (tempo/ícones) + badge "Fácil" inteiro
   ========================================================= */
@media (max-width: 768px){

  /* 1) Linha inteira da meta: não usar space-between, compactar */
  .recipe-meta{
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* 👈 evita empurrar tudo pros cantos */
    gap: 4px;                    /* 👈 espaço menor entre os grupos */
    flex-wrap: nowrap;
  }

  /* 2) Cada item (relógio+tempo, pessoas, etc) mais compacto */
  .recipe-meta > *{
    display: inline-flex;
    align-items: center;
    gap: 6px;                     /* 👈 aproxima ícone do texto */
 
  }

  /* 3) Ícones um pouco menores (opcional, ajuda a caber) */
  .recipe-meta svg{
    width: 16px;
    height: 16px;
  }

  /* 4) Badge "Fácil": não pode encolher / não pode cortar */
  .recipe-meta .difficulty,
  .recipe-meta .badge-difficulty,
  .recipe-meta .recipe-difficulty{
    flex: 0 0 auto;               /* 👈 não encolhe */
    white-space: nowrap;          /* 👈 não quebra */
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    overflow: visible;            /* 👈 garante texto inteiro */
  }

  /* 5) Se algum CSS antigo estiver cortando o último item */
  .recipe-meta{
    overflow: visible;
  }
}




/* ========================================
   MODO DE PREPARO - ESTILO MELHORADO
======================================== */

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    counter-increment: step-counter;
}

.instruction-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    border-left-color: #059669;
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.step-text {
    flex: 1;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Animação de entrada */
.instruction-step {
    animation: slideInLeft 0.4s ease forwards;
    opacity: 0;
}

.instruction-step:nth-child(1) { animation-delay: 0.05s; }
.instruction-step:nth-child(2) { animation-delay: 0.1s; }
.instruction-step:nth-child(3) { animation-delay: 0.15s; }
.instruction-step:nth-child(4) { animation-delay: 0.2s; }
.instruction-step:nth-child(5) { animation-delay: 0.25s; }
.instruction-step:nth-child(6) { animation-delay: 0.3s; }
.instruction-step:nth-child(7) { animation-delay: 0.35s; }
.instruction-step:nth-child(8) { animation-delay: 0.4s; }
.instruction-step:nth-child(9) { animation-delay: 0.45s; }
.instruction-step:nth-child(10) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .instruction-step {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .step-text {
        font-size: 0.95rem;
    }
}



/* ================================
   IMAGENS - Placeholder + anti-CLS + fade-in
   ================================ */

/* garante que o card reserve espaço ANTES da imagem carregar */
.recipe-image-container{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;         /* ajuste se seu layout for outro */
  background: #f3f4f6;         /* cinza claro (placeholder) */
  overflow: hidden;
  border-radius: inherit;      /* respeita o arredondado do card se tiver */
}

/* imagem ocupa o container sem “pular” */
.recipe-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0;
  transition: opacity .25s ease;
}

/* quando carregar, aparece suavemente */
.recipe-image.is-loaded{
  opacity: 1;
}






/* ================================
   PREMIUM MODAL
   ================================ */

.premium-modal-content {
  max-width: 1000px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.premium-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e5e7eb;
}

.premium-tab {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.premium-tab.active {
  color: #16a34a;
  border-bottom-color: #16a34a;
}

.premium-tab:hover {
  color: #16a34a;
}

.premium-tab-content {
  display: none;
}

.premium-tab-content.active {
  display: block;
}

/* PLANOS GRID */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.plan-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  border-color: #16a34a;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
  transform: translateY(-4px);
}

.plan-popular {
  border-color: #16a34a;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.2);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #16a34a;
  color: white;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-header {
  text-align: center;
  margin-bottom: 16px;
}

.plan-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
}

.plan-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.plan-price {
  text-align: center;
  margin-bottom: 8px;
}

.price-currency {
  font-size: 20px;
  color: #6b7280;
  vertical-align: top;
  margin-right: 2px;
}

.price-value {
  font-size: 48px;
  font-weight: 800;
  color: #16a34a;
  line-height: 1;
}

.price-period {
  font-size: 16px;
  color: #6b7280;
  margin-left: 4px;
}

.plan-savings {
  text-align: center;
  margin-bottom: 20px;
}

.price-compare {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 8px;
}

.price-save {
  font-size: 14px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 8px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex-grow: 1;
}

.plan-features li {
  padding: 10px 0;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-btn {
  width: 100%;
  padding: 14px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.plan-btn-popular {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* TAB CÓDIGO */
.code-input-container {
  max-width: 400px;
  margin: 40px auto;
  text-align: center;
}

.code-instructions {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 20px;
}

.code-input {
  width: 100%;
  padding: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  transition: all 0.2s;
  margin-bottom: 16px;
}

.code-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.code-btn {
  width: 100%;
  padding: 14px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.code-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
  
  .plan-price .price-value {
    font-size: 40px;
  }
}






/* ================================
   MODAL PREMIUM - ABAS NAVEGÁVEIS
   ================================ */

.premium-modal-content {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

/* TABS NAVEGAÇÃO */
.premium-tabs-nav {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 0 20px;
}

.premium-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.premium-tab-btn:hover {
  border-color: #16a34a;
  transform: translateY(-2px);
}

.premium-tab-btn.active {
  border-color: #16a34a;
  background: #f0fdf4;
}

.tab-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
}

.premium-tab-btn.active .tab-number {
  background: #16a34a;
  color: white;
}

.tab-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.3s;
}

.premium-tab-btn.active .tab-label {
  color: #16a34a;
}

/* TAB CONTENT */
.premium-tab-content {
  display: none;
  animation: fadeIn 0.3s;
  padding: 0 20px 20px 20px;
}

.premium-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 20px 0 8px 0;
}

.tab-desc {
  font-size: 15px;
  color: #6b7280;
  text-align: center;
  margin: 0 0 30px 0;
}

/* TAB 1: FORMULÁRIO */
.signup-form {
    max-width: 450px;
    margin: 0px 0px 20px 173px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.tab-btn {
  width: 100%;
  padding: 14px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.tab-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* TAB 2: PLANOS */
.plans-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px !important;
  margin-bottom: 20px;
}

.plan-card-new {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: all 0.3s;
}

.plan-card-new:hover {
  border-color: #16a34a;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
  transform: translateY(-4px);
}

.plan-card-gold {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.plan-card-gold:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.plan-badge-new {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.plan-header-new {
  text-align: center;
  margin-bottom: 16px;
}

.plan-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.plan-header-new h4 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px 0;
}

.plan-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.plan-price-new {
  text-align: center;
  margin-bottom: 16px;
}

.price-big {
  font-size: 40px;
  font-weight: 800;
  color: #16a34a;
  display: block;
  line-height: 1;
}

.plan-card-gold .price-big {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period-new {
  font-size: 14px;
  color: #6b7280;
}

.plan-savings-new {
  text-align: center;
  margin-bottom: 16px;
}

.savings-text {
  display: inline-block;
  background: #dcfce7;
  color: #16a34a;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.plan-card-gold .savings-text {
  background: #fef3c7;
  color: #d97706;
}

.plan-features-new {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.plan-features-new li {
  padding: 8px 0;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.plan-features-new li:last-child {
  border-bottom: none;
}

.plan-btn-new {
	height:50px!important;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-btn-trial {
  background: #6b7280;
  color: white;
}

.plan-btn-trial:hover {
  background: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.plan-btn-monthly {
  background: #16a34a;
  color: white;
}

.plan-btn-monthly:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.plan-btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.plan-btn-gold:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* TAB 3: CÓDIGO */
.code-activation {
  max-width: 400px;
  margin: 0 auto 20px auto;
}

.code-input-new {
  width: 100%;
  padding: 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.code-input-new:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.activate-btn {
  width: 100%;
  padding: 14px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.activate-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.code-help {
  max-width: 400px;
  margin: 0 auto;
  padding: 16px;
  background: #f0fdf4;
  border-radius: 10px;
  text-align: center;
}

.code-help p {
  margin: 0;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
}

/* RESPONSIVO */
@media (max-width: 768px) {
	
	/* TAB 1: FORMULÁRIO */
.signup-form {
    max-width: 450px;
    margin: 0 auto;
}
	
  .plans-grid-new {
    grid-template-columns: 1fr;
  }
  
  .premium-tabs-nav {
    gap: 8px;
    padding: 0 10px;
  }
  
  .premium-tab-btn {
    padding: 12px 8px;
  }
  
  .tab-label {
    font-size: 11px;
  }
}



/* ================================
   FIX PARA IPHONE - MODAL PREMIUM
   ================================ */

/* Viewport height fix */
@supports (-webkit-touch-callout: none) {
  .modal {
    height: -webkit-fill-available;
  }
}

/* Modal overlay fix */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

/* Modal content fix */
.modal-content {
  position: relative;
  max-height: 90vh;
  max-height: calc(var(--vh, 1vh) * 90);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.premium-modal-content {
  max-height: 90vh;
  max-height: calc(var(--vh, 1vh) * 90);
}

/* Safe area pra iPhones com notch */
.modal-header {
  padding-top: max(16px, env(safe-area-inset-top));
}

/* Previne zoom no input */
.form-group input,
.code-input-new {
  font-size: 16px !important;
}

/* Fix de scroll no body quando modal aberto */
body.modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}





/* ================================
   BOTÕES PREMIUM ATIVOS (AMARELO)
   ================================ */

/* Tab bar - botão premium ativo */
.tab-premium-active {
  background: #fff !important;
  color: white !important;
  pointer-events: none;
  cursor: default;
}

.tab-premium-active .tab-icon {
  color: white !important;
}

.tab-premium-active .tab-label {
  color: white !important;
  font-weight: 600;
}

/* Hambúrguer - botão premium ativo */
.hamburger-premium-active {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: white !important;
  pointer-events: none;
  cursor: default;
  opacity: 0.9;
}

.hamburger-premium-active i {
  color: white !important;
}










.advanced-filters {
    margin: 1rem 0;
    width: 100%;
}

.filters-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

.filters-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.filters-toggle i {
    width: 20px;
    height: 20px;
}

.filters-panel {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    animation: slideDown 0.3s ease;
}

.filters-panel.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.filter-label i {
    width: 18px;
    height: 18px;
    color: #16a34a;
}

.filter-label span {
    color: #16a34a;
    font-weight: 700;
}

/* Sliders */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #16a34a 0%, #16a34a 50%, #e5e7eb 50%, #e5e7eb 100%);
    outline: none;
    transition: background 0.3s ease;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #16a34a;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #16a34a;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.4);
}

/* Checkboxes personalizados */
.filter-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.filter-checkbox:hover {
    background: #f0fdf4;
    border-color: #16a34a;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #16a34a;
}

.filter-checkbox input[type="checkbox"]:checked + span {
    color: #16a34a;
    font-weight: 600;
}

.filter-checkbox span {
    color: #374151;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-checkbox span i {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.filter-checkbox input[type="checkbox"]:checked ~ span i {
    color: #16a34a;
}

/* Botões de ação */
.filter-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn-clear-filters,
.btn-apply-filters {
	height:40px !important;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-filters {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-clear-filters:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-apply-filters {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-clear-filters i,
.btn-apply-filters i {
    width: 18px;
    height: 18px;
}

/* Badge de filtros ativos */
.filters-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: auto;
}

/* Responsivo */
@media (max-width: 640px) {
    .filters-panel {
        padding: 1rem;
    }
    
    .filter-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}


/* ============================================
   SKELETON (diagonal) + SPINNER (gear)
   ============================================ */

.recipe-image-container {
  position: relative;
  overflow: hidden;
}

/* placeholder que aparece antes da imagem carregar */
.rf-skeleton {
  position: absolute;
  inset: 0;
  background: #e5e7eb; /* cinza */
}

/* Base do skeleton (cinza perceptível) */
.rf-skeleton {
  background-color: #000; /* cinza base mais escuro que o padrão */
}

/* Faixa diagonal de destaque */
.rf-skeleton::after {
  content: "";
  position: absolute;
  inset: -70%;
  transform: rotate(18deg);

  background-image: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.25) 40%,
    rgba(255,255,255,0.85) 50%,
    rgba(255,255,255,0.25) 60%,
    rgba(255,255,255,0) 100%
  );

  animation: rfShimmerGray 1.4s linear infinite;
}

@keyframes rfShimmerGray {
  0% {
    transform: translateX(-45%) rotate(18deg);
  }
  100% {
    transform: translateX(45%) rotate(18deg);
  }
}



/* spinner tipo "config" (engrenagem) girando */
.rf-skeleton-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  opacity: 0.35;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* desenha uma engrenagem simples via SVG herdando cor */
.rf-skeleton-spinner svg {
  width: 30px;
  height: 30px;
  animation: rfSpin 1.1s linear infinite;
  color: rgba(55, 65, 81, 0.75);
}

@keyframes rfSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* quando a imagem carrega, escondemos skeleton */
.recipe-image.is-loaded + .rf-skeleton {
  display: none;
}

/* garante que a imagem fique por cima do fundo, mas abaixo do overlay/categoria */
.recipe-image {
  position: relative;
  z-index: 1;
}



.recipe-button.premium-cta {
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
}

.recipe-button.premium-cta .icon {
  stroke: currentColor;
}




/* ================================
   FIX: Skeleton visível (por cima)
   ================================ */

/* o container da imagem vira "referência" de posicionamento */
.recipe-image-container{
  position: relative;
  overflow: hidden;
}

/* skeleton cobre a área da imagem */
.rf-skeleton{
  position: absolute;
  inset: 0;
  z-index: 3;        /* acima da imagem */
  border-radius: 18px; /* ajuste se seu card tiver outro radius */
  pointer-events: none;
}

/* imagem fica abaixo do skeleton enquanto carrega */
.recipe-image{
  position: relative;
  z-index: 1;
}

/* quando a imagem carregou, escondemos o skeleton */
.recipe-image.is-loaded ~ .rf-skeleton{
  opacity: 0;
  transition: opacity .25s ease;
}




/* ================================
   Skeleton (visível e por cima)
   ================================ */
.recipe-image-container{
  position: relative;
  overflow: hidden;
}

.rf-skeleton{
  position: absolute;
  inset: 0;
  z-index: 3;
  background-color: #e6e7eb; /* base cinza */
  pointer-events: none;
}

/* shimmer diagonal */
.rf-skeleton::after{
  content:"";
  position:absolute;
  inset:-70%;
  transform: rotate(18deg);
  background-image: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.25) 40%,
    rgba(255,255,255,0.85) 50%,
    rgba(255,255,255,0.25) 60%,
    rgba(255,255,255,0) 100%
  );
  animation: rfShimmerGray 1.4s linear infinite;
}

@keyframes rfShimmerGray{
  0% { transform: translateX(-45%) rotate(18deg); }
  100% { transform: translateX(45%) rotate(18deg); }
}

/* some quando a imagem carregou */
.recipe-image.is-loaded ~ .rf-skeleton{
  opacity: 0;
  transition: opacity .25s ease;
}

/* imagem abaixo */
.recipe-image{
  position: relative;
  z-index: 1;
}



/* iOS: melhora gesto de swipe sem matar o tap */
.slider-track-new,
#sliderTrack {
  touch-action: pan-y;
}


/* iOS: permite scroll vertical sem matar tap no slider */
#sliderTrack, .slider-track-new {
  touch-action: pan-y;
}







/* ============================================
   DROPDOWN: BUSCAR POR INGREDIENTES (RF)
   - visual clean (identidade verde/azul)
   ============================================ */

.rf-ingredients {
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 16px;
}

.rf-ingredients__toggle {
  width: 100%;
  border: 1px solid rgba(12, 74, 45, 0.16);
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  text-align: left;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.rf-ingredients__title {
  font-weight: 500;
  color: #0a2f1f;
  font-size: 16px;
  line-height: 1.1;
}

.rf-ingredients__hint {
  grid-column: 1 / 2;
  font-size: 13px;
  color: rgba(0,0,0,0.55);
}

.rf-ingredients__chev {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  font-size: 18px;
  color: rgba(0,0,0,0.55);
  transition: transform 180ms ease;
}

.rf-ingredients__toggle[aria-expanded="true"] .rf-ingredients__chev {
  transform: rotate(180deg);
}

.rf-ingredients__panel {
  margin-top: 10px;
  border: 1px solid rgba(12, 74, 45, 0.12);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 36px rgba(0,0,0,0.08);
  max-height: 150px !important;
overflow: hidden;
  
}

.rf-ingredients__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  
  max-height: 150px!important;
overflow-y: auto;
padding-right: 6px;
}

@media (max-width: 980px) {
  .rf-ingredients__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rf-ingredients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rf-ing-chip {
	
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius:50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.rf-ing-chip:hover {
     background: #f0fdf4;
    border-color: #16a34a;
  
}

.rf-ing-chip__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(18, 146, 83, 0.10);
  color: #129253;
  font-size: 16px;
}

.rf-ing-chip__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(0,0,0,0.72);
  text-align: left;
  line-height: 1.15;
}

.rf-ing-chip.is-active {
  border-color: #16a34a;
  
  background: #f0fdf4;
  position: relative;
}

.rf-ing-chip.is-active::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  background: #129253;
  color: #fff;
  box-shadow: 0 10px 18px rgba(0,0,0,0.14);
}


.rf-ing-chip.is-active .rf-ing-chip__icon {
  background: rgba(18, 146, 83, 0.16);
}

.rf-ingredients__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.rf-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}

.rf-btn--ghost {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.75);
}

.rf-btn--primary {
  background: #129253;
  color: #fff;
}




/* ============================================
   ROW: 2 botões lado a lado (Ingredientes | Filtros)
   ============================================ */
.rf-filter-row{
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Força os dois botões a terem o MESMO visual */
.rf-filter-btn{
	font-family: inherit;
  width: 100%;
  height: 40px!important;
  border-radius: 50px;
  border: 1px solid rgba(12, 74, 45, 0.16);
background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.rf-filter-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.10);
  border-color: rgba(18, 146, 83, 0.35);
}

/* Ícones Lucide minimalistas e iguais */
.rf-filter-btn i[data-lucide]{
  width: 18px;
  height: 18px;
  display: inline-flex;
}

/* Estado "ativo" (se você quiser usar depois) */
.rf-filter-btn.is-active{
  border-color: rgba(18, 146, 83, 0.55);
  box-shadow: 0 16px 34px rgba(18, 146, 83, 0.18);
}











/* ===== TAG CHIPS (Lucide, minimal) ===== */
.rf-tags-group { position: relative; }

.rf-tags-grid{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.rf-tag-chip{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.6);
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

.rf-tag-chip i,
.rf-tag-chip svg{
  width: 16px;
  height: 16px;
  opacity: .85;
}

.rf-tag-chip span{
  font-size: .9rem;
  color: #111827;
  white-space: nowrap;
}

.rf-tag-chip:hover{ transform: translateY(-1px); }

.rf-tag-chip.is-active{
  border-color: rgba(22,163,74,.55);
  background: rgba(22,163,74,.10);
}

/* ===== overlay premium (não quebra layout) ===== */
.rf-premium-overlay{
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(6px);
  display: none; /* controlado via JS */
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rf-premium-overlay__box{
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
}

.rf-premium-overlay__title{
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .4rem;
}

.rf-premium-overlay__text{
  margin: 0 0 .9rem 0;
  color: rgba(17,24,39,.72);
  font-size: .95rem;
  line-height: 1.35;
}

.rf-premium-overlay__btn{
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: .75rem 1rem;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}


/* ===== chips (mesmo formato) ===== */
.rf-chips{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.rf-chip{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.75);
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

.rf-chip i, .rf-chip svg{
  width: 16px;
  height: 16px;
  opacity: .85;
}

.rf-chip span{
  font-size: .92rem;
  color: #111827;
  white-space: nowrap;
}

.rf-chip:hover{ transform: translateY(-1px); }

.rf-chip.is-active{
  border-color: rgba(22,163,74,.55);
  background: rgba(22,163,74,.10);
}

/* ===== sliders 3 em linha, quebra no mobile ===== */
.rf-sliders-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .75rem;
}

@media (max-width: 900px){
  .rf-sliders-row{ grid-template-columns: 1fr; }
}

.rf-slider-card{
  padding: .85rem;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.65);
}

.rf-slider-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
  color: rgba(17,24,39,.85);
  font-size: .95rem;
}

.rf-slider-card input[type="range"]{
  width: 100%;
}


/* Ingredientes: não esticar chip por texto grande */
.rf-ing-chip__label{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px; /* ajuste se quiser: 140/180 */
}

.rf-ing-chip{
  max-width: 210px; /* evita chip gigante */
}

.rf-ing-chip__label{
  flex: 1;
  min-width: 0; /* necessário p/ ellipsis funcionar com flex */
}


/* Grid de ingredientes (desktop) */
.rf-ingredients__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* Mobile: 2 colunas */
@media (max-width: 768px){
  .rf-ingredients__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Ingredientes: usa o mesmo visual das tags (rf-chip) */
.rf-ingredients__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 768px){
  .rf-ingredients__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Chip de ingrediente: herda rf-chip e só ajusta truncamento */
.rf-ing-chip{
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
}

/* Truncar texto (1 linha) */
.rf-ing-chip__label{
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ícone sem “bolinha” */
.rf-ing-chip i{
  flex: 0 0 auto;
}


/* Remove o "check/bullet" verde dentro do chip de ingrediente ativo */
.rf-ing-chip.is-active::after,
.rf-ing-chip.is-active::before{
  content: none !important;
  display: none !important;
}

/* Se o check estiver vindo como background-image */
.rf-ing-chip.is-active{
  background-image: none !important;
}


.rf-empty-state{
  padding: 22px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #fff;
    width: 95% !important;
  box-sizing: border-box;
  text-align: center;
    display: block;
  margin: 0 auto;
    grid-column: 1 / -1;
}



/* Desktop (web): 5 colunas fixas */
.rf-ingredients__grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

/* Mobile: 2 colunas */
@media (max-width: 768px){
  .rf-ingredients__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}








/* ============================================
   MOBILE SPACE PATCH (ganhar área útil)
   - Header compacto
   - Banner/slide menor
   - Conteúdo com padding correto
   - Breakpoints comuns (iPhone / Galaxy / tablets)
   ============================================ */
/* ============================================
   MOBILE SPACE PATCH + SLIM ON SCROLL
   ============================================ */

  
:root {
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 768px) {

  /* Header/topo mais compacto */
  .site-header,
  header,
  .topbar,
  .rf-header {
    padding-top: calc(8px + var(--safe-top));
    padding-bottom: 8px;
    min-height: 0;
  }

  /* Logo menor */
  .site-logo,
  .logo,
  header .logo img,
  .rf-logo img {
    max-height:40px !important;
    height: 40px !important;
    width: auto !important;
  }

  /* Busca mais baixa */
  .search-bar,
  .rf-search,
  .search-container,
  #searchContainer {
    margin-top: 8px !important;
  }

  .search-bar input,
  .rf-search input,
  #searchInput {
    height: 40px !important;
    font-size: 14px !important;
    padding: 0 12px !important;
  }

  /* Badges compactos (estado normal) */
  .credits-badge,
  .premium-badge,
  #creditsBadge {
    font-size: 12px !important;
    padding: 6px 10px !important;
    border-radius: 999px !important;
  }

  /* Slide/banner menor */
  .hero-slider,
  .banner-slider,
  .rf-slider,
  #homeSlider {
    height: 120px !important;
    max-height: 120px !important;
    overflow: hidden !important;
  }

  .hero-slider img,
  .banner-slider img,
  .rf-slider img,
  #homeSlider img {
    height: 120px !important;
    object-fit: cover !important;
  }

  .recipe-grid,
  #recipeGrid {
    margin-top: 10px !important;
  }

} /* fecha @media (max-width: 768px) do MOBILE SPACE PATCH */

/* ============================================
   MOBILE: esconder badge "por trás" da busca ao rolar
   ============================================ */

@media (max-width: 768px) {

  /* Garanta um contexto de posição no topo */
  header, .site-header, .rf-header, .topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: inherit;
  }

  /* Quando rolar: actions sobem e ficam atrás da busca */
  body.vf-scrolled .header-actions {
    position: absolute !important;
    top: calc(6px + env(safe-area-inset-top)) !important;
    right: 10px !important;
    z-index: 1 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  /* A busca fica na frente */
  body.vf-scrolled .search-container,
  body.vf-scrolled #searchContainer,
  body.vf-scrolled .rf-search,
  body.vf-scrolled .search-bar {
    position: relative !important;
    z-index: 5 !important;
  }

  /* Badge e botão premium: não ocupam espaço no layout ao rolar */
  body.vf-scrolled #credits-badge,
  body.vf-scrolled #premium-btn {
    transform: translateY(-10px) !important;
  }
}

/* REMOVIDO: redefinições soltas de .badge e .search-input que sobrescreviam desktop
   Os valores corretos já estão definidos no topo do arquivo (height:48px) */



/* =========================================
   MOBILE: reduzir altura do banner (slider)
   Seletor confirmado pelo seu HTML
   ========================================= */
   
  @media (max-width: 480px) {
    .hero-slider-fullwidth {
        height: 180px;
    }
} 






/* =========================================
   MOBILE: Galax A55
   ========================================= */
   
@media (max-width: 420px) {

.logo, .logo * {
    letter-spacing: -1px !important;
    gap: 0rem !important;
    transition: none !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
    box-shadow: none !important;
}
    #header .logo {
        margin: 10px 30% 5px !important;
        margin-right: auto !important;
        justify-content: center !important;
        text-align: center !important;
        flex: 0 1 auto !important;
    }

.rf-filter-row {
    max-width: 1100px!important;
    margin: 16px -9px 0px -12px !important;
    padding: 0 0px!important;
    display: grid!important;
    grid-template-columns: 1fr 1fr!important;
    gap: 12px!important;
}

    body.premium-active #credits-badge {
        position: relative !important;
        left: 55% !important;
        top: 0px !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        white-space: nowrap;
    }


}





/* =========================================
   PATCH FINAL — badges desktop sem esticar,
   mantendo mobile correto e slider arredondado
   ========================================= */

/* desktop / tablet */
@media (min-width: 769px){
  .hero-slider-fullwidth{
    position: relative !important;
    width: min(1280px, calc(100% - 64px)) !important;
    max-width: 1280px !important;
    margin: 12px auto 0 !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    background: #ccc !important;
  }

  .slider-badges-overlay{
    position: absolute !important;
    top: 14px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    width: auto !important;
    max-width: calc(100% - 40px) !important;
    z-index: 12 !important;
    pointer-events: auto !important;
  }

  #credits-badge.badge,
  #premium-btn{
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    border-radius: 9999px !important;
  }

  #credits-badge.badge{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 28px !important;
    height: 42px !important;
   
    color: #fff !important;
    opacity: 1 !important;
  }

  #premium-btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 24px !important;
    height: 42px !important;
    background: #16a34a !important;
    color: #fff !important;
    border: none !important;
  }

  body.premium-active #credits-badge{
    position: static !important;
    left: auto !important;
    transform: none !important;
  }
}

/* mobile — mantém o que já estava funcionando, com leve proteção */
@media (max-width: 768px){
  .hero-slider-fullwidth{
    position: relative !important;
    width: calc(100% - 28px) !important;
    max-width: calc(100% - 28px) !important;
    margin: 8px auto 14px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  .slider-badges-overlay{
    position: absolute !important;
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    max-width: calc(100% - 20px) !important;
    z-index: 12 !important;
  }

  #credits-badge.badge,
  #premium-btn{
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  #credits-badge.badge{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    height: 34px !important;
    font-size: 13px !important;
    opacity: 1 !important;
  }

  #premium-btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
    height: 34px !important;
    font-size: 13px !important;
  }

  #header .logo{
    margin: 10px auto 5px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  body.premium-active #credits-badge{
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }
}





/* FIX DEFINITIVO: centraliza badge no slider em todos os devices e estados */
.hero-slider-fullwidth {
  position: relative !important;
}

.slider-badges-overlay {
  position: absolute !important;
  top: 12px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  transform: none !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  z-index: 12 !important;
  pointer-events: auto !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}


.header-subtitle-mobile{
  display: none;
}

@media (max-width: 768px){
	
  .header-greeting-title {
	  margin-left: 10px;
	  margin-top: -4px;
  }
  .header-subtitle-desktop{
    display: none;
  }

  .header-subtitle-mobile{
	 margin-top: -2px;
	margin-left: 10px;
    display: block;
  }
}
