/* ==========================================================================
   PORTAL RESIDENCIAL VILA SERENA - LUXURY MOBILE-FIRST DESIGN SYSTEM
   ========================================================================== */

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

:root {
  /* Cores Nobres & Metais */
  --primary-900: #063e26;
  --primary-800: #0d4d32;
  --primary-700: #146342;
  --primary-600: #1a7851;
  --primary-500: #229465;
  --primary-soft: rgba(20, 99, 66, 0.08);
  --primary-glow: rgba(34, 148, 101, 0.25);

  --gold-500: #c89d38;
  --gold-400: #dfb758;
  --gold-300: #eed082;
  --gold-soft: rgba(200, 157, 56, 0.12);

  /* Superfícies - Modo Claro */
  --bg-app: #f6f8fa;
  --bg-card: #ffffff;
  --bg-card-hover: #fafbfc;
  --bg-subtle: #edf2f7;
  --bg-border: #e2e8f0;
  --bg-border-subtle: rgba(226, 232, 240, 0.8);

  /* Textos */
  --text-main: #09131e;
  --text-muted: #3d4f61;
  --text-subtle: #6b7f94;
  --text-white: #ffffff;

  /* Status */
  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-danger: #ef4444;
  --status-info: #3b82f6;

  /* Sombras em Camadas (Ambient Occlusion) */
  --shadow-xs: 0 1px 2px rgba(9, 19, 30, 0.03);
  --shadow-sm: 0 2px 6px rgba(9, 19, 30, 0.04), 0 1px 2px rgba(9, 19, 30, 0.02);
  --shadow-md: 0 6px 16px rgba(9, 19, 30, 0.06), 0 2px 4px rgba(9, 19, 30, 0.02);
  --shadow-lg: 0 12px 32px rgba(9, 19, 30, 0.08), 0 4px 8px rgba(9, 19, 30, 0.03);
  --shadow-dock: 0 10px 35px -5px rgba(9, 19, 30, 0.15), 0 0 0 1px rgba(9, 19, 30, 0.05);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --primary-900: #0a4028;
  --primary-800: #105939;
  --primary-700: #16734a;
  --primary-600: #1e8e5d;
  --primary-500: #26ab71;
  --primary-soft: rgba(38, 171, 113, 0.14);
  --primary-glow: rgba(38, 171, 113, 0.3);

  --gold-500: #e2b74b;
  --gold-400: #efca6b;
  --gold-300: #fae19a;
  --gold-soft: rgba(226, 183, 75, 0.16);

  /* Superfícies - Modo Escuro */
  --bg-app: #080d14;
  --bg-card: #0f1724;
  --bg-card-hover: #141e2e;
  --bg-subtle: #162234;
  --bg-border: #1e2c40;
  --bg-border-subtle: rgba(255, 255, 255, 0.08);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.65);
  --shadow-dock: 0 12px 36px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   RESET & SETUP
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 96px; /* Espaço para o Floating Dock */
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

.app-wrapper {
  width: 100%;
  max-width: 540px; /* Largura padrão de app mobile nativo */
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .app-wrapper {
    max-width: 680px;
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .app-wrapper {
    max-width: 820px;
  }
}

/* ==========================================================================
   HEADER / TOP BAR
   ========================================================================== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background-color: rgba(246, 248, 250, 0.88);
  border-bottom: 1px solid var(--bg-border-subtle);
  transition: var(--transition-smooth);
}

[data-theme="dark"] .top-bar {
  background-color: rgba(8, 13, 20, 0.88);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 0.5rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.btn-back {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-back:active {
  transform: scale(0.92);
}

.btn-back:hover {
  border-color: var(--primary-500);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-900), var(--primary-600));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 4px 12px var(--primary-glow);
  border: 1px solid var(--bg-border);
  flex-shrink: 0;
}

.brand-titles {
  min-width: 0;
  overflow: hidden;
}

.brand-titles h1 {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-titles p {
  font-size: 0.7rem;
  color: var(--text-subtle);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

@media (max-width: 420px) {
  .top-bar-inner {
    height: 56px;
    gap: 0.35rem;
  }
  .brand-logo-img, .brand-logo-icon {
    width: 34px;
    height: 34px;
  }
  .brand-titles h1 {
    font-size: 0.88rem;
  }
  .brand-titles p {
    font-size: 0.65rem;
  }
  .btn-back {
    width: 32px;
    height: 32px;
  }
  .pwa-install-top-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }
  .resident-pill-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--gold-500);
  transform: rotate(15deg);
}

/* ==========================================================================
   HERO CARD CINEMATOGRÁFICO COM ENTRADA.JPG
   ========================================================================== */
.hero-luxury-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  height: 260px;
  background-color: #06150f;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
  .hero-luxury-card {
    height: 310px;
  }
}

