/* ============================================================
   Portal Tonanet — Design System Moderno
   ============================================================ */

/* ── Fonts ───────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --brand:        #EA1D2C;
  --brand-dark:   #c41523;
  --brand-light:  rgba(234, 29, 44, 0.08);
  --surface:      #ffffff;
  --surface-2:    #f8f9fc;
  --border:       #eef0f5;
  --text-primary: #1a1d26;
  --text-secondary:#6b7280;
  --text-muted:   #9ca3af;
  --shadow-sm:    0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md:    0 4px 16px rgba(16, 24, 40, 0.08), 0 2px 6px rgba(16, 24, 40, 0.04);
  --shadow-lg:    0 12px 40px rgba(16, 24, 40, 0.12), 0 4px 12px rgba(16, 24, 40, 0.06);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --module-accent: #ea1d2c;
  --module-accent-dark: #c41523;
  --module-soft: #ffecef;
  --module-glow: rgba(234, 29, 44, 0.2);
  --module-focus-ring: rgba(234, 29, 44, 0.24);
  --space-1: clamp(8px, 0.45vw, 10px);
  --space-2: clamp(12px, 0.7vw, 14px);
  --space-3: clamp(16px, 1vw, 20px);
  --space-4: clamp(22px, 1.45vw, 30px);
}

body.module-vagas {
  --module-accent: #e65100;
  --module-accent-dark: #bf360c;
  --module-soft: #fff3e8;
  --module-glow: rgba(230, 81, 0, 0.24);
  --module-focus-ring: rgba(230, 81, 0, 0.26);
}

body.module-objetos {
  --module-accent: #e65100;
  --module-accent-dark: #bf360c;
  --module-soft: #fff3e8;
  --module-glow: rgba(230, 81, 0, 0.24);
  --module-focus-ring: rgba(230, 81, 0, 0.26);
}

body.module-caronas {
  --module-accent: #0d6efd;
  --module-accent-dark: #0b5ed7;
  --module-soft: #eaf3ff;
  --module-glow: rgba(13, 110, 253, 0.24);
  --module-focus-ring: rgba(13, 110, 253, 0.28);
}

body.module-desapega {
  --module-accent: #7b1fa2;
  --module-accent-dark: #6a1b9a;
  --module-soft: #f6ecfb;
  --module-glow: rgba(123, 31, 162, 0.24);
  --module-focus-ring: rgba(123, 31, 162, 0.28);
}

body.module-imoveis {
  --module-accent: #2e7d32;
  --module-accent-dark: #1b5e20;
  --module-soft: #e8f6ea;
  --module-glow: rgba(46, 125, 50, 0.24);
  --module-focus-ring: rgba(46, 125, 50, 0.28);
}

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  background: var(--surface-2);
}

a { color: inherit; }

/* ── Background Page ─────────────────────────────────────── */
.pg-bg {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 900px 600px at 0% 0%, rgba(234,29,44,0.06), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 100%, rgba(234,29,44,0.05), transparent 60%),
    linear-gradient(160deg, #fcfcfe 0%, #eef1f8 100%);
}

.pg-shell-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  margin: 0;
}

/* ── Navbar ──────────────────────────────────────────────── */
.pn-nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.pn-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .pn-nav-inner {
    height: 66px;
    padding: 0 26px;
  }
}

.pn-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pn-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pn-logo {
  height: 36px;
  object-fit: contain;
  display: block;
}

.pn-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.pn-brand-text {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1;
  white-space: nowrap;
}

.pn-city-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition);
}
.pn-city-pill:hover {
  background: rgba(234,29,44,0.14);
  color: var(--brand);
}

/* ── Back Button ─────────────────────────────────────────── */
.pn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fd 100%);
  border: 1px solid color-mix(in srgb, var(--module-accent) 20%, var(--border));
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
  font-size: 1.15rem;
}
.pn-back:hover {
  background: linear-gradient(180deg, #fff6f7 0%, #ffeef1 100%);
  border-color: color-mix(in srgb, var(--module-accent) 42%, var(--border));
  color: var(--module-accent-dark);
  box-shadow: 0 8px 18px rgba(234, 29, 44, 0.16);
}

.pn-back:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(234, 29, 44, 0.14);
}

/* ── Section Title ───────────────────────────────────────── */
.pn-section-title {
  font-size: clamp(1.02rem, 1.12vw, 1.16rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.pn-section-title-accent {
  color: var(--module-accent);
}

.pn-title-orange { color: #e65100; }
.pn-title-blue { color: #0d6efd; }
.pn-title-purple { color: #7b1fa2; }
.pn-title-green { color: #2e7d32; }
.pn-section-sub {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
}

/* ── Page Wrapper ────────────────────────────────────────── */
.pn-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-2) clamp(64px, 7vw, 92px);
}

.menu-page {
  padding-top: clamp(8px, 0.8vw, 12px);
}

/* ── Category Cards (menus.php) ──────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--space-2);
}
@media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; } }

.cat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 8px 14px;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
  min-height: 105px;
  user-select: none;
  position: relative;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
  color: var(--brand);
}
.cat-card:active {
  transform: scale(0.97);
  background: color-mix(in srgb, var(--module-accent) 18%, var(--surface));
  border-color: color-mix(in srgb, var(--module-accent) 62%, var(--border));
  color: var(--module-accent-dark);
}

.cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--brand-light);
  color: var(--brand);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.cat-card:hover .cat-icon {
  background: var(--brand);
  color: #fff;
}

.cat-card:active .cat-icon,
.cat-card:focus-visible .cat-icon {
  background: color-mix(in srgb, var(--module-accent) 34%, #ffffff);
  color: var(--module-accent-dark);
}

.cat-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  padding: 0 4px;
  letter-spacing: -0.01em;
}

.cat-icon.badge-yellow { background: #fff8e1; color: #e65100; }
.cat-icon.badge-purple { background: #f3e5f5; color: #7b1fa2; }
.cat-icon.badge-green  { background: #e8f5e9; color: #2e7d32; }
.cat-icon.badge-blue   { background: #e3f2fd; color: #0d6efd; }
.cat-icon.badge-dark   { background: #f1f3f5; color: #343a40; }
.cat-icon.badge-teal   { background: #e0f7fa; color: #00695c; }
@media (min-width: 768px) {
  .cat-card { min-height: 120px; padding: 22px 10px 18px; }
  .cat-icon { width: 56px; height: 56px; font-size: 1.5rem; }
  .cat-label { font-size: 0.82rem; }
}

/* ── Store Cards (categoria.php) ─────────────────────────── */
.store-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
}
.store-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d5d9e8;
  color: var(--text-primary);
}

.store-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  background: #f8f9fc;
}
.store-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-bottom: 4px;
}

