@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── Tokens (mobile-first) ── */
:root {
  --green: #1C5C2E;
  --green-d: #143F20;
  --green-m: #2A6340;
  --green-l: #4A8F5C;
  --green-xl: #EDF4EF;
  --green-tint: rgba(28, 92, 46, 0.07);
  /* Paleta del logo */
  --lime: #8BC53F;
  --leaf: #4CAF50;
  --teal: #1AA79E;
  --turq: #22B8C4;
  --brand-grad: linear-gradient(135deg, #8BC53F 0%, #4CAF50 38%, #1AA79E 72%, #22B8C4 100%);
  --btn-green-bg: linear-gradient(135deg, var(--leaf), var(--teal));
  --btn-green-shadow: 0 2px 10px rgba(26, 167, 158, 0.22);
  --pastel-lime: #E8F4DC;
  --pastel-green: #DFF0E6;
  --pastel-teal: #D9F0EE;
  --pastel-sky: #E2F4F8;
  --pastel-gold: #F5F0E0;
  --pastel-gold-tag-bg: rgba(217, 184, 74, 0.18);
  --pastel-gold-tag-text: #8A7020;
  --pastel-gold-tag-border: rgba(217, 184, 74, 0.28);
  --pastel-gold-ring: rgba(217, 184, 74, 0.22);
  --pastel-lime-text: #3D6B28;
  --pastel-green-text: #2A5C3A;
  --pastel-teal-text: #1A6B66;
  --pastel-gold-text: #7A6520;
  --gold: #D9B84A;
  --gold-soft: #F5EDD4;
  --gold-muted: #EDE4C8;
  --cream: #F9F8F5;
  --surface: #FFFFFF;
  --ink: #1A2320;
  --ink2: #4A5C54;
  --ink3: #8A9A92;
  --border: #E8EBE9;
  --border-soft: #F0F2F1;
  --shadow-sm: 0 1px 3px rgba(26, 35, 32, 0.04);
  --shadow: 0 4px 20px rgba(26, 35, 32, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 35, 32, 0.08);
  --r: 14px;
  --r-sm: 12px;
  --r-lg: 20px;
  --r-xl: 24px;
  --nav-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shell-pad: 1rem;
  --content-max: 100%;
  --py-bg: #F5F5F5;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ── Shell: full width mobile → centered card on larger screens ── */
.app-shell {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--py-bg);
  position: relative;
}

/* ── Feed top (estilo marketplace: PedidosYa-like) ── */
.py-header-sticky {
  position: sticky;
  top: 0;
  z-index: 110;
  background: #EBEBEB;
  border-bottom: 1px solid #D8D8D8;
  box-shadow: 0 1px 8px rgba(26, 35, 32, 0.06);
  overflow: visible;
}

.feed-scroll {
  background: var(--py-bg);
}

.py-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.5rem 0.65rem;
  padding: 0.55rem var(--shell-pad) 0.65rem;
  background: transparent;
}

.py-header-left {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.py-header-right {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.py-feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.65rem var(--shell-pad) 0.55rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.py-feed-toolbar::-webkit-scrollbar {
  display: none;
}

.py-feed-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.py-feed-toolbar .py-zone-wrap {
  flex: 0 1 auto;
  max-width: calc(100% - 12.5rem);
}

.py-feed-toolbar .py-zone {
  width: auto;
  max-width: 100%;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.8rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.py-feed-toolbar .py-zone:hover {
  border-color: rgba(26, 167, 158, 0.35);
}

.py-zone-wrap.open .py-zone {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 167, 158, 0.12);
}

.py-zone-pin {
  flex-shrink: 0;
  color: var(--teal);
  display: grid;
  place-items: center;
  line-height: 0;
}

.py-zone-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  min-width: 0;
  line-height: 1.15;
}

.py-zone-name {
  font-family: 'Poppins', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.py-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.15s;
}

.py-action-btn-icon {
  display: grid;
  place-items: center;
  line-height: 0;
  flex-shrink: 0;
  color: var(--surface);
}

.py-action-btn:active {
  transform: scale(0.98);
}

.py-action-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

.py-search {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.3rem 0.35rem 0.3rem 1rem;
  border: 1px solid #D0D0D0;
  gap: 0.35rem;
}

.py-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.py-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
}

.py-logo-mark .logo-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.py-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.py-zone-wrap {
  position: relative;
  min-width: 0;
}

.py-zone {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
}

.py-zone-label {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--ink3);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.py-zone-value {
  display: none;
}

.py-zone-text {
  display: none;
}

.py-chevron {
  font-size: 0.7rem;
  color: var(--ink3);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.py-zone-wrap.open .py-chevron {
  transform: rotate(180deg);
}

.py-zone-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  min-width: 100%;
  width: max(100%, 200px);
  max-width: min(280px, 88vw);
  max-height: min(320px, 52vh);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(26, 35, 32, 0.12);
  padding: 0.4rem;
  -webkit-overflow-scrolling: touch;
}

.py-zone-menu-head {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink3);
  padding: 0.35rem 0.65rem 0.5rem;
  margin: 0;
}

.py-zone-menu[hidden] {
  display: none;
}

.py-zone-option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink2);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.py-zone-option:hover {
  background: var(--green-xl);
  color: var(--green);
}

.py-zone-option.on {
  background: var(--green-xl);
  color: var(--green);
  font-weight: 600;
}

.py-zone-option.on::after {
  content: '✓';
  float: right;
  font-size: 0.85rem;
  opacity: 0.85;
}

.py-zone-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Custom pickers (estilo Rescatar en) ── */
.apy-picker-wrap {
  position: relative;
}

.apy-picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.apy-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.apy-picker-trigger:hover {
  border-color: rgba(26, 167, 158, 0.35);
}

.apy-picker-wrap.open .apy-picker-trigger {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 167, 158, 0.12);
}

.apy-picker-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apy-picker-chevron {
  flex-shrink: 0;
  color: var(--teal);
  font-size: 0.85rem;
  line-height: 1;
  transition: transform 0.2s;
}

.apy-picker-wrap.open .apy-picker-chevron {
  transform: rotate(180deg);
}

.apy-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 200;
  max-height: min(280px, 48vh);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(26, 35, 32, 0.14);
  padding: 0.4rem;
  -webkit-overflow-scrolling: touch;
}

.apy-picker-menu[hidden] {
  display: none !important;
}

.apy-picker-option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink2);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.apy-picker-option:hover {
  background: var(--green-xl);
  color: var(--green);
}

.apy-picker-option.on {
  background: var(--pastel-teal);
  color: var(--pastel-teal-text);
  font-weight: 600;
}

.apy-picker-option.on::after {
  content: '✓';
  float: right;
  font-size: 0.85rem;
  opacity: 0.85;
}

.apy-date-wrap {
  position: relative;
  cursor: pointer;
}

.apy-date-wrap.is-open {
  z-index: 120;
}

.apy-date-wrap .flatpickr-calendar {
  position: absolute !important;
  top: calc(100% + 0.35rem) !important;
  left: 0 !important;
  right: auto !important;
  margin: 0 !important;
}

.apy-date-input {
  width: 100%;
  padding: 0.8rem 2.6rem 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  color-scheme: light;
  accent-color: var(--leaf);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.apy-date-wrap.is-focus .apy-date-input,
.apy-date-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 167, 158, 0.12);
}

