/* BoothShare — design tokens extraidos da referencia (boothshare_referencia.html) */
:root {
  --ivory-0: #FFFCF6;
  --ivory-1: #F7F2EA;
  --ivory-2: #EFE6D9;
  --ivory-3: #E3D6C4;

  --ink: #1C1C1A;
  --ink-2: #2D261E;
  --muted: #7F7568;
  --faint: #B9AFA1;

  --forest: #103B35;
  --forest-2: #072724;
  --forest-soft: rgba(22, 59, 57, .08);
  --forest-rim: rgba(22, 59, 57, .18);

  --champagne: #C6A15B;
  --champagne-2: #D8B66F;
  --champagne-soft: rgba(184, 135, 74, .12);
  --champagne-rim: rgba(184, 135, 74, .26);

  --danger: #a85a52;
  --success: #527b58;
  --warning: #A0712E;

  --line: rgba(39, 31, 22, .075);
  --line-2: rgba(39, 31, 22, .13);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 34px;

  --shadow-soft: 0 1px 2px rgba(39, 31, 22, .04), 0 10px 28px rgba(39, 31, 22, .055);
  --shadow-elevated: 0 8px 24px rgba(39, 31, 22, .08), 0 28px 70px rgba(39, 31, 22, .10);
}

/* Contracts */
.muted { color: var(--muted); }
.panel h2 { margin: 0 0 12px; font-size: 16px; color: var(--ink-2); }
.panel p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; }
.table-wrap { width: 100%; overflow-x: auto; }
th {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}
td.actions, .actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
td.actions form, .actions form { display: inline-flex; }
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.status-rascunho { background: rgba(127,117,104,.12); color: var(--muted); }
.status-gerado { background: var(--champagne-soft); color: var(--champagne); }
.status-enviado { background: var(--forest-soft); color: var(--forest); }
.status-assinado { background: rgba(82,123,88,.12); color: var(--success); }
.contract-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.contract-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.contract-field-section {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.contract-field-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.contract-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.contract-paper {
  background: #fff;
  border: 1px solid rgba(39,31,22,.10);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
  color: #25221d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.75;
  min-height: 360px;
  padding: 34px;
  white-space: normal;
}
.contract-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.contract-detail small {
  display: block;
  margin-bottom: 4px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contract-detail strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
.contract-status-form {
  display: grid;
  gap: 12px;
  align-content: start;
}
.whatsapp-box textarea { resize: vertical; }
.smart-field-toolbar {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ivory-1);
}
.smart-field-toolbar > span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}
.smart-field-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.smart-field-group strong {
  min-width: 82px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.contract-public-page {
  min-height: 100vh;
  background: var(--ivory-1);
  padding: 32px 18px;
}
.contract-public-wrap {
  width: min(920px, 100%);
  margin: 0 auto;
}
.contract-public-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(16, 59, 53, .22);
}
.contract-public-head h1 {
  margin: 12px 0 6px;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 0;
}
@media(max-width: 880px) {
  .contract-intro,
  .contract-public-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .contract-detail {
    grid-template-columns: 1fr;
  }
  td.actions, .actions {
    justify-content: flex-start;
  }
  .contract-paper {
    padding: 22px;
    font-size: 13px;
  }
}

* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--ivory-2);
}

.display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 520;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: -.04em;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--champagne); font-weight: 430; }
.caption { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Logo ---------- */
.logo-lockup { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(16, 59, 53, .26);
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-word { font-size: 18px; font-weight: 500; letter-spacing: -.04em; color: var(--ink); }
.logo-word span { color: var(--forest); font-weight: 900; }
.logo-caption {
  margin-top: 1px;
  font-size: 9px;
  font-weight: 800;
  color: var(--champagne);
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Auth pages ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 8% 8%, rgba(184, 135, 74, .12) 0, transparent 30%),
    radial-gradient(circle at 92% 80%, rgba(22, 59, 57, .12) 0, transparent 30%),
    var(--ivory-2);
}
.auth-card {
  width: min(420px, 100%);
  background: var(--ivory-0);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-soft);
}
.auth-card .logo-lockup { margin-bottom: 26px; }
.auth-card h1 { font-size: 24px; margin: 0 0 6px; }
.auth-card p.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 26px; line-height: 1.5; }

label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin: 16px 0 7px; letter-spacing: .01em; }
input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 14.5px;
  background: var(--ivory-0);
  color: var(--ink);
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 4px var(--champagne-soft); }

.btn-primary {
  margin-top: 24px;
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: var(--r-sm);
  background: linear-gradient(145deg, var(--forest), var(--forest-2));
  color: var(--ivory-1);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.005em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 59, 53, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(16, 59, 53, .3); }
.btn-primary:active { transform: translateY(0); }

.alert {
  background: rgba(168, 90, 82, .1);
  color: var(--danger);
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-bottom: 12px;
  border: 1px solid rgba(168, 90, 82, .18);
}

.auth-alt { margin-top: 20px; font-size: 13px; text-align: center; color: var(--muted); }
.auth-alt a { color: var(--forest); font-weight: 800; text-decoration: none; }

/* ---------- App shell (dashboard etc.) ---------- */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: var(--ivory-0);
  border-bottom: 1px solid var(--line);
}
.app-header .logo-mark { width: 36px; height: 36px; border-radius: 11px; }
.app-header .logo-word { font-size: 15px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--ivory-0);
  display: grid; place-items: center;
  color: var(--muted);
  cursor: pointer;
}
.app-main { padding: 28px; max-width: 720px; margin: 0 auto; }

.soft-card {
  background: var(--ivory-0);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  padding: 24px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 10px;
  border-radius: 999px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
}
.b-gold { background: var(--champagne-soft); color: var(--champagne); }
.b-forest { background: var(--forest-soft); color: var(--forest); }

table { width: 100%; border-collapse: collapse; }
td { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
tr:last-child td { border-bottom: 0; }

/* ---------- App shell with sidebar (galleries, future features) ---------- */
body.bs-app {
  margin: 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(184, 135, 74, .12) 0, transparent 28%),
    radial-gradient(circle at 92% 76%, rgba(22, 59, 57, .10) 0, transparent 28%),
    var(--ivory-1);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
.bs-sidebar {
  position: fixed; inset: 0 auto 0 0; width: 230px;
  background: var(--forest-2); color: var(--ivory-1);
  padding: 32px 20px; overflow-y: auto;
}
.bs-sidebar .logo-word, .bs-drawer .logo-word { color: var(--ivory-0); }
.bs-sidebar .logo-word span, .bs-drawer .logo-word span { color: var(--champagne); }
.bs-sidebar-nav { display: grid; gap: 2px; }
.bs-sidebar-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,242,234,.32); margin: 20px 0 7px; padding: 0 12px; }
.bs-sidebar-nav a { display: block; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: rgba(247,242,234,.72); font-weight: 600; font-size: 13.5px; letter-spacing: .01em; transition: background .15s ease, color .15s ease; }
.bs-sidebar-nav a:hover { background: rgba(255,255,255,.08); color: var(--ivory-0); }
.bs-sidebar-nav a.active { background: rgba(198,161,91,.14); color: var(--champagne); }
.bs-sidebar-nav a.is-soon { color: rgba(247,242,234,.40); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bs-sidebar-nav a.is-soon:hover { color: rgba(247,242,234,.62); background: transparent; }
.soon-tag { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: rgba(255,255,255,.04); color: rgba(247,242,234,.32); padding: 1px 6px; border-radius: 999px; flex-shrink: 0; }
.bs-main { background: transparent; margin-left: 230px; min-height: 100vh; padding: 34px 38px 80px; }
.bs-main > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.bs-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }

/* Drawer mobile ("Mais") - sempre fixed/escondido por padrao, em qualquer
   largura de tela (o botao que abre so existe no mobile, mas a regra
   precisa valer fora da media query tambem, senao no desktop ele renderiza
   sem position:fixed e entra no fluxo normal da pagina, empurrando o
   conteudo pra baixo). */
.bs-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(7,10,9,.55); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.bs-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.bs-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 300px);
  background: var(--forest-2); color: var(--ivory-1);
  z-index: 61; padding: 26px 18px; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.22,1,.36,1);
  box-shadow: -18px 0 44px rgba(0,0,0,.3);
}
.bs-drawer.is-open { transform: translateX(0); }
.bs-drawer-close {
  position: absolute; top: 20px; right: 18px; width: 32px; height: 32px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--ivory-0);
  display: grid; place-items: center; cursor: pointer;
}
.bs-drawer .logo-lockup { padding-right: 40px; }
.bs-drawer .bs-sidebar-nav a { font-size: 14px; }
.bs-mobile-header { display: none; }

/* ---------- Card & button system (per spec) ---------- */
.card {
  background: rgba(255, 253, 248, .74);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--forest); color: var(--ivory-0);
  border: 0; border-radius: 999px; height: 38px; padding: 0 18px;
  font-weight: 800; font-size: 13.5px; font-family: inherit; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(16,59,53,.5); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: rgba(255,253,248,.68); color: var(--forest);
  border: 1px solid var(--line); border-radius: 999px; height: 38px; padding: 0 18px;
  font-weight: 700; font-size: 13.5px; font-family: inherit; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.btn-secondary:hover { transform: translateY(-1px); border-color: rgba(39,31,22,.2); }

/* ---------- Dashboard: hero, quick actions, next actions, summary ---------- */
.dash-greeting { margin-bottom: 20px; }
.dash-greeting h1 { font-size: clamp(24px,3.4vw,30px); }
.dash-greeting p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 52ch; }

.hero-dark {
  position: relative; overflow: hidden;
  border-radius: 34px; padding: 28px 26px;
  background: linear-gradient(150deg, var(--forest), var(--forest-2) 80%);
  color: var(--ivory-1); margin-bottom: 22px;
  box-shadow: 0 16px 40px -14px rgba(16,59,53,.45);
}
.hero-dark::after { content: ''; position: absolute; inset: 0; background: radial-gradient(420px 220px at 85% -10%, rgba(198,161,91,.18), transparent 70%); pointer-events: none; }
.hero-dark-eyebrow { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,242,234,.55); }
.hero-dark-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); }
.hero-dark-title { position: relative; font-family: 'Fraunces', serif; font-size: clamp(22px,3.2vw,28px); font-style: italic; font-weight: 500; margin: 12px 0 0; }
.hero-dark-meta { position: relative; color: rgba(247,242,234,.6); font-size: 13px; margin-top: 6px; }
.hero-dark-chips { position: relative; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(247,242,234,.85); border-radius: 999px; padding: 7px 13px; font-size: 11.5px; font-weight: 700; }
.hero-chip.is-pending { background: rgba(198,161,91,.18); border-color: rgba(198,161,91,.3); color: var(--champagne-2); }
.hero-dark-cta { position: relative; margin-top: 20px; }
.hero-empty { position: relative; color: rgba(247,242,234,.7); font-size: 14px; line-height: 1.6; max-width: 40ch; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.quick-action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; text-decoration: none; }
.quick-action-icon { width: 36px; height: 36px; border-radius: 11px; background: var(--forest-soft); color: var(--forest); display: grid; place-items: center; }
.quick-action-icon svg { width: 17px; height: 17px; }
.quick-action span { font-size: 13px; font-weight: 700; color: var(--ink); }
.quick-action.is-soon { opacity: .55; }