.store-name-row .store-name {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.store-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #ffd792;
  background: #fff6e8;
  color: #b56a00;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}

.store-rating i {
  color: #f59e0b;
  font-size: 0.72rem;
}


.store-status {
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.01em;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  min-width: 0;
}

.store-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1;
  flex-shrink: 0;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.store-status-open {
  color: #0b7a43;
  background: #e8f8ef;
  border-color: #b4e4c8;
}

.store-status-closed {
  color: #b4232d;
  background: #ffe9ec;
  border-color: #ffc5cb;
}

.store-status-offline {
  color: #495057;
  background: #edf0f2;
  border-color: #d5dbe0;
}

.store-status-break {
  color: #9a4b00;
  background: #fff4e5;
  border-color: #ffd6a8;
}

.status-dot-open { background: #00a550; }
.status-dot-closed { background: #ea1d2c; }
.status-dot-offline { background: #717171; }
.status-dot-break { background: #ff9f1c; }

.store-status-time {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.2;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-card .flex-grow-1 {
  min-width: 0;
}

.store-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Listing Cards (vagas / desapega / imoveis) ──────────── */
.listing-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.listing-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--surface-2);
}

.listing-body { padding: 14px 16px 16px; }

.listing-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.listing-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.listing-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand);
}

.listing-info {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-info span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty-state i {
  font-size: 3rem;
  opacity: 0.25;
  margin-bottom: 16px;
  display: block;
}
.empty-state p { font-size: 0.95rem; margin: 0; }

.stores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .stores-grid { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 480px) {
  .store-card {
    gap: 8px;
    padding: 10px;
  }

  .store-logo {
    width: 54px;
    height: 54px;
  }

  .store-name {
    font-size: 1.06rem;
  }

  .store-name-row {
    gap: 6px;
  }

  .store-rating {
    font-size: 0.7rem;
    padding: 2px 6px;
    gap: 4px;
  }

  .store-status {
    gap: 4px;
  }

  .store-status-badge {
    font-size: 0.82rem;
    padding: 2px 7px;
    gap: 5px;
  }

  .store-status-time {
    font-size: 0.82rem;
  }
}

@media (max-width: 380px) {
  .store-name {
    font-size: 0.96rem;
  }

  .store-name-row {
    gap: 4px;
  }

  .store-rating {
    font-size: 0.66rem;
    padding: 2px 5px;
    gap: 3px;
  }

  .store-status-badge {
    font-size: 0.78rem;
    padding: 2px 6px;
  }

  .store-status-time {
    font-size: 0.78rem;
  }
}

/* ── Page Hero (index) ───────────────────────────────────── */
.hero-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  max-width: 480px;
  overflow: visible;
  border: 0;
}

.hero-top {
  background: transparent;
  border-bottom: 0;
  padding: clamp(26px, 3.2vw, 36px) clamp(22px, 2.8vw, 32px) clamp(22px, 2.4vw, 28px);
  text-align: center;
}

.hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}

.hero-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.hero-body { padding: clamp(18px, 2.4vw, 24px) clamp(20px, 2.8vw, 28px) clamp(20px, 3vw, 28px); }

.pn-select-wrap {
  position: relative;
  border-radius: calc(var(--radius-md) + 2px);
  padding: 2px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 36%, #ffffff) 0%, color-mix(in srgb, var(--brand) 18%, #ffffff) 100%);
  box-shadow: 0 10px 22px rgba(234, 29, 44, 0.16);
}

.pn-city-picker {
  z-index: 5;
}

.pn-city-picker.is-open {
  z-index: 20;
}

.pn-city-unavailable-note {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 8%, #ffffff);
  color: color-mix(in srgb, var(--text-primary) 90%, #ffffff);
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 600;
  padding: 9px 10px;
}

.pn-city-unavailable-note i {
  color: var(--brand);
  font-size: 0.95rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.pn-city-unavailable-note strong {
  color: var(--brand-dark);
}

.pn-select-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 0.95rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.pn-city-trigger {
  width: 100%;
  padding: 14px 40px 14px 46px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--surface-2) 72%, #ffffff);
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
  position: relative;
}

.pn-city-trigger-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pn-city-trigger-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  transition: transform var(--transition), color var(--transition);
}

.pn-city-picker.is-open .pn-city-trigger-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: var(--brand);
}

.pn-city-trigger:focus,
.pn-city-picker.is-open .pn-city-trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(234,29,44,0.2);
  background: #fff;
}

.pn-city-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  max-height: 240px;
  overflow-y: auto;
}

.pn-city-search-wrap {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  margin: -8px -8px 8px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.pn-city-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.9rem;
  pointer-events: none;
}

.pn-city-search {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px 9px 34px;
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
}

.pn-city-search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(234,29,44,0.15);
  background: #fff;
}

.pn-city-empty {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  padding: 12px 8px 10px;
}

.pn-city-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.25;
}

.pn-city-option:hover,
.pn-city-option:focus-visible {
  background: var(--brand-light);
  color: var(--brand);
  outline: none;
}

.pn-city-modal[hidden] {
  display: none !important;
}

.pn-city-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pn-city-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 26, 0.52);
  backdrop-filter: blur(3px);
}

.pn-city-modal-dialog {
  position: relative;
  width: min(480px, 100%);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(8, 14, 30, 0.18);
  padding: 22px;
  animation: pnModalIn 0.24s ease-out;
}