.apy-date-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  pointer-events: none;
  line-height: 0;
}

.apy-date-input::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  top: 0;
  width: 2.75rem;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.apy-date-wrap.has-value .apy-date-input {
  color: var(--ink);
}

.apy-date-wrap.is-open .apy-date-input {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 167, 158, 0.12);
}

.apy-date-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Flatpickr — calendario APProvecho */
.flatpickr-calendar {
  font-family: 'Poppins', sans-serif !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 44px rgba(26, 35, 32, 0.16) !important;
  padding: 0.5rem 0.45rem 0.65rem !important;
  width: 19.5rem !important;
  background: var(--surface) !important;
}

.flatpickr-calendar:before,
.flatpickr-calendar:after {
  display: none !important;
}

.flatpickr-months {
  padding: 0.15rem 0.25rem 0.45rem !important;
  align-items: center !important;
}

.flatpickr-months .flatpickr-month {
  height: auto !important;
  color: var(--ink) !important;
}

.flatpickr-current-month {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 0.35rem 0 !important;
  color: var(--ink) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
}

.flatpickr-weekdays {
  margin-top: 0.15rem !important;
}

.flatpickr-weekday {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--ink3) !important;
}

.flatpickr-day {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--ink2) !important;
  border-radius: 10px !important;
  border: none !important;
  max-width: 2.15rem !important;
  height: 2.15rem !important;
  line-height: 2.15rem !important;
  margin: 1px !important;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: var(--green-xl) !important;
  color: var(--green) !important;
}

.flatpickr-day.today {
  border: none !important;
  background: var(--pastel-teal) !important;
  color: var(--pastel-teal-text) !important;
  font-weight: 700 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
  background: var(--btn-green-bg) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(26, 167, 158, 0.28) !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #c5ccc8 !important;
}

.flatpickr-day.flatpickr-disabled:hover {
  background: transparent !important;
  color: #c5ccc8 !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 0.55rem !important;
  padding: 0.35rem !important;
  border-radius: 999px !important;
  fill: var(--teal) !important;
  color: var(--teal) !important;
  transition: background 0.15s !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: var(--pastel-teal) !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  width: 12px !important;
  height: 12px !important;
}

.admin-filter-bar .apy-picker-menu {
  z-index: 300;
}

.py-logo {
  color: var(--ink3);
}

.py-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.88rem;
  color: var(--ink);
  min-width: 0;
  outline: none;
}

.py-search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--btn-green-bg);
  color: var(--surface);
  box-shadow: var(--btn-green-shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}

.py-search-btn:hover {
  opacity: 0.92;
}

.py-search-btn:active {
  transform: scale(0.96);
}

.py-zone-name.is-placeholder {
  color: var(--ink3);
  font-weight: 600;
}

.py-categories {
  padding: 0.35rem 0 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
}

/* ── Horizontal scroll carousels ── */
.h-scroll {
  position: relative;
}

.h-scroll-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.h-scroll-viewport::-webkit-scrollbar {
  display: none;
}

.h-scroll-viewport.is-dragging {
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

.h-scroll-viewport::before,
.h-scroll-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.h-scroll-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface) 0%, transparent 100%);
}

.h-scroll-viewport::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface) 0%, transparent 100%);
}

.h-scroll.can-scroll-left .h-scroll-viewport::before,
.h-scroll.can-scroll-right .h-scroll-viewport::after {
  opacity: 1;
}

.h-scroll-featured .h-scroll-viewport::before {
  background: linear-gradient(90deg, var(--py-bg) 0%, transparent 100%);
}

.h-scroll-featured .h-scroll-viewport::after {
  background: linear-gradient(270deg, var(--py-bg) 0%, transparent 100%);
}

.h-scroll-track {
  display: flex;
  width: max-content;
  min-width: 100%;
}

.h-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(26, 35, 32, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.15s, background 0.15s;
}

.h-scroll.can-scroll-left .h-scroll-prev,
.h-scroll.can-scroll-right .h-scroll-next {
  opacity: 1;
  pointer-events: auto;
}

.h-scroll-btn:hover {
  background: var(--green-xl);
  color: var(--green);
}

.h-scroll-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.h-scroll-prev {
  left: 4px;
}

.h-scroll-next {
  right: 4px;
}

.h-scroll-featured .h-scroll-prev {
  left: 0;
}

.h-scroll-featured .h-scroll-next {
  right: 0;
}

.h-scroll-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

.py-cat-scroll {
  gap: 0.55rem;
  padding: 0  var(--shell-pad) 0.15rem;
}

.py-cat-card {
  flex-shrink: 0;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--ink2);
}

.py-cat-ico {
  position: relative;
  z-index: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  padding: 0;
}

