/* ─── RESET ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── PAGE LOADER ─────────────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #f6f2e9;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#page-loader .loader-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  opacity: 0.9;
}
#page-loader .loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(31,77,54,0.15);
  border-top-color: #1d3f30;
  border-radius: 50%;
  animation: loaderSpin 0.75s linear infinite;
}
#page-loader .loader-text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(45,42,38,0.45);
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

/* ─── DESIGN TOKENS — MORADA PREMIUM BOLD ─────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:            #F6F2E9;
  --bg-2:          #EDE7D9;
  --bg-card:       #FFFFFF;

  /* Brand greens */
  --verde:         #1F4D36;
  --verde-med:     #2D6B4A;
  --verde-musgo:   #556B2F;
  --verde-oliva:   #7A8A5B;

  /* Warm earthy */
  --marrom:        #8A5A3B;
  --marrom-dark:   #6B4228;
  --bege:          #E8DFCF;

  /* Text */
  --text:          #2D2A26;
  --text-sec:      rgba(45,42,38,0.68);
  --text-muted:    rgba(45,42,38,0.50);

  /* Borders */
  --border:        rgba(45,42,38,0.13);
  --border-med:    rgba(45,42,38,0.22);

  /* Status */
  --ok:            #1A5C38;
  --ok-bg:         rgba(26,92,56,0.10);
  --aviso:         #9A7418;
  --aviso-bg:      rgba(201,162,77,0.13);
  --alerta:        #B84C4C;
  --alerta-bg:     rgba(184,76,76,0.10);
  --musgo:         #556B2F;
  --musgo-bg:      rgba(85,107,47,0.11);

  /* Layout — BOLD */
  --radius:        36px;
  --radius-sm:     28px;
  --radius-xs:     20px;
  --radius-pill:   999px;
  --transition:    220ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows — premium multi-layer BOLD */
  --sombra-xs:     0 2px 8px rgba(45,42,38,0.08);
  --sombra:        0 6px 28px rgba(45,42,38,0.10), 0 2px 8px rgba(45,42,38,0.06);
  --sombra-md:     0 16px 48px rgba(45,42,38,0.14), 0 4px 14px rgba(45,42,38,0.07);
  --sombra-lg:     0 32px 80px rgba(45,42,38,0.18), 0 10px 28px rgba(45,42,38,0.08);
  --sombra-verde:  0 10px 36px rgba(31,77,54,0.28), 0 3px 10px rgba(31,77,54,0.14);
  --sombra-marrom: 0 10px 32px rgba(138,90,59,0.26);

  /* ── New design system tokens ── */
  --green-deep:    #1E3A2F;
  --green-mid:     #2D5A42;
  --green-soft:    #4A7C5F;
  --amber:         #C8873A;
  --cream:         #FAF7F2;
  --bark:          #3D2B1F;
  --sand-light:    #EDE5D4;
  --rust:          #C0492A;
  --sky-blue:      #3D7A9B;
  --warm-white:    #FFFFFF;
  --green-mist:    rgba(74,124,95,0.08);
  --green-pale:    rgba(74,124,95,0.15);
  --amber-pale:    rgba(200,135,58,0.12);
  --rust-pale:     rgba(192,73,42,0.12);
  --text-soft:     rgba(61,43,31,0.55);

  /* ── Compatibility aliases for JS files ── */
  --texto-muted:   rgba(45,42,38,0.38);
  --mc-bg-card:    #FFFFFF;
  --mc-border-gold: rgba(138,90,59,0.30);
  --mc-text:       #2D2A26;
  --mc-text-faint: rgba(45,42,38,0.38);
  --mc-green:      #1F4D36;
  --mc-green-light: #2D6B4A;
  --mc-border:     rgba(45,42,38,0.09);
  --mc-gold-light: #C8873A;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.55;
  position: relative;
  isolation: isolate;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(31,77,54,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(138,90,59,0.06) 0%, transparent 55%);
  background-repeat: no-repeat, no-repeat;
  background-position: 15% 0%, 85% 100%;
  background-attachment: scroll;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('logo-morada.webp') no-repeat center 58%;
  background-size: min(34vw, 360px) auto;
  opacity: 0.045;
  filter: grayscale(1) saturate(0.18) contrast(0.92);
}

body > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  body::before {
    background-position: center 52%;
    background-size: min(48vw, 170px) auto;
    opacity: 0.04;
  }
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.header {
  background: linear-gradient(135deg, #1A4230 0%, var(--verde) 60%, #2D6B4A 100%);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 6px 32px rgba(31,77,54,0.36);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  max-width: 960px;
  margin: 0 auto;
}
.logo-img        { height: 48px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.logo-img-grande { height: 120px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.brand-nome {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: .01em;
}
.brand-sub {
  display: block;
  font-size: clamp(.72rem, 1.7vw, .82rem);
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  margin-top: 2px;
}
.brand-text { flex: 1; }

.back-btn {
  background: rgba(255,255,255,0.16);
  border: 2px solid rgba(255,255,255,0.30);
  border-radius: var(--radius-pill);
  color: #fff;
  padding: 11px 22px;
  cursor: pointer;
  font-size: clamp(.86rem, 2vw, .94rem);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  font-family: inherit;
  flex-shrink: 0;
  min-height: 46px;
  letter-spacing: .01em;
}
.back-btn:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.50);
  transform: translateX(-2px);
}

/* ─── INDEX HERO ─────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: clamp(52px, 13vw, 88px) 24px 44px;
  max-width: 960px;
  margin: 0 auto;
}
.hero-logo {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: var(--verde);
  border: 5px solid var(--bege);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 32px;
  box-shadow: var(--sombra-verde);
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 6vw, 2.7rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -.03em;
}
.hero p {
  color: var(--text-sec);
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.65;
}

/* ─── PROFILE CARDS ──────────────────────────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 22px 80px;
}
@media(min-width:580px){ .profile-grid { grid-template-columns: repeat(3,1fr); max-width: 960px; } }
.profile-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 22px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--sombra);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.profile-card:hover {
  border-color: var(--verde);
  background: rgba(31,77,54,0.03);
  box-shadow: var(--sombra-verde);
  transform: translateY(-8px);
}
.profile-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(31,77,54,0.10);
  border: 2px solid rgba(31,77,54,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
}
.profile-titulo { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 800; color: var(--text); }
.profile-desc   { font-size: .88rem; color: var(--text-sec); line-height: 1.55; }
.profile-arrow  { font-size: 1.2rem; color: var(--marrom); margin-top: 4px; }

/* ─── TABS ───────────────────────────────────────────────────────────────── */
.tabs-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: 0 2px 14px rgba(45,42,38,0.07);
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tabs-nav-inner {
  display: flex;
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px;
  gap: 6px;
}
.tab-btn {
  background: none;
  border: none;
  padding: 12px 22px;
  font-size: clamp(.88rem, 2vw, .96rem);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--radius-pill);
  min-height: 48px;
  letter-spacing: .01em;
}
.tab-btn:hover {
  color: var(--text-sec);
  background: rgba(45,42,38,0.05);
}
.tab-btn.active {
  color: var(--verde);
  background: rgba(31,77,54,0.10);
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(31,77,54,0.20);
}

/* ─── TABS CELULAR — fixas na base, pill verde forte ─────────────────────── */
@media(max-width:639px){
  .tabs-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 300;
    border-bottom: none;
    border-top: 1.5px solid var(--border);
    background: rgba(246,242,233,0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 -8px 36px rgba(45,42,38,0.13);
    height: 82px;
    overflow: visible;
  }
  .tabs-nav-inner {
    padding: 8px 10px 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: space-around;
    height: 100%;
    gap: 4px;
  }
  .tabs-nav-inner::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 7px 12px 9px;
    font-size: .62rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    min-width: 58px;
    min-height: 62px;
    letter-spacing: .03em;
    color: var(--text-muted);
    background: none;
    box-shadow: none;
  }
  .tab-btn:active { transform: scale(.88); }
  .tab-btn.active {
    color: #fff !important;
    background: var(--verde) !important;
    box-shadow: 0 6px 20px rgba(31,77,54,0.38) !important;
  }
}

/* ─── MAIN ───────────────────────────────────────────────────────────────── */
.main { max-width: 960px; margin: 0 auto; padding: 32px 20px 80px; }
@media(max-width:639px){ .main { padding: 22px 16px 118px; } }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── CARD ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--sombra);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--sombra-md);
  border-color: var(--border-med);
  transform: translateY(-3px);
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.card-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.04rem, 2.6vw, 1.18rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
}
.card-sub { font-size: clamp(.82rem, 2vw, .9rem); color: var(--text-sec); margin-top: 5px; }
.sec-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.02rem, 2.5vw, 1.14rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2.5px solid var(--border);
  letter-spacing: -.01em;
}

