@font-face {
  font-family: PratiDisplay;
  src: url('/assets/fonts/baloo-2.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: PratiSans;
  src: url('/assets/fonts/nunito-sans.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: PratiHand;
  src: url('/assets/fonts/caveat.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

/* ==========================================================================
   PALETA GERAL: TEMA DARK PADRÃO (Com suporte a Light)
   ========================================================================== */
:root {
  color-scheme: dark;
  --page: #0c0805;
  --bg: #110d09;
  --surface: #1a140e;
  --surface-glass: rgba(26, 20, 14, 0.94);
  --ink: #fff8ee;
  --muted: #b8b1a7;
  --orange: #ff6408;
  --orange-ink: #ff9438;
  --border: #382a1d;
  --border-light: rgba(255, 255, 255, 0.08);
  --soft: #1f1710;
  --green: #b5da7b;
  --green-soft: #283719;
  --chip: #342114;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --hero-image: url('/assets/images/heroes/hero-bancada-cozinha-dark.webp');
  --hero-mobile-image: url('/assets/images/heroes/hero-mobile-cozinha-dark.webp');
  --header-bg: #16100b;
  --card: #18120d;
  --handwriting-color: #ffe8b4;
  --handwriting-accent: #ff8d44;
  --ad-bg: #1c150e;
  --ad-color: #4a3828;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="light"] {
  color-scheme: light;
  --page: #f7f2ea;
  --bg: #fffdf8;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.96);
  --ink: #22140c;
  --muted: #6e6760;
  --orange: #ff6408;
  --orange-ink: #cf4d00;
  --border: #ede1d1;
  --border-light: rgba(0, 0, 0, 0.06);
  --soft: #faf4eb;
  --green: #457b1b;
  --green-soft: #edf4d6;
  --chip: #fff0df;
  --shadow: 0 10px 28px rgba(114, 71, 20, 0.08);
  --hero-image: url('/assets/images/heroes/hero-bancada-cozinha-clara.webp');
  --hero-mobile-image: url('/assets/images/heroes/hero-mobile-cozinha-clara.webp');
  --header-bg: #ffffff;
  --card: #fffdf9;
  --handwriting-color: #491f0e;
  --handwriting-accent: #b83d00;
  --ad-bg: #ece5da;
  --ad-color: #b3a797;
}

/* ==========================================================================
   SCROLLBAR OFICIAL (8PX COM MARGEM DE SEGURANÇA)
   ========================================================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
  margin: 14px 0;
}
::-webkit-scrollbar-thumb {
  background: #d8c6b2;
  border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #4d3725;
}
::-webkit-scrollbar-button,
::-webkit-scrollbar-corner {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* ==========================================================================
   ANIMAÇÃO FLUIDA DE ENTRADA DA PÁGINA (60 FPS)
   ========================================================================== */
@keyframes pageFluidEntrance {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: PratiSans, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-top: var(--safe-top);
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

.site-wrapper {
  animation: pageFluidEntrance 0.65s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-copy {
  animation: pageFluidEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-pratto {
  animation: pageFluidEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.category-strip {
  animation: pageFluidEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.08s backwards;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body, .site-header, .recipe-card, .category-button, .site-footer, .ad-vertical-box, .ad-horizontal-box {
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

img {
  display: block;
  max-width: 100%;
  pointer-events: none;
}

button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -90px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--orange);
  color: #fff;
  border-radius: 12px;
}
.skip-link:focus { top: 14px; }

/* ==========================================================================
   ESTRUTURA EDGE-TO-EDGE
   ========================================================================== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.site-main-canvas {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   CABEÇALHO FIXO COM TRANSIÇÃO FLUIDA
   ========================================================================== */
.site-header {
  height: 84px;
  background: var(--header-bg);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: calc(100% - 64px);
  border-radius: 0 0 34px 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              box-shadow 0.3s ease;
}

.site-header.scrolled {
  width: 100%;
  border-radius: 0;
  border-right: 0;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 44px;
  gap: 28px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-text {
  font-family: PratiDisplay, sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: var(--ink);
  letter-spacing: -0.6px;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.brand-splash {
  position: absolute;
  right: -14px;
  top: 2px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.brand-splash::before,
.brand-splash::after {
  content: '';
  position: absolute;
  background: var(--orange);
  border-radius: 50% 50% 50% 10%;
  transform: rotate(35deg);
}
.brand-splash::before {
  width: 7px;
  height: 12px;
  top: 0;
  left: 2px;
}
.brand-splash::after {
  width: 5px;
  height: 8px;
  bottom: 0;
  right: 0;
}

#recipes-title {
  font-family: PratiDisplay, Arial, sans-serif;
  font-size: 32px;
  line-height: 1.1;
  display: inline-block;
  position: relative;
}

.recipes-title-end {
  display: inline-block;
  white-space: nowrap;
  position: relative;
  padding-right: 18px;
}

.recipes-title-end .brand-splash {
  position: absolute;
  right: -2px;
  top: -4px;
  margin-left: 0;
  display: inline-block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
}
.nav-link {
  font-size: 14px;
  font-weight: 750;
  color: var(--muted);
  padding: 10px 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 4px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link.active, .nav-link:hover {
  color: var(--orange-ink);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.lang-selector-btn {
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.2s, background 0.2s;
}
.lang-selector-btn:hover {
  transform: translateY(-2px);
  background: var(--chip);
}
.flag-icon-svg {
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  display: block;
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 8px 14px;
  color: var(--muted);
  width: 220px;
  max-width: 240px;
  transition: border-color 0.2s, width 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}
.search-field:focus-within {
  border-color: var(--orange);
  width: 250px;
  box-shadow: 0 0 0 3px rgba(255, 100, 8, 0.15);
}
.search-field input {
  background: none;
  border: 0;
  outline: none;
  width: 100%;
  color: var(--ink);
  font-size: 13px;
}
.header-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--ink);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.header-icon:hover {
  transform: scale(1.08);
  background: var(--soft);
}
.profile-button {
  border: 1.5px solid var(--border);
  border-radius: 50%;
  overflow: hidden;
}

/* ==========================================================================
   PERFIL ATIVO DO USUÁRIO CONECTADO (ESTADO LOGADO)
   ========================================================================== */
.user-profile-anchor {
  position: relative;
}

.profile-button.is-logged {
  border: 2px solid var(--orange) !important;
  box-shadow: 0 0 12px rgba(255, 100, 8, 0.35) !important;
  position: relative;
  overflow: visible;
  padding: 0;
  cursor: pointer;
}

.user-avatar-topbar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4caf50;
  border: 2px solid var(--header-bg);
}

.user-profile-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: var(--surface-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
  padding: 18px;
  z-index: 1000;
  animation: popoverFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.user-profile-popover[hidden] {
  display: none !important;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-popover-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-popover-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--orange);
  flex-shrink: 0;
}
.user-popover-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-popover-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}
.user-popover-info strong {
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-popover-info small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-badge-member {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--orange-ink);
  background: var(--chip);
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 4px;
  width: fit-content;
}

.user-popover-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.user-popover-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
  text-decoration: none;
}
.user-popover-item:hover {
  background: var(--chip);
  color: var(--orange-ink);
}
.user-popover-item svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
}
.user-popover-item.logout-item {
  color: #ff5252;
}
.user-popover-item.logout-item:hover {
  background: rgba(255, 82, 82, 0.12);
  color: #ff5252;
}
.user-popover-item.logout-item svg {
  color: #ff5252;
}

.favorite-counter {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 50%;
  text-align: center;
  font-weight: 800;
}

.mobile-search-trigger { display: none; }
.mobile-search-drawer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 20px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.35s ease;
}
.mobile-search-drawer.open {
  max-height: 76px;
  opacity: 1;
  padding: 10px 20px 14px;
}
.mobile-search-drawer .search-field {
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   BOTÕES GERAIS E CENTRALIZAÇÃO MATEMÁTICA (.primary-button & .secondary-button)
   ========================================================================== */
.primary-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px;
  background: linear-gradient(105deg, #ff8912, #ff5b06);
  color: #ffffff !important;
  padding: 13px 26px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(248, 107, 9, 0.32);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  box-sizing: border-box !important;
  vertical-align: middle;
}
.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(248, 107, 9, 0.45);
  color: #ffffff !important;
}
.primary-button:active {
  transform: translateY(0) scale(0.98);
}
.primary-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.secondary-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--soft);
  font-size: 14px;
  font-weight: 800;
  line-height: 1 !important;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box !important;
  vertical-align: middle;
}
.secondary-button:hover {
  transform: translateY(-2px);
  background: var(--chip);
  border-color: var(--orange);
  color: var(--ink) !important;
}
.secondary-button:active {
  transform: translateY(0);
}
.secondary-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.play-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.play-icon svg {
  width: 12px;
  height: 12px;
  margin-left: 1px;
}

/* ==========================================================================
   HERO ZONE & FRASE DO PRATTO COM MÁXIMA LEGIBILIDADE
   ========================================================================== */
.hero-zone {
  position: relative;
  width: 100%;
  min-height: 620px;
  padding-top: 84px;
  background: var(--hero-image) right center/cover;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-content {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
  padding: 0 44px;
}
.hero-copy {
  width: 530px;
  padding: 30px 0 44px 0;
  position: relative;
  z-index: 4;
}
.hero-kicker {
  display: inline-block;
  color: #ff8e26;
  border: 1px solid #9c5512;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.8px;
  padding: 7px 14px;
  border-radius: 22px;
  background: rgba(22, 14, 6, 0.82);
}
[data-theme="light"] .hero-kicker {
  color: #a83d06;
  border-color: #dfb278;
  background: rgba(255, 248, 237, 0.94);
}
.hero-copy h1 {
  font-family: PratiDisplay, Arial, sans-serif;
  font-size: 64px;
  line-height: 0.96;
  letter-spacing: -1.8px;
  margin: 18px 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-copy h1 span {
  color: var(--orange);
}

.hero-description {
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 420px;
  text-wrap: pretty;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.hero-features {
  display: flex;
  gap: 22px;
  margin-top: 28px;
}
.hero-features > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-features p {
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ff902b;
  background: #362314;
}
.feature-icon.green { color: #a5c86a; background: #26301a; }
.feature-icon.coral { color: #ff853b; background: #382017; }
[data-theme="light"] .feature-icon { background: #fff0d6; color: #b54c05; }
[data-theme="light"] .feature-icon.green { background: #eef4d5; color: #639c2c; }
[data-theme="light"] .feature-icon.coral { background: #fff0da; color: #ff5748; }

.hero-pratto {
  position: absolute;
  z-index: 2;
  width: 480px;
  height: 480px;
  object-fit: contain;
  right: 220px;
  top: 40px;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.45));
}
.mascot-halo {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 135, 3, 0.25), transparent 70%);
  top: 70px;
  right: 240px;
  z-index: 1;
}
[data-theme="light"] .mascot-halo {
  background: rgba(255, 223, 145, 0.5);
}

/* ==========================================================================
   FRASE MANUSCRITA DO CHEF PRATTO (FUNDO TRANSLÚCIDO E ULTRA LEGÍVEL)
   ========================================================================== */
.hero-handwriting {
  position: absolute;
  right: 42px;
  top: 74px;
  font-family: PratiHand, cursive;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-5deg);
  color: var(--handwriting-color);
  background: rgba(18, 12, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 100, 8, 0.38);
  border-radius: 22px;
  padding: 12px 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 100, 8, 0.15);
  z-index: 4;
  pointer-events: none;
  transition: all 0.35s ease;
}

[data-theme="light"] .hero-handwriting {
  background: rgba(255, 252, 246, 0.94);
  border-color: rgba(255, 100, 8, 0.28);
  color: var(--handwriting-color);
  box-shadow: 0 12px 28px rgba(184, 61, 0, 0.12), 0 0 16px rgba(255, 100, 8, 0.08);
}

.hero-handwriting span {
  color: var(--handwriting-accent);
  font-size: 38px;
  font-weight: 800;
}

.hero-bubble {
  position: absolute;
  right: 35px;
  top: 255px;
  z-index: 4;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(7deg);
  background: var(--soft);
  color: var(--handwriting-color);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.mobile-hero-badge { display: none; }
.mobile-hero-copy { display: none; }

/* ==========================================================================
   CATEGORIAS & BOTÕES COM ANTI-HIFENIZAÇÃO ("SOBREMESAS")
   ========================================================================== */
.category-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  padding: 24px 44px;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}
.category-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 104px;
  padding: 12px 6px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: clamp(10.5px, 2.5vw, 13px);
  font-weight: 800;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, border-color 0.2s;
  overflow: hidden;
  text-align: center;
  hyphens: manual !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
.category-button span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.category-button:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
}
.category-media {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
}
.category-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.category-button small {
  font-size: 11px;
  color: var(--orange-ink);
  font-weight: 700;
}
.category-button.selected {
  background: linear-gradient(135deg, #582c0e, #2c1a0c);
  color: #ffb357;
  border-color: #ff7810;
  box-shadow: 0 4px 16px rgba(255, 120, 16, 0.2);
}
[data-theme="light"] .category-button.selected {
  background: #ffe0a8;
  border-color: #ffbc57;
  color: var(--ink);
}

/* ==========================================================================
   SLOTS DE ANÚNCIOS HORIZONTAIS ADAPTADOS AO CRIATIVO
   ========================================================================== */
.ad-horizontal-slot {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 10px 44px 20px;
}

.ad-horizontal-box {
  width: 100%;
  height: auto !important;
  min-height: unset !important;
  background: transparent !important;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  line-height: 0;
}

.ad-horizontal-box.has-creative,
.ad-vertical-box.has-creative {
  padding: 0;
  background: transparent !important;
  border: 1px solid var(--border);
  height: auto !important;
}

.ad-link-wrapper {
  display: block;
  width: 100%;
  height: auto;
  text-decoration: none;
  position: relative;
  border-radius: inherit;
  overflow: hidden;
  line-height: 0;
}

.ad-horizontal-box .ad-media-creative {
  width: 100% !important;
  height: auto !important;
  max-height: 280px;
  object-fit: cover !important;
  display: block;
  border-radius: inherit;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-link-wrapper:hover .ad-media-creative {
  transform: scale(1.015);
}

.ad-badge-corner {
  display: none !important;
}

.ad-watermark-horizontal {
  font-family: PratiDisplay, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 8px;
  color: var(--ad-color);
  padding: 28px 0;
}
.mobile-only-ad { display: none; }

/* ==========================================================================
   ZONA CENTRAL: RECEITAS E SKYSCRAPERS VERTICAIS
   ========================================================================== */
.middle-showcase-zone {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  position: relative;
}

.middle-showcase-content {
  flex: 1;
  min-width: 0;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
}

.ad-skyscraper {
  width: 180px;
  flex-shrink: 0;
  display: none;
  padding: 0;
  align-self: center;
}

@media (min-width: 1080px) {
  .ad-skyscraper {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (min-width: 1360px) {
  .ad-skyscraper {
    width: 200px;
  }
}
@media (min-width: 1560px) {
  .ad-skyscraper {
    width: 220px;
  }
}

.ad-vertical-box {
  width: 100%;
  height: auto;
  min-height: 380px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: static;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ad-vertical-box.has-creative {
  min-height: unset !important;
  max-height: unset !important;
}

.ad-vertical-box .ad-media-creative {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain !important;
  object-position: center;
  display: block;
  border-radius: inherit;
  background: transparent !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-watermark-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: PratiDisplay, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 6px;
  color: var(--ad-color);
}

.recipes-section {
  width: 100%;
  margin-top: 10px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.section-heading p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}
.text-button {
  color: var(--orange-ink);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s;
}
.text-button:hover {
  transform: translateX(4px);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ==========================================================================
   ESTADO VAZIO ELEGANTE (EMPTY STATE CULINÁRIO PRATISSIMO)
   ========================================================================== */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 28px;
  margin: 24px auto;
  background: linear-gradient(180deg, var(--soft) 0%, rgba(20, 14, 9, 0.98) 100%);
  border: 1.5px dashed rgba(255, 100, 8, 0.35);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-width: 640px;
  width: 100%;
  box-sizing: border-box;
  animation: pageFluidEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

[data-theme="light"] .empty-state {
  background: linear-gradient(180deg, #fffdf8 0%, #faf3e8 100%);
  border-color: rgba(255, 100, 8, 0.3);
  box-shadow: 0 12px 32px rgba(114, 71, 20, 0.08);
}

.empty-state span[data-icon] {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--chip);
  border: 1.5px solid var(--border-light);
  display: grid;
  place-items: center;
  color: var(--orange-ink);
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(255, 100, 8, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.empty-state:hover span[data-icon] {
  transform: scale(1.1) rotate(6deg);
}

.empty-state span[data-icon] svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.2;
}

.empty-state h3 {
  font-family: PratiDisplay, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.25;
  text-wrap: balance;
  max-width: 480px;
}

.empty-state p {
  font-size: 14px;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.6;
  text-wrap: pretty;
}

.empty-state .primary-button {
  padding: 13px 30px;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(248, 107, 9, 0.4);
}

/* ==========================================================================
   MODAL DE FAVORITOS TOTALMENTE CENTRALIZADO (2 COLUNAS LIMPAS)
   ========================================================================== */
.panel-dialog .panel-kicker,
.panel-dialog #panel-title,
.panel-dialog .panel-intro {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.panel-dialog .recipe-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.panel-dialog .recipe-card {
  margin: 0 auto;
  width: 100%;
  max-width: 240px;
}

.panel-dialog .recipe-title {
  text-align: center !important;
}

.panel-dialog .recipe-bottom {
  justify-content: center !important;
  gap: 10px !important;
}

@media (max-width: 520px) {
  .panel-dialog .recipe-grid {
    grid-template-columns: 1fr !important;
    max-width: 280px;
  }
}

.recipe-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
  position: relative;
}
.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.recipe-card-highlight {
  border-color: rgba(255, 100, 8, 0.45);
  box-shadow: 0 12px 30px rgba(255, 100, 8, 0.15);
}

.recipe-cover {
  width: 100%;
  aspect-ratio: 1.55;
  background: var(--soft);
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.recipe-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.recipe-card:hover .recipe-cover img {
  transform: scale(1.05);
}
.recipe-time {
  position: absolute;
  left: 12px;
  bottom: 10px;
  background: var(--orange);
  color: #fff;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 850;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.recipe-time.green-time { background: #4f811e; }
.recipe-time.brown-time { background: #744227; }

.favorite-button {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #df4b3b;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  padding: 0;
}
.favorite-button:hover {
  transform: scale(1.15);
}
.favorite-button.saved svg {
  fill: #ff6744;
  stroke: #ed4b21;
}

.recipe-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.recipe-title {
  font-family: PratiDisplay, Arial, sans-serif;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.15;
  text-align: left;
  width: 100%;
  color: var(--ink);
  cursor: pointer;
  overflow-wrap: break-word;
}

.recipe-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  gap: 8px;
}
.recipe-difficulty {
  font-size: 12px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  flex-shrink: 0;
}
.recipe-tag {
  font-size: 11px;
  font-weight: 850;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--chip);
  color: var(--orange-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.recipe-tag.green-tag {
  background: var(--green-soft);
  color: var(--green);
}

/* ==========================================================================
   CONTINUE EXPLORANDO (ELEVAÇÃO RIGOROSA: -25PX DESKTOP / -30PX MOBILE)
   ========================================================================== */
.collections-section {
  width: 100%;
  margin-top: 36px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.collection-tile {
  height: 155px;
  border-radius: 20px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.collection-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.collection-tile > span:first-child {
  font-family: PratiDisplay, Arial, sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.15;
  position: relative;
  top: -25px;
  z-index: 2;
  color: var(--ink);
  display: block;
  max-width: 65%;
}
.collection-tile img {
  position: absolute;
  right: -25px;
  bottom: -20px;
  width: 145px;
  height: 115px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.35s ease;
}
.collection-tile:hover img {
  transform: scale(1.06);
}
.quick-tile { background: #3b2311; }
.lunch-tile, .salad-tile { background: #252d18; }
.dessert-tile { background: #382114; }
[data-theme="light"] .quick-tile { background: #ffeedd; }
[data-theme="light"] .lunch-tile, [data-theme="light"] .salad-tile { background: #edf1d7; }
[data-theme="light"] .dessert-tile { background: #fff0e6; }

/* ==========================================================================
   BANNER DO APLICATIVO PWA & DICAS DO PRATTO
   ========================================================================== */
.app-banner {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 0;
  background: var(--hero-image) center/cover;
  border: 1px solid var(--border);
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  padding: 30px 44px 30px 240px;
  min-height: 210px;
  display: flex;
  align-items: center;
}
.app-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 7, 0.86);
  z-index: 1;
}
[data-theme="light"] .app-banner::before {
  background: rgba(255, 243, 225, 0.88);
}
.banner-pratto {
  position: absolute;
  left: 15px;
  bottom: -15px;
  width: 220px;
  height: 240px;
  object-fit: contain;
  z-index: 2;
}
.app-banner-copy {
  position: relative;
  z-index: 3;
  max-width: 580px;
}
.app-banner-copy h2 {
  font-family: PratiDisplay, Arial, sans-serif;
  font-size: 30px;
  line-height: 1.05;
  text-wrap: balance;
}
.app-banner-copy h2 span { color: var(--orange); }
.app-banner-copy p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  text-wrap: pretty;
}
.app-banner-buttons {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}
.app-banner-handwriting {
  position: relative;
  z-index: 3;
  margin-left: auto;
  font-family: PratiHand, cursive;
  font-size: 30px;
  line-height: 1.05;
  transform: rotate(-7deg);
  color: var(--handwriting-color);
  text-align: center;
}

.mobile-app-footer-row {
  display: contents;
}
.mobile-app-banner-pratto { display: none; }

.pratto-tips-section {
  width: 100%;
  max-width: 1200px;
  margin: 36px auto 0;
  padding: 0;
}
.pratto-tips-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 32px;
  border-radius: 24px;
  background: var(--soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
  width: 100%;
  text-align: left;
}
.pratto-tips-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.tips-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--chip);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.tips-avatar-wrap img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.tips-text-wrap {
  flex: 1;
}
.tips-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--orange-ink);
  background: var(--chip);
  padding: 4px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.tips-text-wrap h3 {
  font-family: PratiDisplay, Arial, sans-serif;
  font-size: 22px;
  line-height: 1.15;
  color: var(--ink);
}
.tips-text-wrap p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  text-wrap: pretty;
}
.tips-action-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.pratto-tips-card:hover .tips-action-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.site-footer {
  width: 100%;
  padding: 48px 0 36px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  background: var(--soft);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 44px;
}
.footer-brand-column p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  max-width: 320px;
}
.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links-column h4 {
  font-family: PratiDisplay, Arial, sans-serif;
  font-size: 17px;
  margin-bottom: 6px;
}
.footer-links-column a, .footer-links-column button {
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  padding: 3px 0;
  display: inline-flex;
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links-column a:hover, .footer-links-column button:hover {
  color: var(--orange-ink);
  transform: translateX(3px);
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.footer-social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-handwriting {
  font-family: PratiHand, cursive;
  font-size: 22px !important;
  color: var(--handwriting-color);
  margin-top: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 44px 0;
  margin-top: 30px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.devyou-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.devyou-credit img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.devyou-credit:hover {
  color: var(--ink);
  font-weight: 800;
}
.devyou-credit:hover img {
  transform: scale(1.25) rotate(6deg);
}

/* ==========================================================================
   BOTÃO DE TEMA FIXADO NO CANTO INFERIOR DIREITO
   ========================================================================== */
.design-controls {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  left: auto;
}
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}
.theme-toggle:hover {
  transform: scale(1.12);
  border-color: var(--orange);
}

/* ==========================================================================
   BALÃO FLUTUANTE DE OFERTA DE AFILIADOS (60 FPS)
   ========================================================================== */
.affiliate-offer-balloon {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9998;
  width: min(340px, calc(100vw - 36px));
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--orange);
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 24px rgba(255, 100, 8, 0.22);
  padding: 10px;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(30px) scale(0.94);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.affiliate-offer-balloon.balloon-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.affiliate-offer-balloon.balloon-leaving {
  animation: balloonSlideOut 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes balloonSlideOut {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(30px) scale(0.92); }
}

.balloon-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.2s;
}
.balloon-close-btn:hover {
  color: var(--ink);
  border-color: var(--orange);
  transform: scale(1.1);
}

.balloon-inner-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding-right: 18px;
}

.balloon-media {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--chip);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.balloon-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.balloon-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.balloon-tag {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: var(--orange-ink);
  text-transform: uppercase;
}

.balloon-title {
  font-family: PratiDisplay, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.balloon-cta {
  font-size: 11px;
  font-weight: 850;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   BANNER HORIZONTAL FLUTUANTE INFERIOR (FLOOR STICKY AD)
   ========================================================================== */
.pratissimo-floor-ad {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9990;
  width: min(740px, calc(100vw - 24px));
  box-sizing: border-box;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.pratissimo-floor-ad.floor-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.pratissimo-floor-ad.floor-closing {
  transform: translateX(-50%) translateY(140%) !important;
  opacity: 0 !important;
}

.floor-ad-inner {
  position: relative;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  display: flex;
}

.floor-ad-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  transition: transform 0.2s, background 0.2s;
}
.floor-ad-close:hover {
  transform: scale(1.1);
  background: var(--orange);
}
.floor-ad-close svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.floor-ad-tag {
  position: absolute;
  bottom: 4px;
  left: 6px;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.65);
  padding: 1px 5px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
}

.floor-ad-link {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
}

.floor-ad-media {
  width: 100%;
  height: auto;
  max-height: 90px;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   BANNER DE COOKIES
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(880px, calc(100% - 32px));
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 16px 24px;
  z-index: 9999;
  animation: cookieBounceIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cookie-consent-banner.cookie-leaving {
  animation: cookieSlideOut 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cookieBounceIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 120%) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -6px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes cookieSlideOut {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  30% {
    transform: translate(-50%, -10px) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 140%) scale(0.9);
  }
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}
.cookie-text a {
  color: var(--orange-ink);
  font-weight: 800;
  text-decoration: underline;
}
.cookie-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.cookie-actions {
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions button {
    width: 100%;
  }
}

/* ==========================================================================
   MODAIS (CASCA ÚNICA COM SCROLLBAR EMBUTIDA SEM VAZAMENTO & BOTÃO X SEGURO)
   ========================================================================== */
dialog::backdrop {
  background: rgba(10, 6, 3, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

dialog[open] {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  z-index: 1000 !important;
  transform: none !important;
}

.recipe-dialog, .panel-dialog, .share-dialog, .benefits-dialog {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--bg);
  color: var(--ink);
  padding: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.recipe-dialog::-webkit-scrollbar-track,
.panel-dialog::-webkit-scrollbar-track,
.benefits-dialog::-webkit-scrollbar-track,
.benefits-content::-webkit-scrollbar-track {
  margin: 18px 0 !important;
  background: transparent !important;
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(15px); }
  to { opacity: 1; transform: none; }
}

/* Botão Fechar Padronizado (Protegido contra sobreposição de textos) */
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 60;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, border-color 0.2s;
}
.dialog-close:hover {
  transform: scale(1.12);
  background: var(--soft);
  border-color: var(--orange);
}

.round-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, border-color 0.2s;
  padding: 0;
}
.round-button:hover {
  transform: scale(1.12);
  background: var(--soft);
  border-color: var(--orange);
}
.round-button svg {
  width: 18px;
  height: 18px;
}

.recipe-dialog {
  width: min(780px, calc(100% - 32px));
  max-height: 88vh;
}

.detail-photo {
  position: relative;
  height: 340px;
  width: 100%;
  background: var(--soft);
  overflow: hidden;
}
.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-actions {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}
.detail-actions > * {
  pointer-events: auto;
}
.detail-actions .favorite-button {
  position: static !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.detail-content {
  padding: 28px 32px 36px;
  text-align: left;
}

.detail-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.detail-tags .recipe-tag {
  max-width: none !important;
  white-space: normal !important;
}

#dialog-title {
  text-align: left !important;
  margin: 8px 0 10px !important;
  font-family: PratiDisplay, Arial, sans-serif;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: break-word;
}

.detail-source {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  color: var(--orange-ink);
  font-size: 13px;
  font-weight: 800;
  margin: 6px 0 12px;
  text-align: left;
}

.detail-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
  text-align: left;
  max-width: none;
  text-wrap: pretty;
}

.detail-meta {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  margin: 16px 0 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  justify-content: flex-start;
}
.detail-tabs button {
  padding: 10px 0;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}
.detail-tabs button.selected {
  color: var(--orange-ink);
}
.detail-tabs button.selected::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 4px;
}

/* Centralização dos Botões de Ação nos Modais */
.detail-add-button,
#btn-install-app-modal {
  width: 100% !important;
  margin-top: 24px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1 !important;
  padding: 0 24px !important;
}

.detail-sample {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

/* Checkbox Quadrado nos Ingredientes */
.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
  display: grid;
  gap: 10px;
}
.ingredients-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.ingredients-list label:hover {
  border-color: var(--orange);
}
.ingredients-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1 !important;
  border: 2px solid var(--muted);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  margin-left: auto;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ingredients-list input[type="checkbox"]:checked {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.06);
}
.ingredients-list input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.nutrition-card {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  margin: 20px 0 0;
  max-width: none;
  text-align: left;
}
.nutrition-card-header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nutrition-portion-toggle {
  display: flex;
  gap: 4px;
}
.nutrition-portion-toggle button {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.nutrition-portion-toggle button.active {
  background: var(--chip);
  border-color: var(--orange);
  color: var(--orange-ink);
}

.nutrition-facts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nutrition-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.nutrition-footer-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  text-align: left;
  line-height: 1.45;
}

.detail-steps {
  padding-left: 22px;
  line-height: 1.7;
  max-width: none;
  margin: 0 0 18px;
  text-align: left;
}
.detail-steps li {
  margin-bottom: 12px;
  text-wrap: pretty;
}
.detail-tips {
  background: var(--soft);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 16px;
  font-size: 14px;
  max-width: none;
  margin: 18px 0 0;
  text-align: left;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ==========================================================================
   PAINÉIS DE MODAIS RÁPIDOS (#panel-dialog COM PROTEÇÃO DO BOTÃO X)
   ========================================================================== */
.panel-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: 85vh;
  padding: 28px 20px 24px !important;
  overflow-y: auto !important;
  position: relative;
  text-align: center;
  box-sizing: border-box;
}

/* Proteção estrita contra colisão do X com textos */
.panel-kicker {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.8px;
  color: var(--orange-ink);
  text-transform: uppercase;
  margin-bottom: 4px;
  text-align: center !important;
  padding: 0 46px !important;
  box-sizing: border-box;
}

.panel-dialog #panel-title {
  padding: 0 40px !important;
  text-align: center !important;
  box-sizing: border-box;
}

.panel-intro {
  color: var(--muted);
  font-size: 14px;
  margin: 6px auto 24px;
  text-align: center !important;
  max-width: 440px;
  line-height: 1.5;
  text-wrap: balance;
  padding: 0 14px;
}

.panel-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.panel-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.panel-empty svg {
  width: 38px;
  height: 38px;
  color: var(--orange);
}

.preference-themes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.preference-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
  border: 1.5px solid var(--border);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}
.preference-theme:hover {
  border-color: var(--orange);
}
.preference-theme.selected {
  background: var(--chip);
  border-color: var(--orange);
  color: var(--orange-ink);
}
.preference-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  justify-content: center;
}
.preference-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
}

.panel-about-pratto {
  display: block;
  margin: 0 auto 12px;
  object-fit: contain;
}
.about-handwriting {
  font-family: PratiHand, cursive;
  font-size: 32px;
  color: var(--orange-ink);
  text-align: center;
  margin-bottom: 12px;
}
.about-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
  text-wrap: pretty;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.tips-list > div {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}
.tips-list strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 4px;
  text-align: center;
}
.tips-list span {
  display: block;
  text-align: center;
}

.menu-pair {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
}
.menu-pair h3 {
  font-family: PratiDisplay, sans-serif;
  font-size: 18px;
  margin-bottom: 4px;
  text-align: center;
}
.menu-pair p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  text-align: center;
}
.menu-pair div {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 28px 24px;
  text-align: center;
}
.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s;
}
.share-btn:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
}
.share-btn svg {
  width: 26px;
  height: 26px;
}
.copy-link-box {
  display: flex;
  gap: 8px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 8px 6px 14px;
  align-items: center;
}
.copy-link-box input {
  background: none;
  border: 0;
  outline: none;
  color: var(--ink);
  font-size: 13px;
  flex: 1;
}

.benefits-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: 88vh;
  text-align: center;
}
.benefits-content {
  padding: 34px 28px 30px;
  max-height: 88vh;
  text-align: center;
}
.benefits-header {
  text-align: center;
  margin-bottom: 24px;
}
.benefits-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--orange-ink);
  background: var(--chip);
  padding: 5px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.benefits-header h3 {
  font-family: PratiDisplay, sans-serif;
  font-size: 28px;
  line-height: 1.1;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
  padding: 0 40px;
}
.benefits-header p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
  text-wrap: pretty;
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.benefit-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  align-items: center;
}
.benefit-icon {
  font-size: 26px;
  line-height: 1;
}
.benefit-card h4 {
  font-family: PratiDisplay, sans-serif;
  font-size: 16px;
  color: var(--ink);
  text-align: center;
  margin: 0;
}
.benefit-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
  margin: 0;
  text-wrap: pretty;
}

/* ==========================================================================
   NAVEGAÇÃO MÓVEL (BARRA INFERIOR OFICIAL COM PERFIL DINÂMICO)
   ========================================================================== */
.mobile-nav {
  display: none !important;
}

.mobile-avatar-pill {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-avatar-pill img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.mobile-avatar-status {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf50;
  border: 1px solid var(--bg);
}

/* ==========================================================================
   SISTEMA DE TOASTS EM PRIMEIRO PLANO ABSOLUTO
   ========================================================================== */
#pratissimo-toast-stack,
dialog #pratissimo-toast-stack,
.recipe-dialog #pratissimo-toast-stack,
.panel-dialog #pratissimo-toast-stack {
  position: fixed !important;
  top: calc(24px + var(--safe-top)) !important;
  right: 24px !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 2147483647 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-width: 380px !important;
  width: calc(100% - 48px) !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}

.toast-item {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 18px !important;
  border-radius: 18px !important;
  background: rgba(22, 16, 11, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75) !important;
  color: #fff8ee !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  box-sizing: border-box !important;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(120%) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast-item.leaving {
  animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(120%) scale(0.95); }
}