.py-cat-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.py-cat-card.all .py-cat-ico { background: linear-gradient(145deg, #F0F7F2, #E4EDE8); }
.py-cat-card.bakery .py-cat-ico { background: linear-gradient(145deg, #FBF3E8, #F3E4D0); }
.py-cat-card.cafe .py-cat-ico { background: linear-gradient(145deg, #F5EFEA, #E8DDD6); }
.py-cat-card.lunch .py-cat-ico { background: linear-gradient(145deg, #EAF3EC, #DCE8DF); }
.py-cat-card.produce .py-cat-ico { background: linear-gradient(145deg, #F0F8E8, #E2EFD4); }
.py-cat-card.flower .py-cat-ico { background: linear-gradient(145deg, #FCEEF4, #F5DCE7); }
.py-cat-card.market .py-cat-ico { background: linear-gradient(145deg, #EEF5F8, #DCE9EF); }
.py-cat-card.hotel .py-cat-ico { background: linear-gradient(145deg, #F3EFF8, #E6DFF0); }

.py-cat-card.on .py-cat-ico {
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.py-cat-card.on .py-cat-ico::after {
  content: '';
  position: absolute;
  inset: -3px;
  padding: 3px;
  border-radius: 17px;
  background: var(--btn-green-bg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.py-cat-card:active .py-cat-ico {
  transform: scale(0.96);
}

.py-cat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
}

.py-cat-card.on .py-cat-label {
  color: var(--green);
  font-weight: 700;
}

.py-brands {
  padding: 0.65rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
}

.py-brands-scroll {
  gap: 0.85rem;
  padding: 0 var(--shell-pad);
}

.py-brand {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink2);
  width: 64px;
}

.py-brand .biz-mark {
  position: relative;
  z-index: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.py-brand-name {
  font-size: 0.62rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 64px;
}

.py-brand.on .biz-mark,
.py-brand.on .py-brand-all {
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.py-brand.on .biz-mark::after,
.py-brand.on .py-brand-all::after {
  content: '';
  position: absolute;
  inset: -3px;
  padding: 3px;
  border-radius: 50%;
  background: var(--btn-green-bg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.py-brand.on .py-brand-name {
  color: var(--green);
  font-weight: 700;
}

.py-brand-all {
  position: relative;
  z-index: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-soft);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.filter-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.65rem 0.4rem 0.85rem;
  background: var(--green-xl);
  border: 1px solid rgba(28, 92, 46, 0.15);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.filter-active-pill a {
  color: var(--ink3);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.filter-active-pill a:hover {
  color: var(--ink);
}

.py-promos-section {
  padding: 0.85rem var(--shell-pad) 1rem;
  background: var(--py-bg);
}

.py-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: stretch;
}

.py-promo {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  border-radius: 16px;
  padding: 0.85rem 0.75rem 0.85rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 12px rgba(26, 35, 32, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: transform 0.18s, box-shadow 0.18s;
}

.py-promo:nth-child(3) {
  grid-column: 1 / -1;
  min-height: 100px;
}

.py-promo:active {
  transform: scale(0.98);
}

.py-promo-deco {
  position: absolute;
  right: 2.5rem;
  bottom: -8px;
  font-size: 2.8rem;
  line-height: 1;
  opacity: 0.35;
  pointer-events: none;
  filter: saturate(0.75);
}

.py-promo-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  align-self: stretch;
  padding: 0.1rem 0;
}

.py-promo-cta {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
  opacity: 0.85;
  align-self: center;
}

.py-promo-green {
  background: linear-gradient(145deg, var(--pastel-lime) 0%, var(--pastel-green) 100%);
  color: var(--pastel-green-text);
  border-color: rgba(139, 197, 63, 0.22);
}

.py-promo-green .py-promo-tag {
  background: rgba(139, 197, 63, 0.22);
  color: var(--pastel-lime-text);
}

.py-promo-green .py-promo-sub {
  color: rgba(42, 92, 58, 0.78);
}

.py-promo-green .py-promo-sub strong {
  color: var(--pastel-lime-text);
}

.py-promo-green .py-promo-cta {
  background: rgba(255, 255, 255, 0.75);
  color: var(--pastel-green-text);
}

.py-promo-gold {
  background: linear-gradient(145deg, #F8F3E4 0%, var(--pastel-gold) 100%);
  color: var(--pastel-gold-text);
  border-color: rgba(217, 184, 74, 0.2);
}

.py-promo-gold .py-promo-tag {
  background: var(--pastel-gold-tag-bg);
  color: var(--pastel-gold-tag-text);
}

.py-promo-gold .py-promo-sub {
  color: rgba(122, 101, 32, 0.78);
}

.py-promo-gold .py-promo-sub strong {
  color: #8A7020;
}

.py-promo-gold .py-promo-cta {
  background: rgba(255, 255, 255, 0.75);
  color: var(--pastel-gold-text);
}

.py-promo-teal {
  background: linear-gradient(145deg, var(--pastel-teal) 0%, var(--pastel-sky) 100%);
  color: var(--pastel-teal-text);
  border-color: rgba(34, 184, 196, 0.2);
}

.py-promo-teal .py-promo-tag {
  background: rgba(26, 167, 158, 0.16);
  color: var(--pastel-teal-text);
}

.py-promo-teal .py-promo-sub {
  color: rgba(26, 107, 102, 0.78);
}

.py-promo-teal .py-promo-sub strong {
  color: #1A7A74;
}

.py-promo-teal .py-promo-cta {
  background: rgba(255, 255, 255, 0.75);
  color: var(--pastel-teal-text);
}

.py-promo-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  line-height: 1.2;
  min-height: 1.15rem;
}

.py-promo-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.py-promo-sub {
  font-size: 0.7rem;
  line-height: 1.38;
  font-weight: 500;
  max-width: 14rem;
}

.feed-main {
  padding-top: 0.85rem;
}

@media (min-width: 640px) {
  .py-geo-btn,
  .py-profile {
    flex-direction: row;
    gap: 0.35rem;
    font-size: 0.78rem;
  }

  .py-cat-card {
    width: 80px;
  }

  .py-cat-ico {
    width: 72px;
    height: 72px;
  }

  .py-promos {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.7rem;
  }

  .py-promo {
    min-height: 118px;
    padding: 0.9rem 0.8rem 0.9rem 0.95rem;
  }

  .py-promo:nth-child(3) {
    grid-column: auto;
    min-height: 118px;
  }

  .py-promo-title {
    font-size: 1.02rem;
  }

  .h-scroll-btn {
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 900px) {
  .py-header {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem var(--shell-pad);
  }

  .py-header-left {
    grid-column: 1;
    grid-row: 1;
  }

  .py-search {
    grid-column: 2;
    grid-row: 1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .py-header-right {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 400px) {
  .py-logo-text {
    display: none;
  }

  .py-action-btn {
    font-size: 0.72rem;
    padding: 0.48rem 0.75rem;
  }

  .py-feed-toolbar .py-zone-wrap {
    max-width: calc(100% - 8.5rem);
  }

  .py-feed-actions .py-action-btn-text {
    display: none;
  }

  .py-feed-actions .py-action-btn {
    padding: 0.5rem;
    min-width: 2.35rem;
  }
}

/* ── Mapa interactivo ── */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(18, 24, 22, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.map-modal[hidden] {
  display: none !important;
}

body.map-open {
  overflow: hidden;
}

.map-modal-panel {
  width: 100%;
  max-width: 520px;
  height: min(88vh, 720px);
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: map-slide-up 0.28s ease-out;
}

@keyframes map-slide-up {
  from { transform: translateY(12%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.map-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem var(--shell-pad) 0.65rem;
  border-bottom: 1px solid var(--border-soft);
}

.map-modal-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.map-modal-sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.map-modal-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: #f3f5f4;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.map-modal-close:hover {
  background: #e8ecea;
}

.map-canvas {
  flex: 1;
  min-height: 0;
  background: #e8ede9;
  z-index: 0;
}

.map-modal-footer {
  padding: 0.75rem var(--shell-pad) calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}

/* Confirmación de entrega / cobro */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 520;
  background: rgba(18, 24, 22, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.confirm-modal-panel {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.35rem 1.25rem 1.15rem;
  animation: map-slide-up 0.22s ease-out;
}

.confirm-modal-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}

.confirm-modal-bag {
  margin: 0.65rem 0 0.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green);
  text-align: center;
}

.confirm-modal-code {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--ink3);
  text-align: center;
}

.confirm-modal-pay {
  text-align: left;
  margin-bottom: 1rem;
}

.confirm-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.confirm-modal-form {
  margin: 0;
}

.confirm-modal[hidden] {
  display: none !important;
}

.biz-order-row {
  align-items: flex-start;
  gap: 0.75rem;
}

.biz-order-main {
  flex: 1;
  min-width: 0;
}

.biz-order-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.biz-order-detail-btn {
  width: auto;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
}

.biz-order-detail-list {
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.biz-order-detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-soft);
}

.biz-order-detail-list > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.biz-order-detail-list dt {
  color: var(--ink3);
  font-weight: 500;
}

.biz-order-detail-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.cat-admin-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.cat-admin-art {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--cream);
  flex-shrink: 0;
}

.cat-admin-table {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cat-admin-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "art main status"
    "art actions actions";
  gap: 0.45rem 0.75rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 0.7rem 0.85rem;
  box-shadow: var(--shadow-sm);
}

.cat-admin-row.is-off {
  opacity: 0.72;
}

.cat-admin-row .cat-admin-art { grid-area: art; }
.cat-admin-row-main { grid-area: main; min-width: 0; }
.cat-admin-row .status-pill { grid-area: status; justify-self: end; }
.cat-admin-row-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
}

.cat-admin-row-actions .admin-inline-form {
  display: inline-flex;
  margin: 0;
  align-self: stretch;
}

.cat-admin-row-actions .btn-sm {
  min-height: 2.35rem;
  padding: 0.45rem 1rem;
  box-sizing: border-box;
  line-height: 1.2;
}

.cat-admin-row-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.25;
}

.cat-admin-row-meta {
  font-size: 0.72rem;
  color: var(--ink3);
  margin-top: 0.15rem;
}

@media (min-width: 640px) {
  .cat-admin-row {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "art main status actions";
  }
}

.cat-admin-modal-panel {
  max-height: min(90vh, 720px);
  overflow-y: auto;
}

.cat-admin-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.cat-admin-modal-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
}

.cat-admin-modal-preview .cat-admin-art {
  width: 56px;
  height: 56px;
}

.cat-admin-delete-form {
  margin: 0.75rem 0 0;
  text-align: center;
}

.cat-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

@media (max-width: 520px) {
  .cat-admin-grid {
    grid-template-columns: 1fr;
  }
}

.cat-admin-check {
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  background: var(--green-xl);
  border-radius: var(--r-sm);
}

.cat-admin-check span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cat-admin-check strong {
  font-size: 0.86rem;
  color: var(--ink);
}

.cat-admin-check small {
  font-size: 0.75rem;
  color: var(--ink2);
  line-height: 1.35;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.admin-inline-form {
  margin: 0;
}

.map-radius-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.map-radius-label strong {
  color: var(--leaf);
  font-weight: 700;
}

.map-radius {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf) 0%, var(--teal) 55%, var(--turq) 100%);
  outline: none;
  cursor: pointer;
}

.map-radius::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf) 0%, var(--teal) 55%, var(--turq) 100%);
}

.map-radius::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--leaf);
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.35);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.map-radius::-webkit-slider-thumb:hover {
  transform: scale(1.06);
  box-shadow: 0 3px 12px rgba(26, 167, 158, 0.4);
}

.map-radius::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--leaf) 0%, var(--teal) 55%, var(--turq) 100%);
  border: none;
}

.map-radius::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--leaf);
  box-shadow: 0 2px 10px rgba(76, 175, 80, 0.35);
  cursor: pointer;
}

.map-count {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.map-pin {
  background: transparent;
  border: none;
  filter: drop-shadow(0 8px 16px rgba(17, 24, 39, 0.28));
}

.map-pin-emoji {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(180deg, #ffffff 0%, #f3f6f9 100%);
  border: 2px solid rgba(15, 23, 42, 0.16);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.92),
    0 6px 16px rgba(15, 23, 42, 0.22);
  font-size: 1.05rem;
  line-height: 1;
}

.map-pin-emoji span {
  display: block;
  transform: rotate(45deg);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  box-shadow:
    inset 0 -1px 0 rgba(15, 23, 42, 0.08),
    0 1px 2px rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
}

.map-pin-emoji::after {
  content: '';
  position: absolute;
  inset: auto 8px 8px auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111827;
  opacity: 0.12;
}

.map-user-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.45);
}

.leaflet-popup-content-wrapper.map-popup-shell {
  padding: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.leaflet-popup-tip.map-popup-tip {
  background: #fff;
  box-shadow: -2px 2px 10px rgba(15, 23, 42, 0.08);
}

.leaflet-popup-content.map-popup-content {
  margin: 0;
  min-width: 0;
}

.leaflet-container a.leaflet-popup-close-button.map-popup-close {
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #6b7280;
  background: rgba(243, 244, 246, 0.95);
  font-size: 20px;
  line-height: 26px;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}

.leaflet-container a.leaflet-popup-close-button.map-popup-close:hover {
  color: #111827;
  background: #e5e7eb;
}

.map-popup {
  font-family: 'Poppins', sans-serif;
  min-width: 14rem;
  max-width: 15.5rem;
  padding: 1rem;
}

.map-popup strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.map-popup-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.map-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.map-popup-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.52rem;
  border-radius: 10px;
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.2;
  color: #4f5d58;
  background: #f3f7f5;
  border: 1px solid rgba(26, 167, 158, 0.12);
}

.map-popup-price {
  margin-bottom: 0.8rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.map-popup-price strong {
  display: inline;
  margin: 0;
  color: var(--leaf);
  font-size: 1.08rem;
  font-weight: 800;
}

.map-popup-link,
.map-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--surface);
  background: var(--btn-green-bg);
  box-shadow: var(--btn-green-shadow);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

.map-popup-link:hover,
.map-popup-cta:hover {
  text-decoration: none;
  opacity: 0.92;
}

.map-popup-link:active,
.map-popup-cta:active {
  transform: scale(0.98);
}

/* Leaflet fuerza color azul en todos los <a> del contenedor */
.leaflet-container .map-popup a.map-popup-cta,
.leaflet-container .map-popup a.map-popup-cta:hover,
.leaflet-container .map-popup a.map-popup-cta:visited,
.leaflet-container .map-popup a.map-popup-cta:focus {
  color: #fff;
  text-decoration: none;
}

@media (min-width: 640px) {
  .map-modal {
    align-items: center;
    padding: 1.5rem;
  }

  .map-modal-panel {
    border-radius: 20px;
    height: min(82vh, 680px);
  }
}

/* ── Header: brand green, tono suave (páginas internas) ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(140deg, #2E8B57 0%, #1AA79E 55%, #22B8C4 100%);
  color: var(--surface);
  padding: 1.15rem var(--shell-pad) 1.35rem;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  box-shadow: 0 6px 28px rgba(26, 167, 158, 0.22);
  overflow: hidden;
  position: sticky;
}

.app-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -50px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(139, 197, 63, 0.28);
  filter: blur(6px);
  pointer-events: none;
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: -70px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(34, 184, 196, 0.22);
  pointer-events: none;
}

.app-header > * {
  position: relative;
  z-index: 1;
}

.app-header.compact {
  padding-bottom: 0.9rem;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
}

.logo-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-auth {
  justify-self: center;
  gap: 0.5rem;
}

.page-header-center {
  text-align: center;
}

.business-auth-header {
  background: linear-gradient(165deg, #2A3230 0%, #1A2320 100%);
}

.top-actions {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.top-actions.in-header {
  margin-bottom: 0.75rem;
}

.top-actions.over-hero {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 1.35rem);
  left: var(--shell-pad);
  right: var(--shell-pad);
  width: auto;
  z-index: 20;
}

.top-actions.over-hero > .icon-button:first-child {
  grid-column: 1;
}

.top-actions.over-hero > .icon-button:last-child {
  grid-column: 3;
  justify-self: end;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, transform 0.15s;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.icon-button:active {
  transform: scale(0.96);
}

.over-hero .icon-button {
  color: var(--green-d);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(28, 92, 46, 0.12);
  box-shadow: var(--shadow-sm);
}

.over-hero .icon-button:hover {
  background: var(--surface);
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-zone {
  font-size: 0.72rem;
  opacity: 0.72;
  font-weight: 500;
}

.brand-tag {
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.zone-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--surface);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.18s;
  flex-shrink: 0;
}

.zone-pill:hover {
  background: rgba(255, 255, 255, 0.28);
}

.zone-pill-text {
  max-width: 9ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.header-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--surface);
  white-space: nowrap;
}

.header-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.header-sub {
  font-size: 0.84rem;
  opacity: 0.75;
  margin-top: 0.25rem;
  font-weight: 400;
  max-width: 32ch;
}

/* ── Main content area ── */
.app-main {
  padding: 1rem var(--shell-pad) calc(var(--nav-h) + var(--safe-bottom) + 1.25rem);
}

.app-main.no-nav {
  padding-bottom: 1.5rem;
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}

.filter-bar .form-select {
  font-size: 0.88rem;
  padding: 0.65rem 0.9rem;
}

/* Chips */
.chip-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.35rem 0 0.85rem;
  margin: 0 calc(var(--shell-pad) * -0.25);
  padding-left: calc(var(--shell-pad) * 0.25);
  padding-right: calc(var(--shell-pad) * 0.25);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.chip-scroll::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink2);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--green-l);
  color: var(--green);
  background: var(--green-tint);
}

.chip.on {
  background: var(--green-xl);
  border-color: rgba(28, 92, 46, 0.2);
  color: var(--green);
  font-weight: 600;
}

.chip-ico {
  margin-right: 0.2rem;
}

.filters-sticky {
  position: sticky;
  top: 0;
  z-index: 90;
  margin: -0.25rem calc(var(--shell-pad) * -1) 0.75rem;
  padding: 0.65rem var(--shell-pad) 0.35rem;
  background: rgba(249, 248, 245, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.zone-field .form-label {
  margin-bottom: 0.25rem;
}

.results-meta {
  font-size: 0.78rem;
  color: var(--ink3);
  margin-bottom: 0.65rem;
  font-weight: 500;
}

.save-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-xl);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.offer-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin-top: 0.1rem;
}

.stock-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ink3);
  background: var(--border-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.stock-tag.urgent {
  color: #9A4A12;
  background: #FFF0E5;
}

.card-chevron {
  align-self: center;
  margin-right: 0.5rem;
  color: var(--ink3);
  opacity: 0.35;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.offer-card .card-chevron {
  display: grid;
}

.empty-icon {
  font-size: 2.75rem;
  margin-bottom: 0.65rem;
  opacity: 0.9;
}

.empty-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

/* Toast */
.app-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 0.75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  max-width: min(92vw, 360px);
  width: calc(100% - 2rem);
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.app-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.app-toast.ok {
  background: var(--green-d);
}

/* Nav polish */
.nav-item {
  position: relative;
  min-height: 44px;
}

.nav-item.on::after {
  content: '';
  position: absolute;
  top: 0.35rem;
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
}

.nav-item:focus-visible,
.icon-button:focus-visible,
.chip:focus-visible,
.btn:focus-visible,
.menu-item:focus-visible,
.order-card-link:focus-visible {
  outline: 2px solid var(--green-l);
  outline-offset: 2px;
}

.btn.is-loading {
  opacity: 0.85;
  cursor: wait;
}

/* Orders */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.order-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: var(--surface);
  border-radius: var(--r);
  padding: 0.9rem 0.85rem 0.9rem 1rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.18s, transform 0.15s;
}

.order-card-link:hover {
  box-shadow: var(--shadow);
}

.order-card-link:active {
  transform: scale(0.99);
}

.order-card-main {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: 0;
}

.order-card-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.order-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.order-card-meta,
.order-card-time {
  font-size: 0.74rem;
  color: var(--ink3);
}

.order-card-time {
  margin-top: 0.2rem;
  color: var(--ink2);
}

.order-card-side {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

/* Profile */
.profile-hero {
  text-align: center;
  padding: 1.25rem 1rem 1.5rem;
  margin-bottom: 0.75rem;
}

.avatar-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-xl), #DCE8DF);
  color: var(--green);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
  border: 2px solid rgba(28, 92, 46, 0.12);
}

.profile-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.profile-email {
  color: var(--ink3);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.profile-zone {
  color: var(--green);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
}

.menu-item:hover {
  background: var(--green-tint);
}

.menu-ico {
  font-size: 1.2rem;
  width: 1.6rem;
  text-align: center;
}

.menu-text {
  flex: 1;
  min-width: 0;
}

.menu-title {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

.menu-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--ink3);
  margin-top: 0.1rem;
}

.profile-logout {
  margin-top: 1rem;
}

/* Offer detail */
.urgency-banner {
  background: #FFF0E5;
  color: #9A4A12;
  border: 1px solid #F5D8C0;
  border-radius: var(--r);
  padding: 0.7rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.save-callout {
  font-size: 0.85rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.info-card {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 0.75rem 0.8rem;
}

.info-card-wide {
  grid-column: 1 / -1;
}

.info-card-ico {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.info-card-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink3);
  font-weight: 600;
}

.info-card-value {
  display: block;
  font-size: 0.82rem;
  color: var(--ink2);
  margin-top: 0.15rem;
  line-height: 1.4;
}

.detail-desc {
  font-size: 0.9rem;
  color: var(--ink2);
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.check-list {
  list-style: none;
  margin-bottom: 1rem;
}

.check-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  font-size: 0.88rem;
  color: var(--ink2);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.trust-pill {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink2);
  background: var(--green-xl);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.88rem;
}

.auth-footer + .auth-footer {
  margin-top: 0.75rem;
}

/* Offer grid: 1 col mobile → multi col desktop */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.offer-card {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 12px rgba(26, 35, 32, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  gap: 0;
}

.offer-card.featured {
  border-color: rgba(217, 184, 74, 0.5);
  box-shadow: 0 4px 22px rgba(217, 184, 74, 0.14);
}

.offer-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.offer-card:active {
  transform: scale(0.99);
}

.offer-thumb {
  width: 100px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  position: relative;
  overflow: hidden;
  align-self: stretch;
}

.offer-thumb.has-image {
  background: var(--border-soft);
}

.offer-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-thumb-emoji {
  position: relative;
  z-index: 0;
  line-height: 1;
}

/* Tonos pastel sutiles por categoría */
.offer-thumb.bakery { background: linear-gradient(145deg, #F3E8D8 0%, #EBDCC8 100%); }
.offer-thumb.cafe   { background: linear-gradient(145deg, #EDE4DF 0%, #E2D6D0 100%); }
.offer-thumb.lunch  { background: linear-gradient(145deg, #E4EDE6 0%, #D8E8DC 100%); }
.offer-thumb.default { background: linear-gradient(145deg, var(--green-xl) 0%, #E0EBE3 100%); }

.discount-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: var(--btn-green-bg);
  color: var(--surface);
  font-family: 'Poppins', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  box-shadow: var(--btn-green-shadow);
}

.offer-body {
  padding: 0.75rem 0.5rem 0.75rem 0.85rem;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
}

.offer-header {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
}

.offer-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-meta {
  font-size: 0.72rem;
  color: var(--ink3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.offer-meta > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Business logo / emoji mark */
.biz-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green-xl);
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.biz-mark-sm {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.biz-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.biz-mark-emoji {
  font-size: 1rem;
  line-height: 1;
}

.biz-mark-sm .biz-mark-emoji {
  font-size: 0.82rem;
}

.detail-sub-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Logo upload */
.logo-upload {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.logo-upload-inline {
  align-items: center;
}

.logo-upload-preview {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--green-xl);
  border: 1px dashed rgba(28, 92, 46, 0.22);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 1.75rem;
}

.logo-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-upload-body {
  flex: 1;
  min-width: 0;
}

.logo-upload-input {
  width: 100%;
  font-size: 0.82rem;
}

.logo-upload-hint {
  font-size: 0.74rem;
  color: var(--ink3);
  margin-top: 0.35rem;
  line-height: 1.45;
}

.logo-card {
  margin-bottom: 1rem;
}

.biz-location-group {
  margin-bottom: 1rem;
}

.biz-location-head {
  margin-bottom: 0.5rem;
}

.biz-location-hint {
  font-size: 0.74rem;
  color: var(--ink3);
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.biz-location-map {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: #e8ede9;
}

.biz-location-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.biz-location-coords {
  font-size: 0.72rem;
  color: var(--ink3);
  font-variant-numeric: tabular-nums;
}

.biz-location-fallback {
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--ink3);
  margin: 0;
}

.order-location {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  text-align: left;
}

.order-location-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.order-location-pin {
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.order-location-label {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink3);
}

.order-location-address {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.order-location-zone {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--ink3);
}

.order-pickup-map {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  background: #e8ede9;
}

.order-nav-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.order-nav-btn {
  flex: 1;
  justify-content: center;
  min-width: 0;
  font-size: 0.74rem;
  padding: 0.5rem 0.65rem;
}

@media (max-width: 380px) {
  .order-nav-btn {
    font-size: 0.7rem;
    padding: 0.48rem 0.5rem;
  }
}

/* Featured offers */
.featured-section {
  margin-bottom: 1.35rem;
}

.featured-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
  padding: 0 var(--shell-pad);
}

.featured-heading {
  margin-bottom: 0;
}

.featured-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.featured-sub {
  font-size: 0.78rem;
  color: var(--ink3);
  margin-top: 0.15rem;
}

.featured-scroll {
  gap: 0.75rem;
  padding: 0.15rem var(--shell-pad) 0.35rem;
}

.featured-scroll .offer-card {
  min-width: min(88vw, 320px);
  flex-shrink: 0;
}

.section-feed-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.featured-badge {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #F5EDD4, #E8C96A);
  color: #6B4F12;
  border: 1px solid rgba(217, 184, 74, 0.45);
  white-space: nowrap;
  line-height: 1.2;
}

.featured-badge-sm {
  margin-top: 0.1rem;
}

.featured-badge-inline {
  position: static;
  display: inline-block;
  margin-bottom: 0.55rem;
}

.featured-banner {
  background: linear-gradient(135deg, #FFF8E8, #F5EDD4);
  color: #7A5A12;
  border: 1px solid #E8D4A0;
  border-radius: var(--r);
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.feature-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  margin: 0.5rem 0 1rem;
  border-radius: var(--r);
  border: 1px solid rgba(217, 184, 74, 0.35);
  background: linear-gradient(145deg, #FFFCF4, #FFF8E8);
  cursor: pointer;
}

.feature-option-input {
  margin-top: 0.2rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.feature-option-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature-option-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.feature-option-desc {
  font-size: 0.78rem;
  color: var(--ink2);
  line-height: 1.45;
}

.feature-commission-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8A7020;
  background: rgba(217, 184, 74, 0.18);
  border: 1px solid rgba(217, 184, 74, 0.28);
}

.feature-commission-vs {
  font-weight: 500;
  color: var(--ink3);
}

.feature-commission-notice {
  margin: -0.35rem 0 1rem;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #7A6520;
  background: #FFF8E8;
  border: 1px solid rgba(217, 184, 74, 0.35);
}

.feature-commission-notice[hidden] {
  display: none !important;
}

.feature-action-form {
  margin-top: 0.85rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.publish-hero {
  margin-bottom: 1rem;
}

.publish-hero-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.publish-hero-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--ink3);
  line-height: 1.45;
}

.publish-section {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.publish-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.publish-section-title {
  margin: 0 0 0.65rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--green);
}

.publish-section-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.76rem;
  color: var(--ink3);
  line-height: 1.4;
}

.publish-range-summary {
  margin: -0.15rem 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--leaf);
}

.publish-range-summary.is-error {
  color: #b45309;
}

.publish-textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.publish-submit {
  margin-top: 0.35rem;
}

.offer-image-preview {
  width: 88px;
  height: 88px;
  border-radius: 14px;
}

.offer-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.price-now {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
  letter-spacing: -0.02em;
}

.price-was {
  font-size: 0.72rem;
  color: var(--ink3);
  text-decoration: line-through;
}

.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--pastel-gold-tag-text);
  background: var(--pastel-gold-tag-bg);
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--pastel-gold-tag-border);
  width: fit-content;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  width: 100%;
}

.btn:active { transform: scale(0.98); }

.btn-green,
.py-action-btn {
  background: var(--btn-green-bg);
  color: var(--surface);
  box-shadow: var(--btn-green-shadow);
  border: none;
}

.btn-green:hover,
.py-action-btn:hover {
  opacity: 0.92;
}

.btn-gold {
  background: var(--gold-soft);
  color: var(--green-d);
  border: 1px solid var(--gold-muted);
}

.btn-gold:hover {
  background: var(--gold-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid rgba(28, 92, 46, 0.35);
}

.btn-ghost:hover {
  background: var(--green-tint);
}

.btn-sm {
  padding: 0.52rem 1rem;
  font-size: 0.82rem;
  width: auto;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 200;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  text-decoration: none;
  color: var(--ink3);
  font-size: 0.62rem;
  font-weight: 500;
  padding-top: 0.45rem;
  transition: color 0.15s;
}

.nav-item .ico {
  line-height: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  opacity: 1;
}

.nav-item .nav-art {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.nav-item.on {
  color: var(--green);
  font-weight: 600;
}

.nav-item.on .ico {
  opacity: 1;
}

/* Detail page */
.detail-hero {
  height: min(42vw, 200px);
  min-height: 160px;
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 12vw, 4.5rem);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  margin: 0 calc(var(--shell-pad) * -1) 0;
  overflow: hidden;
}

.detail-hero .offer-thumb {
  width: 100%;
  height: 100%;
  min-height: 160px;
  font-size: clamp(3rem, 12vw, 4.5rem);
}

.detail-panel {
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: -20px;
  padding: 1.35rem var(--shell-pad) 2rem;
  position: relative;
  border: 1px solid var(--border-soft);
  border-bottom: none;
  box-shadow: 0 -4px 24px rgba(26, 35, 32, 0.04);
}

.detail-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
}

.detail-sub {
  color: var(--ink3);
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.detail-page {
  position: relative;
  padding-top: calc(env(safe-area-inset-top, 0px) + 0.35rem);
  padding-bottom: 6rem;
}

.detail-hero-full {
  width: calc(100% + var(--shell-pad) * 2);
  margin-left: calc(var(--shell-pad) * -1);
  margin-right: calc(var(--shell-pad) * -1);
  border-radius: 0;
}

.price-now-lg {
  font-size: clamp(1.35rem, 4vw, 1.6rem);
}

.discount-badge-inline {
  position: static;
  display: inline-block;
  margin-left: 0.25rem;
}

.price-block {
  margin-bottom: 1rem;
}

.info-list {
  list-style: none;
  margin: 1rem 0;
}

.info-list li {
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--ink2);
  border-bottom: 1px solid var(--border-soft);
}

.info-list li:last-child { border: none; }

.sticky-cta {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bottom));
  left: 0;
  right: 0;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.75rem var(--shell-pad);
  background: linear-gradient(to top, var(--cream) 70%, transparent);
  z-index: 50;
}

.sticky-cta.no-nav {
  bottom: var(--safe-bottom);
}

/* Checkout / método de pago */
.checkout-page {
  padding-bottom: 6rem;
}

.checkout-header {
  padding: 0.5rem var(--shell-pad) 0.85rem;
}

.checkout-summary {
  margin: 0 var(--shell-pad) 1rem;
}

.checkout-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-bag-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.checkout-bag-meta {
  font-size: 0.78rem;
  color: var(--ink3);
  margin-top: 0.2rem;
}

.checkout-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: var(--green);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pay-methods {
  border: none;
  margin: 0 var(--shell-pad) 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pay-methods .section-title {
  margin-bottom: 0.35rem;
}

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pay-option:has(input:checked),
.pay-option-on:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}

.pay-option input {
  margin-top: 0.2rem;
  accent-color: var(--green);
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.pay-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.pay-option-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.pay-option-desc {
  font-size: 0.78rem;
  color: var(--ink2);
  line-height: 1.35;
}

.pay-option-badge {
  display: inline-block;
  margin-top: 0.35rem;
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink3);
  background: var(--border-soft);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.pay-option-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #FAFAFA;
}

.pay-option-disabled input {
  pointer-events: none;
}

.checkout-hint {
  margin: 0 var(--shell-pad) 1rem;
}

/* QR */
.qr-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  margin: 1rem 0;
}

.qr-img {
  width: min(180px, 50vw);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  border-radius: var(--r-sm, 12px);
}

.pickup-code {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

/* Forms */
.form-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 1.25rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--green-l);
  box-shadow: 0 0 0 3px var(--green-tint);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-ok {
  background: var(--green-xl);
  color: var(--green-d);
  border-color: rgba(28, 92, 46, 0.12);
}

.alert-err {
  background: #FDF2F2;
  color: #9B2C2C;
  border-color: rgba(198, 40, 40, 0.12);
}

.alert-info {
  background: var(--gold-soft);
  color: var(--ink2);
  border-color: var(--gold-muted);
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: var(--ink3);
}

.empty-state .emoji {
  font-size: 2.75rem;
  margin-bottom: 0.65rem;
  opacity: 0.9;
}

.empty-state .btn {
  margin-top: 1rem;
}

.empty-hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.biz-app-link {
  color: var(--gold-soft) !important;
  opacity: 0.95;
}

/* Business panel */
.biz-header {
  background: linear-gradient(165deg, #2A3230 0%, #1A2320 100%);
  color: var(--surface);
  padding: 1.15rem var(--shell-pad);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

.biz-tabs {
  display: flex;
  gap: 0.45rem;
  padding: 0.7rem var(--shell-pad);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.biz-tabs::-webkit-scrollbar { display: none; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1rem 0;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 1rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--ink3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 0.15rem;
  letter-spacing: -0.02em;
}

.stat-value.gold {
  color: #9A7B2E;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--surface);
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: var(--btn-green-bg);
  color: var(--surface);
  box-shadow: var(--btn-green-shadow);
}

.status-ready,
.status-done,
.status-pending,
.status-cancelled {
  background: var(--btn-green-bg);
  color: var(--surface);
  box-shadow: var(--btn-green-shadow);
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 1.15rem 0 0.65rem;
  color: var(--ink);
}

.text-link {
  color: var(--green-l);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.85rem;
}

.text-link:hover {
  color: var(--green);
  text-decoration: underline;
}

.validation-input {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── Tablet (640px+) ── */
@media (min-width: 640px) {
  :root {
    --shell-pad: 1.25rem;
    --content-max: 600px;
  }

  body {
    background: #EEF0EE;
  }

  .app-shell {
    box-shadow: var(--shadow-lg);
    min-height: 100dvh;
  }

  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  .sticky-cta {
    left: 50%;
    transform: translateX(-50%);
  }

  .filters-sticky {
    top: 0;
  }

  .offer-card {
    align-items: stretch;
  }

  .offer-card .card-chevron {
    display: flex;
    align-items: center;
  }

  .offer-thumb {
    width: 100px;
  }

  .filter-bar {
    flex-direction: row;
    align-items: center;
  }

  .filter-bar .form-group {
    margin-bottom: 0;
    flex: 0 0 160px;
  }
}

/* ── Desktop (900px+) ── */
@media (min-width: 900px) {
  :root {
    --content-max: 820px;
    --shell-pad: 1.5rem;
  }

  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .offer-card {
    flex-direction: column;
  }

  .offer-thumb {
    width: 100%;
    height: 120px;
    font-size: 2.75rem;
  }

  .offer-body {
    padding: 0.9rem 1rem 1rem;
  }

  .offer-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .chip-scroll {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .stat-grid {
    gap: 1rem;
  }
}

/* ── Wide desktop (1200px+) ── */
@media (min-width: 1200px) {
  :root {
    --content-max: 960px;
  }

  .offer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Admin panel ── */
.admin-auth-header {
  background: linear-gradient(140deg, #1A2E28 0%, #0F1A16 100%);
}

.admin-header {
  background: linear-gradient(140deg, #1A2E28 0%, #0F1A16 100%);
  color: var(--surface);
  padding: 1rem var(--shell-pad) 0.85rem;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  box-shadow: 0 4px 24px rgba(15, 26, 22, 0.25);
}

.admin-header .brand-icon {
  background: rgba(255, 255, 255, 0.92);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-link-light {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
}

.admin-logout-form {
  margin: 0;
}

.admin-logout-btn {
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.25);
  padding: 0.35rem 0.65rem;
}

.admin-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.65rem var(--shell-pad) 0.85rem;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-main {
  padding-top: 0.5rem;
}

.admin-page-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}

.admin-page-sub {
  font-size: 0.82rem;
  color: var(--ink3);
  margin-bottom: 1rem;
}

.admin-page-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.admin-filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  overflow: visible;
}

.admin-filter-bar .form-group {
  margin: 0;
  overflow: visible;
  position: relative;
}

.admin-filter-grow {
  grid-column: 1 / -1;
}

.admin-filter-btn {
  align-self: end;
  white-space: nowrap;
}

.admin-business-search-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
}

.admin-business-search-bar .form-group {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-business-search-bar .admin-filter-btn {
  flex: 0 0 auto;
}

.admin-filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  align-self: end;
}

.admin-filter-bar .admin-pdf-btn {
  min-height: 2.15rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.admin-kpi-grid {
  margin-bottom: 1rem;
}

.admin-create-card {
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .admin-filter-bar {
    grid-template-columns: 1fr 1fr 1.4fr auto;
  }

  .admin-filter-grow {
    grid-column: auto;
  }

  .admin-business-search-bar {
    display: flex;
    grid-template-columns: none;
  }
}

.admin-stat-grid {
  margin-bottom: 1.25rem;
}

.stat-foot {
  font-size: 0.72rem;
  color: var(--ink3);
  margin-top: 0.25rem;
}

.admin-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.admin-quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}

.admin-quick-card:hover {
  box-shadow: var(--shadow);
}

.admin-quick-ico {
  font-size: 1.35rem;
}

.admin-quick-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
}

.admin-quick-sub {
  font-size: 0.72rem;
  color: var(--ink3);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.admin-card-compact {
  padding: 0.85rem 1rem;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.admin-card-head .offer-thumb {
  width: 56px;
  height: 56px;
  min-height: 0;
  font-size: 1.5rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.admin-card-title-wrap {
  flex: 1;
  min-width: 0;
}

.admin-card-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}

.admin-card-meta {
  font-size: 0.76rem;
  color: var(--ink3);
  margin-top: 0.1rem;
}

.admin-card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  flex-shrink: 0;
}

.admin-card-body {
  margin-bottom: 0.65rem;
}

.admin-card-line {
  font-size: 0.8rem;
  color: var(--ink2);
  margin-bottom: 0.2rem;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.admin-card-actions form {
  margin: 0;
}

.admin-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-top: 0.35rem;
}

.admin-tag.gold {
  background: var(--gold-soft);
  color: #6B4F12;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  background: var(--surface);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.admin-table th,
.admin-table td {
  padding: 0.7rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.admin-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink3);
  background: var(--cream);
}

.admin-table-strong {
  font-weight: 600;
  color: var(--ink);
}

.admin-table-muted {
  font-size: 0.72rem;
  color: var(--ink3);
}

@media (min-width: 640px) {
  .admin-quick-links {
    grid-template-columns: repeat(4, 1fr);
  }

  .admin-stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── About teaser (feed) ── */
.about-teaser {
  position: relative;
  margin-top: 1.5rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(28, 92, 46, 0.1);
  background: linear-gradient(155deg, #F7FBF8 0%, #EEF6F1 55%, #E6F0EA 100%);
  box-shadow: 0 4px 20px rgba(26, 35, 32, 0.05);
}

.about-teaser-glow {
  position: absolute;
  top: -50px;
  right: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 167, 158, 0.12) 0%, transparent 68%);
  pointer-events: none;
}

.about-teaser-inner {
  position: relative;
  padding: 1.2rem 1.05rem 1.25rem;
}

.about-teaser-head {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.about-teaser-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.about-teaser-logo .logo-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-teaser-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal);
  margin-bottom: 0.2rem;
}

.about-teaser-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--green-d);
}

.about-teaser-text {
  font-size: 0.84rem;
  line-height: 1.58;
  color: var(--ink2);
  margin-bottom: 0.9rem;
}

.about-teaser-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.05rem;
  padding-left: 0.15rem;
}

.about-stat {
  position: relative;
  padding-left: 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink2);
  line-height: 1.4;
}

.about-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  transform: translateY(-50%);
}

.about-teaser-btn {
  width: 100%;
}

/* ── About page ── */
.about-page {
  padding-top: 0.35rem;
}

.about-intro {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.1rem 1.2rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.about-intro-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 16px;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.about-intro-mark .logo-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-intro-lead {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.about-intro-body {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink2);
  text-align: left;
}

.about-block {
  margin-bottom: 1.35rem;
}

.about-block-muted {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.1rem 1rem 1.15rem;
}

.about-block-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

.about-block-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.32;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.about-block-text {
  font-size: 0.87rem;
  line-height: 1.62;
  color: var(--ink2);
}

.about-metrics {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.95rem;
}

.about-metric {
  background: var(--green-xl);
  border: 1px solid rgba(28, 92, 46, 0.08);
  border-radius: var(--r);
  padding: 0.8rem 0.9rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.about-metric-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--green);
  line-height: 1;
  min-width: 2.2rem;
}

.about-metric-label {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink2);
}

.about-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: about-step;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.about-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.about-steps li:last-child {
  border-bottom: none;
}

.about-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--leaf), var(--teal));
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 0.05rem;
}

.about-steps strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.18rem;
}

