/* ==========================================================================
   CosplayAki • Design System & Estilos Mobile-First
   Paleta Modo Claro de Alto Contraste (Otimizado para Mobile & Projetor)
   ========================================================================== */

:root {
  --bg-board: #F4F5F7;
  --bg-card: #FFFFFF;
  --primary: #7C3AED;
  --primary-hover: #6D28D9;
  --primary-soft: #F3E8FF;
  --accent-pink: #EC4899;
  --accent-pink-soft: #FCE7F3;
  --positive: #10B981;
  --positive-soft: #D1FAE5;
  --warning: #F59E0B;
  --warning-soft: #FEF3C7;
  --info: #3B82F6;
  --info-soft: #DBEAFE;

  --text-title: #1F2937;
  --text-sub: #6B7280;
  --border-light: #E5E7EB;

  --radius-card: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(31, 41, 55, 0.05);
  --shadow-card: 0 4px 14px rgba(31, 41, 55, 0.06);
  --shadow-hover: 0 10px 24px rgba(124, 58, 237, 0.12);
  --shadow-sheet: 0 -8px 32px rgba(17, 24, 39, 0.18);

  --header-h: 64px;
  --bottom-nav-h: 68px;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-board);
  color: var(--text-title);
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg-board);
  padding-top: var(--header-h);
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  line-height: 1.45;
  overflow-x: hidden;
}

body.mode-parceiro {
  padding-bottom: 32px;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ==========================================================================
   A. TOPO FIXO (HEADER)
   ========================================================================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-title);
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.28);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-accent {
  color: var(--primary);
}

.brand-location {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-top: 2px;
}

.brand-location svg {
  color: var(--accent-pink);
}

/* Navegação Desktop (oculta no mobile) */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.desktop-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-sub);
  transition: all 0.2s ease;
}

.desktop-tab:hover {
  color: var(--text-title);
  background: var(--bg-board);
}

.desktop-tab.active {
  color: var(--primary);
  background: var(--primary-soft);
}

/* Alternador Cliente / Parceiro */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mode-switch {
  display: inline-flex;
  background: var(--bg-board);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
}

.mode-btn {
  position: relative;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sub);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mode-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.partner-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 0 2px #FFFFFF;
}

.mode-btn.active .partner-dot {
  background: #FFFFFF;
  box-shadow: none;
}

.reset-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-sub);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

/* ==========================================================================
   B. CONTEÚDO PRINCIPAL E BARRA DE BUSCA
   ========================================================================== */
.app-main {
  padding-top: 16px;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.search-icon {
  position: absolute;
  left: 15px;
  color: var(--text-sub);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 42px 0 46px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-title);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  color: #9CA3AF;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

/* Remove o X nativo do webkit search para usar nosso botão limpo */
.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-board);
  color: var(--text-sub);
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ==========================================================================
   FILTROS EM PÍLULA COM INDICADOR DE ROLAGEM
   ========================================================================== */
.filters-bar-wrap {
  position: relative;
  margin-bottom: 16px;
}

.filters-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 36px 6px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filters-scroll::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text-sub);
  border: 1px solid var(--border-light);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all 0.18s ease;
}

.filter-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
}

/* Degradê lateral + seta indicando que há mais filtros no mobile */
.filters-fade-indicator {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 6px;
  width: 44px;
  background: linear-gradient(90deg, rgba(244, 245, 247, 0) 0%, var(--bg-board) 68%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.filters-fade-indicator span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.filters-fade-indicator.is-end {
  opacity: 0;
}

/* ==========================================================================
   BANNER DESTAQUE NO TOPO (COM FOTO SUTIL + OVERLAY ROXO/ROSA)
   ========================================================================== */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background-color: #7C3AED;
  background-image:
    linear-gradient(120deg, rgba(109, 40, 217, 0.92) 0%, rgba(147, 51, 234, 0.85) 52%, rgba(236, 72, 153, 0.86) 100%),
    url('img/geek-fest-banner.jpg');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
  padding: 22px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.pulse-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  animation: pulseGlow 1.6s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.8);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }
}

.hero-title {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.hero-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 11px;
  background: #FFFFFF;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.hero-art {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  opacity: 0.95;
}

.hero-art svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   TÍTULOS DE SEÇÃO E GRID DE CARDS ESTILO KANBAN
   ========================================================================== */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-top: 2px;
}

.results-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
}

.link-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.link-btn:hover {
  text-decoration: underline;
}

/* Grid Principal do Catálogo */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.item-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(124, 58, 237, 0.3);
}

