/* ============================================================
   MEQ Intermediações — Mobile-First Styles
   ============================================================ */

:root {
  --meq-primary: #1B2E4A;
  --meq-accent:  #2C6DB0;
  --meq-primary-light: #243d61;
  --meq-accent-light:  #3a84d1;
  --meq-bg:      #f4f6f9;
  --meq-card-bg: #ffffff;
  --meq-border:  #e2e8f0;
  --meq-text:    #1a202c;
  --meq-muted:   #64748b;
  --touch-min:   48px;
}

/* Reset mobile-friendly */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--meq-bg);
  color: var(--meq-text);
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Navbar ---------- */
.meq-navbar {
  background-color: var(--meq-primary);
  box-shadow: none; /* ← REMOVE SOMBRA */
  padding: .5rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1050;
  border-bottom: 1px solid rgba(255,255,255,0.1); /* ← ADICIONA BORDA SUTIL */
}
.meq-navbar .navbar-brand { padding: 0; }
.meq-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.4);
  padding: .4rem .65rem;
  min-height: var(--touch-min);
}
.meq-navbar .navbar-toggler-icon { filter: invert(1); }
.meq-navbar .nav-link {
  color: rgba(255,255,255,.9) !important;
  padding: .65rem 1rem;
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
  font-size: .95rem;
}
.meq-navbar .nav-link:hover { opacity: .8; }
.meq-navbar .nav-link.active { font-weight: 700; }
.meq-navbar .dropdown-menu { border: none; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.meq-navbar .dropdown-item { min-height: 44px; display: flex; align-items: center; gap: .5rem; }

/* ---------- Hero ---------- */
.meq-hero {
  background: linear-gradient(135deg, var(--meq-primary) 0%, var(--meq-accent) 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.meq-hero h1 { font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
.meq-hero .lead { font-size: .95rem; opacity: .85; }
@media (min-width: 768px) {
  .meq-hero { padding: 4rem 0 3rem; }
  .meq-hero h1 { font-size: 2.2rem; }
  .meq-hero .lead { font-size: 1.1rem; }
}

/* ---------- Section titles ---------- */
.section-title {
  font-weight: 700;
  color: var(--meq-primary);
  border-left: 4px solid var(--meq-accent);
  padding-left: .75rem;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}
@media (min-width: 768px) { .section-title { font-size: 1.3rem; } }

/* ---------- Listing Cards ---------- */
.listing-card {
  border: 1px solid var(--meq-border);
  border-radius: 12px;
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
  background: var(--meq-card-bg);
}
.listing-card:hover {
  box-shadow: 0 6px 24px rgba(27,46,74,.15);
  transform: translateY(-2px);
}
.listing-card-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f0f4f8;
}
.listing-card-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #f0f4f8, #e8eef5);
}
@media (min-width: 768px) {
  .listing-card-img, .listing-card-placeholder { height: 210px; }
}
.listing-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--meq-primary);
  margin-bottom: .2rem;
}