.section-label { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.next-actions { display: grid; gap: 10px; margin-bottom: 22px; }
.next-action-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.next-action-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--champagne); flex-shrink: 0; }
.next-action-row span { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.next-action-row a { font-size: 12px; font-weight: 800; color: var(--forest); text-decoration: none; flex-shrink: 0; }

.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* ---------- Home (referencia premium) ---------- */
.home-hero { padding-top: 8px; margin-bottom: 22px; }
.home-kicker { margin-bottom: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.kicker-line { width: 26px; height: 1px; background: var(--champagne); opacity: .55; }
.home-sub { margin-top: 10px; max-width: 520px; }

.storage-pill {
  margin-top: 14px; min-height: 34px; border-radius: 999px; padding: 8px 12px;
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 100%;
  background: rgba(255,253,248,.60); border: 1px solid var(--line); color: var(--muted);
  font-size: 10px; font-weight: 800; box-shadow: var(--shadow-soft);
}
.storage-bar { width: 66px; height: 5px; border-radius: 99px; background: var(--ivory-2); overflow: hidden; }
.storage-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--forest), var(--champagne)); border-radius: 99px; }

.today-production {
  margin: 22px auto 0; position: relative; overflow: hidden; padding: 28px 30px 30px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 96% 4%,  rgba(198,161,91,.22), transparent 36%),
    radial-gradient(ellipse at 4%  90%, rgba(198,161,91,.07), transparent 40%),
    linear-gradient(148deg, #132e29 0%, #173b38 58%, #0e2927 100%);
  color: #f8efe4;
  box-shadow: 0 20px 48px rgba(16,59,53,.30), 0 4px 12px rgba(16,59,53,.14);
}
.today-production::after {
  content: ''; position: absolute; inset: 12px; border-radius: 24px;
  border: 1px solid rgba(248,239,228,.06); pointer-events: none;
}
.production-top {
  display: flex; justify-content: space-between; align-items: center;
}
.production-eyebrow-text {
  display: flex; align-items: center; gap: 7px;
  color: rgba(248,239,228,.50); font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.production-status-pill {
  display: inline-flex; align-items: center;
  padding: 3px 11px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10);
  color: rgba(248,239,228,.80); font-size: 9px; font-weight: 800;
  letter-spacing: .10em; text-transform: uppercase;
}
.production-title {
  margin-top: 28px; max-width: 680px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(26px, 4vw, 36px); line-height: 1.08;
  letter-spacing: -.035em; font-style: italic; font-weight: 480;
}
.production-meta { margin-top: 10px; max-width: 480px; color: rgba(248,239,228,.60); font-size: 13px; line-height: 1.55; }
.production-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.production-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
  color: rgba(248,239,228,.68); font-size: 10.5px; font-weight: 700;
}
.production-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.production-view-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 999px;
  background: var(--champagne); color: var(--forest-2);
  font-size: 13px; font-weight: 900; text-decoration: none;
  transition: opacity .15s;
}
.production-view-btn:hover { opacity: .86; }
.production-wa-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(248,239,228,.82); font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background .15s;
}
.production-wa-btn:hover { background: rgba(255,255,255,.14); }
.today-production.has-event {
  background:
    radial-gradient(ellipse at 96% 4%,  rgba(198,161,91,.32), transparent 40%),
    radial-gradient(ellipse at 4%  90%, rgba(198,161,91,.10), transparent 44%),
    linear-gradient(148deg, #132e29 0%, #1a3e34 58%, #0e2927 100%);
}
.production-eyebrow-event { color: rgba(198,161,91,.90) !important; }
.production-main-btn { width: 100%; min-height: 44px; border-radius: 999px; background: var(--champagne); color: var(--forest-2); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 13px; font-weight: 900; }

.section-head { padding: 24px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.section-head .title, .title { font-size: 14px; font-weight: 800; letter-spacing: -.015em; color: var(--ink-2); }
.section-link { font-size: 11px; font-weight: 800; color: var(--champagne); text-decoration: none; }

.action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.action-card { min-height: 92px; border-radius: 20px; padding: 14px; background: rgba(255,253,248,.74); border: 1px solid var(--line); box-shadow: var(--shadow-soft); text-decoration: none; color: var(--ink); display: block; }
.action-icon { width: 32px; height: 32px; border-radius: 12px; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); margin-bottom: 10px; }
.action-card .title { font-size: 12.5px; }
.action-card .caption { font-size: 10.5px; margin-top: 3px; line-height: 1.35; }

.ops-timeline { padding: 16px; border-radius: 24px; background: rgba(255,253,248,.72); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.timeline-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-dot { width: 24px; height: 24px; border-radius: 10px; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); font-size: 11px; font-weight: 900; }
.timeline-dot.pending { background: rgba(160,113,46,.10); color: var(--warning); }
.timeline-dot.blank { background: rgba(127,117,104,.10); color: var(--muted); }
.event-name { font-size: 13px; font-weight: 800; color: var(--ink); }
.event-detail { margin-top: 2px; color: var(--muted); font-size: 11px; }
.mini-action-link { color: var(--forest); font-size: 12px; font-weight: 900; text-decoration: none; flex-shrink: 0; }

.summary-mini-grid, .mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.summary-card, .mini-card { padding: 16px; border-radius: 20px; background: rgba(255,253,248,.74); border: 1px solid var(--line); box-shadow: var(--shadow-soft); text-align: left; }
.summary-card strong, .mini-number { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 25px; line-height: 1; color: var(--ink); }
.summary-card span, .mini-label { display: block; margin-top: 8px; font-size: 10px; color: var(--muted); font-weight: 700; }
.summary-card.is-soon strong { color: var(--faint); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap }
.page-head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }

.flash { background: rgba(82,123,88,.1); color: var(--success); border: 1px solid rgba(82,123,88,.22); padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: 13.5px; }
.alert { background: rgba(168,90,82,.1); color: var(--danger); border: 1px solid rgba(168,90,82,.22); padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 12px; font-size: 13.5px; }

.btn-primary-sm, .btn-ghost-sm, .btn-danger-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-family: inherit;
}
.btn-primary-sm { background: var(--forest); color: var(--ivory-0); }
.btn-primary-sm:hover { background: var(--forest-2); }
.btn-ghost-sm { background: var(--ivory-0); border-color: var(--line); color: var(--ink); }
.btn-ghost-sm:hover { border-color: rgba(28,28,26,.2); }
.btn-danger-sm { background: rgba(168,90,82,.08); border-color: rgba(168,90,82,.22); color: var(--danger); }
.btn-danger-sm:hover { background: rgba(168,90,82,.14); }
.btn-delete-event {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(168,90,82,.22);
  color: var(--danger); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-delete-event:hover { background: rgba(168,90,82,.08); border-color: rgba(168,90,82,.38); }

/* Modal de confirmação de exclusão */
.delete-modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(14,41,39,.52); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.delete-modal-overlay[hidden] { display: none; }
.delete-modal {
  background: var(--ivory-0); border-radius: var(--r-xl);
  padding: 32px 28px 28px; max-width: 420px; width: 100%;
  box-shadow: 0 24px 64px rgba(14,41,39,.22), 0 4px 16px rgba(14,41,39,.10);
  border: 1px solid var(--line);
}
.delete-modal-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(168,90,82,.10); color: var(--danger);
  display: grid; place-items: center; margin-bottom: 16px;
}
.delete-modal-title {
  font-size: 17px; font-weight: 800; letter-spacing: -.025em;
  color: var(--ink); margin-bottom: 8px;
}
.delete-modal-body {
  font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 24px;
}
.delete-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-danger-confirm {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 18px; border-radius: 999px;
  background: var(--danger); color: #fff; border: none;
  font-size: 13px; font-weight: 800; cursor: pointer; transition: opacity .15s;
}
.btn-danger-confirm:hover { opacity: .86; }

/* Pagamento à vista — toggle segmentado no contrato */
.avista-toggle-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 4px; }
.avista-toggle-label { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.avista-seg-ctrl { display: inline-flex; background: var(--ivory-1,#f4f1ec); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.avista-seg-opt {
  height: 32px; padding: 0 18px; border-radius: 999px; border: none;
  background: transparent; font-size: 12.5px; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.avista-seg-opt.active {
  background: var(--ivory-0,#fff); color: var(--ink);
  box-shadow: 0 1px 4px rgba(14,41,39,.12);
}
.avista-conditional { display: contents; }
.avista-conditional[hidden] { display: none; }

.panel { background: var(--ivory-0); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-soft); padding: 22px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-grid .wide { grid-column: 1/-1; }
.form-grid label { display: grid; gap: 7px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--ivory-0); color: var(--ink); font: inherit; box-sizing: border-box;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 4px var(--champagne-soft); }
.form-actions { display: flex; justify-content: flex-end; margin-top: 6px; }

/* Album grid (galleries.php) */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.album-card { padding: 0; overflow: hidden; }
.album-cover { position: relative; aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: var(--forest-2); }
.album-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,39,36,.55)); }
.album-badge, .album-status { position: absolute; z-index: 1; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.album-badge { top: 12px; left: 12px; background: rgba(7,39,36,.55); color: #fff; }
.album-status { top: 12px; right: 12px; text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }
.album-status.is-public { background: rgba(198,161,91,.85); color: var(--forest-2); }
.album-status.is-private { background: rgba(255,255,255,.85); color: var(--muted); }
.album-body { padding: 16px 18px 18px; }
.album-link { display: block; color: var(--muted); font-size: 11.5px; margin: 2px 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.album-actions form { display: inline; }

/* ============ Molduras (molduras.php) - biblioteca premium Canva ============ */
.molduras-page { max-width: 1120px; margin: 0 auto; }

.molduras-hero {
  position: relative; overflow: hidden; padding: 30px; border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(215, 180, 119, .20), transparent 32%),
    linear-gradient(145deg, #173b39, #0e2a29 72%);
  color: #f8efe4; box-shadow: 0 16px 36px rgba(22, 59, 57, .27);
}
.molduras-hero::after {
  content: ''; position: absolute; inset: 14px; border-radius: 22px;
  border: 1px solid rgba(248, 239, 228, .08); pointer-events: none;
}
.molduras-hero-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; color: var(--champagne-2); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.molduras-hero-top::before { content: ''; width: 22px; height: 1px; background: var(--champagne-2); opacity: .7; }
.molduras-hero-title {
  position: relative; z-index: 2; font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.04em; font-weight: 520;
}
.molduras-hero-text {
  position: relative; z-index: 2; margin-top: 12px; max-width: 560px;
  color: rgba(248, 239, 228, .68); font-size: 14px; line-height: 1.55;
}
.molduras-stats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.molduras-stat {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.10);
  color: rgba(248,239,228,.76); font-size: 11px; font-weight: 800;
}

.molduras-tools { margin-top: 22px; display: grid; gap: 12px; }
.molduras-search {
  width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,253,248,.74); box-shadow: var(--shadow-soft); padding: 0 18px;
  font-family: 'Manrope', sans-serif; color: var(--ink); outline: none;
}
.molduras-filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.molduras-filters::-webkit-scrollbar { display: none; }
.molduras-filter {
  flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,253,248,.66); color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer;
}
.molduras-filter.active { background: var(--forest); color: #fbf4ea; border-color: var(--forest); }

.molduras-section-label { margin: 28px 0 14px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.molduras-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }

.moldura-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 24px;
  background: rgba(255,253,248,.76); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease;
}
.moldura-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevated); }
.moldura-card.is-soon { opacity: .82; }