.hero-luxury-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-luxury-card:hover .hero-luxury-img {
  transform: scale(1.06);
}

.hero-luxury-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 21, 15, 0.15) 0%,
    rgba(6, 21, 15, 0.5) 45%,
    rgba(6, 21, 15, 0.94) 95%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  color: #ffffff;
}

.hero-header-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(6, 62, 38, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a7f3d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #34d399;
  position: relative;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #34d399;
  animation: pulseRing 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-greeting {
  font-size: 0.78rem;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.hero-bottom-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-estate-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-estate-address {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   CARROSSEL DE STATUS & INFORMAÇÕES RÁPIDAS
   ========================================================================== */
.quick-chips-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}

.quick-chips-scroll::-webkit-scrollbar {
  display: none;
}

.luxury-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.luxury-chip:active {
  transform: scale(0.96);
}

.luxury-chip-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-600);
}

[data-theme="dark"] .luxury-chip-icon {
  color: var(--primary-500);
}

/* ==========================================================================
   ATALHOS DA HOME (GRID DE ALTO LUXO)
   ========================================================================== */
.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.home-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.home-section-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-600);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

[data-theme="dark"] .home-section-more {
  color: var(--gold-400);
}

.shortcuts-luxury-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.shortcut-luxury-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 135px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.shortcut-luxury-card:active {
  transform: scale(0.97);
}

.shortcut-luxury-card:hover {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-md);
}

.shortcut-luxury-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.shortcut-luxury-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-soft), rgba(200, 157, 56, 0.08));
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-border-subtle);
  transition: var(--transition-fast);
}

/* CORES PERSONALIZADAS POR SERVIÇO (Elimina o amarelo repetitivo) */
.icon-pros {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.2);
}
.badge-pros {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.25);
}

.icon-rules {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}
.badge-rules {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

.icon-booking {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
  border-color: rgba(139, 92, 246, 0.2);
}
.badge-booking {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
  border-color: rgba(139, 92, 246, 0.25);
}

.icon-notices {
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  border-color: rgba(249, 115, 22, 0.2);
}
.badge-notices {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
  border-color: rgba(249, 115, 22, 0.25);
}

[data-theme="dark"] .icon-pros {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}
[data-theme="dark"] .badge-pros {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .icon-rules {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
[data-theme="dark"] .badge-rules {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .icon-booking {
  background: rgba(139, 92, 246, 0.18);
  color: #a78bfa;
  border-color: rgba(139, 92, 246, 0.3);
}
[data-theme="dark"] .badge-booking {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.3);
}

[data-theme="dark"] .icon-notices {
  background: rgba(249, 115, 22, 0.18);
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.3);
}
[data-theme="dark"] .badge-notices {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.3);
}

.shortcut-luxury-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.shortcut-luxury-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-top: 0.75rem;
}

.shortcut-luxury-desc {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 500;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* ==========================================================================
   CARD DE COMUNICADO VIP
   ========================================================================== */
.card-notice-vip {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 1px solid var(--bg-border);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.card-notice-vip::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--gold-soft) 0%, transparent 70%);
  pointer-events: none;
}

.notice-vip-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.35rem;
  display: inline-block;
}

.notice-vip-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.notice-vip-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   PÁGINA: GUIA DE PROFISSIONAIS (VIP CONCIERGE)
   ========================================================================== */