/* ---------- Petisco (teaser para não-logados) ---------- */
.petisco-overlay {
  position: relative;
  overflow: hidden;
}
.petisco-price-blur {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}
.petisco-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(27,46,74,.08);
  color: var(--meq-primary);
  border: 1px dashed var(--meq-border);
  border-radius: 6px;
  padding: .25rem .6rem;
  font-size: .8rem;
  font-weight: 600;
}
.petisco-banner {
  background: linear-gradient(90deg, var(--meq-primary), var(--meq-accent));
  color: #fff;
  padding: .75rem 1rem;
  text-align: center;
  font-size: .875rem;
  position: sticky;
  top: 60px;
  z-index: 100;
}
.petisco-banner a { color: #fff; font-weight: 700; text-decoration: underline; }
.btn-meq-register {
  background: linear-gradient(135deg, var(--meq-primary), var(--meq-accent));
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  min-height: var(--touch-min);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: opacity .2s;
}
.btn-meq-register:hover { opacity: .9; }

/* ---------- Badges ---------- */
.meq-badge-sale { background-color: var(--meq-accent); color: #fff; }
.meq-badge-purchase { background-color: #e07b00; color: #fff; }

/* ---------- WhatsApp Button ---------- */
.btn-meq-whatsapp {
  background-color: #25d366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  min-height: var(--touch-min);
  transition: background-color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  font-size: .9rem;
}
.btn-meq-whatsapp:hover { background-color: #1da851; color: #fff; }

/* ---------- Primary Buttons ---------- */
.btn-meq {
  background-color: var(--meq-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  min-height: 44px;
}
.btn-meq:hover { background-color: var(--meq-primary-light); color: #fff; }
.btn-meq-accent {
  background-color: var(--meq-accent);
  color: #fff; border: none; border-radius: 8px; font-weight: 600; min-height: 44px;
}
.btn-meq-accent:hover { background-color: var(--meq-accent-light); color: #fff; }

/* ---------- Filters ---------- */
.filter-card {
  background: var(--meq-card-bg);
  border: 1px solid var(--meq-border);
  border-radius: 12px;
  padding: 1.25rem;
}
.filter-card .form-label {
  font-weight: 600; font-size: .8rem; color: var(--meq-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
/* Mobile: filter como offcanvas */
.filter-mobile-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--meq-card-bg);
  border: 1px solid var(--meq-border);
  border-radius: 8px;
  padding: .6rem 1rem;
  font-weight: 600;
  min-height: var(--touch-min);
  color: var(--meq-text);
  cursor: pointer;
}

/* ---------- Forms Mobile ---------- */
.form-control, .form-select {
  min-height: 44px;
  font-size: 1rem; /* evita zoom no iOS */
  border-radius: 8px;
  border-color: var(--meq-border);
}
.form-control:focus, .form-select:focus {
  border-color: var(--meq-accent);
  box-shadow: 0 0 0 3px rgba(44,109,176,.15);
}
textarea.form-control { min-height: auto; }
.form-check-input { width: 1.2em; height: 1.2em; }

/* ---------- Stats Cards (Admin) ---------- */
.stat-card {
  background: var(--meq-card-bg);
  border: 1px solid var(--meq-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label { color: var(--meq-muted); font-size: .8rem; }

/* ---------- Detail Page ---------- */
.detail-gallery-main {
  width: 100%; height: 260px;
  object-fit: cover; border-radius: 10px;
  border: 1px solid var(--meq-border);
}
@media (min-width: 768px) { .detail-gallery-main { height: 380px; } }
.detail-gallery-thumb {
  width: 72px; height: 54px; object-fit: cover; border-radius: 6px;
  cursor: pointer; border: 2px solid transparent; transition: border-color .2s;
}
.detail-gallery-thumb.active, .detail-gallery-thumb:hover { border-color: var(--meq-accent); }
.detail-info-card {
  background: var(--meq-card-bg);
  border-radius: 12px; padding: 1.25rem;
}
@media (min-width: 768px) { .detail-info-card { padding: 1.75rem; } }
.detail-label { color: var(--meq-muted); font-size: .75rem; text-transform: uppercase; font-weight: 600; letter-spacing: .05em; }
.detail-value { font-weight: 600; }

/* ---------- Auth Card ---------- */
.auth-card {
  max-width: 520px; margin: 1.5rem auto;
  background: var(--meq-card-bg); border: 1px solid var(--meq-border);
  border-radius: 16px; padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(27,46,74,.1);
}
@media (min-width: 768px) { .auth-card { margin: 3rem auto; padding: 2.5rem; } }

/* ---------- Admin Sidebar ---------- */
.oftalmo-sidebar {
  background: linear-gradient(175deg, #1B2E4A 0%, #102038 100%);
  border-radius: 14px;
  padding: 0 0 10px;
  position: sticky;
  top: 1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
  overflow: hidden;
}
.oftalmo-sidebar .sb-header {
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 6px;
  background: rgba(0,0,0,0.15);
}
.oftalmo-sidebar .sb-label {
  color: rgba(255,255,255,0.4);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.oftalmo-sidebar .sb-brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
}
.oftalmo-sidebar .sb-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  margin: 3px 8px;
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  line-height: 1;
}
.oftalmo-sidebar .sb-link i {
  font-size: 19px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.18s;
}
.oftalmo-sidebar .sb-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.oftalmo-sidebar .sb-link:hover i { opacity: 1; }
.oftalmo-sidebar .sb-link.active {
  background: #fff;
  color: #1B2E4A;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(0,0,0,0.22);
}
.oftalmo-sidebar .sb-link.active i { color: #2C6DB0; opacity: 1; }
.oftalmo-sidebar .sb-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 8px 0 4px;
}
.oftalmo-sidebar .sb-footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin: 2px 8px;
  border-radius: 10px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 12.5px;
  transition: background 0.18s, color 0.18s;
}
.oftalmo-sidebar .sb-footer-link i { font-size: 15px; width: 22px; text-align: center; }
.oftalmo-sidebar .sb-footer-link:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); }

/* Admin mobile bottom nav */
.admin-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--meq-primary);
  z-index: 1040;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: .25rem 0 env(safe-area-inset-bottom);
}
.admin-mobile-nav a {
  flex: 1; color: rgba(255,255,255,.7);
  text-decoration: none; text-align: center;
  padding: .4rem .2rem; font-size: .65rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 56px; justify-content: center;
}
.admin-mobile-nav a.active, .admin-mobile-nav a:hover { color: #fff; }
.admin-mobile-nav i { font-size: 1.2rem; }
@media (max-width: 991px) {
  .admin-mobile-nav { display: flex; }
  .admin-content-pad { padding-bottom: 80px !important; }
}

/* ---------- Upload Area ---------- */
.upload-area {
  border: 2px dashed var(--meq-border); border-radius: 12px;
  padding: 1.75rem 1rem; text-align: center; cursor: pointer;
  transition: border-color .2s, background-color .2s;
  min-height: 110px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--meq-accent); background-color: rgba(44,109,176,.05);
}
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .5rem; margin-top: 1rem;
}
.upload-preview-item { position: relative; border-radius: 8px; overflow: hidden; }
.upload-preview-item img { width: 100%; height: 75px; object-fit: cover; }
.upload-preview-item .remove-btn {
  position: absolute; top: 2px; right: 2px;
  background: rgba(220,53,69,.9); color: #fff; border: none;
  border-radius: 4px; width: 22px; height: 22px; font-size: .75rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ---------- Footer ---------- */
.meq-footer {
  background: var(--meq-primary); color: rgba(255,255,255,.7);
  padding: 1.75rem 0; margin-top: 3rem;
}
.meq-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.meq-footer a:hover { color: #fff; }

/* ---------- Page Header ---------- */
.page-header {
  background: var(--meq-card-bg); border-bottom: 1px solid var(--meq-border);
  padding: .875rem 0; margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .page-header { margin-bottom: 2rem; } }

/* ---------- Empty State ---------- */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--meq-muted); }
.empty-state i { font-size: 3rem; margin-bottom: .75rem; display: block; }

/* ---------- Sobre Nós ---------- */
.sobre-hero {
  background: linear-gradient(135deg, var(--meq-primary), var(--meq-accent));
  color: #fff; padding: 3rem 0 2.5rem;
}
.sobre-step {
  background: var(--meq-card-bg); border: 1px solid var(--meq-border);
  border-radius: 12px; padding: 1.5rem; text-align: center; height: 100%;
}
.sobre-step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--meq-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; margin: 0 auto 1rem;
}

/* ---------- Utilities ---------- */
.text-meq { color: var(--meq-primary) !important; }
.bg-meq { background-color: var(--meq-primary) !important; }

.table-hover tbody tr:hover { background-color: rgba(44,109,176,.05); }
/* Tabelas mobile: scroll horizontal */
.table-responsive { -webkit-overflow-scrolling: touch; }

/* Touch feedback */
@media (hover: none) {
  .listing-card:hover { transform: none; box-shadow: none; }
  .btn:active { opacity: .8; transform: scale(.98); }
}

/* Safe area para iPhone com notch */
.meq-navbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.meq-footer { padding-bottom: calc(1.75rem + env(safe-area-inset-bottom)); }

/* Scrollbar mais elegante */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--meq-border); border-radius: 3px; }