.about-steps p {
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--ink3);
  margin: 0;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.about-value {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 0.95rem 1rem 0.95rem 1.05rem;
  border-left: 3px solid var(--border);
}

.about-value-accent {
  background: linear-gradient(145deg, #FAFCFB, #F2F8F4);
  border-left-color: var(--teal);
}

.about-value h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-d);
  margin-bottom: 0.28rem;
}

.about-value p {
  font-size: 0.82rem;
  line-height: 1.52;
  color: var(--ink2);
  margin: 0;
}

.about-cta {
  text-align: center;
  background: linear-gradient(150deg, #1B5E3A 0%, #267A4A 42%, #1AA79E 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 1.4rem 1.1rem 1.3rem;
  margin-top: 0.25rem;
  box-shadow: 0 8px 28px rgba(28, 92, 46, 0.18);
}

.about-cta-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.about-cta-text {
  font-size: 0.83rem;
  line-height: 1.55;
  opacity: 0.92;
  margin-bottom: 1.05rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.about-cta .btn-gold {
  width: 100%;
  margin-bottom: 0.55rem;
}

.about-cta-back {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.28);
}

.about-cta-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Legal pages ── */
.legal-page {
  padding-top: 0.35rem;
}

.legal-doc {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 1.1rem 1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.legal-intro {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink2);
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-soft);
}