.moldura-cover { aspect-ratio: 4 / 5; height: auto; overflow: hidden; background: var(--ivory-2); position: relative; padding: 12px; }
.moldura-cover img { width: 100%; height: 100%; display: block; object-fit: contain; }
.moldura-cover-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--ivory-2), var(--ivory-3));
  color: var(--faint); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.moldura-cover-newtag {
  position: absolute; top: 12px; right: 12px; height: 24px; padding: 0 10px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--forest); color: #fbf4ea; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase;
}

.moldura-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.moldura-badge {
  width: fit-content; height: 22px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px;
  background: var(--champagne-soft); color: var(--champagne); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.moldura-title { margin-top: 12px; font-family: 'Fraunces', Georgia, serif; font-size: 19px; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.moldura-text { margin-top: 10px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.moldura-footer { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.moldura-count { color: var(--faint); font-size: 10.5px; font-weight: 800; }
.moldura-btn {
  height: 30px; padding: 0 12px; border-radius: 999px; background: var(--forest); color: #fbf4ea;
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 900; white-space: nowrap; border: 0;
}
.moldura-btn svg { width: 11px; height: 11px; }
.moldura-btn.is-disabled { background: var(--ivory-2); color: var(--faint); cursor: default; }
.moldura-card:nth-child(3n+2) .moldura-btn:not(.is-disabled) { background: var(--champagne); color: var(--forest-2); }

/* ── Pack lock / free ──────────────────────────────────────────── */
.molduras-section-header { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.molduras-section-sub { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.molduras-unlock-trigger { background: none; border: none; padding: 0; font-size: 12px; font-weight: 700; color: var(--forest); cursor: pointer; text-decoration: underline; }
.molduras-premium-header { margin-top: 34px; flex-direction: column; align-items: flex-start; gap: 4px; }
.molduras-unlocked-badge { display: inline-flex; align-items: center; gap: 5px; background: #d1f5e0; color: #0a6633; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px 3px 6px; border-radius: 999px; }
.molduras-unlocked-badge svg { width: 13px; height: 13px; stroke: #0a6633; }
.moldura-lock-overlay { position: absolute; inset: 0; background: rgba(10,15,12,.55); backdrop-filter: blur(3px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.moldura-lock-overlay svg { width: 22px; height: 22px; stroke: #fff; }
.moldura-card.is-locked { cursor: pointer; }
.moldura-btn.is-locked-btn { background: var(--ivory-3); color: var(--muted); cursor: pointer; gap: 5px; }
.moldura-btn.is-locked-btn svg { width: 11px; height: 11px; }

/* ── Packs gratuitos ───────────────────────────────────────────── */
.moldura-cover-free { background: linear-gradient(145deg, #e8f5ee, #d1eddc); }
.moldura-cover-free img { width: 100%; height: 100%; object-fit: contain; display: block; }
.moldura-free-badge {
  position: absolute; top: 10px; left: 10px;
  background: #0a6633; color: #fff; font-size: 9px; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(10,102,51,.3);
}

/* ── Unlock banner ─────────────────────────────────────────────── */
.molduras-unlock-banner {
  background: linear-gradient(150deg, #f0f8f3 0%, #e8f5ee 50%, #f4f9f6 100%);
  border: 1.5px solid #b8d9c2; border-radius: 24px; padding: 28px 32px; margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(16,59,53,.06);
}
.molduras-unlock-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.molduras-unlock-iconbox {
  flex-shrink: 0; width: 48px; height: 48px; background: var(--forest);
  border-radius: 14px; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(16,59,53,.25);
}
.molduras-unlock-title { font-family: 'Fraunces', Georgia, serif; font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; margin: 0 0 6px; }
.molduras-unlock-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.molduras-unlock-desc strong { color: var(--forest); font-weight: 700; }
.molduras-unlock-form { display: flex; flex-direction: column; gap: 0; }
.molduras-unlock-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.molduras-unlock-field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; }
.molduras-unlock-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.molduras-unlock-input {
  height: 46px; border: 1.5px solid #c5ddc8; border-radius: 12px; padding: 0 16px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.molduras-unlock-input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(16,59,53,.1); }
.molduras-unlock-btn {
  height: 46px; padding: 0 24px; border-radius: 12px; background: var(--forest); color: #fbf4ea;
  border: 0; font-size: 13.5px; font-weight: 800; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(16,59,53,.22);
}
.molduras-unlock-btn:hover { background: #0c2e28; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,59,53,.3); }
.molduras-unlock-btn:active { transform: translateY(0); }
.molduras-unlock-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.molduras-unlock-hint { font-size: 11px; color: var(--faint); margin: 10px 0 0; line-height: 1.5; }
.molduras-unlock-error { font-size: 12.5px; color: #c0392b; background: #fdf0ef; border: 1px solid #f5c6c2; border-radius: 8px; padding: 10px 14px; margin-top: 12px; }
.molduras-unlock-success { font-size: 14px; font-weight: 700; color: #0a6633; display: flex; align-items: center; gap: 8px; }

@media (max-width: 1100px) {
  .molduras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .molduras-page { max-width: none; }
  .molduras-hero { padding: 24px 22px; border-radius: 28px; }
  .molduras-hero-title { font-size: 31px; }
  .molduras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .moldura-card { border-radius: 20px; }
  .moldura-cover { aspect-ratio: 4 / 5; height: auto; padding: 9px; }
  .moldura-body { padding: 12px; }
  .moldura-badge { font-size: 8px; height: 20px; padding: 0 7px; }
  .moldura-title { font-size: 15px; margin-top: 9px; }
  .moldura-text { display: none; }
  .moldura-footer { align-items: center; flex-wrap: wrap; padding-top: 10px; }
  .moldura-count { font-size: 9.5px; }
  .moldura-btn { height: 28px; padding: 0 10px; font-size: 9.5px; }
}

/* Photo grid (gallery_photos.php) */
.photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.photo-card { position: relative; background: var(--ivory-0); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; }
.photo-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.photo-card form { display: flex; gap: 5px; margin-top: 8px; }
.machine-editor-list { display: flex; flex-direction: column; gap: 14px; }
.machine-editor-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; padding: 14px; background: var(--ivory-0); border: 1px solid var(--line); border-radius: var(--r-md); }
.machine-editor-thumb { width: 110px; height: 110px; border-radius: var(--r-sm); background-size: cover; background-position: center; background-color: var(--ivory-2); flex-shrink: 0; }
.machine-editor-fields { display: flex; flex-direction: column; gap: 8px; }
.machine-editor-fields input { height: 38px; padding: 0 10px; font-size: 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ivory-1); width: 100%; }
.machine-editor-fields textarea { padding: 8px 10px; font-size: 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ivory-1); width: 100%; resize: vertical; line-height: 1.5; }
@media (max-width: 520px) {
  .machine-editor-row { grid-template-columns: 80px 1fr; }
  .machine-editor-thumb { width: 80px; height: 80px; }
}
.photo-cover-tag { position: absolute; top: 14px; left: 14px; background: var(--champagne); color: var(--forest-2); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }

/* Leads */
.lead-grid-list { display: grid; gap: 14px; }
.lead-card { display: flex; flex-direction: column; gap: 14px; }
.lead-top { display: flex; align-items: center; gap: 12px; }
.lead-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest-soft); color: var(--forest); display: grid; place-items: center; font-family: 'Fraunces', serif; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.lead-name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.lead-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.lead-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead-meta-label { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin-bottom: 3px; }
.lead-meta-value { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.lead-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lead-actions form { display: inline-flex; }
.lead-actions .is-soon { opacity: .45; pointer-events: none; }
.status-select-sm { appearance: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 30px 8px 13px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; background-color: var(--ivory-0); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237F7568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; }
.badge-status-novo { background: var(--forest-soft); color: var(--forest); }
.badge-status-contatado { background: rgba(160,113,46,.12); color: var(--warning); }
.badge-status-negociando { background: var(--champagne-soft); color: var(--champagne); }
.badge-status-convertido { background: rgba(82,123,88,.12); color: var(--success); }
.badge-status-perdido { background: rgba(168,90,82,.12); color: var(--danger); }

/* Color picker (gallery_create.php / gallery_edit.php) */
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.color-swatch { width: 36px; height: 36px; border-radius: 50%; background: var(--swatch); border: 2px solid transparent; cursor: pointer; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .15s ease, border-color .15s ease; }
.color-swatch:hover { transform: translateY(-1px); }
.color-swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.color-swatch:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px var(--champagne-soft); }

/* Upload dropzone */
.dropzone { display: grid; place-items: center; min-height: 140px; border: 2px dashed var(--champagne-soft); border-radius: var(--r-md); background: var(--ivory-1); color: var(--ink); font-weight: 700; text-align: center; padding: 20px; }
.dropzone input { margin-top: 12px; }

/* Input de arquivo premium - esconde o input nativo (o botao feio do
   navegador nao e confiavel de estilizar via ::file-selector-button entre
   navegadores) e usa um botao de verdade por cima, com o nome do arquivo
   escolhido ao lado. Ver .file-field no HTML. */
.file-field { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-field input[type="file"] {
  position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;
}
.file-field-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--forest); color: var(--ivory-0);
  border: 0; border-radius: 999px; padding: 10px 20px;
  font-weight: 700; font-size: 13px; font-family: inherit;
  cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.file-field-btn:hover { background: var(--forest-2); transform: translateY(-1px); }
.file-field-btn svg { width: 15px; height: 15px; }
.file-field-name { font-size: 12.5px; color: var(--muted); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* Split-mode selectable cards (gallery_upload.php) */
.split-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.split-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--ivory-0); cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.split-card:hover { transform: translateY(-1px); }
.split-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.split-card:has(input:checked) { border-color: var(--champagne); background: var(--champagne-soft); }
.split-card-icon { width: 34px; height: 34px; border-radius: 11px; background: var(--ivory-2); color: var(--forest); display: grid; place-items: center; }
.split-card:has(input:checked) .split-card-icon { background: var(--champagne); color: var(--forest-2); }
.split-card-icon svg { width: 17px; height: 17px; }
.split-card strong { font-size: 14px; color: var(--ink); }
.split-card span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.split-poses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: -4px 0 18px; }
.split-pose-pill { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: border-color .15s ease, background .15s ease; }
.split-pose-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.split-pose-pill:has(input:checked) { border-color: var(--forest); background: var(--forest-soft); color: var(--forest); }

/* Batch upload - progress + notice + file list */
.upload-notice { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 10px 0 0; padding: 10px 14px; background: var(--ivory-1); border: 1px solid var(--line); border-radius: var(--r-sm); }
.upload-notice-error { background: #fff0ee; border-color: #fbb; color: #c0392b; }
.upload-progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.upload-progress-bar { height: 100%; width: 0; background: var(--forest); border-radius: 999px; transition: width .3s ease; }
.upload-progress-bar.processing { background: var(--champagne); animation: progressPulse 1s ease-in-out infinite; }
@keyframes progressPulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.file-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; width: 100%; }
.file-preview span { display: inline-block; font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--ivory-2); color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ Mobile — sidebar out, bottom nav in ============ */
.bs-bottom-nav { display: none; }
@media(max-width: 880px) {
  .bs-sidebar { display: none; }
  .bs-main { margin-left: 0; padding: 18px 18px 96px; }
  .bs-topbar { display: none; }
  .bs-mobile-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; margin: -18px -18px 18px;
    background: var(--ivory-0); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20;
  }
  .bs-mobile-header .logo-mark { width: 32px; height: 32px; border-radius: 10px; }
  .bs-mobile-header .logo-word { font-size: 14.5px; }

  .bs-bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: rgba(247,241,232,.92); backdrop-filter: blur(22px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(39,31,22,.06);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  .bs-bottom-nav a, .bs-bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--faint); text-decoration: none; font-size: 9px; font-weight: 700; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
  .bs-bottom-nav a svg, .bs-bottom-nav button svg { width: 20px; height: 20px; }
  .bs-bottom-nav a.active { color: var(--champagne); }

  .card, .soft-card, .panel { padding: 18px; border-radius: 20px; margin-bottom: 14px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .album-grid { grid-template-columns: 1fr; }
  .photo-admin-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-dark { padding: 22px 20px; border-radius: 26px; }

  .bs-main > * { max-width: none; }
  .home-hero { padding-top: 0; }
  .display { font-size: 30px; }
  .today-production { min-height: 260px; padding: 22px; border-radius: 28px; }
  .production-title { font-size: 26px; margin-top: 32px; }
  .action-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .summary-mini-grid, .mini-grid { grid-template-columns: repeat(2, 1fr); }
  .storage-pill { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; }
  html, body { overflow-x: hidden; }
  body { position: relative; }
}

@media (max-width: 420px) {
  .bs-main { padding-left: 17px; padding-right: 17px; }
  .today-production { min-height: 295px; }
  .production-main-btn { min-height: 38px; }
  .action-card { min-height: 102px; }
}

/* Contracts premium refresh */
.contracts-page { max-width: 1120px; }
.contracts-page .caption { margin: 6px 0 0; max-width: 62ch; }
.contracts-hero,
.contract-success-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, rgba(255,253,248,.92), rgba(247,242,234,.76));
  box-shadow: var(--shadow-soft);
}
.contracts-hero h2,
.contract-section h2,
.contract-preview-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 560;
  letter-spacing: 0;
}
.contracts-hero p { margin-top: 8px; max-width: 58ch; }
.contracts-actions,
.contract-pdf-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.contract-custom-template-tip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--champagne-rim);
  background: var(--champagne-soft);
}
.contract-tip-body { flex: 1; }
.contract-tip-body strong { display: block; font-size: 13px; font-weight: 800; color: var(--warning); margin-bottom: 3px; }
.contract-tip-body p { font-size: 12.5px; font-weight: 600; color: var(--warning); margin: 0; line-height: 1.5; opacity: .85; }
.contract-tip-btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .contract-custom-template-tip { flex-direction: column; align-items: flex-start; gap: 10px; }
  .contract-tip-btn { align-self: flex-start; }
}
.leads-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
@media (max-width: 640px) {
  .leads-toolbar { gap: 7px; }
  .leads-toolbar .btn-ghost-sm { font-size: 12px; padding: 5px 11px; height: 32px; }
}
.leads-onboarding {
  background: var(--ivory-0);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  max-width: 640px;
}
.leads-onboarding-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--ivory-2);
  color: var(--forest);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.leads-onboarding h2 {
  font-size: 18px; font-weight: 800;
  color: var(--ink); margin-bottom: 8px;
}
.leads-onboarding > p {
  font-size: 14px; line-height: 1.65;
  color: var(--ink-2); margin-bottom: 24px;
}
.leads-onboarding-steps {
  display: flex; flex-direction: column;
  gap: 14px; margin-bottom: 22px;
}
.leads-onboarding-step {
  display: flex; gap: 14px; align-items: flex-start;
}
.leads-onboarding-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
  margin-top: 1px;
}
.leads-onboarding-step strong {
  display: block;
  font-size: 13.5px; font-weight: 700;
  color: var(--ink); margin-bottom: 2px;
}
.leads-onboarding-step span {
  font-size: 13px; color: var(--muted); line-height: 1.55;
}
.leads-onboarding-tip {
  font-size: 13px; color: var(--muted);
  line-height: 1.6;
  padding: 14px 16px;
  background: var(--ivory-2);
  border-radius: var(--r-sm);
  margin-bottom: 24px;
}
.leads-onboarding-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
@media (max-width: 540px) {
  .leads-onboarding { padding: 24px 18px; }
  .leads-onboarding-actions { flex-direction: column; }
  .leads-onboarding-actions a { text-align: center; }
}
.contract-default-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--forest);
  color: #fff;
  vertical-align: middle;
  margin-left: 6px;
}
.btn-icon-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(168,90,82,.3);
  background: rgba(168,90,82,.07);
  color: var(--danger);
  font-size: 15px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-icon-danger:hover { background: rgba(168,90,82,.18); border-color: rgba(168,90,82,.5); }
.contract-review-alert,
.contract-missing-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--champagne-rim);
  background: var(--champagne-soft);
  color: var(--warning);
  font-size: 13px;
  font-weight: 800;
}
.contract-missing-alert {
  border-color: rgba(168,90,82,.22);
  background: rgba(168,90,82,.08);
  color: var(--danger);
}
.contract-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.contracts-list-panel .contract-section-head,
.panel > .contract-section-head { margin-bottom: 18px; }
.contract-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.contract-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255,253,248,.74);
  box-shadow: var(--shadow-soft);
}
.contract-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.contract-card-top strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
.contract-card-top span:not(.status-badge) {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.contract-card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contract-card-meta small {
  display: block;
  color: var(--faint);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contract-card-meta b {
  display: block;
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.contract-empty-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 18px;
  text-align: center;
}
.contract-generator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 18px;
  align-items: start;
}
.contract-generator-card,
.contract-preview-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255,253,248,.82);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.contract-preview-card {
  position: sticky;
  top: 24px;
}
.contract-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contract-section:first-child { padding-top: 0; }
.contract-section:last-child { border-bottom: 0; padding-bottom: 0; }
.contract-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contract-field {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}
.contract-field.wide,
.contract-form-grid .wide { grid-column: 1 / -1; }
.contract-field input,
.contract-field select,
.contract-field textarea,
.contract-status-form select,
.whatsapp-box textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--ivory-0);
  color: var(--ink);
  font: inherit;
}
.contract-field textarea { resize: vertical; }
.contract-field input:focus,
.contract-field select:focus,
.contract-field textarea:focus {
  outline: none;
  border-color: var(--champagne);
  box-shadow: 0 0 0 4px var(--champagne-soft);
}
.contract-field.has-error input,
.contract-field.has-error select,
.contract-field.has-error textarea {
  border-color: rgba(168,90,82,.55);
}
.contract-field small,
.field-note-error {
  color: var(--danger);
  font-size: 11px;
  font-weight: 800;
}
.field-required,
.field-optional {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.field-required { background: var(--forest-soft); color: var(--forest); }
.field-optional { background: rgba(127,117,104,.10); color: var(--muted); }
.field-hint { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.field-hint-section { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.contract-radio-group { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.contract-radio-group label { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.contract-radio-group input { width: auto; margin: 0; }
.contract-signature-block { display: flex; gap: 28px; margin-top: 22px; padding-top: 18px; }
.contract-signature-line { flex: 1; min-width: 0; border-top: 1px solid rgba(39,31,22,.22); padding-top: 9px; text-align: center; }
.contract-signature-line .sig-name { display: block; font-weight: 800; color: var(--ink); font-size: 13px; }
.contract-signature-line .sig-role { display: block; margin-top: 3px; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 880px) {
  .contract-signature-block { gap: 16px; }
}
.contract-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contract-checklist span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(168,90,82,.08);
  color: var(--danger);
  font-size: 11px;
  font-weight: 900;
}
.contract-checklist span.is-done {
  background: rgba(82,123,88,.12);
  color: var(--success);
}
.optional-details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.optional-details summary {
  cursor: pointer;
  color: var(--forest);
  font-size: 13px;
  font-weight: 900;
}
.optional-details .contract-form-grid { margin-top: 16px; }
.contract-preview-warning {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: rgba(168,90,82,.08);
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}
.contract-paper {
  max-height: 680px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(39,31,22,.10);
  border-radius: 10px;
  color: #25221d;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.72;
  padding: 32px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.contract-template-editor {
  display: grid;
  gap: 16px;
}
.variable-groups {
  display: grid;
  gap: 14px;
}
.variable-group {
  display: grid;
  gap: 8px;
}
.variable-group strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.variable-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variable-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory-0);
  color: var(--forest);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 10px;
}
.variable-chip:hover {
  border-color: var(--champagne);
  background: var(--champagne-soft);
}
.variable-feedback {
  min-height: 18px;
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
}
.contract-success-card {
  justify-content: flex-start;
  border-color: rgba(82,123,88,.22);
  background: rgba(82,123,88,.10);
}
.contract-success-card strong { color: var(--success); }
.contract-success-card span { color: var(--ink-2); font-size: 13px; font-weight: 800; }
.contract-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media(max-width: 1060px) {
  .contract-generator-layout { grid-template-columns: 1fr; }
  .contract-preview-card { position: static; }
}
@media(max-width: 880px) {
  .contracts-hero,
  .contract-success-card,
  .contract-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .contract-form-grid,
  .contract-detail,
  .contract-card-meta {
    grid-template-columns: 1fr;
  }
  .contract-generator-card,
  .contract-preview-card {
    padding: 18px;
    border-radius: 20px;
  }
  .contract-paper {
    max-height: none;
    padding: 22px;
    font-size: 13px;
  }
  .contract-pdf-actions,
  .contracts-actions,
  td.actions,
  .actions {
    justify-content: stretch;
  }
  .contract-pdf-actions > *,
  .contracts-actions > *,
  .actions > * {
    justify-content: center;
  }
}

/* ============ Pagamentos / financeiro (pagamentos.php) ============ */
.finance-page { max-width: 1120px; margin: 0 auto; }
.finance-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 8px; }
.finance-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.finance-month-control { margin-top: 14px; }
.period-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.period-tabs::-webkit-scrollbar { display: none; }
.period-tab { flex: 0 0 auto; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,253,248,.68); color: var(--muted); display: inline-flex; align-items: center; text-decoration: none; font-size: 10px; font-weight: 850; }
.period-tab.active { background: var(--forest); color: #fbf4ea; border-color: var(--forest); }
.finance-custom-period { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.finance-custom-period input { width: auto; height: 36px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; background: var(--ivory-0); font: inherit; font-size: 12.5px; }
.finance-custom-period span { color: var(--muted); font-size: 12px; }

.finance-hero { margin-top: 18px; background: rgba(255,253,248,.76); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-elevated); overflow: hidden; }
.finance-main { padding: 24px; }
.finance-value { font-family: 'Fraunces', Georgia, serif; font-size: clamp(38px, 5vw, 58px); line-height: .98; letter-spacing: -.05em; color: var(--ink); margin-top: 12px; }
.finance-sub { margin-top: 10px; color: var(--success); font-size: 12px; font-weight: 850; }
.finance-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.finance-stat { padding: 16px 12px; border-right: 1px solid var(--line); text-align: center; }
.finance-stat:last-child { border-right: 0; }
.finance-stat .n { font-size: 15px; font-weight: 900; }
.finance-stat .l { margin-top: 4px; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 900; }

.fin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.launch-card { border-radius: 22px; padding: 18px; background: rgba(255,253,248,.74); border: 1px solid var(--line); box-shadow: var(--shadow-soft); text-decoration: none; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.launch-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-elevated); }
.launch-card.plus { border-color: rgba(82,123,88,.18); }
.launch-card.minus { border-color: rgba(168,90,82,.16); }
.launch-symbol { font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.launch-card.plus .launch-symbol { color: var(--success); }
.launch-card.minus .launch-symbol { color: var(--danger); }

.pdf-card { margin-top: 18px; border-radius: 26px; padding: 22px; color: #fbf4ea; background: radial-gradient(circle at 82% 16%, rgba(198,161,91,.22), transparent 28%), linear-gradient(145deg, var(--forest), var(--forest-2)); box-shadow: 0 18px 44px rgba(16,59,53,.24); position: relative; overflow: hidden; }
.pdf-card::after { content: "PDF"; position: absolute; right: 22px; bottom: 10px; font-family: 'Fraunces', Georgia, serif; font-size: 70px; opacity: .07; letter-spacing: -.06em; }
.pdf-card .title { color: #fbf4ea; margin-top: 8px; font-size: 18px; }
.pdf-card .caption { color: rgba(251,244,234,.66); margin-top: 8px; max-width: 46ch; }
.pdf-card .primary-btn { margin-top: 16px; position: relative; z-index: 1; }

.payment-list { display: grid; gap: 8px; }
.payment-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; padding: 14px 16px; align-items: center; border-radius: 18px; background: rgba(255,253,248,.72); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.payment-row.is-cancelled { opacity: .55; }
.pay-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--forest-soft); color: var(--forest); font-weight: 900; }
.pay-icon.expense { background: rgba(168,90,82,.10); color: var(--danger); }
.amount { font-size: 13px; font-weight: 900; text-align: right; white-space: nowrap; }
.amount.ok { color: var(--success); }
.amount.warn { color: var(--warning); }
.amount.danger { color: var(--danger); }
.payment-meta { margin-top: 3px; color: var(--faint); font-size: 10px; font-weight: 700; }

.finance-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.finance-filter { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,253,248,.68); color: var(--muted); font-size: 10px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; }
.finance-filter.active { background: var(--forest); color: #fbf4ea; border-color: var(--forest); }

@media (max-width: 900px) {
  .finance-page { max-width: none; }
  .finance-page-head { display: block; }
  .finance-grid { grid-template-columns: 1fr; }
  .finance-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .finance-stat:last-child { border-bottom: 0; }
  .fin-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .launch-card { padding: 15px; }
  .payment-row { grid-template-columns: 34px 1fr; }
  .payment-row > div:last-child { grid-column: 2; text-align: left; }
  .amount { text-align: left; margin-top: 6px; }
}

/* ============ Agenda ============ */
.agenda-page { max-width: 1160px; margin: 0 auto; }
.agenda-head { align-items: flex-end; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 0 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,248,.72); box-shadow: var(--shadow-soft); }
.calendar-head h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: 0; }
.cal-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cal-controls-simple { gap: 10px; }
.calendar-nav-button, .calendar-today-button, .calendar-go-button { height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: rgba(255,253,248,.78); color: var(--forest); font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.calendar-nav-button { width: 42px; border-radius: 50%; font-size: 26px; line-height: 1; padding-bottom: 3px; }
.calendar-today-button, .calendar-go-button { border-radius: 999px; padding: 0 15px; font-size: 12px; }
.calendar-today-button { background: var(--forest); border-color: var(--forest); color: #fbf4ea; }
.calendar-nav-button:hover, .calendar-go-button:hover { transform: translateY(-1px); border-color: rgba(16,59,53,.22); background: rgba(255,253,248,.96); }
.calendar-today-button:hover { transform: translateY(-1px); }
.month-jump { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.month-jump input { width: 190px; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,248,.90); color: var(--ink); font: inherit; font-size: 13px; font-weight: 900; padding: 0 14px; }
.agenda-warning { margin: 12px 0; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid rgba(168,90,82,.22); background: rgba(168,90,82,.08); color: var(--danger); font-size: 13px; font-weight: 800; }
.status-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.status-pill { min-height: 28px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 10px; border: 1px solid var(--line); background: rgba(255,253,248,.72); color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.status-pill strong { color: inherit; }
.status-lead { color: #6c6284; background: rgba(108,98,132,.11); border-color: rgba(108,98,132,.18); }
.status-confirmed { color: var(--forest); background: rgba(16,59,53,.10); border-color: rgba(16,59,53,.18); }
.status-pending { color: #9a6b20; background: rgba(198,161,91,.14); border-color: rgba(198,161,91,.24); }
.status-cancelled { color: var(--danger); background: rgba(168,90,82,.10); border-color: rgba(168,90,82,.18); }
.status-completed { color: var(--success); background: rgba(82,123,88,.12); border-color: rgba(82,123,88,.20); }
.status-google { color: var(--faint); }
.status-conflict { color: var(--danger); background: rgba(168,90,82,.10); border-color: rgba(168,90,82,.20); }
.agenda-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .9fr); gap: 18px; align-items: start; }
.calendar-panel, .agenda-side, .event-form-card, .event-detail-card, .event-notes { border: 1px solid var(--line); border-radius: 24px; background: rgba(255,253,248,.76); box-shadow: var(--shadow-soft); }
.calendar-panel { padding: 16px; overflow: hidden; }
.weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.weekdays span { text-align: center; color: var(--faint); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day-cell { min-height: 104px; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 17px; border: 1px solid rgba(34,30,25,.07); background: rgba(255,255,255,.52); color: var(--ink); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.day-cell:hover { transform: translateY(-1px); border-color: rgba(16,59,53,.24); box-shadow: var(--shadow-soft); }
.day-cell.is-muted { opacity: .42; }
.day-cell.is-today { border-color: rgba(198,161,91,.46); background: rgba(198,161,91,.10); }
.day-cell.is-selected { outline: 2px solid rgba(16,59,53,.34); outline-offset: 1px; }
.day-number { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 900; }
.is-today .day-number { background: var(--forest); color: #fbf4ea; }
.dots { display: flex; align-items: center; gap: 4px; min-height: 8px; flex-wrap: wrap; }
.dots i { width: 8px; height: 8px; border-radius: 50%; display: block; background: var(--forest); }
.dots i.status-lead { background: #6c6284; }
.dots i.status-confirmed { background: var(--forest); }
.dots i.status-pending { background: #c69d43; }
.dots i.status-cancelled { background: var(--danger); }
.dots i.status-completed { background: var(--success); }
.day-cell small { margin-top: auto; color: var(--muted); font-size: 10px; font-weight: 800; }
.agenda-side { padding: 18px; }
.agenda-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.agenda-side-head h2 { margin: 4px 0 0; font-size: 22px; }
.agenda-cards { display: grid; gap: 10px; }
.agenda-card { position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.58); box-shadow: 0 8px 22px rgba(45,36,20,.05); }
.agenda-stripe { align-self: stretch; border-radius: 999px; background: var(--forest); }
.agenda-stripe.status-lead { background: #6c6284; }
.agenda-stripe.status-confirmed { background: var(--forest); }
.agenda-stripe.status-pending { background: #c69d43; }
.agenda-stripe.status-cancelled { background: var(--danger); }
.agenda-stripe.status-completed { background: var(--success); }
.agenda-card-main { min-width: 0; }
.agenda-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.agenda-time { color: var(--muted); font-size: 11px; font-weight: 900; }
.agenda-card h3 { margin: 0; font-size: 15px; letter-spacing: 0; }
.agenda-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.conflict-note { display: inline-flex; margin-top: 8px; color: var(--danger); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.empty-state { padding: 18px; border: 1px dashed rgba(16,59,53,.20); border-radius: 18px; background: rgba(16,59,53,.04); }
.empty-state strong { display: block; margin-bottom: 4px; }
.event-form-card { padding: 22px; display: grid; gap: 22px; }
.event-form-section { display: grid; gap: 14px; }
.event-form-section h2 { margin: 4px 0 0; font-size: 22px; }
.event-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.event-form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.event-form-grid label.wide { grid-column: 1 / -1; }
.event-form-grid input, .event-form-grid select, .event-form-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ivory-0); padding: 12px 13px; color: var(--ink); font: inherit; font-size: 14px; outline: none; }
.event-form-grid textarea { resize: vertical; min-height: 112px; }
.event-form-grid input:focus, .event-form-grid select:focus, .event-form-grid textarea:focus { border-color: rgba(16,59,53,.38); box-shadow: 0 0 0 3px rgba(16,59,53,.08); }
.event-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 26px; border-radius: 26px; color: #fbf4ea; background: radial-gradient(circle at 84% 16%, rgba(198,161,91,.22), transparent 30%), linear-gradient(145deg, var(--forest), var(--forest-2)); box-shadow: 0 18px 44px rgba(16,59,53,.24); }
.event-hero .section-label, .event-hero p { color: rgba(251,244,234,.72); }
.event-hero h1 { max-width: 720px; margin: 8px 0; font-family: 'Fraunces', Georgia, serif; font-size: clamp(34px, 5vw, 58px); line-height: .98; letter-spacing: 0; color: #fbf4ea; overflow-wrap: anywhere; }
.event-hero-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.event-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.event-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.event-detail-card { padding: 18px; min-height: 150px; }
.event-detail-card h2 { margin: 8px 0 10px; font-size: 20px; overflow-wrap: anywhere; }
.event-detail-card p { margin: 6px 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.event-times { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.event-time-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; border-radius: 10px; background: var(--forest-soft); }
.event-time-row--service { background: rgba(198,161,91,.10); }
.event-time-row--end { background: rgba(127,117,104,.07); }
.event-time-label { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.event-time-value { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.event-workflow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.event-workflow form { margin: 0; }
.event-notes { margin-top: 18px; padding: 20px; }
.event-notes p { margin: 8px 0 0; color: var(--muted); line-height: 1.65; }
.split-actions { justify-content: space-between; }
.agenda-day-view { border: 1px solid var(--line); border-radius: 26px; background: rgba(255,253,248,.76); box-shadow: var(--shadow-soft); padding: 20px; }
.day-view-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.day-view-head h2 { margin: 4px 0 6px; font-size: clamp(24px, 4vw, 36px); letter-spacing: 0; }
.day-view-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.day-view-actions .btn-primary { margin-top: 0; width: auto; }
.day-event-overview { margin-top: 16px; padding: 14px; border: 1px solid rgba(16,59,53,.12); border-radius: 18px; background: rgba(16,59,53,.04); }
.day-event-overview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.day-event-overview-head .section-label { margin: 0; }
.day-event-overview-head strong { color: var(--ink); font-size: 13px; }
.day-event-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.day-event-chip { display: grid; grid-template-columns: 6px minmax(0, 1fr); gap: 10px; align-items: stretch; min-height: 58px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,253,248,.82); color: var(--ink); text-decoration: none; box-shadow: 0 8px 20px rgba(45,36,20,.04); }
.day-event-chip > span:last-child { min-width: 0; display: grid; gap: 4px; align-content: center; }
.day-event-chip strong { color: var(--forest); font-size: 13px; font-weight: 900; }
.day-event-chip small { color: var(--muted); font-size: 11px; font-weight: 800; overflow-wrap: anywhere; }
.day-event-empty { color: var(--muted); font-size: 12px; font-weight: 800; padding: 4px 0; }
.day-focus-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.day-mini-panel { position: sticky; top: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.46); padding: 14px; }
.mini-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.mini-day-cell { position: relative; min-height: 38px; display: grid; place-items: center; border: 1px solid rgba(34,30,25,.07); border-radius: 12px; background: rgba(255,255,255,.58); color: var(--ink); font-size: 12px; font-weight: 900; text-decoration: none; }
.mini-day-cell.is-muted { opacity: .42; }
.mini-day-cell.is-today { border-color: rgba(198,161,91,.48); background: rgba(198,161,91,.10); }
.mini-day-cell.is-selected { background: var(--forest); border-color: var(--forest); color: #fbf4ea; }
.mini-day-cell i { position: absolute; right: 4px; bottom: 4px; min-width: 15px; height: 15px; display: grid; place-items: center; border-radius: 999px; background: var(--champagne); color: var(--forest-2); font-style: normal; font-size: 8px; font-weight: 900; }
.day-schedule { display: grid; gap: 8px; }
.hour-row { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.hour-label { padding-top: 12px; color: var(--faint); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.hour-slot { min-height: 58px; border: 1px dashed rgba(39,31,22,.12); border-radius: 18px; background: rgba(255,255,255,.34); padding: 10px; }
.hour-slot.has-event { border-style: solid; border-color: rgba(16,59,53,.16); background: rgba(16,59,53,.035); }
.free-slot { display: inline-flex; color: var(--faint); font-size: 11px; font-weight: 800; padding: 8px 0; }
.day-event-card { margin: 0; background: rgba(255,253,248,.82); }

@media (max-width: 1080px) {
  .agenda-layout { grid-template-columns: 1fr; }
  .event-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-focus-grid { grid-template-columns: 1fr; }
  .day-mini-panel { position: static; }
}

@media (max-width: 720px) {
  .agenda-head, .calendar-head, .event-hero, .agenda-side-head, .day-view-head { display: block; }
  .cal-controls, .event-actions { justify-content: flex-start; margin-top: 12px; }
  .month-jump { flex: 1 1 180px; min-width: 0; }
  .month-jump input { flex: 1; width: 100%; min-width: 0; }
  .calendar-today-button { order: 4; }
  .status-strip { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .status-strip::-webkit-scrollbar { display: none; }
  .calendar-panel { padding: 10px; }
  .weekdays, .calendar-grid { gap: 4px; }
  .weekdays span { font-size: 9px; }
  .day-cell { min-height: 76px; padding: 7px; border-radius: 13px; }
  .day-number { width: 24px; height: 24px; font-size: 12px; }
  .day-cell small { display: none; }
  .agenda-card { grid-template-columns: 7px minmax(0, 1fr); }
  .agenda-card > .btn-ghost-sm { grid-column: 2; justify-content: center; }
  .agenda-card-top { align-items: flex-start; flex-direction: column; }
  .event-form-grid, .event-detail-grid { grid-template-columns: 1fr; }
  .event-form-card { padding: 16px; }
  .event-hero { padding: 22px; }
  .agenda-day-view { padding: 14px; border-radius: 20px; }
  .day-view-actions { justify-content: flex-start; margin-top: 14px; }
  .day-event-overview-head { display: block; }
  .day-event-overview-head strong { display: block; margin-top: 4px; }
  .day-event-strip { grid-template-columns: 1fr; }
  .hour-row { grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
  .hour-label { font-size: 10px; }
  .hour-slot { padding: 8px; border-radius: 15px; }
}

/* ============ Eventos ============ */
.events-page { max-width: 1180px; margin: 0 auto; }
.events-page .btn-primary,
.events-page .btn-secondary,
.events-page-head .btn-primary,
.events-page-head .btn-secondary,
.event-workflow .btn-ghost-sm { width: auto; margin-top: 0; }
.events-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; margin-bottom: 22px; }
.events-kicker { display: inline-flex; align-items: center; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.events-page-head .display { font-size: clamp(36px, 5vw, 52px); letter-spacing: 0; }
.events-head-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
/* events overview hero */
.events-overview {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.6fr);
    border-radius: 32px;
    background:
        radial-gradient(ellipse at 8% 85%, rgba(198,161,91,.10), transparent 42%),
        radial-gradient(circle at 90% 12%, rgba(198,161,91,.22), transparent 34%),
        linear-gradient(148deg, #122c27 0%, var(--forest) 52%, #1b4539 100%);
    color: #fbf4ea;
    box-shadow: 0 22px 52px rgba(16,59,53,.30), 0 4px 12px rgba(16,59,53,.16);
}
.events-overview-copy {
    position: relative; z-index: 1;
    padding: 32px 28px 32px 32px;
    display: flex; flex-direction: column; justify-content: center;
    border-right: 1px solid rgba(255,255,255,.08);
}
.events-overview-copy::before {
    content: '';
    position: absolute; top: -48px; left: -48px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198,161,91,.08), transparent 65%);
    pointer-events: none;
}
.events-overview-eyebrow {
    display: flex; align-items: center; gap: 9px;
    font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(251,244,234,.48);
    margin-bottom: 14px;
}
.events-overview-eyebrow::before {
    content: '';
    width: 18px; height: 2px;
    background: var(--champagne);
    border-radius: 99px;
    opacity: .65;
    flex-shrink: 0;
}
.events-overview-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1.0;
    letter-spacing: -.01em;
    color: #fbf4ea;
    margin: 0 0 12px;
}
.events-overview-text {
    color: rgba(251,244,234,.58);
    font-size: 12.5px;
    line-height: 1.65;
    margin: 0;
}

/* stats column */
.events-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
    padding: 30px 20px 30px 24px;
    gap: 0;
    position: relative; z-index: 1;
    align-items: center;
}
.events-stat {
    padding: 0 16px;
    border-left: 1px solid rgba(255,255,255,.08);
    min-width: 0;
}
.events-stat:first-child { border-left: 0; padding-left: 4px; }
.events-stat-icon {
    width: 38px; height: 38px;
    border-radius: 13px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.07);
    color: rgba(251,244,234,.85);
    margin-bottom: 14px;
    flex-shrink: 0;
}
.events-stat-icon--confirmed { background: rgba(82,160,100,.18); border-color: rgba(82,160,100,.20); color: #7fda9a; }
.events-stat-icon--pending   { background: rgba(198,161,91,.16); border-color: rgba(198,161,91,.18); color: var(--champagne); }
.events-stat-icon--done      { background: rgba(251,244,234,.10); border-color: rgba(251,244,234,.08); color: rgba(251,244,234,.82); }
.events-stat-number {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 38px; line-height: .9;
    letter-spacing: -.02em;
    color: #fbf4ea;
}
.events-stat-label {
    display: block;
    margin-top: 8px;
    color: rgba(251,244,234,.65);
    font-size: 11px; font-weight: 700;
    line-height: 1.35;
}
.events-stat-sub {
    display: block;
    margin-top: 4px;
    color: var(--champagne);
    font-size: 10.5px; font-weight: 800;
    letter-spacing: .02em;
    opacity: .85;
}
.events-toolbar { margin-top: 18px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; }
.event-filters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.event-filters::-webkit-scrollbar { display: none; }
.event-filter { flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,253,248,.72); color: var(--muted); display: inline-flex; align-items: center; text-decoration: none; font-size: 10px; font-weight: 850; box-shadow: var(--shadow-soft); font-family: inherit; cursor: pointer; }
.event-filter.active { background: var(--forest); color: #fbf4ea; border-color: var(--forest); }
.events-search-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.event-search { min-width: 320px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,253,248,.78); padding: 0 16px; font-family: 'Manrope', sans-serif; }
.events-layout { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.events-list-card, .events-side-card { border-radius: 26px; background: rgba(255,253,248,.74); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.events-list-card { padding: 18px; }
.events-list-head, .events-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.events-list-head strong, .events-side-head strong { color: var(--ink); font-size: 15px; }
.events-list-head span, .events-side-head span { color: var(--faint); font-size: 11px; font-weight: 800; }
.event-card { display: grid; grid-template-columns: 82px minmax(0,1fr) 190px; gap: 18px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,253,248,.68); text-decoration: none; color: var(--ink); margin-top: 10px; }
.event-card.featured { border-color: var(--champagne-rim); box-shadow: 0 0 0 1px rgba(198,161,91,.16); }
.event-card.is-cancelled { opacity: .58; }
.event-datebox { display: grid; place-items: center; text-align: center; border-radius: 18px; background: var(--ivory-1); border: 1px solid var(--line); min-height: 86px; align-self: start; }
.event-date-month { font-size: 10px; font-weight: 900; color: var(--champagne); letter-spacing: .12em; text-transform: uppercase; }
.event-date-day { font-family: 'Fraunces', Georgia, serif; font-size: 34px; line-height: .95; color: var(--ink); }
.event-date-week { font-size: 10px; font-weight: 800; color: var(--muted); }
.event-card-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-card-title { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 22px; line-height: 1.1; letter-spacing: 0; overflow-wrap: anywhere; }
.event-mini-badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 4px 9px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line); color: var(--muted); background: rgba(255,253,248,.70); }
.event-mini-badge.next { background: var(--champagne-soft); color: var(--warning); border-color: var(--champagne-rim); }
.event-mini-badge.status-confirmed { background: rgba(82,123,88,.12); color: var(--success); border-color: rgba(82,123,88,.20); }
.event-mini-badge.status-pending { background: rgba(198,161,91,.16); color: var(--warning); border-color: var(--champagne-rim); }
.event-mini-badge.status-completed { background: rgba(91,121,166,.12); color: #42648f; border-color: rgba(91,121,166,.18); }
.event-mini-badge.status-cancelled { background: rgba(168,90,82,.10); color: var(--danger); border-color: rgba(168,90,82,.18); }
.event-card-meta { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px 14px; color: var(--muted); font-size: 12px; }
.event-card-meta span { overflow-wrap: anywhere; }
.event-equipment-list { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 7px; }
.event-equipment-list span { display: inline-flex; border-radius: 999px; padding: 5px 9px; background: var(--forest-soft); color: var(--forest); font-size: 10px; font-weight: 850; }
.event-card-footer { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; }
.event-card-side { min-width: 0; display: grid; gap: 9px; align-content: center; }
.event-progress { display: grid; gap: 5px; }
.event-progress-label { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; font-weight: 850; color: var(--muted); }
.event-progress-label strong { color: var(--forest); }
.event-progress-bar { height: 4px; border-radius: 999px; background: var(--ivory-2); overflow: hidden; }
.event-progress-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--forest), var(--champagne)); }
.event-detail-link { height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); color: var(--forest); background: rgba(255,253,248,.72); text-decoration: none; font-size: 12px; font-weight: 900; }
.events-side-card { padding: 18px; margin-bottom: 16px; }
.today-timeline { display: grid; gap: 14px; margin-top: 14px; }
.timeline-row { display: grid; grid-template-columns: 46px 28px 1fr; gap: 10px; align-items: start; }
.timeline-time { font-size: 11px; font-weight: 850; color: var(--muted); padding-top: 6px; }
.timeline-icon { width: 28px; height: 28px; border-radius: 11px; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); }
.timeline-row strong { font-size: 12px; }
.timeline-row p { margin: 3px 0 7px; color: var(--muted); font-size: 11px; }
.actions-checklist { margin-top: 14px; display: grid; gap: 12px; }
.action-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.action-check-box { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(255,253,248,.7); margin-top: 2px; }
.action-check.done .action-check-box { background: var(--forest); border-color: var(--forest); }
.action-check strong { display: block; font-size: 12px; color: var(--ink); }
.action-check p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.events-card-link { display: flex; justify-content: flex-end; margin-top: 14px; color: var(--forest); text-decoration: none; font-size: 12px; font-weight: 900; }
.events-side-empty { padding: 12px 0; }
.events-side-empty strong { color: var(--ink); }
.events-side-empty p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.events-empty-card { margin-top: 12px; padding: 28px; border: 1px dashed var(--forest-rim); border-radius: 22px; background: rgba(16,59,53,.04); }
.events-empty-card h2 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 28px; letter-spacing: 0; }
.events-empty-card p { margin: 8px 0 0; color: var(--muted); max-width: 58ch; }
.events-empty-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.event-detail-grid-wide { grid-template-columns: repeat(5, minmax(0,1fr)); }

@media (max-width: 1180px) {
  .events-toolbar { grid-template-columns: 1fr; }
  .events-search-form { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .event-search { min-width: 0; width: 100%; }
}

@media (max-width: 1100px) {
  .events-layout { grid-template-columns: 1fr; }
  .event-detail-grid-wide { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .events-page { max-width: none; }
  .events-page-head { display: block; }
  .events-head-actions { margin-top: 14px; }
  .events-head-actions .btn-primary, .events-head-actions .btn-secondary { width: 100%; }
  .events-overview { grid-template-columns: 1fr; border-radius: 26px; }
  .events-overview-copy { padding: 22px 20px 18px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .events-overview-title { font-size: 22px; margin-bottom: 6px; }
  .events-overview-text { font-size: 12px; }
  .events-stats { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; padding: 14px 10px; }
  .events-stat { border-left: 1px solid rgba(255,255,255,.08); padding: 8px 7px; }
  .events-stat:first-child { border-left: 0; padding-left: 3px; }
  .events-stat-icon { width: 30px; height: 30px; border-radius: 10px; margin-bottom: 8px; }
  .events-stat-icon svg { width: 13px; height: 13px; }
  .events-stat-number { font-size: 26px; }
  .events-stat-label { font-size: 9.5px; margin-top: 5px; line-height: 1.3; }
  .events-stat-sub { font-size: 9px; margin-top: 2px; }
  .events-toolbar { grid-template-columns: 1fr; }
  .events-search-form { display: grid; grid-template-columns: 1fr auto; }
  .event-search { min-width: 0; width: 100%; }
  .event-card { grid-template-columns: 68px minmax(0,1fr); gap: 12px; }
  .event-card-side { grid-column: 2; min-width: 0; }
  .event-datebox { min-height: 76px; border-radius: 16px; }
  .event-date-day { font-size: 28px; }
  .event-card-title { font-size: 20px; }
  .event-card-meta { grid-template-columns: 1fr; }
  .event-detail-grid-wide { grid-template-columns: 1fr; }
}

/* ============ Pagina da Bio - area interna (pagina_bio.php) ============ */
.bio-admin-page { max-width: 1120px; margin: 0 auto; }
.bio-page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.bio-page-head > div:first-child { flex: 1; min-width: 0; }
.bio-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.bio-head-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }
.bio-head-actions .btn-secondary, .bio-head-actions .btn-primary { white-space: nowrap; }

.bio-status-card { margin-top: 16px; background: rgba(255,253,248,.78); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-soft); }
.bio-status-empty { text-align: center; padding: 36px 20px; }
.bio-status-empty h2 { font-family: 'Fraunces', serif; font-size: 22px; margin: 0 0 8px; }
.bio-status-empty form { margin-top: 16px; }
.bio-status-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bio-status-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bio-public-url { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--forest); word-break: break-all; }
.bio-slug-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.bio-slug-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 800; color: var(--ink-2); flex: 1; min-width: 220px; }
.bio-slug-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ivory-0); overflow: hidden; }
.bio-slug-input span { padding: 0 0 0 12px; color: var(--faint); font-size: 12.5px; white-space: nowrap; }
.bio-slug-input input { border: 0; background: transparent; padding: 10px 12px; font: inherit; font-size: 13px; width: 100%; }

.bio-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.62fr); gap: 18px; margin-top: 18px; align-items: start; }
.bio-editor { display: grid; gap: 18px; }
.bio-preview-panel { position: sticky; top: 24px; }