/* ---------- Item Type Selector (div-based, sem btn-check do Bootstrap) ---------- */
.item-type-btn {
  border: 2px solid var(--meq-border);
  border-radius: 12px;
  padding: .75rem .5rem;
  text-align: center;
  color: var(--meq-primary);
  background: var(--meq-card-bg);
  cursor: pointer;
  transition: all .18s;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  font-weight: 600;
  font-size: .82rem;
  line-height: 1.3;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  position: relative;
  user-select: none;
}
.item-type-btn:hover {
  border-color: var(--meq-accent);
  color: var(--meq-accent);
  background: rgba(44,109,176,.04);
  box-shadow: 0 2px 8px rgba(44,109,176,.15);
  transform: translateY(-1px);
}
.item-type-btn.selected {
  border-color: var(--meq-accent);
  background: rgba(44,109,176,.1);
  color: var(--meq-accent);
  box-shadow: 0 0 0 3px rgba(44,109,176,.2);
}
.item-type-btn.selected::after {
  content: "✓";
  position: absolute;
  top: 4px; right: 7px;
  font-size: .65rem;
  font-weight: 700;
  color: var(--meq-accent);
}
.item-type-btn i { font-size: 1.4rem; display: block; }

/* ---------- Combo Toggle ---------- */
.combo-toggle-label {
  border: 2px dashed var(--meq-border);
  border-radius: 10px;
  padding: .75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 600;
  color: var(--meq-text);
  transition: border-color .15s, background .15s;
}
.combo-toggle-label:has(input:checked) {
  border-color: var(--meq-accent);
  background: rgba(44,109,176,.05);
  color: var(--meq-accent);
}