.legal-section {
  margin-bottom: 1.1rem;
}

.legal-section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-d);
  margin-bottom: 0.4rem;
}

.legal-section p {
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--ink2);
  margin-bottom: 0.45rem;
}

.legal-list {
  margin: 0.35rem 0 0 1.1rem;
  font-size: 0.84rem;
  line-height: 1.58;
  color: var(--ink2);
}

.legal-list li {
  margin-bottom: 0.35rem;
}

.legal-crosslinks {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink3);
  margin-top: 1rem;
}

.legal-mini-links {
  text-align: center;
  font-size: 0.72rem;
  margin-top: 0.75rem;
  color: var(--ink3);
}

.legal-mini-links a {
  color: var(--ink3);
  text-decoration: none;
}

.legal-mini-links a:hover {
  color: var(--green);
  text-decoration: underline;
}

.legal-mini-links span {
  margin: 0 0.35rem;
  opacity: 0.5;
}

/* ── Forms: checkbox + errors ── */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink2);
  margin: 0.75rem 0 1rem;
  cursor: pointer;
}

.form-check input {
  margin-top: 0.2rem;
  accent-color: var(--green);
  flex-shrink: 0;
}

.field-error {
  font-size: 0.78rem;
  color: #B42318;
  margin-top: 0.25rem;
}