/* ─── BADGE ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: clamp(.72rem, 1.7vw, .78rem);
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.badge-confirmado,.badge-ativo,.badge-entregue  { background: var(--ok-bg);    color: var(--ok);    border-color: rgba(26,92,56,.25); }
.badge-pendente,.badge-aguardando               { background: var(--aviso-bg); color: var(--aviso); border-color: rgba(201,162,77,.32); }
.badge-cancelado,.badge-atrasado,.badge-vencido { background: var(--alerta-bg); color: var(--alerta); border-color: rgba(184,76,76,.25); }
.badge-concluido                                { background: var(--musgo-bg); color: var(--musgo);  border-color: rgba(85,107,47,.25); }
.badge-emTransito                               { background: rgba(31,77,54,.09); color: var(--verde-oliva); border-color: rgba(85,107,47,.25); }
.badge-baixo                                    { background: var(--alerta-bg); color: var(--alerta); border-color: rgba(184,76,76,.25); }

/* ─── BOAS-VINDAS BANNER ─────────────────────────────────────────────────── */
.bv-banner {
  background: linear-gradient(135deg, #1A4230 0%, var(--verde) 45%, #2D6B4A 100%);
  border-radius: var(--radius);
  padding: 34px 30px;
  color: #fff;
  margin-bottom: 26px;
  box-shadow: var(--sombra-verde);
  position: relative;
  overflow: hidden;
}
.bv-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.bv-banner::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,77,0.26) 0%, transparent 70%);
  pointer-events: none;
}
.bv-banner h2 {
  font-family: 'Fraunces', serif;
  color: #fff;
  font-size: clamp(1.2rem, 3.4vw, 1.55rem);
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -.02em;
  position: relative;
  z-index: 1;
}
.bv-banner p {
  color: rgba(255,255,255,0.82);
  font-size: clamp(.9rem, 2.3vw, 1rem);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ─── MINI STATS ─────────────────────────────────────────────────────────── */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.mini-stat {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px 18px 22px;
  box-shadow: var(--sombra);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.mini-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--verde);
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
}
.mini-stat:hover {
  box-shadow: var(--sombra-md);
  transform: translateY(-4px);
}
.mini-stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 6vw, 2.9rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -.04em;
}
.mini-stat-num.alerta { color: var(--alerta); }
.mini-stat-num.aviso  { color: var(--aviso); }
.mini-stat-num.ok     { color: var(--ok); }
.mini-stat-label {
  font-size: clamp(.66rem, 1.7vw, .74rem);
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--text-muted);
  margin-top: 9px;
  font-weight: 700;
}

/* ─── PET CARD ───────────────────────────────────────────────────────────── */
.pet-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  margin-bottom: 22px;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.pet-card:hover { box-shadow: var(--sombra-md); border-color: rgba(31,77,54,0.20); }
.pet-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 26px 0;
}
.pet-foto-wrap { position: relative; flex-shrink: 0; }
.pet-foto {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-2);
  border: 3.5px solid var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--text-muted);
  box-shadow: var(--sombra-verde);
}
.pet-foto img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pet-info-head { flex: 1; }
.pet-nome {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.1rem, 3.4vw, 1.28rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}
.pet-raca { font-size: clamp(.82rem, 2.1vw, .9rem); color: var(--text-sec); margin-top: 5px; }

.pet-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin: 20px 26px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 16px;
}
.pet-grid-item { text-align: center; }
.pet-grid-label {
  font-size: clamp(.62rem, 1.5vw, .68rem);
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  font-weight: 700;
}
.pet-grid-val {
  font-size: clamp(.9rem, 2.3vw, .98rem);
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}
.pet-obs {
  font-size: clamp(.82rem, 2.1vw, .9rem);
  color: var(--text-sec);
  line-height: 1.65;
  padding: 18px 26px 24px;
  border-top: 1.5px solid var(--border);
}
.pet-obs strong {
  color: var(--text);
  font-size: clamp(.76rem, 1.9vw, .82rem);
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

/* ─── FOTO UPLOAD ────────────────────────────────────────────────────────── */
.btn-foto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--verde);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-size: clamp(.84rem, 2.1vw, .92rem);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  margin-top: 14px;
  box-shadow: var(--sombra-verde);
  min-height: 50px;
}
.btn-foto:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(31,77,54,0.36); background: var(--verde-med); }
.btn-foto.uploading { opacity: .6; pointer-events: none; }
.foto-input { display: none; }
.foto-feedback { font-size: clamp(.74rem, 1.8vw, .80rem); margin-top: 8px; font-weight: 600; display: none; }
.foto-feedback.ok    { color: var(--ok);    display: block; }
.foto-feedback.erro  { color: var(--alerta); display: block; }