/* ---------- Approve / Reject badges ---------- */
.btn-approve { background:#198754; color:#fff; border:none; border-radius:6px; min-height:32px; padding:.25rem .6rem; font-size:.8rem; }
.btn-approve:hover { background:#146c43; color:#fff; }
.btn-reject { background:#dc3545; color:#fff; border:none; border-radius:6px; min-height:32px; padding:.25rem .6rem; font-size:.8rem; }
.btn-reject:hover { background:#b02a37; color:#fff; }

/* ---------- Brand Name ---------- */
.brand-oftalmo { color: #4d9de0 !important; }
.brand-club    { color: inherit; }
.oftalmo-sidebar .sb-brand { color: #fff; }

/* ══════════════════════════════════════════════════════════════
   MEQ 2.0 — Additions
   ══════════════════════════════════════════════════════════════ */

/* ---------- Smart Navbar (hide/show on scroll) ---------- */
.meq-navbar {
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
}
.meq-navbar.nav-hidden  { transform: translateY(-100%); box-shadow: none !important; }
.meq-navbar.nav-visible { transform: translateY(0); }

/* ---------- Navbar Dropdown (rich style) ---------- */
.meq-dropdown {
  border: 1px solid var(--meq-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(27,46,74,.18);
  padding: .5rem;
  min-width: 240px;
}
.meq-dropdown .dropdown-item {
  border-radius: 8px;
  padding: .65rem .85rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 56px;
  transition: background .15s;
}
.meq-dropdown .dropdown-item:hover { background: rgba(44,109,176,.08); }
.meq-dropdown .dropdown-item i { font-size: 1.2rem; flex-shrink: 0; }
.meq-dropdown .dropdown-item .fw-semibold { font-size: .9rem; }
.meq-dropdown .dropdown-item small { font-size: .75rem; }

/* ---------- Section badges (Novo / Usado) ---------- */
.meq-badge-novo {
  background: linear-gradient(135deg,#198754,#20c997);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .04em;
}
.meq-badge-usado {
  background: #6c757d;
  color: #fff;
  font-size: .7rem;
}

/* ---------- Service List (clickable items) ---------- */
.service-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--meq-card-bg);
  border: 1px solid var(--meq-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--meq-text);
  transition: box-shadow .2s, transform .15s, border-color .15s;
  margin-bottom: .75rem;
}
.service-list-item:hover {
  box-shadow: 0 4px 16px rgba(27,46,74,.12);
  transform: translateY(-1px);
  border-color: var(--meq-accent);
  color: var(--meq-text);
}
.service-list-logo-wrap { flex-shrink: 0; }
.service-list-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--meq-border);
  padding: 4px;
  background: #fff;
}
.service-list-logo-placeholder {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg,var(--meq-primary),var(--meq-accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.service-list-text { flex: 1; min-width: 0; }
.service-list-title {
  font-weight: 700;
  font-size: .98rem;
  color: var(--meq-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-list-subtitle {
  font-size: .82rem;
  color: var(--meq-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.service-list-arrow {
  color: var(--meq-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Calendar ---------- */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day-name {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--meq-muted);
  text-transform: uppercase;
  padding: .3rem 0;
}
.cal-cell {
  min-height: 56px;
  border: 1px solid var(--meq-border);
  border-radius: 8px;
  padding: .3rem .4rem;
  position: relative;
  background: var(--meq-card-bg);
  transition: background .15s, border-color .15s;
}
@media (min-width: 768px) { .cal-cell { min-height: 72px; } }
.cal-cell.cal-empty { background: transparent; border-color: transparent; }
.cal-cell.cal-today {
  border-color: var(--meq-accent);
  background: rgba(44,109,176,.06);
}
.cal-cell.cal-today .cal-day-num { color: var(--meq-accent); font-weight: 700; }
.cal-cell.cal-has-events { cursor: pointer; }
.cal-cell.cal-has-events:hover {
  background: rgba(44,109,176,.08);
  border-color: var(--meq-accent);
}
.cal-day-num { font-size: .85rem; font-weight: 600; }
.cal-dot-row { display: flex; gap: 3px; margin-top: 3px; flex-wrap: wrap; }
.cal-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--meq-accent);
  display: inline-block;
}
.cal-event-popup {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.cal-event-popup-inner {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  max-height: 80vh;
  overflow-y: auto;
}

/* ---------- Hero LP ---------- */
.meq-hero-lp {
  background: linear-gradient(135deg, var(--meq-primary) 0%, var(--meq-accent) 100%);
  color: #fff;
  padding: calc(60px + 2.2rem) 0 2rem; /* ← padding-top inclui altura da navbar */
  position: relative;
  overflow: hidden;
}
.meq-hero-lp::before {
  content: '';
  position: absolute;
  top: 0; right: -80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
@media (min-width: 768px) {
  .meq-hero-lp { padding: calc(65px + 3rem) 0 2.5rem; }
  .meq-hero-lp h1 { font-size: 2.6rem; }
}

/* ---------- Homepage section cards ---------- */
.home-section-card {
  background: var(--meq-card-bg);
  border: 1px solid var(--meq-border);
  border-radius: 16px;
  padding: 1.75rem 1.25rem 1.25rem;
  text-align: center;
  height: 100%;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  text-decoration: none;
  color: var(--meq-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  position: relative;
}
.home-section-card:hover {
  box-shadow: 0 6px 24px rgba(27,46,74,.15);
  transform: translateY(-3px);
  color: var(--meq-text);
  border-color: var(--meq-accent);
}
.home-section-card:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(27,46,74,.12);
}
.home-section-card .hsc-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg,var(--meq-primary),var(--meq-accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform .2s;
}
.home-section-card:hover .hsc-icon {
  transform: scale(1.05);
}
.home-section-card .hsc-title { 
  font-weight: 700; 
  font-size: 1rem; 
  color: var(--meq-primary); 
  margin-bottom: .15rem;
}
.home-section-card .hsc-desc { 
  font-size: .82rem; 
  color: var(--meq-muted); 
  line-height: 1.5; 
  flex: 1; 
  margin-bottom: .5rem;
}
.home-section-card .hsc-btn {
  background: var(--meq-primary); 
  color: #fff;
  border-radius: 20px; 
  padding: .5rem 1.25rem;
  font-size: .8rem; 
  font-weight: 600;
  border: none; 
  margin-top: auto;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 2px 8px rgba(27,46,74,.15);
}
.home-section-card:hover .hsc-btn { 
  background: var(--meq-accent);
  box-shadow: 0 4px 12px rgba(44,109,176,.25);
  transform: translateY(-1px);
}

/* ---------- Login Type Selector ---------- */
.user-type-btn {
  border: 2px solid var(--meq-border);
  border-radius: 14px;
  padding: 1.25rem .75rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: all .18s;
  user-select: none;
  height: 100%;
}
.user-type-btn:hover {
  border-color: var(--meq-accent);
  background: rgba(44,109,176,.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(44,109,176,.15);
}
.user-type-btn.active {
  border-color: var(--meq-accent);
  background: rgba(44,109,176,.08);
  box-shadow: 0 0 0 3px rgba(44,109,176,.2);
}
.user-type-btn .utb-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: .5rem;
  color: #aaa;
}
.user-type-btn.active .utb-icon { color: var(--meq-accent); }
.user-type-btn .utb-label  { font-weight: 700; font-size: .95rem; color: #555; }
.user-type-btn.active .utb-label { color: var(--meq-primary); }
.user-type-btn .utb-sub    { font-size: .75rem; color: var(--meq-muted); margin-top: .2rem; }

/* ---------- Footer Rich ---------- */
.meq-footer-rich {
  background: var(--meq-primary);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}
.meq-footer-rich a { color: rgba(255,255,255,.85); text-decoration: none; }
.meq-footer-rich a:hover { color: #fff; }
.meq-footer-rich .footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.meq-footer-rich .footer-link {
  display: block;
  font-size: .85rem;
  padding: .2rem 0;
  color: rgba(255,255,255,.75);
  transition: color .15s;
}
.meq-footer-rich .footer-link:hover { color: #fff; }
.meq-footer-rich .footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background .15s;
}
.meq-footer-rich .footer-social a:hover { background: rgba(255,255,255,.2); }
.meq-footer-divider {
  border-color: rgba(255,255,255,.12);
  margin: 1.5rem 0 1rem;
}

/* FIX NAVBAR MOBILE BUG */
body {
  padding-top: 70px;
}

@media (max-width: 991px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--meq-primary);
    z-index: 1040;
  }
}

/* ---------- Solutions card ---------- */
.solution-card {
  transition: box-shadow .2s, transform .2s;
}
.solution-card:hover {
  box-shadow: 0 6px 24px rgba(27,46,74,.15);
  transform: translateY(-2px);
}
.solution-logo-placeholder {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg,var(--meq-primary),var(--meq-accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto .75rem;
}

/* ---------- Configurações tabs ---------- */
.config-tab-content { padding: 1.5rem 0; }
.config-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--meq-muted);
  border-bottom: 1px solid var(--meq-border);
  padding-bottom: .5rem;
  margin: 1.5rem 0 1rem;
}
.config-section-title:first-child { margin-top: 0; }

/* ---------- Lookup values manager ---------- */
.lookup-group { margin-bottom: 1.5rem; }
.lookup-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem .75rem;
  background: var(--meq-card-bg);
  border: 1px solid var(--meq-border);
  border-radius: 8px;
  margin-bottom: .4rem;
}
.lookup-item .lookup-drag { cursor: grab; color: var(--meq-muted); }
.lookup-item .lookup-label { flex: 1; font-size: .9rem; }
.lookup-item .lookup-actions { display: flex; gap: .3rem; }

/* ---------- Filter offcanvas (mobile) ---------- */
.filter-offcanvas-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--meq-card-bg); border: 1px solid var(--meq-border);
  border-radius: 8px; padding: .6rem 1rem; font-weight: 600;
  min-height: var(--touch-min); color: var(--meq-text); cursor: pointer;
  font-size: .9rem;
}
@media (min-width: 992px) { .filter-offcanvas-btn { display: none; } }

/* ---------- Login button fix (utb-sub) ---------- */
.user-type-btn .utb-sub {
  font-size: .72rem;
  color: var(--meq-muted);
  margin-top: .2rem;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.3;
}
@media (max-width: 400px) {
  .user-type-btn { padding: .875rem .4rem; }
  .user-type-btn .utb-icon  { font-size: 1.5rem; margin-bottom: .3rem; }
  .user-type-btn .utb-label { font-size: .8rem; }
  .user-type-btn .utb-sub   { font-size: .62rem; }
}

/* ========================================================
   Listing Carousel (homepage) — Netflix-style
   ======================================================== */
.lc-outer {
  position: relative;
  /* extra horizontal room for the arrow buttons */
  margin: 0 -4px;
  padding: 0 4px;
}

/* The clip zone provides gradient edge fades */
.lc-clip {
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}
.lc-clip::before,
.lc-clip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 16px; /* leave room above scrollbar zone */
  width: 64px;
  z-index: 2;
  pointer-events: none;
}
.lc-clip::before {
  left: 0;
  background: linear-gradient(to right, #fff 10%, transparent 100%);
}
.lc-clip::after {
  right: 0;
  background: linear-gradient(to left, #fff 10%, transparent 100%);
}

/* The scrollable track */
.lc-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
  padding: 4px 2px 16px;
  width: 100%;                    /* Constrain so content overflows and scroll triggers */
  box-sizing: border-box;
}
.lc-track::-webkit-scrollbar { display: none; }

/* Each card slot — fixed width, never shrinks */
.lc-slide {
  flex: 0 0 290px;
  width: 290px;
  min-width: 290px;
}

/* Arrow buttons */
.lc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-55%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #1a1a2e;
  transition: box-shadow .2s ease, transform .18s ease, opacity .2s;
  padding: 0;
  line-height: 1;
}
.lc-arrow:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.12);
  transform: translateY(-55%) scale(1.1);
}
.lc-arrow-left  { left:  -6px; }
.lc-arrow-right { right: -6px; }

/* Mobile: hide arrows, let users swipe naturally */
@media (max-width: 767px) {
  .lc-arrow       { display: none; }
  .lc-clip::before,
  .lc-clip::after { display: none; }
  .lc-slide       { flex: 0 0 240px; width: 240px; min-width: 240px; }
}

/* ============================================================
   CTA Card — "Faça parte da comunidade" (homepage + sobre)
   ======================================================== */
.cta-card {
  background: linear-gradient(135deg, var(--meq-primary) 0%, var(--meq-accent) 100%);
  border-radius: 24px;
  padding: 3rem 2rem;
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 32px rgba(44,109,176,.25);
}
.cta-card h3 { color: #fff; }
.cta-card p  { color: rgba(255,255,255,.88); }
.cta-card strong { color: #fff; }
.cta-card .btn-meq {
  background: #fff;
  color: var(--meq-primary);
  border-color: #fff;
}
.cta-card .btn-meq:hover {
  background: rgba(255,255,255,.9);
  color: var(--meq-primary);
}
.cta-card .btn-outline-secondary {
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.cta-card .btn-outline-secondary:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
}

/* ============================================================
   Login type button — fix long word "Oftalmologista"
   ======================================================== */
.user-type-btn .utb-sub {
  font-size: .7rem;
  color: var(--meq-muted);
  margin-top: .2rem;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.25;
  display: block;
}
@media (max-width: 480px) {
  .user-type-btn            { padding: .9rem .4rem; }
  .user-type-btn .utb-icon  { font-size: 1.55rem; margin-bottom: .25rem; }
  .user-type-btn .utb-label { font-size: .82rem; }
  .user-type-btn .utb-sub   { font-size: .62rem; }
}
/* ══════════════════════════════════════════════════════════
   BADGE NOVO COM ESTRELA
   ══════════════════════════════════════════════════════════ */
.badge-novo {
  background: linear-gradient(135deg, #00a650 0%, #00d563 100%);
  color: white !important;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.70rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-novo i {
  font-size: 0.65rem;
}

/* ---------- Purchase Card (proposta de compra) ---------- */
.purchase-card {
  border: 1px solid var(--meq-border, #dee2e6);
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  border-left: 4px solid #198754; /* faixa verde indica proposta de compra */
}
.purchase-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-1px);
  border-color: #198754;
}
.purchase-card-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #d1f0dc;
  color: #0f5132;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .04em;
  padding: .25rem .55rem;
  border-radius: 6px;
  white-space: nowrap;
}
.purchase-card-location {
  color: #6c757d;
  font-size: .78rem;
  white-space: nowrap;
  text-align: right;
}
.purchase-card-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  color: #212529;
  margin: 0;
}
.purchase-card-context {
  color: #495057;
  font-size: .82rem;
}
.purchase-card-desc {
  color: #6c757d;
  font-size: .85rem;
  font-style: italic;
  line-height: 1.45;
  margin-top: .25rem;
}

/* Mobile: ajustes finos para densidade */
@media (max-width: 575.98px) {
  .purchase-card-title { font-size: .95rem; }
  .purchase-card-desc  { font-size: .8rem; }
  .purchase-card-badge { font-size: .65rem; padding: .2rem .45rem; }
  .purchase-card-location { font-size: .72rem; }
}

/* Quando a aba é de compras, força 1 coluna (lista) em qualquer tamanho */
.purchase-list-mode .row > [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* ─────────────────────────────────────────────────────────
   Listing Card horizontal (estilo Mercado Livre / iFood)
   Aplica somente na aba "Vendendo"
   ───────────────────────────────────────────────────────── */
.lc-horizontal {
  background: #fff !important;
  border: 1px solid var(--meq-border) !important;
  border-radius: 12px !important;
  padding: 10px !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  cursor: pointer;
  transition: box-shadow .2s, transform .15s, border-color .15s;
  height: 100%;
  align-items: stretch;
  width: 100%;
}
.lc-horizontal > * { flex-shrink: 0; }
.lc-horizontal .lc-h-body { flex-shrink: 1; flex: 1; min-width: 0; }
.lc-horizontal:hover {
  box-shadow: 0 4px 16px rgba(27,46,74,.1);
  transform: translateY(-1px);
  border-color: var(--meq-accent);
}

.lc-h-img-wrap {
  width: 110px; min-width: 110px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  align-self: flex-start;
}
.lc-h-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg,#f0f4f8,#e8eef5);
}
.lc-h-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg,#f0f4f8,#e8eef5);
  color: #c0c8d4;
}

.lc-h-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.lc-h-badges {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 1px;
}
.lc-h-badges .badge { font-size: .58rem; padding: 1px 5px; }
.lc-h-title {
  font-size: .88rem; font-weight: 600;
  line-height: 1.25; color: var(--meq-text);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.lc-h-sub {
  font-size: .72rem; color: var(--meq-muted);
  line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lc-h-price {
  font-size: 1.05rem; font-weight: 700;
  color: var(--meq-primary);
  margin-top: 2px;
}
.lc-h-price-consult {
  font-size: .9rem; font-style: italic;
  color: var(--meq-muted);
  margin-top: 2px;
}
.lc-h-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 4px; gap: 6px;
}
.lc-h-location {
  font-size: .68rem; color: var(--meq-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lc-h-location i { margin-right: 2px; }

.lc-h-btn-wa {
  background: #25d366; color: #fff;
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  padding: 0;
  font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
  flex-shrink: 0;
}
.lc-h-btn-wa i { font-size: 1.05rem; line-height: 1; }
.lc-h-btn-text { display: none !important; }
.lc-h-btn-wa:hover { background: #1da851; color: #fff; }
.lc-h-btn-locked { background: var(--meq-primary); }
.lc-h-btn-locked:hover { background: var(--meq-primary-light); }
.lc-h-btn-wa i { font-size: .9rem; }

/* Desktop: 2 cards por linha = mais espaço, foto e textos maiores */
@media (min-width: 992px) {
  .lc-horizontal { padding: 12px !important; gap: 12px !important; }
  .lc-h-img-wrap { width: 130px; min-width: 130px; height: 130px; }
  .lc-h-title { font-size: .95rem; }
  .lc-h-sub { font-size: .78rem; }
  .lc-h-price { font-size: 1.15rem; }
  .lc-h-btn-wa { width: 40px; height: 40px; }
  .lc-h-btn-wa i { font-size: 1.15rem; }
}

/* Mobile super pequeno (< 360px) */
@media (max-width: 359.98px) {
  .lc-h-img-wrap { width: 90px; min-width: 90px; }
  .lc-h-img { width: 90px; height: 90px; }
  .lc-h-title { font-size: .82rem; }
  .lc-h-btn-text { display: none; }
}

/* ─────────────────────────────────────────────────────────
   Card horizontal MINI — usado dentro do carrossel
   de produtos similares (.lc-slide > .lc-horizontal)
   Sobrescreve os tamanhos pra caber em ~240-290px
   ───────────────────────────────────────────────────────── */
.lc-slide .lc-horizontal {
  padding: 8px !important;
  gap: 8px !important;
  height: 100%;
}
.lc-slide .lc-h-img-wrap {
  width: 80px !important;
  min-width: 80px !important;
  height: 80px !important;
}
.lc-slide .lc-h-title {
  font-size: .78rem;
  -webkit-line-clamp: 2;
}
.lc-slide .lc-h-sub {
  font-size: .66rem;
}
.lc-slide .lc-h-price {
  font-size: .85rem;
}
.lc-slide .lc-h-price-consult {
  font-size: .75rem;
}
.lc-slide .lc-h-location {
  font-size: .6rem;
  max-width: 65%;
}
.lc-slide .lc-h-btn-wa {
  width: 30px;
  height: 30px;
}
.lc-slide .lc-h-btn-wa i {
  font-size: .9rem;
}
.lc-slide .lc-h-footer {
  gap: 4px;
}

/* ════════════════════════════════════════════════════
   Service List Item — botão "Saiba mais"
   ════════════════════════════════════════════════════ */
.service-list-item {
  position: relative;
}
.service-list-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--meq-primary);
  color: #fff !important;
  padding: .5rem .95rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s;
  margin-left: .5rem;
  flex-shrink: 0;
}
.service-list-cta:hover {
  background: var(--meq-accent);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(44,109,176,.3);
  color: #fff !important;
}
.service-list-cta i { font-size: .9rem; }
.service-list-item .service-list-arrow { display: none; }

@media (max-width: 575.98px) {
  .service-list-item {
    flex-wrap: wrap;
  }
  .service-list-cta {
    margin-left: 0;
    margin-top: .5rem;
    width: 100%;
    justify-content: center;
    padding: .55rem 1rem;
  }
  .service-list-text {
    flex: 1 1 calc(100% - 70px);
  }
}