.dev-reset-link {
  word-break: break-all;
}

/* ── Share offer ── */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink2);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.share-btn:hover {
  border-color: var(--teal);
  color: var(--green);
  background: var(--green-xl);
}

.share-btn-wa {
  border-color: rgba(37, 211, 102, 0.35);
  color: #1A7A3E;
  background: #F0FBF4;
}

.share-btn-wa:hover {
  background: #E2F7EA;
  border-color: rgba(37, 211, 102, 0.55);
  color: #146B32;
}

@media (min-width: 640px) {
  .about-teaser-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }

  .about-metrics {
    grid-template-columns: 1fr;
  }

  .about-teaser-btn {
    width: auto;
  }

  .about-intro {
    text-align: left;
  }

  .about-intro-mark {
    margin: 0 0 0.85rem;
  }

  .about-values {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.65rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Native WebView shell (Android / iOS) */
html.is-native-app {
  -webkit-tap-highlight-color: transparent;
}

html.is-native-app .py-header-sticky {
  padding-top: env(safe-area-inset-top, 0px);
}

html.is-native-app .bottom-nav {
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 8px);
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1rem 0;
}

.admin-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.admin-compose-card {
  margin-bottom: 1.25rem;
}

.admin-hint {
  font-size: 0.82rem;
  color: var(--ink2);
  margin-bottom: 1rem;
}

.admin-hint-warn {
  color: #9A5B00;
}

.admin-inline-form {
  margin-top: 0.5rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--ink3);
  margin-top: 0.35rem;
}