.bio-form-section { background: rgba(255,253,248,.74); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-soft); }
.bio-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 14px; }
.bio-form-grid label, .bio-form-section > form > label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.bio-form-grid label.wide { grid-column: 1 / -1; }
.bio-form-grid input, .bio-form-grid select, .bio-form-grid textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ivory-0); color: var(--ink); font: inherit; font-size: 13.5px; }
.bio-form-grid input[type="color"] { padding: 4px; height: 42px; cursor: pointer; }
.bio-form-grid textarea { resize: vertical; }

.bio-template-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.bio-template-option { position: relative; display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--ivory-0); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.bio-template-option input { position: absolute; opacity: 0; pointer-events: none; }
.bio-template-option strong { font-size: 13px; }
.bio-template-option span:not(.bio-template-preview):not(.bio-template-badge) { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.bio-template-option.is-selected { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-soft); }
.bio-template-badge { display: none; position: absolute; top: 12px; right: 12px; background: var(--forest); color: #fff; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; }
.bio-template-option.is-selected .bio-template-badge { display: inline-flex; }
.bio-template-preview { display: block; height: 84px; border-radius: 10px; margin-bottom: 6px; overflow: hidden; line-height: 0; }
.bio-template-preview svg { display: block; width: 100%; height: 100%; }
.bio-template-preview-premium { border: 1px solid #ddd5c7; }
.bio-template-preview-simple { border: 1px solid rgba(103,180,155,.25); }
.bio-template-preview-social { border: 1px solid rgba(198,161,91,.25); }

.bio-services-editor { display: grid; gap: 10px; margin-top: 14px; }
.bio-link-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: center; }
.bio-link-row input { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ivory-0); font: inherit; font-size: 13px; }
.bio-link-active { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bio-link-active input { width: auto; }

.bio-upload-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; background: var(--ivory-0); display: grid; gap: 10px; }
.bio-upload-card strong { font-size: 12.5px; font-weight: 800; }
.bio-upload-card form { display: grid; gap: 8px; }
.bio-upload-preview-wrap { position: relative; display: block; }
.bio-upload-preview { width: 100%; max-height: 120px; object-fit: cover; border-radius: 10px; display: block; }
.bio-upload-delete-form { position: absolute; top: 8px; right: 8px; margin: 0; }
.bio-upload-delete-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(255,252,246,.92); backdrop-filter: blur(8px); color: var(--muted); cursor: pointer; padding: 0; box-shadow: 0 2px 8px rgba(0,0,0,.18); opacity: 1; transform: scale(1); transition: background .15s, color .15s, box-shadow .15s; }
.bio-upload-delete-btn:hover { background: #fff0ee; color: #c0392b; border-color: #fbb; box-shadow: 0 2px 10px rgba(192,57,43,.22); }
.bio-upload-empty { font-size: 12px; color: var(--faint); padding: 14px 0; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-sm); }
.bio-upload-card .file-field { flex-wrap: nowrap; }
.bio-upload-card .file-field-name { font-size: 11px; }