/* ─── AGENDA ITEM ────────────────────────────────────────────────────────── */
.ag-item {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 22px;
  margin-bottom: 16px;
  box-shadow: var(--sombra);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all var(--transition);
}
.ag-item:hover { box-shadow: var(--sombra-md); transform: translateY(-3px); border-color: rgba(31,77,54,0.16); }
.ag-item.status-pendente  { border-left: 5px solid rgba(201,162,77,.75); }
.ag-item.status-cancelado { opacity: .52; }
.ag-item.status-concluido { border-left: 5px solid rgba(85,107,47,.70); }

.ag-data {
  background: linear-gradient(145deg, var(--verde), var(--verde-med));
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  text-align: center;
  flex-shrink: 0;
  min-width: 66px;
  box-shadow: var(--sombra-verde);
}
.ag-item.status-pendente .ag-data  { background: linear-gradient(145deg, #7A5A10, #C9A24D); box-shadow: 0 5px 18px rgba(201,162,77,.38); }
.ag-item.status-cancelado .ag-data { background: linear-gradient(145deg, #7f2020, #B84C4C); box-shadow: 0 5px 18px rgba(184,76,76,.38); }
.ag-item.status-concluido .ag-data { background: linear-gradient(145deg, var(--verde-musgo), var(--verde-oliva)); box-shadow: 0 5px 18px rgba(85,107,47,.32); }

.ag-dia  { font-family: 'Fraunces', serif; font-size: clamp(1.5rem, 4.5vw, 1.8rem); font-weight: 800; color: #fff; line-height: 1; }
.ag-mes  { font-size: clamp(.62rem, 1.5vw, .68rem); text-transform: uppercase; color: rgba(255,255,255,.82); letter-spacing: .09em; margin-top: 3px; }
.ag-hora { font-size: clamp(.7rem, 1.7vw, .76rem); color: rgba(255,255,255,.94); font-weight: 700; margin-top: 6px; }
.ag-info   { flex: 1; min-width: 0; }
.ag-serv   { font-size: clamp(.96rem, 2.4vw, 1.04rem); font-weight: 700; color: var(--text); }
.ag-pet    { font-size: clamp(.82rem, 2vw, .9rem); color: var(--marrom); font-weight: 600; margin-top: 5px; }
.ag-tutor  { font-size: clamp(.78rem, 1.9vw, .86rem); color: var(--text-sec); margin-top: 4px; }
.ag-obs    { font-size: clamp(.74rem, 1.8vw, .80rem); color: var(--text-muted); margin-top: 8px; font-style: italic; line-height: 1.55; }

/* ─── ESTOQUE ────────────────────────────────────────────────────────────── */
.estoque-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1.5px solid var(--border);
  transition: opacity var(--transition);
}
.estoque-item:last-child { border-bottom: none; }
.cat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(31,77,54,0.10);
  border: 2px solid rgba(31,77,54,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.est-nome  { font-size: clamp(.9rem, 2.2vw, .98rem); font-weight: 600; color: var(--text); }
.est-cat   { font-size: clamp(.7rem, 1.7vw, .76rem); color: var(--text-muted); margin-top: 4px; }
.est-qty   { text-align: right; flex-shrink: 0; margin-left: auto; }
.est-num   { font-family: 'Fraunces', serif; font-size: clamp(1.1rem, 3vw, 1.28rem); font-weight: 800; color: var(--text); }
.est-num.baixo { color: var(--alerta); }
.est-un    { font-size: clamp(.64rem, 1.5vw, .70rem); color: var(--text-muted); }
.alerta-bar {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(.84rem, 2.1vw, .92rem);
  font-weight: 700;
  border: 1.5px solid transparent;
}
.alerta-bar.aviso { background: var(--alerta-bg); color: var(--alerta); border-color: rgba(184,76,76,.25); }
.alerta-bar.ok    { background: var(--ok-bg);     color: var(--ok);     border-color: rgba(26,92,56,.22); }

/* ─── ATRASO ──────────────────────────────────────────────────────────────── */
.atraso-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(184,76,76,.20);
  border-left: 5px solid var(--alerta);
  border-radius: var(--radius-sm);
  padding: 22px 22px;
  margin-bottom: 16px;
  box-shadow: 0 6px 24px rgba(184,76,76,.10);
  transition: all var(--transition);
}
.atraso-card:hover { box-shadow: 0 12px 36px rgba(184,76,76,.18); transform: translateY(-3px); }
.at-row    { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.at-tutor  { font-size: clamp(.96rem, 2.4vw, 1.04rem); font-weight: 700; color: var(--text); }
.at-desc   { font-size: clamp(.80rem, 2vw, .88rem); color: var(--text-sec); margin-top: 5px; }
.at-valor  { font-family: 'Fraunces', serif; font-size: clamp(1.1rem, 2.9vw, 1.22rem); font-weight: 800; color: var(--alerta); white-space: nowrap; }
.at-dias   { font-size: clamp(.76rem, 1.9vw, .82rem); font-weight: 700; color: var(--alerta); margin-top: 10px; }
.at-tel    { font-size: clamp(.76rem, 1.9vw, .82rem); color: var(--text-muted); margin-top: 5px; }

/* ─── TRANSPORTE ─────────────────────────────────────────────────────────── */
.tr-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1.5px solid var(--border);
}
.tr-item:last-child { border-bottom: none; }
.tr-hora    { font-family: 'Fraunces', serif; font-size: clamp(1.1rem, 2.9vw, 1.24rem); font-weight: 800; color: var(--verde); min-width: 60px; text-align: center; }
.tr-info    { flex: 1; min-width: 0; }
.tr-apelido { font-family: 'Fraunces', serif; font-size: clamp(.98rem, 2.5vw, 1.08rem); font-weight: 800; color: var(--text); }
.tr-pet     { font-size: clamp(.92rem, 2.3vw, 1rem); font-weight: 600; color: var(--text); }
.tr-tutor   { font-size: clamp(.78rem, 1.9vw, .86rem); color: var(--text-sec); margin-top: 5px; }
.tr-end     { font-size: clamp(.78rem, 1.9vw, .86rem); color: var(--text-muted); margin-top: 4px; }
.tr-footer  { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.badge-em-transito { background: rgba(31,77,54,.09); color: var(--verde-oliva); border-radius: var(--radius-pill); border: 1.5px solid rgba(85,107,47,.24); }
.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(.72rem, 1.8vw, .78rem);
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--marrom);
  color: #fff;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--sombra-marrom);
}
.btn-maps:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(138,90,59,.38); }

/* ─── CONTRATO ───────────────────────────────────────────────────────────── */
.contrato-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--sombra);
  padding: 22px 22px;
  margin-bottom: 18px;
  transition: all var(--transition);
}
.contrato-card:hover { box-shadow: var(--sombra-md); transform: translateY(-3px); border-color: rgba(31,77,54,0.20); }
.ct-tipo   { font-family: 'Fraunces', serif; font-size: clamp(.96rem, 2.5vw, 1.08rem); font-weight: 800; color: var(--text); margin-bottom: 11px; }
.ct-meta   { font-size: clamp(.78rem, 2vw, .86rem); color: var(--text-sec); }
.ct-meta span { display: inline-block; margin-right: 18px; }
.ct-desc   { font-size: clamp(.78rem, 2vw, .86rem); color: var(--text-sec); margin-top: 8px; line-height: 1.6; }
.ct-valor  { font-family: 'Fraunces', serif; font-size: clamp(1.1rem, 2.9vw, 1.2rem); font-weight: 800; color: var(--text); margin-top: 16px; }
.ct-valor small { font-size: clamp(.64rem, 1.5vw, .70rem); font-weight: 400; color: var(--text-muted); }