.pn-city-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pn-city-modal-head i {
  color: var(--brand);
  font-size: 1rem;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.pn-city-modal-head h2 {
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.pn-city-modal-text {
  margin: 0 0 18px;
  line-height: 1.5;
  font-size: 1.03rem;
  color: color-mix(in srgb, var(--text-primary) 86%, #ffffff);
}

.pn-city-modal-text #citySuggestName {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand) 10%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, #ffffff);
  box-shadow: none;
}

.pn-city-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pn-city-modal-actions .btn {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.pn-city-modal-actions .btn-outline-secondary {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--border));
  color: color-mix(in srgb, var(--text-primary) 82%, #ffffff);
  background: color-mix(in srgb, var(--surface) 88%, #f7f8fb);
}

.pn-city-modal-actions .btn-outline-secondary:hover,
.pn-city-modal-actions .btn-outline-secondary:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 54%, var(--border));
  background: color-mix(in srgb, var(--brand) 10%, #ffffff);
  color: var(--text-primary);
}

.pn-city-modal-actions .btn-primary {
  border-color: var(--brand-dark);
  background: var(--brand);
  box-shadow: none;
}

.pn-city-modal-actions .btn-primary:hover,
.pn-city-modal-actions .btn-primary:focus-visible {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  filter: none;
}

@keyframes pnModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 576px) {
  .pn-city-modal-dialog {
    border-radius: 16px;
    padding: 18px;
  }

  .pn-city-modal-head h2 {
    font-size: 1.15rem;
  }

  .pn-city-modal-text {
    font-size: 0.98rem;
  }

  .pn-city-modal-text #citySuggestName {
    font-size: 1.02rem;
  }

  .pn-city-modal-actions {
    justify-content: stretch;
  }

  .pn-city-modal-actions .btn {
    flex: 1 1 100%;
  }
}

.pn-select {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 700;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--surface-2) 72%, #ffffff);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform var(--transition);
  outline: none;
}
.pn-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(234,29,44,0.2);
  background: #fff;
}

.pn-select-wrap:hover .pn-select {
  transform: translateY(-1px);
}

.pn-select-wrap:hover .pn-city-trigger {
  transform: translateY(-1px);
}

.hero-footer {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: color-mix(in srgb, var(--brand-light) 55%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: 12px;
  padding: 8px 10px;
}

.hero-footer i {
  color: var(--brand);
}

.pn-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: #1f9e58;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  padding: 5px 10px;
  box-shadow: 0 4px 10px rgba(31, 158, 88, 0.2);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.pn-support-link i {
  font-size: 0.9rem;
  line-height: 1;
  color: #fff;
}

.pn-support-link:hover,
.pn-support-link:focus-visible {
  color: #fff;
  background: #188349;
  transform: translateY(-1px);
  box-shadow: 0 7px 14px rgba(24, 131, 73, 0.24);
  outline: none;
}

.hero-store-cta {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.menu-store-cta {
  margin-top: 0;
  margin-bottom: 14px;
}

.pn-page-footer-minimal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  text-align: center;
  pointer-events: none;
  z-index: 5;
}

.pn-stats-link-minimal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity var(--transition), color var(--transition);
  pointer-events: auto;
}

.pn-stats-link-minimal i {
  font-size: 0.68rem;
}

.pn-stats-link-minimal:hover,
.pn-stats-link-minimal:focus-visible {
  opacity: 0.82;
  color: var(--text-secondary);
  outline: none;
}