.page-luxury-intro {
  margin: 1.25rem 0 1.25rem;
}

.page-luxury-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.2;
}

.page-luxury-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
}

.btn-cta-indicate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  color: #ffffff;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--primary-glow);
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

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

.search-bar-luxury {
  position: relative;
  margin-bottom: 0.85rem;
}

.search-bar-luxury svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.search-input-luxury {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--bg-border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.search-input-luxury:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.chips-filter-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: none;
}

.chips-filter-row::-webkit-scrollbar {
  display: none;
}

.chip-filter-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.chip-filter-btn:active {
  transform: scale(0.95);
}

.chip-filter-btn.active {
  background: var(--primary-800);
  color: #ffffff;
  border-color: var(--primary-800);
  box-shadow: 0 3px 10px var(--primary-glow);
}

[data-theme="dark"] .chip-filter-btn.active {
  background: var(--gold-500);
  color: #080d14;
  border-color: var(--gold-500);
}

/* CARDS DE PROFISSIONAIS */
.pro-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.pro-card-vip {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.pro-card-vip:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-500);
}

.pro-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.pro-monogram-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-900), var(--primary-600));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: 0 4px 10px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.pro-header-meta {
  flex: 1;
  min-width: 0;
}

.pro-category-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary-700);
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .pro-category-pill {
  color: var(--gold-400);
  background: var(--bg-subtle);
}

.pro-person-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-main);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-rating-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #eab308;
  font-weight: 700;
  margin-top: 0.15rem;
}

.pro-specs-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.pro-review-quote {
  border-left: 3px solid var(--gold-500);
  padding-left: 0.75rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.95rem;
}

.pro-verified-neighbor {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-bottom: 1.15rem;
}

.pro-verified-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
}

.pro-action-btns-row {
  display: flex;
  gap: 0.65rem;
}

.btn-whatsapp-luxury {
  flex: 1;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: var(--transition-fast);
}

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

.btn-copy-luxury {
  background: var(--bg-subtle);
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-luxury:active {
  transform: scale(0.93);
}

/* ==========================================================================
   PÁGINA: REGRAS & REGIMENTO
   ========================================================================== */
.segmented-tabs-luxury {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-xs);
}