/* ─── FINANCEIRO ─────────────────────────────────────────────────────────── */
.fin-resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
@media(max-width:380px){ .fin-resumo { grid-template-columns: 1fr; } }
.fin-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  box-shadow: var(--sombra);
  text-align: center;
  transition: box-shadow var(--transition);
}
.fin-card:hover { box-shadow: var(--sombra-md); }
.fin-card.resultado {
  grid-column: 1/-1;
  border-color: var(--verde);
  border-left: 5px solid var(--verde);
  box-shadow: var(--sombra-verde);
}
.fin-label {
  font-size: clamp(.68rem, 1.7vw, .74rem);
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--text-muted);
  margin-bottom: 9px;
  font-weight: 700;
}
.fin-valor  { font-family: 'Fraunces', serif; font-size: clamp(1.4rem, 3.8vw, 1.65rem); font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.fin-valor.rec  { color: var(--ok);    }
.fin-valor.desp { color: var(--alerta); }
.fin-valor.pos  { color: var(--ok); }
.fin-valor.neg  { color: var(--alerta); }
.fin-lista-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1.5px solid var(--border);
  font-size: clamp(.86rem, 2.2vw, .94rem);
  color: var(--text-sec);
}
.fin-lista-item:last-child { border-bottom: none; }
.fin-lista-val { font-weight: 700; color: var(--text); }
.fin-lista-val.rec  { color: var(--ok);     }
.fin-lista-val.desp { color: var(--alerta); }
.fin-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  margin-top: 4px;
  border-top: 2.5px solid var(--border);
  font-size: clamp(.92rem, 2.3vw, 1rem);
  font-weight: 800;
  color: var(--text);
}