.pn-flash-card {
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin-bottom: 18px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pn-flash-card-center {
  text-align: center;
  padding: 20px;
}

.pn-flash-card-success {
  background: #f0fff4;
  border-color: #a7f3d0;
}

.pn-flash-card-info {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.pn-flash-card-danger {
  background: #fff5f5;
  border-color: #fecaca;
}

.pn-flash-card-soft-purple {
  background: #f5f0ff;
  border-color: #d8b4fe;
}

.pn-flash-title {
  font-weight: 700;
  margin: 0 0 6px;
}

.pn-flash-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
}

.pn-flash-icon-success { color: #059669; }
.pn-flash-icon-info { color: #0d6efd; }
.pn-flash-icon-purple { color: #7b1fa2; }
.pn-flash-icon-green { color: #2e7d32; }

.pn-flash-code {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}

.pn-flash-help {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.pn-flash-code-info { color: #0d6efd; }
.pn-flash-code-purple { color: #7b1fa2; }
.pn-flash-code-green { color: #2e7d32; }

.pn-flash-card-compact {
  padding: 12px 16px;
  font-size: 0.87rem;
}

.pn-flash-card-muted {
  background: var(--surface-2);
  color: var(--text-secondary);
}

.pn-alert-upload {
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.pn-mini-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.pn-thumb-preview {
  max-height: 100px;
  object-fit: cover;
}

.btn-brand-purple {
  background: #7b1fa2 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none;
}

.btn-brand-purple:hover,
.btn-brand-purple:focus {
  background: #6a1b9a !important;
  color: #fff !important;
}

.btn-brand-green {
  background: #2e7d32 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none;
}

.btn-brand-green:hover,
.btn-brand-green:focus {
  background: #1b5e20 !important;
  color: #fff !important;
}

.btn-whatsapp,
.btn-interest {
  background: #25d366;
  color: #fff;
  border: none;
  font-weight: 700;
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
}

.btn-whatsapp:hover,
.btn-interest:hover {
  background: #1da851;
  color: #fff;
}

.btn-phone {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  font-weight: 700;
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
}

.btn-phone:hover {
  color: var(--text-primary);
  background: #eceff6;
}

.pn-detail-body {
  overflow-y: auto;
  flex: 1;
}

.pn-detail-top {
  padding: var(--space-3) var(--space-3) 0;
}

.pn-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.pn-detail-close {
  margin-top: 2px;
}

.pn-detail-title {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
}

.pn-detail-divider {
  margin: 14px 0;
}

.pn-detail-subtitle {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.pn-detail-actions {
  padding: var(--space-3) var(--space-3) var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Accessibility: Focus & Hover ───────────────────────── */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.pn-back:focus-visible,
.pn-theme-btn:focus-visible,
.pn-theme-fab:focus-visible,
.pn-city-pill:focus-visible,
.cat-card:focus-visible,
.store-card:focus-visible,
.pn-contact-btn:focus-visible,
.btn-whatsapp:focus-visible,
.btn-interest:focus-visible,
.btn-phone:focus-visible {
  outline: 3px solid var(--module-focus-ring);
  outline-offset: 2px;
}

.cat-card:hover,
.cat-card:focus-visible,
.store-card:hover,
.store-card:focus-visible {
  border-color: var(--module-accent);
}

.cat-card:focus-visible {
  background: color-mix(in srgb, var(--module-accent) 16%, var(--surface));
  color: var(--module-accent-dark);
}

.pn-city-pill,
.pn-theme-btn,
.pn-back,
.pn-contact-btn,
.btn-brand,
.btn-whatsapp,
.btn-interest,
.btn-phone {
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.pn-city-pill:hover,
.pn-theme-btn:hover,
.pn-back:hover,
.pn-contact-btn:hover,
.btn-brand:hover,
.btn-whatsapp:hover,
.btn-interest:hover,
.btn-phone:hover {
  transform: translateY(-1px);
}

.pn-d-none {
  display: none;
}

.pn-contact-btn-sm {
  font-size: 0.85rem;
  padding: 9px;
}

.pn-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface-2);
  color: var(--text-primary);
  font-weight: 700;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}

.pn-contact-btn:hover {
  background: #eceff6;
  color: var(--text-primary);
}

/* ── Shared Action Controls ─────────────────────────────── */
.vaga-act-btn,
.obj-act-btn,
.carona-act-btn,
.item-act-btn,
.imovel-act-btn {
  min-height: 32px;
}

.vaga-act-btn:focus-visible,
.obj-act-btn:focus-visible,
.carona-act-btn:focus-visible,
.item-act-btn:focus-visible,
.imovel-act-btn:focus-visible {
  outline: 3px solid var(--module-focus-ring);
  outline-offset: 2px;
}

.btn-whatsapp,
.btn-interest {
  box-shadow: none;
}

.btn-whatsapp:hover,
.btn-interest:hover {
  box-shadow: none;
}

.btn-phone,
.pn-contact-btn {
  border-width: 1.5px;
}

.btn-phone:hover,
.pn-contact-btn:hover {
  border-color: color-mix(in srgb, var(--module-accent) 25%, var(--border));
}

.pn-flash-card,
.modal-content,
.cat-card,
.store-card,
.vaga-card,
.obj-card,
.carona-card,
.item-card,
.imovel-card {
  isolation: isolate;
}

.pn-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ── Pill Badges ─────────────────────────────────────────── */
.badge-brand  { background: var(--brand-light); color: var(--brand); }
.badge-yellow { background: #fff8e1; color: #e65100; }
.badge-green  { background: #e8f5e9; color: #2e7d32; }
.badge-purple { background: #f3e5f5; color: #7b1fa2; }
.badge-blue   { background: #e3f2fd; color: #0d6efd; }
.badge-dark   { background: #f1f3f5; color: #343a40; }
.badge-teal   { background: #e0f7fa; color: #00695c; }

/* ── Responsive utils ────────────────────────────────────── */
@media (max-width: 576px) {
  .pg-shell-center {
    align-items: flex-start;
    padding-top: max(38px, env(safe-area-inset-top, 0px) + 18px);
    padding-bottom: 18px;
  }

  .hero-card {
    margin-top: 0;
  }

  .pn-brand-link {
    gap: 8px;
  }

  .pn-brand-text {
    font-size: 1.12rem;
  }

  .pn-page { padding: 20px 12px 70px; }
  .menu-page { padding-top: 8px; }
  .store-logo { width: 54px; height: 54px; }
  .hero-top { padding: 28px 20px 22px; }
  .hero-body { padding: 20px; }
  .hero-footer {
    margin-top: 12px;
    padding: 9px 10px;
    font-size: 0.8rem;
  }
  .pn-support-link {
    min-height: 30px;
    padding: 5px 11px;
    font-size: 0.79rem;
  }
  .hero-store-cta {
    margin-top: 9px;
  }
  .menu-store-cta {
    margin-bottom: 12px;
  }
  .pn-page-footer-minimal {
    bottom: max(6px, env(safe-area-inset-bottom, 0px));
  }
  .pn-stats-link-minimal {
    font-size: 0.69rem;
  }
  .pn-select-wrap { border-radius: 16px; }
  .pn-select-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    left: 13px;
  }
  .pn-city-trigger {
    min-height: 58px;
    padding: 16px 44px 16px 52px;
    font-size: 1.05rem;
    border-radius: 14px;
  }
  .pn-city-trigger-arrow {
    right: 16px;
    font-size: 1rem;
  }
  .pn-city-menu {
    top: calc(100% + 10px);
    max-height: min(52vh, 340px);
  }
  .pn-city-search {
    font-size: 0.92rem;
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .pn-city-option {
    padding: 12px 12px;
    font-size: 0.98rem;
  }
}

@media (min-width: 1200px) {
  .pn-page {
    padding-left: 22px;
    padding-right: 22px;
  }
}

/* ── Dark Mode Tokens ────────────────────────────────────── */
[data-theme="dark"] {
  --surface:        #1e2130;
  --surface-2:      #161926;
  --border:         rgba(255, 255, 255, 0.18);
  --text-primary:   #f7f9ff;
  --text-secondary: #d4dbed;
  --text-muted:     #adb7cf;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
  --brand-light:    rgba(234, 29, 44, 0.18);
}

[data-theme="dark"] .pg-bg {
  background:
    radial-gradient(ellipse 900px 600px at 0% 0%, rgba(234,29,44,0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 100%, rgba(234,29,44,0.05), transparent 60%),
    linear-gradient(160deg, #161926 0%, #1a1e2e 100%);
}

[data-theme="dark"] .pn-nav {
  background: rgba(22, 25, 38, 0.92);
  border-bottom-color: var(--border);
}

[data-theme="dark"] .pn-category-name {
  color: #ffffff;
}

[data-theme="dark"] .hero-top {
  background: transparent;
  border-bottom: 0;
}

[data-theme="dark"] .pn-select {
  background: color-mix(in srgb, var(--surface) 88%, #0f1220);
  color: var(--text-primary);
  border-color: var(--border);
}
[data-theme="dark"] .pn-select:focus {
  background: var(--surface);
}

[data-theme="dark"] .pn-city-trigger {
  background: color-mix(in srgb, var(--surface) 88%, #0f1220);
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="dark"] .pn-city-trigger:focus,
[data-theme="dark"] .pn-city-picker.is-open .pn-city-trigger {
  background: #1d2435;
  color: var(--text-primary);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(234,29,44,0.22);
}

[data-theme="dark"] .pn-city-menu {
  background: #202638;
  border-color: var(--border);
}

[data-theme="dark"] .pn-city-search-wrap {
  background: #202638;
}

[data-theme="dark"] .pn-city-search {
  background: #171c2b;
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="dark"] .pn-city-search:focus {
  background: #1d2435;
}

[data-theme="dark"] .pn-city-option:hover,
[data-theme="dark"] .pn-city-option:focus-visible {
  background: rgba(234,29,44,0.18);
  color: #ff8a95;
}

[data-theme="dark"] .pn-city-unavailable-note {
  background: rgba(234, 29, 44, 0.1);
  border-color: rgba(255, 126, 138, 0.3);
  color: #dbe3f8;
}

[data-theme="dark"] .pn-city-unavailable-note i {
  color: #ff9ca7;
}

[data-theme="dark"] .pn-city-unavailable-note strong {
  color: #ffc5cb;
}

[data-theme="dark"] .pn-city-modal-dialog {
  background: #1d2435;
  border-color: var(--border);
  color: var(--text-primary);
  box-shadow: 0 12px 28px rgba(2, 4, 12, 0.42);
}

[data-theme="dark"] .pn-city-modal-head i {
  color: #f2a9b1;
  background: rgba(255, 120, 134, 0.1);
  box-shadow: none;
}

[data-theme="dark"] .pn-city-modal-text {
  color: #d6def4;
}

[data-theme="dark"] .pn-city-modal-text #citySuggestName {
  color: #f6bcc3;
  background: rgba(255, 93, 110, 0.1);
  border-color: rgba(255, 93, 110, 0.24);
  box-shadow: none;
}

[data-theme="dark"] .pn-city-modal-actions .btn-outline-secondary {
  background: #212a40;
  border-color: #4f5f86;
  color: #c8d3f0;
}

[data-theme="dark"] .pn-city-modal-actions .btn-outline-secondary:hover,
[data-theme="dark"] .pn-city-modal-actions .btn-outline-secondary:focus-visible {
  background: #27304a;
  border-color: #6d7aa0;
  color: #e3e9fb;
}

[data-theme="dark"] .hero-footer {
  background: rgba(37, 42, 62, 0.82);
  border-color: color-mix(in srgb, #25d366 35%, var(--border));
}

[data-theme="dark"] .pn-stats-link-minimal {
  color: #9aa6c4;
  opacity: 0.5;
}

[data-theme="dark"] .pn-stats-link-minimal:hover,
[data-theme="dark"] .pn-stats-link-minimal:focus-visible {
  color: #c1cbe2;
  opacity: 0.78;
}

[data-theme="dark"] .pn-select-wrap {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 55%, #1c2235) 0%, color-mix(in srgb, var(--brand) 30%, #1c2235) 100%);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(234, 29, 44, 0.25);
}

[data-theme="dark"] .pn-back:hover {
  background: linear-gradient(180deg, rgba(234,29,44,0.24) 0%, rgba(234,29,44,0.14) 100%);
  border-color: color-mix(in srgb, var(--module-accent) 70%, #657194);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(5, 8, 20, 0.45), 0 0 0 1px rgba(234, 29, 44, 0.25);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background: #23293a;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] textarea.form-control::placeholder {
  color: #b6bfd5;
  opacity: 1;
}

[data-theme="dark"] .form-label,
[data-theme="dark"] .form-check-label,
[data-theme="dark"] .modal-title {
  color: var(--text-primary);
}

[data-theme="dark"] .text-muted,
[data-theme="dark"] .form-text {
  color: var(--text-secondary) !important;
}

[data-theme="dark"] .form-check-input {
  background-color: #1f2435;
  border-color: #5f6884;
}

[data-theme="dark"] .form-check-input:checked {
  background-color: var(--module-accent);
  border-color: var(--module-accent);
}

[data-theme="dark"] .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem var(--module-focus-ring);
}

[data-theme="dark"] input.form-control[type="date"],
[data-theme="dark"] input.form-control[type="time"] {
  color-scheme: dark;
}

[data-theme="dark"] input.form-control[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input.form-control[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.35) contrast(0.85);
  opacity: 0.95;
}

[data-theme="dark"] input.form-control[type="date"]::-webkit-datetime-edit,
[data-theme="dark"] input.form-control[type="time"]::-webkit-datetime-edit,
[data-theme="dark"] input.form-control[type="date"]::-webkit-datetime-edit-fields-wrapper,
[data-theme="dark"] input.form-control[type="time"]::-webkit-datetime-edit-fields-wrapper,
[data-theme="dark"] input.form-control[type="date"]::-webkit-datetime-edit-text,
[data-theme="dark"] input.form-control[type="time"]::-webkit-datetime-edit-text {
  color: var(--text-primary);
}

[data-theme="dark"] input.form-control[type="date"]:required:invalid::-webkit-datetime-edit,
[data-theme="dark"] input.form-control[type="time"]:required:invalid::-webkit-datetime-edit {
  color: #c3cbde;
}

/* ── Dark Mode Badge Overrides ───────────────────────────── */
[data-theme="dark"] .badge-yellow { background: rgba(255,200,0,0.15);  color: #ffc107; }
[data-theme="dark"] .badge-green  { background: rgba(76,175,80,0.15);  color: #66bb6a; }
[data-theme="dark"] .badge-purple { background: rgba(156,39,176,0.15); color: #ce93d8; }
[data-theme="dark"] .badge-blue   { background: rgba(30,136,229,0.15);  color: #64b5f6; }
[data-theme="dark"] .badge-dark   { background: rgba(255,255,255,0.08); color: #e0e0e0; }
[data-theme="dark"] .badge-teal   { background: rgba(0,188,212,0.15);  color: #4dd0e1; }
[data-theme="dark"] .badge-brand  { background: rgba(234,29,44,0.20);  color: #ff6b7a; }

/* ── Theme Toggle Button (navbar) ────────────────────────── */
.pn-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.pn-theme-btn:hover {
  background: rgba(128,128,128,0.12);
  color: var(--text-primary);
}

/* CSS controls which icon is visible */
.pn-theme-icon-moon { display: inline-block; }
.pn-theme-icon-sun  { display: none; }
[data-theme="dark"] .pn-theme-icon-moon { display: none; }
[data-theme="dark"] .pn-theme-icon-sun  { display: inline-block; }

/* ── Theme FAB (index.php) ───────────────────────────────── */
.pn-theme-fab {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-secondary);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

[data-theme="dark"] .pn-theme-fab {
  background: transparent;
  border-color: transparent;
  color: #c6cce3;
  box-shadow: none;
}

@media (max-width: 576px) {
  .pn-theme-fab {
    top: 14px;
    right: 14px;
  }
}

/* ── Bootstrap Visual Alignment ─────────────────────────── */
.form-control,
.form-select {
  border-color: var(--border);
  border-width: 1.5px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--module-accent);
  box-shadow: 0 0 0 0.2rem var(--module-focus-ring);
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
}
    margin-bottom: 10px;
.pn-modal-hybrid {
  max-width: min(840px, calc(100vw - 36px));
}

    gap: 7px;
    padding: 10px;
}

.pn-modal-hybrid.pn-modal-compact {
  max-width: min(460px, calc(100vw - 28px));
}

.pn-modal-hybrid .modal-header {
  position: sticky;
  top: 0;
    gap: 1px;

.pn-modal-hybrid .modal-body {
    font-size: clamp(0.98rem, 5.9vw, 1.26rem);
  overscroll-behavior: contain;
}

    font-size: clamp(0.66rem, 3.65vw, 0.9rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--module-accent) 16%, var(--border));
}

.pn-modal-cadastro .modal-title {
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin-right: 8px;
}

.pn-modal-cadastro .pn-modal-close {
  border: 1px solid color-mix(in srgb, var(--module-accent) 20%, var(--border));
  background: color-mix(in srgb, var(--module-soft) 68%, #ffffff);
  color: color-mix(in srgb, var(--module-accent-dark) 78%, #2f3545);
  border-radius: 999px;
  min-height: 32px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.pn-modal-cadastro .pn-modal-close:hover,
.pn-modal-cadastro .pn-modal-close:focus-visible {
  background: color-mix(in srgb, var(--module-soft) 50%, #ffffff);
  border-color: color-mix(in srgb, var(--module-accent) 38%, var(--border));
  color: var(--module-accent-dark);
  transform: translateY(-1px);
  outline: none;
}

.pn-modal-cadastro .pn-modal-close i {
  font-size: 0.68rem;
}

.pn-modal-cadastro .pn-modal-tip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--module-accent) 26%, #f3cf87);
  background: linear-gradient(180deg, #fff4dc 0%, #ffeeca 100%);
  color: #66480e;
}

.pn-modal-cadastro .pn-modal-tip-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  color: #ad6b00;
  margin-top: 1px;
  flex-shrink: 0;
}

.pn-modal-cadastro .pn-modal-tip-text {
  font-size: 0.82rem;
  line-height: 1.35;
  color: #5b430e;
}

.pn-modal-cadastro .pn-modal-tip-text strong {
  font-weight: 800;
  color: #3c2d08;
}

@media (max-width: 991.98px) {
  .modal .modal-content,
  .modal .modal-header,
  .modal .modal-footer {
    border-radius: 0 !important;
  }

  .pn-modal-hybrid {
    max-width: 100vw;
    width: 100vw;
    height: 100dvh;
    margin: 0;
  }

  .pn-modal-hybrid .modal-content {
    min-height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .pn-modal-cadastro .modal-header {
    padding: 14px 12px 6px;
  }

  .pn-modal-cadastro .pn-modal-close {
    min-height: 30px;
    padding: 4px 9px;
    font-size: 0.74rem;
  }

  .pn-modal-cadastro .pn-modal-tip {
    padding: 9px 10px;
    gap: 8px;
  }

  .pn-modal-cadastro .pn-modal-tip-text {
    font-size: 0.79rem;
  }
}

/* Scrollbar estilizada para areas rolaveis */
.pn-modal-hybrid .modal-body,
.pn-detail-body {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--module-accent) 40%, #8e97ad) color-mix(in srgb, var(--surface-2) 80%, #d7dbe8);
}

.pn-modal-hybrid .modal-body::-webkit-scrollbar,
.pn-detail-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.pn-modal-hybrid .modal-body::-webkit-scrollbar-track,
.pn-detail-body::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--surface-2) 85%, #d7dbe8);
  border-radius: 999px;
}

.pn-modal-hybrid .modal-body::-webkit-scrollbar-thumb,
.pn-detail-body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--module-accent) 38%, #8e97ad);
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--surface-2) 85%, #d7dbe8);
}

.pn-modal-hybrid .modal-body::-webkit-scrollbar-thumb:hover,
.pn-detail-body::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--module-accent) 55%, #7a849d);
}

/* Botao fechar das modais (visual limpo) */
.pn-modal-hybrid .btn-close,
.pn-detail-close:not(.pn-modal-close),
.modal .btn-close {
  opacity: 0.92;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: transparent;
  box-shadow: none;
}

.pn-modal-hybrid .btn-close:hover,
.pn-detail-close:not(.pn-modal-close):hover,
.modal .btn-close:hover {
  background-color: var(--surface-2);
  border-color: color-mix(in srgb, var(--module-accent) 22%, var(--border));
  transform: none;
}

.modal-header,
.modal-footer {
  border-color: var(--border);
}

.btn {
  border-radius: 12px;
  font-weight: 700;
}

.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

[data-theme="dark"] .pn-contact-btn {
  background: #23293a;
  border-color: var(--border);
}

[data-theme="dark"] .pn-contact-btn:hover {
  background: #2b3146;
}

[data-theme="dark"] .pn-modal-hybrid .modal-header {
  background: rgba(30, 33, 48, 0.9);
}

[data-theme="dark"] .pn-modal-cadastro .pn-modal-close {
  background: color-mix(in srgb, var(--surface) 78%, #2a3248);
  border-color: rgba(255, 255, 255, 0.24);
  color: #e9efff;
}

[data-theme="dark"] .pn-modal-cadastro .pn-modal-close:hover,
[data-theme="dark"] .pn-modal-cadastro .pn-modal-close:focus-visible {
  background: color-mix(in srgb, var(--surface) 62%, #313c56);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

[data-theme="dark"] .pn-modal-cadastro .pn-modal-tip {
  border-color: color-mix(in srgb, #ffc875 24%, rgba(255,255,255,0.2));
  background: linear-gradient(180deg, rgba(96, 71, 27, 0.55) 0%, rgba(82, 59, 20, 0.48) 100%);
  color: #ffe8bb;
}

[data-theme="dark"] .pn-modal-cadastro .pn-modal-tip-icon {
  background: rgba(0, 0, 0, 0.24);
  color: #ffd98f;
}

[data-theme="dark"] .pn-modal-cadastro .pn-modal-tip-text {
  color: #ffe7b4;
}

[data-theme="dark"] .pn-modal-cadastro .pn-modal-tip-text strong {
  color: #fff4d8;
}

[data-theme="dark"] .pn-modal-hybrid .modal-body,
[data-theme="dark"] .pn-detail-body {
  scrollbar-color: color-mix(in srgb, var(--module-accent) 58%, #97a2bb) #242b3d;
}

[data-theme="dark"] .pn-modal-hybrid .modal-body::-webkit-scrollbar-track,
[data-theme="dark"] .pn-detail-body::-webkit-scrollbar-track {
  background: #242b3d;
}

[data-theme="dark"] .pn-modal-hybrid .modal-body::-webkit-scrollbar-thumb,
[data-theme="dark"] .pn-detail-body::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--module-accent) 60%, #97a2bb);
  border-color: #242b3d;
}

[data-theme="dark"] .pn-modal-hybrid .btn-close,
[data-theme="dark"] .pn-detail-close:not(.pn-modal-close),
[data-theme="dark"] .modal .btn-close {
  background-color: transparent;
  border-color: #4a5169;
  filter: invert(1) grayscale(1) brightness(1.15);
}

[data-theme="dark"] .pn-modal-hybrid .btn-close:hover,
[data-theme="dark"] .pn-detail-close:not(.pn-modal-close):hover,
[data-theme="dark"] .modal .btn-close:hover {
  background-color: #2a3144;
  border-color: color-mix(in srgb, var(--module-accent) 40%, #4a5169);
}

/* Mobile: botao fechar com texto + icone */
@media (max-width: 767.98px) {
  .pn-modal-hybrid .btn-close,
  .pn-detail-close:not(.pn-modal-close),
  .modal .btn-close {
    width: auto;
    min-width: 78px;
    height: 2rem;
    padding: 0 0.62rem 0 0.56rem;
    background-image: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 999px;
  }

  .pn-modal-hybrid .btn-close::before,
  .pn-detail-close:not(.pn-modal-close)::before,
  .modal .btn-close::before {
    content: "x";
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
  }

  .pn-modal-hybrid .btn-close::after,
  .pn-detail-close:not(.pn-modal-close)::after,
  .modal .btn-close::after {
    content: "Fechar";
    letter-spacing: 0.01em;
  }

  [data-theme="dark"] .pn-modal-hybrid .btn-close,
  [data-theme="dark"] .pn-detail-close:not(.pn-modal-close),
  [data-theme="dark"] .modal .btn-close {
    color: #d6dcef;
    filter: none;
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.28);
  }

  [data-theme="dark"] .pn-modal-hybrid .btn-close::before,
  [data-theme="dark"] .pn-detail-close:not(.pn-modal-close)::before,
  [data-theme="dark"] .modal .btn-close::before {
    color: #f5f7ff;
  }

  [data-theme="dark"] .pn-modal-hybrid .btn-close::after,
  [data-theme="dark"] .pn-detail-close:not(.pn-modal-close)::after,
  [data-theme="dark"] .modal .btn-close::after {
    color: #dfe5f5;
  }
}

[data-theme="dark"] .btn-brand-purple {
  background: #9a5fc1 !important;
}

[data-theme="dark"] .btn-brand-purple:hover,
[data-theme="dark"] .btn-brand-purple:focus {
  background: #8b4fb4 !important;
}

[data-theme="dark"] .btn-brand-green {
  background: #4ea75f !important;
}

[data-theme="dark"] .btn-brand-green:hover,
[data-theme="dark"] .btn-brand-green:focus {
  background: #419451 !important;
}

[data-theme="dark"] .btn-phone {
  background: #23293a;
  border-color: #3a415a;
  color: #ecf0ff;
}

[data-theme="dark"] .btn-phone:hover {
  background: #2c3348;
  border-color: color-mix(in srgb, var(--module-accent) 40%, #3a415a);
}

[data-theme="dark"] .pn-city-pill {
  background: color-mix(in srgb, var(--module-accent) 42%, transparent);
  color: #ffffff;
  border: 1px solid color-mix(in srgb, var(--module-accent) 62%, #6b738f);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--module-accent) 24%, transparent);
}

[data-theme="dark"] .pn-city-pill:hover {
  background: color-mix(in srgb, var(--module-accent) 52%, transparent);
}

[data-theme="dark"] .pn-city-pill:focus-visible,
[data-theme="dark"] .pn-city-pill:active {
  background: color-mix(in srgb, var(--module-accent) 60%, transparent);
  color: #ffffff;
}

[data-theme="dark"] .cat-card:active,
[data-theme="dark"] .cat-card:focus-visible {
  background: color-mix(in srgb, var(--module-accent) 32%, #171b29);
  border-color: color-mix(in srgb, var(--module-accent) 72%, #727ca0);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--module-accent) 40%, transparent);
  color: #f7f8ff;
}

[data-theme="dark"] .cat-card:active .cat-icon,
[data-theme="dark"] .cat-card:focus-visible .cat-icon {
  background: color-mix(in srgb, var(--module-accent) 50%, #1f2436);
  color: #ffffff;
}

[data-theme="dark"] .pn-theme-btn,
[data-theme="dark"] .pn-back {
  background: linear-gradient(180deg, #262c3f 0%, #1f2436 100%);
  border-color: #39415b;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  color: #c6cce3;
}

[data-theme="dark"] .pn-theme-btn:hover,
[data-theme="dark"] .pn-back:hover {
  color: #f5f7ff;
}

[data-theme="dark"] .obj-meta.perdi,
[data-theme="dark"] .obj-expiry,
[data-theme="dark"] .vaga-expiry {
  background: color-mix(in srgb, var(--module-accent) 22%, transparent);
  color: color-mix(in srgb, var(--module-accent) 68%, white);
}

[data-theme="dark"] .obj-meta.encontrei {
  background: rgba(59, 130, 246, 0.24);
  color: #a9ccff;
}

[data-theme="dark"] .pn-flash-card-success {
  background: rgba(16, 185, 129, 0.11);
  border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .pn-flash-card-info {
  background: rgba(59, 130, 246, 0.11);
  border-color: rgba(59, 130, 246, 0.38);
}

[data-theme="dark"] .pn-flash-card-danger {
  background: rgba(239, 68, 68, 0.11);
  border-color: rgba(239, 68, 68, 0.38);
}

[data-theme="dark"] .store-status-open {
  color: #73e3a6;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.38);
}

[data-theme="dark"] .store-status-closed {
  color: #ff8f98;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.36);
}

[data-theme="dark"] .store-status-offline {
  color: #c6ced8;
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.34);
}

[data-theme="dark"] .store-status-break {
  color: #ffc178;
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.36);
}

[data-theme="dark"] .store-rating {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  color: #ffd38a;
}

/* ── Dark Mode Per Module Contrast ──────────────────────── */
[data-theme="dark"] body.module-vagas {
  --module-accent: #ff9f66;
  --module-accent-dark: #ff8a47;
  --module-soft: rgba(255, 159, 102, 0.18);
  --module-focus-ring: rgba(255, 159, 102, 0.36);
}

[data-theme="dark"] body.module-objetos {
  --module-accent: #ffb26f;
  --module-accent-dark: #ff9f4f;
  --module-soft: rgba(255, 178, 111, 0.18);
  --module-focus-ring: rgba(255, 178, 111, 0.36);
}

[data-theme="dark"] body.module-caronas {
  --module-accent: #7fb0ff;
  --module-accent-dark: #66a1ff;
  --module-soft: rgba(127, 176, 255, 0.18);
  --module-focus-ring: rgba(127, 176, 255, 0.36);
}

[data-theme="dark"] body.module-desapega {
  --module-accent: #d59bf0;
  --module-accent-dark: #c984e8;
  --module-soft: rgba(213, 155, 240, 0.18);
  --module-focus-ring: rgba(213, 155, 240, 0.36);
}

[data-theme="dark"] body.module-imoveis {
  --module-accent: #8ed39c;
  --module-accent-dark: #78c689;
  --module-soft: rgba(142, 211, 156, 0.18);
  --module-focus-ring: rgba(142, 211, 156, 0.36);
}

/* ── Motion: Staggered Reveals ─────────────────────────── */
@keyframes pnRiseIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cat-grid > .cat-card,
.stores-grid > .store-card,
.vagas-grid > .vaga-card,
.objetos-grid > .obj-card,
.caronas-grid > .carona-card,
.desapega-grid > .item-card,
.imoveis-grid > .imovel-card {
  opacity: 0;
  animation: pnRiseIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cat-grid > :nth-child(1),
.stores-grid > :nth-child(1),
.vagas-grid > :nth-child(1),
.objetos-grid > :nth-child(1),
.caronas-grid > :nth-child(1),
.desapega-grid > :nth-child(1),
.imoveis-grid > :nth-child(1) { animation-delay: 0.04s; }

.cat-grid > :nth-child(2),
.stores-grid > :nth-child(2),
.vagas-grid > :nth-child(2),
.objetos-grid > :nth-child(2),
.caronas-grid > :nth-child(2),
.desapega-grid > :nth-child(2),
.imoveis-grid > :nth-child(2) { animation-delay: 0.08s; }

.cat-grid > :nth-child(3),
.stores-grid > :nth-child(3),
.vagas-grid > :nth-child(3),
.objetos-grid > :nth-child(3),
.caronas-grid > :nth-child(3),
.desapega-grid > :nth-child(3),
.imoveis-grid > :nth-child(3) { animation-delay: 0.12s; }

.cat-grid > :nth-child(4),
.stores-grid > :nth-child(4),
.vagas-grid > :nth-child(4),
.objetos-grid > :nth-child(4),
.caronas-grid > :nth-child(4),
.desapega-grid > :nth-child(4),
.imoveis-grid > :nth-child(4) { animation-delay: 0.16s; }

.cat-grid > :nth-child(n+5),
.stores-grid > :nth-child(n+5),
.vagas-grid > :nth-child(n+5),
.objetos-grid > :nth-child(n+5),
.caronas-grid > :nth-child(n+5),
.desapega-grid > :nth-child(n+5),
.imoveis-grid > :nth-child(n+5) { animation-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .cat-grid > .cat-card,
  .stores-grid > .store-card,
  .vagas-grid > .vaga-card,
  .objetos-grid > .obj-card,
  .caronas-grid > .carona-card,
  .desapega-grid > .item-card,
  .imoveis-grid > .imovel-card {
    opacity: 1;
    animation: none;
  }
}