.toast-item.toast-success {
  border-left: 4px solid #4caf50 !important;
}
.toast-item.toast-error {
  border-left: 4px solid #f44336 !important;
}
.toast-item.toast-info {
  border-left: 4px solid var(--orange) !important;
}

.toast-icon {
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0 !important;
}

.toast-item.toast-success .toast-icon { color: #4caf50 !important; }
.toast-item.toast-error .toast-icon { color: #f44336 !important; }
.toast-item.toast-info .toast-icon { color: var(--orange) !important; }

.toast-msg {
  flex: 1 !important;
  line-height: 1.35 !important;
  color: #fff8ee !important;
}

.toast-close {
  background: none !important;
  border: none !important;
  color: var(--muted) !important;
  padding: 4px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  line-height: 1 !important;
  transition: color 0.2s !important;
}

.toast-close:hover {
  color: #fff !important;
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE REFINADA (BLINDADA CONTRA CORTES EM TELAS PEQUENAS)
   ========================================================================== */
@media (max-width: 980px) {
  .site-header { 
    width: 100%; 
    border-radius: 0; 
    border-right: 0; 
    height: auto; 
    position: fixed; 
    top: 0; 
    left: 0; 
    margin-bottom: 0; 
  }
  .desktop-nav { display: none; }
  .desktop-search { display: none; }
  .desktop-only-tool { display: none; }
  .mobile-search-trigger { display: grid; }

  .header-inner { padding: 0 16px; height: 60px; }

  .hero-zone { 
    min-height: auto; 
    padding-top: 60px; 
    background-image: var(--hero-mobile-image) !important;
  }

  .hero-content { 
    padding: 0; 
    background: rgb(18 12 7 / 25%); 
    border-radius: 0 !important;
  }
  [data-theme="light"] .hero-content {
    background: rgb(209 209 209 / 31%) !important;
  }

  .hero-copy { width: 100%; padding: 20px 16px 28px; box-sizing: border-box; }
  .hero-copy h1 { font-size: 34px; line-height: 1.05; }
  .hero-pratto { display: none; }
  .hero-handwriting, .hero-bubble { display: none; }
  .mascot-halo { display: none !important; }

  .hero-description {
    color: var(--muted) !important;
    text-shadow: none !important;
  }
  [data-theme="light"] .hero-description {
    color: #1a110a !important;
    text-shadow: none !important;
  }

  .mobile-hero-badge {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
  }
  .mobile-hero-badge img {
    border-radius: 50%;
    background: var(--chip);
    border: 2px solid var(--orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  }

  /* Organização dos Botões no Mobile: 100% da largura útil sem cortes */
  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
    margin-top: 20px !important;
  }
  .hero-buttons .primary-button,
  .hero-buttons .secondary-button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Esteira de Funcionalidades do Hero sem estourar a tela */
  .hero-features {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hero-features::-webkit-scrollbar { display: none; }
  .hero-features > div {
    flex: 0 0 auto;
  }

  .category-strip { grid-template-columns: repeat(4, 1fr); padding: 14px 16px; gap: 8px; }
  .middle-showcase-zone { padding: 0 16px; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .collection-tile > span:first-child {
    max-width: 100%;
    font-size: 15px;
    top: -30px !important;
  }

  .mobile-only-ad {
    display: block;
    padding: 12px 16px;
  }

  .app-banner {
    padding: 18px 16px;
    margin: 20px 14px 0;
    width: calc(100% - 28px);
    max-width: 100%;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    box-sizing: border-box;
  }
  .banner-pratto { display: none; }
  .app-banner-copy { max-width: 100%; }
  .app-banner-copy h2 { font-size: 22px; }
  .app-banner-buttons {
    flex-direction: column;
    width: 100%;
    margin-top: 14px;
  }
  .app-banner-buttons button {
    width: 100%;
  }

  .mobile-app-footer-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 14px;
    gap: 12px;
  }

  .mobile-app-banner-pratto {
    display: block !important;
    width: 64px !important;
    flex-shrink: 0;
    margin: 0 !important;
    align-self: flex-start;
    z-index: 1;
  }
  .mobile-app-pratto-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--chip);
    border: 2px solid var(--orange);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .mobile-app-pratto-circle img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin-top: 4px;
  }

  .app-banner-handwriting {
    display: block !important;
    margin: 0 !important;
    font-size: 19px !important;
    line-height: 1.15 !important;
    text-align: right !important;
    transform: none !important;
    flex: 1;
  }
  .app-banner-handwriting span {
    font-size: 21px;
  }

  .pratto-tips-section { padding: 0 16px; }
  .footer-top { grid-template-columns: 1fr; padding: 0 16px; gap: 26px; }
  .footer-bottom { padding: 22px 16px 0; }
  .site-footer { padding: 28px 0 calc(90px + var(--safe-bottom)); }
  .ad-horizontal-slot { padding: 8px 16px; }
  
  /* Posicionamento do botão de tema livre de sobreposições */
  .design-controls { 
    bottom: calc(76px + var(--safe-bottom)); 
    right: 14px; 
    z-index: 54;
  }

  /* Barra de Navegação Móvel */
  .mobile-nav {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    background: var(--bg);
    border-top: 1px solid var(--border);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 55;
    padding: 8px 8px calc(8px + var(--safe-bottom));
  }
  .mobile-nav > button, .mobile-nav > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 750;
    color: var(--muted);
    white-space: nowrap;
    text-decoration: none;
  }
  .mobile-nav .active { color: var(--orange); }

  /* Anúncio Flutuante Inferior no Celular (Acima da Barra Móvel) */
  .pratissimo-floor-ad {
    bottom: calc(66px + var(--safe-bottom)) !important;
    width: calc(100vw - 20px) !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(120%) !important;
  }
  .pratissimo-floor-ad.floor-visible {
    transform: translateX(-50%) translateY(0) !important;
  }
  .pratissimo-floor-ad.floor-closing {
    transform: translateX(-50%) translateY(140%) !important;
  }
  .floor-ad-media {
    max-height: 70px !important;
  }

  .affiliate-offer-balloon {
    bottom: calc(76px + var(--safe-bottom));
    left: 14px;
    right: 14px;
    width: auto;
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: clamp(26px, 7.5vw, 32px);
    line-height: 1.05;
  }
  .category-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 12px 10px;
  }
  .category-button {
    min-height: 94px;
    padding: 8px 4px;
  }
  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .collection-tile {
    height: 130px;
  }
}

@media (max-width: 360px) {
  .hero-copy h1 {
    font-size: 24px;
  }
  .category-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}