/* ─── DOCUMENTOS ─────────────────────────────────────────────────────────── */
.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1.5px solid var(--border);
}
.doc-item:last-child { border-bottom: none; }
.doc-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-xs);
  background: rgba(138,90,59,0.10);
  border: 2px solid rgba(138,90,59,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.doc-tipo  { font-size: clamp(.88rem, 2.2vw, .96rem); font-weight: 600; color: var(--text); }
.doc-pet   { font-size: clamp(.74rem, 1.8vw, .80rem); color: var(--text-muted); margin-top: 4px; }
.doc-data  { font-size: clamp(.72rem, 1.7vw, .78rem); color: var(--text-muted); text-align: right; }

/* ─── EMPTY ──────────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 64px 28px; color: var(--text-muted); }
.empty-icon { font-size: 3.2rem; opacity: .18; display: block; margin-bottom: 18px; }
.empty p    { font-size: clamp(.88rem, 2.2vw, .96rem); line-height: 1.65; color: var(--text-muted); }

/* ─── BOTÕES ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-size: clamp(.92rem, 2.2vw, 1rem);
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all var(--transition);
  text-decoration: none;
  min-height: 56px;
  letter-spacing: .02em;
}
.btn-primary {
  background: var(--verde);
  color: white;
  box-shadow: var(--sombra-verde);
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 44px rgba(31,77,54,0.36);
  background: var(--verde-med);
}
.btn-primary:active { transform: scale(.97); }
.btn-outline {
  background: var(--bg-card);
  color: var(--verde);
  border: 2.5px solid var(--verde);
}
.btn-outline:hover {
  background: rgba(31,77,54,0.08);
  border-color: var(--verde-med);
  transform: translateY(-3px);
}
.btn-sm { padding: 10px 22px; font-size: clamp(.80rem, 2vw, .88rem); min-height: 44px; }

/* ─── SEPARADOR ──────────────────────────────────────────────────────────── */
.sep-titulo {
  font-size: clamp(.72rem, 1.8vw, .80rem);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 30px;
}
.sep-titulo:first-child { margin-top: 0; }

/* ─── TUTOR BAR ──────────────────────────────────────────────────────────── */
.tutor-bar {
  background: var(--bg-card);
  border-bottom: 1.5px solid var(--border);
  padding: 14px 22px;
  box-shadow: var(--sombra-xs);
}
.tutor-bar-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.tutor-bar label {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tutor-bar select {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .96rem;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 52px;
}
.tutor-bar select:focus { border-color: var(--verde); box-shadow: 0 0 0 4px rgba(31,77,54,0.12); }

/* ─── RODAPÉ INDEX ───────────────────────────────────────────────────────── */
.rodape {
  text-align: center;
  padding: 32px 20px;
  color: var(--text-muted);
  font-size: clamp(.74rem, 1.8vw, .80rem);
  border-top: 1.5px solid var(--border);
}

/* ─── BADGES CONTRATOS ───────────────────────────────────────────────────── */
.badge-ct-pendente { background: var(--aviso-bg); color: var(--aviso); border: 1.5px solid rgba(201,162,77,.32); border-radius: var(--radius-pill); }
.badge-ct-assinado { background: var(--ok-bg); color: var(--ok); border: 1.5px solid rgba(26,92,56,.25); border-radius: var(--radius-pill); }

/* ─── MODAL ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(45,42,38,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.modal-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--sombra-lg);
  animation: modalIn .26s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(40px) scale(.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-title { font-family: 'Fraunces', serif; font-size: clamp(1.06rem, 2.7vw, 1.22rem); font-weight: 800; color: var(--text); margin-bottom: 14px; letter-spacing: -.01em; }
.modal-desc  { font-size: clamp(.88rem, 2.2vw, .96rem); color: var(--text-sec); line-height: 1.65; margin-bottom: 24px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 26px; flex-wrap: wrap; }
.modal-field   { margin-bottom: 20px; }
.modal-label   { display: block; font-size: clamp(.78rem, 1.9vw, .84rem); font-weight: 700; color: var(--text-sec); margin-bottom: 9px; letter-spacing: .04em; text-transform: uppercase; }
.modal-select, .modal-input, .modal-textarea {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: clamp(.9rem, 2.2vw, .98rem);
  color: var(--text);
  background: var(--bg);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 56px;
  box-sizing: border-box;
}
.modal-select:focus, .modal-input:focus, .modal-textarea:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 4px rgba(31,77,54,0.12);
}
.modal-textarea { resize: vertical; line-height: 1.55; min-height: 100px; }
.modal-file-input { display: block; width: 100%; padding: 9px 0; font-size: clamp(.84rem, 2vw, .92rem); color: var(--text-sec); font-family: inherit; }
.modal-x {
  position: absolute; top: 20px; right: 22px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  font-size: 1rem; cursor: pointer; color: var(--text-muted); line-height: 1;
  border-radius: var(--radius-pill); width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-x:hover { background: var(--bg-2); color: var(--text); }
.modal-fb { font-size: clamp(.76rem, 1.9vw, .82rem); margin-top: -4px; }

@media(max-width:639px){
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-card { border-radius: var(--radius) var(--radius) 0 0; max-width: 100%; max-height: 94vh; overflow-y: auto; padding: 30px 24px 48px; animation: sheetIn .30s cubic-bezier(0.34, 1.56, 0.64, 1); }
  @keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
}

/* ─── TOAST ──────────────────────────────────────────────────────────────── */
.toast-global {
  position: fixed; bottom: 116px; left: 50%; transform: translateX(-50%);
  z-index: 9999; padding: 16px 34px; border-radius: var(--radius-pill);
  font-size: clamp(.88rem, 2.2vw, .98rem); font-weight: 700;
  pointer-events: none; box-shadow: var(--sombra-md);
  transition: opacity .35s, transform .35s; white-space: nowrap; border: 1.5px solid var(--border);
}
.toast-ok   { background: var(--verde); color: #fff; border-color: transparent; }
.toast-erro { background: var(--bg-card); color: var(--alerta); border-color: rgba(184,76,76,.25); }

/* ─── AGENDA EDIT CONTROLS ───────────────────────────────────────────────── */
.ag-edit-row    { display: flex; gap: 9px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.ag-status-sel  { font-size: clamp(.76rem, 1.9vw, .82rem); font-weight: 700; padding: 8px 16px; border-radius: var(--radius-pill); border: 2px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; font-family: inherit; outline: none; transition: border-color var(--transition); min-height: 42px; }
.ag-status-sel:focus { border-color: var(--verde); }
.btn-obs-toggle { font-size: clamp(.76rem, 1.9vw, .82rem); padding: 8px 18px; border-radius: var(--radius-pill); background: var(--bg); border: 2px solid var(--border); cursor: pointer; font-family: inherit; color: var(--text-sec); transition: all var(--transition); min-height: 42px; }
.btn-obs-toggle:hover { background: var(--bg-2); color: var(--text); }
.ag-obs-field   { margin-top: 14px; }
.ag-obs-ta { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-xs); font-size: clamp(.84rem, 2.1vw, .92rem); font-family: inherit; resize: none; outline: none; box-sizing: border-box; background: var(--bg); color: var(--text); transition: border-color var(--transition), box-shadow var(--transition); }
.ag-obs-ta:focus { border-color: var(--verde); box-shadow: 0 0 0 4px rgba(31,77,54,0.10); }
.btn-salvar-obs { margin-top: 9px; font-size: clamp(.78rem, 1.9vw, .84rem); padding: 10px 24px; background: var(--verde); color: #fff; border: none; border-radius: var(--radius-pill); cursor: pointer; font-family: inherit; font-weight: 700; box-shadow: var(--sombra-verde); transition: all var(--transition); }
.btn-salvar-obs:hover { transform: translateY(-2px); background: var(--verde-med); }

/* ─── ESTOQUE EDIT QTY ────────────────────────────────────────────────────── */
.est-edit-row   { display: flex; gap: 9px; align-items: center; margin-top: 10px; }
.est-qty-input  { width: 84px; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-xs); font-size: clamp(.86rem, 2.1vw, .94rem); font-family: inherit; background: var(--bg); color: var(--text); outline: none; transition: border-color var(--transition), box-shadow var(--transition); min-height: 46px; }
.est-qty-input:focus { border-color: var(--verde); box-shadow: 0 0 0 4px rgba(31,77,54,0.10); }
.btn-edit-qty   { font-size: clamp(.80rem, 2vw, .88rem); font-weight: 700; padding: 8px 18px; border-radius: var(--radius-pill); background: var(--bg); border: 2px solid var(--border); cursor: pointer; color: var(--text-sec); margin-top: 3px; display: block; transition: all var(--transition); min-height: 42px; }
.btn-edit-qty:hover { background: var(--bg-2); color: var(--text); }
.btn-salvar-qty, .btn-cancelar-qty { font-size: clamp(.76rem, 1.9vw, .84rem); padding: 8px 18px; border-radius: var(--radius-pill); cursor: pointer; font-family: inherit; font-weight: 700; min-height: 40px; }
.btn-salvar-qty   { background: var(--verde); color: #fff; border: none; box-shadow: var(--sombra-verde); }
.btn-cancelar-qty { background: var(--bg); color: var(--text-sec); border: 2px solid var(--border); }

/* ─── SCROLLBAR ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(31,77,54,0.25); border-radius: 3px; }

/* ─── SERVICOS GRID (tutor — aba Agenda) ────────────────────────────────── */
.servicos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.servico-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--sombra);
}
.servico-card:hover { border-color: var(--verde); transform: translateY(-4px); box-shadow: var(--sombra-md); }
.servico-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(31,77,54,0.10);
  border: 2px solid rgba(31,77,54,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.55rem;
  margin: 0 auto 12px;
}
.servico-nome {
  font-family: 'Fraunces', serif;
  font-size: .98rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}
.servico-desc {
  font-size: .76rem;
  color: var(--text-sec);
  line-height: 1.5;
}

/* ─── DESKTOP (≥ 1100px) — Luciano & Thiago ─────────────────────────────── */
@media (min-width: 1100px) {
  /* Financeiro — 3 colunas (receita, despesa, resultado) */
  .fin-resumo { grid-template-columns: repeat(3, 1fr); }
  .fin-card.resultado { grid-column: auto; border-left: 5px solid var(--verde); }

  /* Servicos grid — 4 colunas no desktop */
  .servicos-grid { grid-template-columns: repeat(4, 1fr); }

  /* Tab pane — max-width para legibilidade em telas largas */
  .tab-pane { max-width: 960px; }
  #stats-thiago { max-width: 960px; }

  /* Toast — não precisa subir sobre bottom nav */
  .toast-global { bottom: 32px; }

  /* Modal sheet — não usar estilo bottom-sheet no desktop */
  .modal-overlay { align-items: center; padding: 22px; }
  .modal-card { border-radius: var(--radius); max-height: 90vh; overflow-y: auto; animation: modalIn .26s cubic-bezier(0.34,1.56,0.64,1); }
}

/* ─── ESTOQUE — BUSCA ───────────────────────────────────────────────────── */
.est-busca {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-med);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: .875rem;
  color: var(--text);
  outline: none;
  transition: border-color .18s;
}
.est-busca:focus { border-color: var(--verde-med); }

/* ─── AGENDA — cidade ───────────────────────────────────────────────────── */
.ag-cidade {
  font-size: .74rem;
  color: var(--text-sec);
  margin-top: 2px;
}

/* ─── TRANSPORTE — cidade ───────────────────────────────────────────────── */
.tr-cidade {
  font-size: .74rem;
  color: var(--text-sec);
  margin-top: 2px;
}

/* ─── CALENDÁRIO DE AGENDA ──────────────────────────────────────────────── */
.agcal-card { padding: 16px 12px 12px; margin-bottom: 16px; }

.agcal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.agcal-titulo {
  font-family: 'Fraunces', serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.agcal-arr {
  background: none;
  border: 1.5px solid var(--border-med);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.agcal-arr:hover { background: var(--bg-2); }

.agcal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.agcal-dow {
  text-align: center;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  padding-bottom: 6px;
}
.agcal-day {
  position: relative;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 6px 2px 8px;
  font-size: .8rem;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: background .15s;
  line-height: 1;
}
.agcal-day:hover { background: var(--bg-2); }
.agcal-day.hoje {
  font-weight: 700;
  color: var(--verde);
}
.agcal-day.sel {
  background: var(--verde);
  color: #fff;
  font-weight: 700;
}
.agcal-day.sel .agcal-dot { background: #fff; }
.agcal-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--verde-med);
  margin: 3px auto 0;
}

/* ─── CIDADES DO DIA (Transporte) ──────────────────────────────────────── */
.cidades-hoje {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.cidade-tag {
  display: inline-block;
  background: var(--verde);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .02em;
}