.card-visual {
  position: relative;
  height: 176px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Degradê escuro superior para garantir 100% de contraste nas etiquetas sobre fotos */
.card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.62) 0%,
    rgba(15, 23, 42, 0.18) 44%,
    rgba(15, 23, 42, 0) 75%
  );
  z-index: 1;
  pointer-events: none;
}

.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-photo.pos-top {
  object-position: center 18%;
}

.item-card:hover .card-photo {
  transform: scale(1.04);
}

.card-top-tags {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.cat-Fantasias {
  color: #6D28D9;
}

.cat-Animação {
  color: #D97706;
}

.cat-Caracterização {
  color: #0284C7;
}

.cat-Eventos {
  color: #DB2777;
}

.type-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.68);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.28;
}

.rating-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #FFFBEB;
  color: #B45309;
  font-size: 0.76rem;
  font-weight: 800;
}

.card-partner {
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 500;
}

.card-footer {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-tag {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text-title);
}

.price-unit {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-sub);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 11px;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.24);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 5px 14px rgba(124, 58, 237, 0.34);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-lg {
  height: 48px;
  font-size: 0.95rem;
  border-radius: 13px;
}

/* Estado vazio na busca */
.empty-state {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 32px 20px;
  text-align: center;
  border: 1px dashed var(--border-light);
}

.empty-state h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.empty-state p {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 14px;
}

/* ==========================================================================
   ABA 2: EVENTOS EM MANAUS
   ========================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.event-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 231, 235, 0.85);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.event-card.highlight-flash {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.22);
}

.event-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.event-date-box {
  flex-shrink: 0;
  width: 54px;
  height: 58px;
  border-radius: 13px;
  background: var(--accent-pink-soft);
  color: var(--accent-pink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.event-day {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

.event-month {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 2px;
}

.event-info {
  flex: 1;
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
}

.entry-badge {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 800;
}

.entry-free {
  background: var(--positive-soft);
  color: #047857;
}

.entry-paid {
  background: var(--primary-soft);
  color: var(--primary);
}

.event-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 3px;
}

.event-meta {
  font-size: 0.8rem;
  color: var(--text-sub);
  font-weight: 500;
}

.event-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--bg-board);
}

.event-interested-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-sub);
}

.btn-interest {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid var(--accent-pink);
  color: var(--accent-pink);
  background: #FFFFFF;
  transition: all 0.18s ease;
}

.btn-interest:hover {
  background: var(--accent-pink-soft);
}

.btn-interest.interested {
  background: var(--positive);
  border-color: var(--positive);
  color: #FFFFFF;
}

/* ==========================================================================
   ABA 3: RESERVAS DO CLIENTE (CARDS ESTILO KANBAN)
   ========================================================================== */
.reservations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.reserva-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  border-left: 5px solid var(--warning);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reserva-card.status-Confirmado {
  border-left-color: var(--primary);
}

.reserva-card.status-Pronto {
  border-left-color: var(--positive);
}

.reserva-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.reserva-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-title);
}

.status-pill {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 800;
}

.status-pill.st-Aguardando {
  background: var(--warning-soft);
  color: #B45309;
}

.status-pill.st-Confirmado {
  background: var(--primary-soft);
  color: var(--primary);
}

.status-pill.st-Pronto {
  background: var(--positive-soft);
  color: #047857;
}

.reserva-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-sub);
  font-weight: 600;
}

.reserva-note {
  font-size: 0.8rem;
  color: var(--text-title);
  background: var(--bg-board);
  padding: 8px 10px;
  border-radius: 9px;
}

/* Barra visual de etapas (3 estágios) */
.step-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 2px;
}

.step-bar {
  height: 5px;
  border-radius: 99px;
  background: var(--border-light);
}

.step-bar.done-warn {
  background: var(--warning);
}

.step-bar.done-primary {
  background: var(--primary);
}

.step-bar.done-pos {
  background: var(--positive);
}