.segment-btn {
  flex: 1;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.segment-btn.active {
  background: var(--primary-800);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .segment-btn.active {
  background: var(--gold-500);
  color: #080d14;
}

/* CARDS DE NORMAS CLASSIFICADAS */
.rule-card-classified {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 0.95rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
}

.rule-classified-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.rule-classified-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.rule-badge-pill {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.badge-proibido {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-horario {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-permitido {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.rule-classified-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
}

.rule-classified-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ACORDEÃO DO REGIMENTO COMPLETO */
.regimento-accordion-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reg-chapter-item {
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-smooth);
}

.reg-chapter-header {
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: var(--bg-card);
}

.reg-chapter-header:hover {
  background: var(--bg-card-hover);
}

.reg-chapter-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.reg-chapter-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--primary-soft);
  color: var(--primary-700);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

[data-theme="dark"] .reg-chapter-badge {
  color: var(--gold-400);
  background: var(--bg-subtle);
}

.reg-chapter-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}

.reg-arrow-icon {
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
  transition: transform 0.25s ease;
}

.reg-chapter-item.is-open .reg-arrow-icon {
  transform: rotate(180deg);
  color: var(--primary-600);
}

[data-theme="dark"] .reg-chapter-item.is-open .reg-arrow-icon {
  color: var(--gold-400);
}

.reg-chapter-body {
  display: none;
  padding: 1.25rem;
  border-top: 1px solid var(--bg-border);
  background: var(--bg-card);
}

.reg-chapter-item.is-open .reg-chapter-body {
  display: block;
}

.reg-art-item {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed var(--bg-border);
}

.reg-art-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.reg-art-number {
  font-weight: 800;
  color: var(--primary-700);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 0.3rem;
}

[data-theme="dark"] .reg-art-number {
  color: var(--gold-400);
}

.reg-art-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.highlight-match {
  background-color: rgba(234, 179, 8, 0.3);
  font-weight: 700;
  padding: 0.1em 0.2em;
  border-radius: 2px;
}

/* ==========================================================================
   PÁGINA: RESERVAS & SIMULADOR
   ========================================================================== */
.space-card-luxury {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.space-card-luxury-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.space-specs-list {
  list-style: none;
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.space-specs-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.space-specs-list svg {
  color: #10b981;
  flex-shrink: 0;
}

.fee-simulator-box {
  background: var(--gold-soft);
  border: 1px solid rgba(200, 157, 56, 0.25);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fee-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.fee-calc {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-500);
}

/* FORMULÁRIO LUXO */
.luxury-form-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.form-field-group {
  margin-bottom: 1.15rem;
}

.form-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-field-input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--bg-border);
  background: var(--bg-app);
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-field-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-grid-two-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .form-grid-two-cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   PÁGINA: CONTATOS (CENTRAL VIP)
   ========================================================================== */
.dial-luxury-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 520px) {
  .dial-luxury-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dial-luxury-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
  min-width: 0;
  width: 100%;
}

.dial-luxury-card:active {
  transform: scale(0.96);
}

.dial-luxury-card:hover {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-sm);
}

.dial-luxury-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .dial-luxury-icon {
  color: var(--gold-400);
}

.dial-luxury-meta {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.dial-luxury-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-subtle);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dial-luxury-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   FLOATING APP DOCK (BOTTOM NAVIGATION DE LUXO)
   ========================================================================== */
.floating-dock-container {
  position: fixed;
  bottom: 14px;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1rem;
}

.floating-dock {
  pointer-events: auto;
  width: 100%;
  max-width: 500px;
  height: 64px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-dock);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
}

[data-theme="dark"] .floating-dock {
  background: rgba(15, 23, 36, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--text-subtle);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  flex: 1;
  transition: var(--transition-fast);
  position: relative;
}

.dock-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
  transition: transform var(--transition-fast);
}

.dock-item:active {
  transform: scale(0.9);
}

.dock-item.active {
  color: var(--primary-600);
  font-weight: 800;
}

[data-theme="dark"] .dock-item.active {
  color: #22c55e;
}

.dock-item.active svg {
  transform: translateY(-2px);
  stroke-width: 2.5;
  filter: drop-shadow(0 2px 6px rgba(34, 197, 94, 0.35));
}

/* ==========================================================================
   MODAL BOTTOM SHEET IOS
   ========================================================================== */
.modal-backdrop-luxury {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 20, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop-luxury.active {
  display: flex;
  opacity: 1;
}

@media (min-width: 640px) {
  .modal-backdrop-luxury {
    align-items: center;
    padding: 1.5rem;
  }
}

/* Scrollbars globais modernas e discretas */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 9999px;
}

.modal-sheet-luxury {
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox: oculta barra nativa */
  -ms-overflow-style: none; /* IE e Edge: oculta barra nativa */
  box-shadow: var(--shadow-lg);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--bg-border);
}

/* Oculta completamente a barra feia de rolagem em Webkit/Chrome/Edge/Celulares */
.modal-sheet-luxury::-webkit-scrollbar {
  display: none;
  width: 0px;
  height: 0px;
}

@media (min-width: 640px) {
  .modal-sheet-luxury {
    border-radius: var(--radius-lg);
    transform: scale(0.95);
  }
}

.modal-backdrop-luxury.active .modal-sheet-luxury {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-backdrop-luxury.active .modal-sheet-luxury {
    transform: scale(1);
  }
}

/* POP-UP DE COMUNICADO (CENTRALIZADO NO MEIO DA TELA NOS CELULARES E DESKTOP) */
#disclaimerModalBackdrop {
  align-items: center !important;
  justify-content: center !important;
  padding: 1.25rem !important;
}

#disclaimerModalBackdrop .modal-sheet-luxury {
  border-radius: 20px !important;
  transform: scale(0.9) !important;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease !important;
  max-width: 440px !important;
  width: 100% !important;
  margin: auto !important;
}