.bio-preview-phone { border-radius: 36px; padding: 12px; background: #0c0c0c; box-shadow: var(--shadow-elevated); }
.bio-preview-screen { border-radius: 26px; overflow: hidden; min-height: 420px; background: var(--ivory-0); display: flex; flex-direction: column; }
.bio-preview-hero { padding: 30px 18px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.bio-preview-logo { width: 52px; height: 52px; border-radius: 16px; background: var(--bio-primary, var(--forest)); color: #fff; display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 22px; }
.bio-preview-hero strong { font-family: 'Fraunces', serif; font-size: 17px; }
.bio-preview-hero span { font-size: 12px; color: var(--muted); }
.bio-preview-btn { margin-top: 10px; padding: 10px 20px; border-radius: 999px; background: var(--bio-primary, var(--forest)); color: #fff; font-size: 12px; font-weight: 800; }
.bio-preview-screen.bio-template-social { background: #090B0A; }
.bio-preview-screen.bio-template-social .bio-preview-hero strong, .bio-preview-screen.bio-template-social .bio-preview-hero span { color: #FBF4EA; }
.bio-preview-screen.bio-template-social .bio-preview-btn { background: var(--bio-accent, var(--champagne)); color: #1c1c1a; }
.bio-preview-screen.bio-template-simple .bio-preview-btn { border-radius: 10px; }

@media (max-width: 980px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-preview-panel { position: static; max-width: 320px; margin: 0 auto; }
}
@media (max-width: 880px) {
  .bio-admin-page { max-width: none; }
  .bio-page-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bio-head-actions { width: 100%; }
  .bio-head-actions .btn-secondary,
  .bio-head-actions .btn-primary { flex: 1; justify-content: center; }
  .bio-form-grid { grid-template-columns: 1fr; }
  .bio-template-picker { grid-template-columns: 1fr; }
  .bio-link-row { grid-template-columns: 1fr; }
  .bio-status-row { flex-direction: column; }
  .bio-layout { grid-template-columns: 1fr; }
}

/* ============ Pagina da Bio - pagina publica ============ */
.bio-public { margin: 0; min-height: 100vh; font-family: 'Manrope', system-ui, sans-serif; }
.bio-public-wrap { max-width: 480px; margin: 0 auto; padding-bottom: 56px; }
.bio-preview-banner { background: var(--warning); color: #fff; text-align: center; font-size: 12px; font-weight: 800; padding: 8px 12px; letter-spacing: .04em; }

/* --- template premium --- */
.bio-template-premium { background: #e8dfd0; color: #18221d; }
.bio-template-premium .bio-public-wrap { background: radial-gradient(circle at top left, rgba(215,180,106,.26), transparent 34%), linear-gradient(180deg, #fbf6ed 0%, #f6f0e6 100%); padding-bottom: 0; }

/* hero premium */
.bio-hero-p { position: relative; min-height: 610px; padding: 26px 26px 30px; display: flex; align-items: flex-end; overflow: hidden; border-bottom-left-radius: 38px; border-bottom-right-radius: 38px; box-shadow: 0 24px 70px rgba(24,34,29,.22); }
.bio-hero-p::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(234,216,172,.35); border-radius: 30px; pointer-events: none; z-index: 3; }
.bio-hero-p-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.bio-hero-p-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,18,15,.22) 0%, rgba(13,18,15,.42) 34%, rgba(13,18,15,.88) 100%); }
.bio-hero-p-nocover { background: linear-gradient(160deg, var(--bio-primary, #103B35) 0%, color-mix(in srgb, var(--bio-primary, #103B35) 55%, #000) 100%); }

/* badge (logo circular) */
.bio-badge-p { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(234,216,172,.88)); padding: 5px; box-shadow: 0 18px 40px rgba(0,0,0,.32); z-index: 4; }
.bio-badge-p img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #fff; }
.bio-badge-p span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; font-family: 'Fraunces', serif; font-size: 34px; color: var(--bio-primary, #103B35); background: #fff; }

/* conteudo do hero */
.bio-hero-p-content { position: relative; z-index: 2; width: 100%; text-align: center; color: #fff; }
.bio-eyebrow-p { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(234,216,172,.38); backdrop-filter: blur(12px); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #ead8ac; }
.bio-eyebrow-p::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d7b46a; flex-shrink: 0; }
.bio-h1-p { margin: 0; font-family: 'Fraunces', serif; font-size: clamp(40px, 11vw, 56px); line-height: .9; letter-spacing: -.065em; text-shadow: 0 8px 26px rgba(0,0,0,.35); }
.bio-subtitle-p { max-width: 330px; margin: 16px auto 0; font-size: 15px; line-height: 1.55; font-weight: 600; color: rgba(255,255,255,.88); }
.bio-cta-stack-p { display: grid; gap: 12px; margin-top: 28px; }
.bio-btn-p { min-height: 54px; border: 0; border-radius: 999px; padding: 0 18px; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -.02em; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.bio-btn-p:hover { transform: translateY(-2px); }
.bio-btn-p:active { transform: scale(.98); }
.bio-btn-p-primary { color: #1d241f; background: linear-gradient(135deg, #f9f1dc, #d7b46a); box-shadow: 0 16px 34px rgba(215,180,106,.28); }
.bio-btn-p-secondary { color: #fff; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(12px); }
.bio-trust-row-p { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.bio-trust-item-p { padding: 10px 8px; border-radius: 18px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); color: rgba(255,255,255,.82); font-size: 10.5px; font-weight: 800; line-height: 1.2; }

/* secoes premium */
.bio-section-p { padding: 28px 22px 0; }
.bio-section-header-p { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.bio-section-title-p { margin: 0; font-family: 'Fraunces', serif; font-size: clamp(22px, 6vw, 30px); line-height: .95; letter-spacing: -.05em; color: #18221d; }
.bio-section-kicker-p { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: #d7b46a; white-space: nowrap; padding-bottom: 3px; }

/* card experiencia + galeria */
.bio-exp-card-p { background: #fffaf1; border: 1px solid rgba(215,180,106,.28); border-radius: 34px; padding: 18px; box-shadow: 0 18px 44px rgba(24,34,29,.08); }
.bio-exp-card-p > p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: #6e685d; font-weight: 600; }
.bio-gallery-p { display: grid; grid-template-columns: 1.05fr .95fr; gap: 10px; }
.bio-photo-p { position: relative; overflow: hidden; border-radius: 24px; background: #ddd; min-height: 148px; box-shadow: 0 12px 28px rgba(24,34,29,.11); }
.bio-photo-p-large { min-height: 238px; grid-row: span 2; }
.bio-photo-p img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; display: block; transition: transform .4s ease; }
.bio-photo-p:hover img { transform: scale(1.04); }

/* servicos */
.bio-services-list-p { display: grid; gap: 10px; }
.bio-service-item-p { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border-radius: 22px; background: rgba(255,250,241,.78); border: 1px solid rgba(215,180,106,.22); }
.bio-service-icon-p { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: var(--bio-primary, #103B35); color: #ead8ac; font-size: 14px; font-weight: 900; }
.bio-service-text-p strong { display: block; font-size: 14px; letter-spacing: -.02em; color: #18221d; margin-bottom: 3px; }
.bio-service-text-p span { display: block; font-size: 12.5px; line-height: 1.45; color: #6e685d; font-weight: 600; }

/* CTA final premium */
.bio-final-cta-p { margin: 26px 22px 30px; padding: 24px; border-radius: 32px; background: linear-gradient(145deg, rgba(23,63,50,.96), rgba(16,34,28,.98)); color: #fff; text-align: center; box-shadow: 0 24px 60px rgba(23,63,50,.28); border: 1px solid rgba(234,216,172,.25); }
.bio-final-cta-p h2 { margin: 0; font-family: 'Fraunces', serif; font-size: clamp(24px, 7vw, 31px); line-height: .98; letter-spacing: -.055em; }
.bio-final-cta-p p { margin: 12px 0 18px; color: rgba(255,255,255,.76); font-size: 13.5px; line-height: 1.5; font-weight: 600; }
.bio-btn-p-final { background: #fff; color: var(--bio-primary, #103B35); }

/* hero com cover como fundo */
.bio-public-hero { position: relative; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0; overflow: hidden; }
.bio-public-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.bio-public-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,9,8,.94) 0%, rgba(9,9,8,.62) 50%, rgba(9,9,8,.2) 100%); }

/* sem cover: fundo gradiente elegante */
.bio-public-hero.bio-hero-nocover { background: radial-gradient(ellipse at 70% 0%, var(--bio-primary-soft, rgba(16,59,53,.12)), transparent 60%), radial-gradient(ellipse at 20% 100%, rgba(198,161,91,.10), transparent 50%), var(--ivory-1); min-height: 320px; justify-content: center; padding: 48px 0 32px; }
.bio-public-hero.bio-hero-nocover .bio-public-hero-inner { padding: 0 24px; }
.bio-public-hero.bio-hero-nocover .bio-public-title { color: var(--ink); text-shadow: none; }
.bio-public-hero.bio-hero-nocover .bio-public-subtitle { color: var(--bio-primary, var(--forest)); text-shadow: none; }
.bio-public-hero.bio-hero-nocover .bio-public-description { color: var(--muted); text-shadow: none; }

.bio-public-hero-inner { position: relative; z-index: 1; width: 100%; padding: 40px 24px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0; }

/* logo */
.bio-public-logo { width: 96px; height: 96px; border-radius: 28px; object-fit: contain; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); border: 2px solid rgba(255,255,255,.28); box-shadow: 0 16px 40px rgba(0,0,0,.22); margin: 0 auto 20px; display: block; }
.bio-public-logo-fallback { display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: 38px; font-weight: 600; color: #fff; background: linear-gradient(145deg, var(--bio-primary, var(--forest)), var(--bio-primary-dark, var(--forest-2))); }
.bio-hero-nocover img.bio-public-logo { background: #fff; border-color: var(--line); box-shadow: var(--shadow-elevated); }
.bio-hero-nocover .bio-public-logo-fallback { border-color: transparent; box-shadow: var(--shadow-elevated); }

/* nome da empresa — destaque máximo */
.bio-public-title { font-family: 'Fraunces', serif; font-size: clamp(34px, 8vw, 48px); line-height: 1.08; letter-spacing: -.03em; color: #fff; margin: 0 0 8px; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 4px 24px rgba(0,0,0,.5); }
.bio-hero-nocover .bio-public-title { text-shadow: none; }
.bio-public-subtitle { font-size: 15px; color: #fff; font-weight: 700; margin: 0 0 10px; text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 3px 18px rgba(0,0,0,.45); }
.bio-public-description { font-size: 13.5px; color: rgba(255,255,255,.9); max-width: 38ch; margin: 0 auto 28px; line-height: 1.6; text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 3px 14px rgba(0,0,0,.4); }

/* botoes hero */
.bio-public-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; max-width: 360px; }
.bio-public-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 16px 24px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; letter-spacing: .01em; }
.bio-public-btn:hover { transform: translateY(-2px); }
.bio-public-btn:active { transform: scale(.98); }
.bio-public-btn-primary { background: var(--bio-primary, var(--forest)); color: var(--bio-on-primary, #fff); box-shadow: 0 12px 28px var(--bio-primary-soft, rgba(16,59,53,.3)); }
.bio-public-btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 12px 28px rgba(37,211,102,.28); }

/* galeria de fotos */
.bio-public-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0; }
.bio-public-gallery:has(.bio-public-gallery-item:only-child) { grid-template-columns: 1fr; }
.bio-public-gallery-item { overflow: hidden; }
.bio-public-gallery-item:first-child { border-radius: 20px 0 0 20px; }
.bio-public-gallery-item:last-child { border-radius: 0 20px 20px 0; }
.bio-public-gallery-item:only-child { border-radius: 20px; }
.bio-public-gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform .3s ease; }
.bio-public-gallery-item:hover img { transform: scale(1.04); }

/* links */
.bio-public-links { padding: 24px 20px 8px; display: flex; flex-direction: column; gap: 10px; }
.bio-public-link-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 20px; border-radius: 18px; border: 1px solid var(--bio-primary-rim, rgba(16,59,53,.18)); background: rgba(255,255,255,.76); color: var(--ink); font-weight: 800; font-size: 13.5px; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: transform .12s ease, box-shadow .12s ease; backdrop-filter: blur(4px); }
.bio-public-link-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.bio-public-section-title { font-family: 'Fraunces', serif; font-size: 20px; text-align: center; margin: 0 0 16px; }

/* template simple */
.bio-template-simple { background: #fff; }
.bio-template-simple .bio-public-hero { background: var(--ivory-0); min-height: 0; padding: 48px 24px 32px; }
.bio-template-simple .bio-public-hero-inner { padding: 0; }
.bio-template-simple .bio-public-logo { background: #fff; border-color: var(--line); box-shadow: var(--shadow-elevated); }
.bio-template-simple .bio-public-title { color: var(--ink); font-size: 32px; text-shadow: none; }
.bio-template-simple .bio-public-subtitle { color: var(--bio-primary, var(--forest)); }
.bio-template-simple .bio-public-description { color: var(--muted); }
.bio-template-simple .bio-public-btn { border-radius: 14px; }
.bio-template-simple .bio-public-link-btn { border-radius: 14px; }

/* template social */
.bio-template-social { background: #090B0A; color: #FBF4EA; }
.bio-template-social .bio-public-hero { min-height: 520px; }
.bio-public-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.bio-public-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,11,10,.22) 0%, rgba(9,11,10,.92) 75%); }
.bio-template-social .bio-public-hero.bio-hero-nocover { background: radial-gradient(ellipse at 50% -20%, var(--bio-primary, #103B35), #090B0A 70%); }
.bio-template-social .bio-public-title { font-size: clamp(38px, 9vw, 54px); color: #FBF4EA; }
.bio-template-social .bio-public-subtitle { color: var(--bio-accent, var(--champagne)); }
.bio-template-social .bio-public-description { color: rgba(251,244,234,.65); }
.bio-template-social .bio-public-btn-primary { background: var(--bio-accent, var(--champagne)); color: #1C1C1A; box-shadow: 0 12px 28px rgba(198,161,91,.3); }
.bio-template-social .bio-public-gallery-item img { height: 220px; }
.bio-template-social .bio-public-link-btn { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #FBF4EA; box-shadow: none; }
.bio-template-social .bio-public-link-btn:hover { background: rgba(255,255,255,.12); box-shadow: none; }

/* tooltip de ajuda (?) */
.help-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 10.5px; font-weight: 800; cursor: pointer; flex-shrink: 0; vertical-align: middle; user-select: none; margin-left: 5px; }
.help-tip-box { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: #1c1c1a; color: #fff; padding: 13px 15px; border-radius: 13px; font-size: 12px; line-height: 1.6; width: 270px; white-space: normal; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 300; font-weight: 400; letter-spacing: 0; text-transform: none; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.help-tip-box::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: #1c1c1a; }
.help-tip:hover .help-tip-box, .help-tip:focus .help-tip-box, .help-tip.is-open .help-tip-box { opacity: 1; pointer-events: auto; }

/* Modal "Confirmar evento" */
.confirm-event-modal-overlay {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(14,41,39,.52); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.confirm-event-modal-overlay[hidden] { display: none; }
.confirm-event-modal {
  background: var(--ivory-0); border-radius: var(--r-xl);
  padding: 28px 24px 24px; max-width: 380px; width: 100%;
  box-shadow: 0 24px 64px rgba(14,41,39,.22); border: 1px solid var(--line);
}
.confirm-event-modal h2 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.confirm-event-modal p  { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.confirm-event-modal label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; margin-bottom: 12px; }
.confirm-event-modal label input { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ivory-1,#f4f1ec); }
.confirm-event-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }

@media (max-width: 720px) {
  .pipeline-board { padding: 0 16px 20px; }
  .pipeline-col { width: 210px; min-width: 210px; }
  .pipeline-head { padding: 16px 16px 12px; }
}