/* ==========================================================================
   BARRA DE NAVEGAÇÃO INFERIOR FIXA (MOBILE)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 16px rgba(17, 24, 39, 0.05);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  z-index: 95;
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-sub);
  font-size: 0.73rem;
  font-weight: 700;
  transition: color 0.18s ease;
}

.bottom-tab.active {
  color: var(--primary);
}

.bottom-tab.active svg {
  transform: translateY(-1px);
}

.tab-icon-wrap {
  position: relative;
  display: inline-flex;
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent-pink);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tab-icon-wrap .nav-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  box-shadow: 0 0 0 2px #FFFFFF;
}

/* ==========================================================================
   C. GAVETA INFERIOR (BOTTOM SHEET / MODAL DESKTOP)
   ========================================================================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeBackdrop 0.2s ease;
}

@keyframes fadeBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.booking-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-sheet);
  animation: slideUpSheet 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 99px;
  background: #D1D5DB;
  margin: 0 auto 12px;
}

.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.sheet-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-board);
  color: var(--text-title);
  font-size: 0.9rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.sheet-item-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-board);
  margin-bottom: 16px;
}

.sheet-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}

.sheet-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.sheet-item-info h3 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-title);
  margin: 2px 0;
}

.sheet-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-sub);
}

.sheet-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-title);
}

.optional-tag {
  font-weight: 500;
  color: var(--text-sub);
}

.form-field input {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #FFFFFF;
  font-size: 0.92rem;
  color: var(--text-title);
}

.form-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

/* ==========================================================================
   D. MODO PARCEIRO (PAINEL KANBAN INTERATIVO)
   ========================================================================== */
.partner-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.partner-pill {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.partner-title {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.partner-hint {
  font-size: 0.83rem;
  color: var(--text-sub);
}

/* Mini-Cards de Métricas */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.metric-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.8);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-sub);
}

.metric-value {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.metric-rating {
  color: #D97706;
}

.metric-trend {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-sub);
}

.metric-trend.positive {
  color: var(--positive);
}

/* Navegação rápida entre colunas no Mobile */
.kanban-mobile-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.kanban-jump-btn {
  padding: 8px 6px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.kanban-jump-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.jump-count {
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(17, 24, 39, 0.08);
  font-size: 0.7rem;
}

.kanban-swipe-hint {
  font-size: 0.74rem;
  color: var(--text-sub);
  text-align: right;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Quadro Kanban: Rolagem horizontal suave no Mobile */
.kanban-board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.kanban-column {
  flex: 0 0 86%;
  scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-title-wrap h2 {
  font-size: 0.92rem;
  font-weight: 800;
}

.col-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-novo { background: var(--warning); }
.dot-confirmado { background: var(--primary); }
.dot-entregue { background: var(--positive); }

.col-counter {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 0.76rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.partner-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: cardPop 0.22s ease;
}

@keyframes cardPop {
  from {
    opacity: 0.4;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.partner-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.customer-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-sub);
}

.you-badge {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-pink-soft);
  color: var(--accent-pink);
  font-size: 0.68rem;
  font-weight: 800;
}

.partner-item-name {
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--text-title);
}

.partner-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-sub);
  font-weight: 600;
}

.partner-price {
  color: var(--text-title);
  font-weight: 800;
}

.partner-note {
  font-size: 0.76rem;
  background: var(--bg-board);
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--text-title);
}

.btn-advance {
  margin-top: 4px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  transition: all 0.18s ease;
}

.btn-advance:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.done-stamp {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--positive-soft);
  color: #047857;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.kanban-empty {
  padding: 24px 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-sub);
  border: 1px dashed var(--border-light);
  border-radius: 12px;
}

/* ==========================================================================
   TOAST DE FEEDBACK VERDE
   ========================================================================== */
.toast-container {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 380px;
  pointer-events: none;
}

.toast {
  background: var(--positive);
  color: #FFFFFF;
  padding: 12px 16px;
  border-radius: 13px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.32);
  display: flex;
  align-items: center;
  gap: 9px;
  animation: toastIn 0.25s ease;
}

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

/* ==========================================================================
   RESPONSIVIDADE: TABLETS E DESKTOPS / PROJETOR (>= 768px e >= 1024px)
   ========================================================================== */
@media (min-width: 640px) {
  .catalog-grid,
  .events-grid,
  .reservations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-value {
    font-size: 1.35rem;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 40px;
  }

  .desktop-nav {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .filters-fade-indicator {
    display: none;
  }

  .hero-banner {
    padding: 28px 32px;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .hero-art {
    width: 118px;
    height: 118px;
  }

  /* No desktop, a Bottom Sheet vira um Modal Centralizado elegante */
  .sheet-backdrop {
    align-items: center;
    padding: 20px;
  }

  .booking-sheet {
    border-radius: 22px;
    padding: 22px 24px 24px;
    animation: modalZoom 0.2s ease;
  }

  .sheet-handle {
    display: none;
  }

  @keyframes modalZoom {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  /* Kanban Parceiro em 3 colunas fixas lado a lado no Tablet/Desktop */
  .kanban-mobile-nav,
  .kanban-swipe-hint {
    display: none;
  }

  .kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
  }

  .kanban-column {
    flex: initial;
    min-height: 420px;
  }

  .partner-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .card-visual {
    height: 190px;
  }
}