#disclaimerModalBackdrop.active .modal-sheet-luxury {
  transform: scale(1) !important;
}

#disclaimerModalBackdrop .sheet-drag-handle {
  display: none !important;
}

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--bg-border);
  margin: 0.75rem auto 0;
}

.sheet-header-luxury {
  padding: 1rem 1.35rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bg-border);
}

.sheet-header-luxury h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.sheet-close-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-body-luxury {
  padding: 1.35rem;
}

/* ==========================================================================
   TOAST NOTIFICATION DE ALTO LUXO
   ========================================================================== */
.toast-container-luxury {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  width: calc(100% - 2rem);
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-luxury {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--bg-border);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-left: 4px solid var(--primary-700);
  pointer-events: auto;
  animation: slideDownToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-luxury.toast-error {
  border-left-color: var(--status-danger);
}

.toast-luxury.toast-success {
  border-left-color: var(--status-success);
}

@keyframes slideDownToast {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   PERFIL DO MORADOR & BOTÃO SOS NO HEADER
   ========================================================================== */
.resident-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.resident-pill-btn:active {
  transform: scale(0.95);
}

.resident-pill-btn:hover {
  border-color: var(--primary-500);
}

.sos-btn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sos-btn-badge:active {
  transform: scale(0.93);
}

/* BANNER DE INSTALAÇÃO PWA */
.pwa-install-banner {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pwa-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-banner-title {
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.pwa-banner-desc {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.8);
}

.pwa-install-btn {
  background: #ffffff;
  color: var(--primary-900);
  border: none;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
}

/* WIDGET DE ENCOMENDAS NA HOME */
.encomendas-luxury-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-left: 4px solid var(--status-info);
}

.encomendas-meta h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.encomendas-meta p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.btn-consultar-encomenda {
  background: var(--primary-soft);
  color: var(--primary-700);
  border: 1px solid var(--primary-glow);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

[data-theme="dark"] .btn-consultar-encomenda {
  background: rgba(38, 171, 113, 0.15);
  color: var(--primary-500);
}

.btn-consultar-encomenda:active {
  transform: scale(0.95);
}

/* BOTÃO DE EXPORTAÇÃO VCARD */
.btn-export-vcard {
  width: 100%;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
  border: 1.5px solid var(--gold-500);
  color: var(--text-main);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.btn-export-vcard:active {
  transform: scale(0.98);
}

.btn-export-vcard:hover {
  background: var(--gold-soft);
}

/* CALENDÁRIO VISUAL INTERATIVO DE DISPONIBILIDADE */
.res-calendar-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.35rem;
}

.res-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.res-calendar-month {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  color: var(--text-main);
}

.cal-day-cell:active {
  transform: scale(0.9);
}

.cal-day-empty {
  cursor: default;
  pointer-events: none;
}

.cal-day-past {
  color: var(--text-subtle);
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.cal-day-free {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .cal-day-free {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
}

.cal-day-busy {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.3);
  cursor: not-allowed;
}

[data-theme="dark"] .cal-day-busy {
  color: #f87171;
}

.cal-day-cell.cal-selected {
  background: var(--primary-700);
  color: #ffffff !important;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

[data-theme="dark"] .cal-day-cell.cal-selected {
  background: var(--gold-500);
  color: #080d14 !important;
}

.cal-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--bg-border);
  font-size: 0.74rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-indicator {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* ACHADOS & PERDIDOS NA PORTARIA */
.lost-found-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
}

.lost-found-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.lost-found-status {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.lost-found-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.lost-found-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.btn-claim-lost {
  background: var(--primary-soft);
  color: var(--primary-700);
  border: 1px solid var(--primary-glow);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* BOTÃO DE INSTALAÇÃO PWA NO TOPO */
.pwa-install-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-900));
  color: #ffffff;
  border: 1px solid var(--primary-600);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.pwa-install-top-btn:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}

[data-theme="dark"] .pwa-install-top-btn {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

