/* ── RESET & VARS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green: #1a6b3c; --green-dark: #134f2c; --green-light: #e8f5ee;
  --green-mid: #2d8a52; --gold: #c9962a; --gold-mid: #b8851f; --gold-light: #fdf6e3;
  --primary: #1a6b3c; --primary-dark: #134f2c;
  --bg: #f7f9f7; --surface: #ffffff; --border: #dde8e1;
  --text: #1a2420; --text-muted: #6b7d74; --muted: #6b7d74;
  --danger: #c0392b; --danger-light: #fdf2f0;
  --blue: #2563eb; --blue-light: #dbeafe;
  --orange: #d97706; --orange-light: #fef3c7;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(26,107,60,0.08);
  --shadow-md: 0 6px 24px rgba(26,107,60,0.12);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}

/* ── NAV ── */
.nav-bar {
  background: rgba(26,107,60,0.97); backdrop-filter: blur(8px);
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 58px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 8px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  font-family: 'Playfair Display', serif; letter-spacing: -0.5px; flex-shrink: 0;
}
.nav-logo-text { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.95); line-height: 1.2; }
.nav-logo-sub { font-size: 10px; color: rgba(255,255,255,0.5); font-weight: 400; }

.nav-links { display: flex; gap: 2px; }
.nav-link {
  color: rgba(255,255,255,0.75); font-size: 13px; font-weight: 500;
  padding: 6px 13px; border-radius: 6px; cursor: pointer; transition: all 0.15s;
  text-decoration: none; display: inline-block;
}
.nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
.nav-link.active { background: rgba(255,255,255,0.15); color: #fff; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  background: var(--gold); color: #fff; border: none;
  padding: 7px 16px; border-radius: 7px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.15s; text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif; display: inline-block;
}
.nav-btn:hover { background: #b8851f; color: #fff; }
.nav-btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4); color: rgba(255,255,255,0.85);
  padding: 6px 14px; border-radius: 7px; font-size: 13px; font-weight: 500;
  text-decoration: none; display: inline-block; transition: all 0.15s;
}
.nav-btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Mobile nav toggle */
.nav-hamburger {
  display: none; flex-direction: column; gap: 4px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; display: block; }
.nav-user-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border-radius: 20px; padding: 5px 12px 5px 5px;
}
.nav-user-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
}
.nav-user-name { font-size: 12.5px; font-weight: 600; color: #fff; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Mobile nav menu */
.nav-mobile-menu {
  display: none; position: fixed; top: 58px; left: 0; right: 0; z-index: 199;
  background: var(--green-dark); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 12px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.nav-mobile-menu.open { display: block; }
.nav-mobile-link {
  display: block; color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500;
  padding: 12px 24px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.nav-mobile-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-mobile-link:last-child { border-bottom: none; }

/* ── PAGE WRAPPER ── */
.page-wrap { padding-top: 58px; flex: 1; }

/* ── HERO ── */
.hero {
  background: linear-gradient(150deg, var(--green-dark) 0%, var(--green) 55%, #2d8a52 100%);
  padding: 64px 24px 72px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Hero com vídeo de fundo (homepage) */
.hero.hero-bg {
  background: var(--green-dark);
  padding: 96px 24px 100px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero.hero-bg::before { display: none; }

/* Vídeo cobrindo todo o hero */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Garante que o vídeo não mostre controles ou interfira no clique */
  pointer-events: none;
}

/* Overlay verde sobre o vídeo */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    150deg,
    rgba(10, 40, 22, 0.80) 0%,
    rgba(20, 80, 45, 0.70) 50%,
    rgba(10, 40, 22, 0.78) 100%
  );
}

/* Conteúdo acima do overlay */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block; background: rgba(201,150,42,0.25); border: 1px solid rgba(201,150,42,0.5);
  color: #f5d080; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px,6vw,50px); color: #fff; line-height: 1.1; margin-bottom: 14px; }
.hero h1 span { color: #f5d080; }
.hero-sub { color: rgba(255,255,255,0.75); font-size: 15px; font-weight: 300; max-width: 520px; margin: 0 auto 32px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: #fff; border: none; padding: 13px 28px;
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; transition: transform 0.15s, background 0.15s;
  box-shadow: 0 4px 14px rgba(201,150,42,0.4); text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: #b8851f; transform: translateY(-1px); color: #fff; }
.btn-outline {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4);
  padding: 13px 24px; border-radius: 10px; font-size: 15px; font-weight: 500; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; transition: background 0.15s; text-decoration: none; display: inline-block;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hero-stats {
  display: flex; justify-content: center; margin-top: 48px;
  background: rgba(255,255,255,0.08); border-radius: 14px; max-width: 480px; margin-left: auto; margin-right: auto;
  border: 1px solid rgba(255,255,255,0.12); overflow: hidden;
}
.stat { flex: 1; padding: 16px 12px; text-align: center; }
.stat:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.12); }
.stat-num { font-family: 'Playfair Display', serif; font-size: 26px; color: #f5d080; font-weight: 700; }
.stat-label { font-size: 10px; color: rgba(255,255,255,0.55); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── HOME CARDS ── */
.home-section { max-width: 960px; margin: 0 auto; padding: 48px 20px 60px; }
.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.home-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: box-shadow 0.2s, transform 0.2s; cursor: pointer; text-decoration: none; display: block; color: var(--text);
}
.home-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); }
.card-icon { width: 46px; height: 46px; border-radius: 11px; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.card-title { font-weight: 700; font-size: 15px; margin-bottom: 7px; }
.card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.card-arrow { color: var(--green); font-size: 20px; margin-top: 12px; display: block; }

/* ── BUTTONS ── */
.btn-green {
  background: var(--green); color: #fff; border: none; padding: 11px 26px;
  border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; transition: background 0.15s; text-decoration: none; display: inline-block;
}
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-green:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary {
  background: transparent; border: 1.5px solid var(--border); color: var(--muted);
  padding: 10px 22px; border-radius: 9px; font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; text-decoration: none; display: inline-block; transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }
.btn-approve {
  background: var(--green); color: #fff; border: none; padding: 5px 12px;
  border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; transition: background 0.15s;
}
.btn-approve:hover { background: var(--green-dark); }
.btn-reject {
  background: transparent; color: var(--danger); border: 1px solid #fca5a5;
  padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; transition: all 0.15s;
}
.btn-reject:hover { background: var(--danger-light); }
.btn-view-data {
  background: var(--surface); color: var(--green); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
}
.btn-view-data:hover, .btn-view-data:focus-visible { border-color: var(--green); background: var(--green-light); }
.btn-sm { padding: 5px 12px !important; font-size: 12px !important; }

/* ── FORMS ── */
.form-page { max-width: 620px; margin: 0 auto; padding: 40px 20px 80px; }
.form-page-title { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--green-dark); margin-bottom: 4px; }
.form-page-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.step-circle { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.step-circle.done { background: var(--green); color: #fff; }
.step-circle.active { background: var(--gold); color: #fff; }
.step-circle.todo { background: var(--border); color: var(--muted); }
.step-line { flex: 1; height: 2px; background: var(--border); max-width: 40px; }
.step-line.done { background: var(--green); }
.step-label { font-size: 10px; color: var(--muted); margin-top: 4px; white-space: nowrap; text-align: center; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.form-section-title { font-size: 11.5px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.form-label .req { color: var(--danger); }
.form-input {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif; transition: border-color 0.15s;
  background: var(--bg); width: 100%;
}
.form-input:focus { outline: none; border-color: var(--green); background: #fff; }
.form-input.error { border-color: var(--danger); }
.form-select {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); cursor: pointer; width: 100%;
}
.form-select:focus { outline: none; border-color: var(--green); }
.form-error { color: var(--danger); font-size: 12px; margin-top: 3px; }
.upload-area {
  border: 2px dashed var(--border); border-radius: 10px; padding: 20px 16px;
  text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s;
  background: var(--bg); position: relative;
}
.upload-area:hover { border-color: var(--green); background: var(--green-light); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 26px; margin-bottom: 6px; }
.upload-text { font-size: 13px; color: var(--muted); }
.upload-text strong { color: var(--green); }
.form-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; flex-wrap: wrap; }

/* ── ALERTS ── */
.alert-box { border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; font-size: 13.5px; line-height: 1.6; }
.alert-warn { background: #fef9ec; border: 1px solid #f5d080; border-left: 4px solid var(--gold); color: #5c4a12; }
.alert-info { background: var(--green-light); border: 1px solid #b7dfc9; border-left: 4px solid var(--green); color: #1a4a2e; }
.alert-danger { background: var(--danger-light); border: 1px solid #fca5a5; border-left: 4px solid var(--danger); color: var(--danger); }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; border-left: 4px solid #16a34a; color: #166534; }
.alert-box strong { font-weight: 700; display: block; margin-bottom: 5px; }
.alert-box ul { padding-left: 16px; margin-top: 5px; }
.alert-box ul li { margin-bottom: 3px; }

.revisar-marker {
  background: #fef9ec;
  border: 1px solid #f5d080;
  border-radius: 4px;
  padding: 1px 6px;
  color: #5c4a12;
  font-weight: 600;
  font-style: normal;
}

/* ── Política de Privacidade ── */
.policy-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: var(--green-dark);
  margin: 28px 0 10px;
}
.policy-content h2:first-of-type { margin-top: 0; }
.policy-content p { margin-bottom: 12px; line-height: 1.7; font-size: 14px; }
.policy-content ul { padding-left: 20px; margin-bottom: 12px; }
.policy-content ul li { margin-bottom: 6px; line-height: 1.6; font-size: 14px; }
.policy-content hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.policy-content .policy-updated { color: var(--muted); font-size: 13px; margin-bottom: 4px; }

/* Django messages */
.messages-container { max-width: 800px; margin: 16px auto 0; padding: 0 20px; }
.msg-alert { padding: 12px 16px; border-radius: 8px; font-size: 13.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.msg-alert.success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.msg-alert.danger { background: var(--danger-light); border: 1px solid #fca5a5; color: var(--danger); }
.msg-alert.info { background: var(--blue-light); border: 1px solid #93c5fd; color: #1d4ed8; }
.msg-alert.warning { background: var(--gold-light); border: 1px solid #f5d080; color: #92400e; }

/* ── AGUARDANDO ── */
.waiting-page { max-width: 500px; margin: 0 auto; padding: 64px 20px 80px; text-align: center; }
.waiting-icon {
  width: 86px; height: 86px; border-radius: 50%; background: #fef9ec; border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  margin: 0 auto 24px; animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(201,150,42,0.3)}50%{box-shadow:0 0 0 14px rgba(201,150,42,0)} }
.waiting-title { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 10px; }
.waiting-sub { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 28px; }
.waiting-steps { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; text-align: left; }
.w-step { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.w-step:last-child { border-bottom: none; }
.w-step-dot { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.w-done { background: var(--green); color: #fff; }
.w-active { background: var(--gold); color: #fff; }
.w-todo { background: var(--border); color: var(--muted); }
.w-step-text { font-size: 13.5px; color: var(--text); padding-top: 3px; }
.w-step-text span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── INNER HEADER ── */
.inner-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  padding: 28px 28px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.inner-header-left h2 { font-family: 'Playfair Display', serif; font-size: 20px; color: #fff; }
.inner-header-left p { color: rgba(255,255,255,0.6); font-size: 12.5px; margin-top: 2px; }
.inner-greeting { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 8px 16px; color: #fff; font-size: 13px; }
.inner-greeting strong { color: #f5d080; }
.inner-header .btn-primary,
.inner-header .btn-outline,
.inner-header .btn-secondary,
.inner-header .btn-green { border: 1px solid rgba(255,255,255,0.72); }
.inner-header .btn-outline,
.inner-header .btn-secondary { background: rgba(255,255,255,0.08); color: #fff; }
.inner-header .btn-primary:hover,
.inner-header .btn-outline:hover,
.inner-header .btn-secondary:hover,
.inner-header .btn-green:hover,
.inner-header .btn-primary:focus-visible,
.inner-header .btn-outline:focus-visible,
.inner-header .btn-secondary:focus-visible,
.inner-header .btn-green:focus-visible {
  background: rgba(19,79,44,0.92); border-color: #fff; color: #fff;
}
.inner-body { max-width: 960px; margin: 0 auto; padding: 28px 20px 72px; }
.oficio-card-link { transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
.oficio-card-link:hover { box-shadow: 0 4px 16px rgba(26,107,60,0.12); transform: translateY(-2px); border-color: var(--primary) !important; }
.inner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.inner-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px; cursor: pointer; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; display: block; color: var(--text);
  position: relative;
}
.inner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text); }
.inner-card-icon { font-size: 24px; margin-bottom: 10px; }
.inner-card-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.inner-card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.inner-card-badge {
  position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 10px; border: 2px solid var(--surface);
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.inner-card-new {
  position: absolute; top: -8px; left: -8px; border-radius: 12px;
  padding: 3px 8px; border: 2px solid var(--surface);
  background: var(--green); color: #fff; font-size: 10px; font-weight: 700;
  white-space: nowrap;
}
.item-new-label {
  display: inline-block; margin-top: 5px; padding: 2px 8px;
  border-radius: 10px; background: var(--green-light);
  color: var(--green-dark); font-size: 10px; font-weight: 700;
}

/* Sino de notificações (topbar) */
.nav-bell {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; text-decoration: none;
  font-size: 17px; background: rgba(255,255,255,0.12); flex-shrink: 0;
}
.nav-bell-badge {
  position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 9px; border: 2px solid var(--green-dark);
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Cards de consulta (usado no painel da diretoria e na área do associado) */
.cs-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 10px; transition: box-shadow .15s;
  text-decoration: none; color: inherit;
}
.cs-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.cs-participacao { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Votação do associado */
.voto-opcoes { display: flex; flex-direction: column; gap: 10px; }
.voto-opcao-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 20px; border: 2px solid var(--border); border-radius: 12px;
  background: var(--surface); font-size: 15px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all 0.15s; text-align: left;
}
.voto-opcao-btn:hover { border-color: var(--green); background: var(--green-light); }
.voto-opcao-btn.voto-opcao-selecionada { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.voto-opcao-check { color: var(--green); font-weight: 700; font-size: 18px; }

/* Estado vazio (usado em minhas_demandas, oficios, consultas...) */
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
.empty-title { font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 6px; }
.empty-desc { font-size: 13px; color: var(--muted); line-height: 1.5; max-width: 380px; margin: 0 auto 16px; }
.voto-desc {
  max-height: 4.6em; overflow: hidden; position: relative; font-size: 14px;
  line-height: 1.6; white-space: pre-line; transition: max-height 0.2s;
}
.voto-desc::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1.6em;
  background: linear-gradient(transparent, var(--surface));
}
.voto-desc.expanded { max-height: none; }
.voto-desc.expanded::after { display: none; }
.voto-desc-toggle { margin-top: 8px; background: none; border: none; color: var(--green); font-weight: 600; font-size: 12.5px; cursor: pointer; padding: 0; }
.inner-section-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--green-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* Directors */
.directors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.director-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 12px; text-align: center; min-width: 0; }
.director-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); border: 2px solid #b7dfc9; display: flex; align-items: center; justify-content: center; font-size: 18px; margin: 0 auto 6px; }
.director-name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.director-role { font-size: 11.5px; color: var(--green); font-weight: 600; margin-top: 2px; }

/* Phones */
.phones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 28px; }
.phone-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.phone-icon { font-size: 18px; flex-shrink: 0; }
.phone-name { font-size: 12px; font-weight: 700; }
.phone-num { font-size: 13px; color: var(--green); font-weight: 600; }

/* Guides */
.guides-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.guide-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: border-color 0.15s; text-decoration: none; color: var(--text);
}
.guide-item:hover { border-color: var(--green); color: var(--text); }
.guide-icon { font-size: 20px; flex-shrink: 0; }
.guide-text { flex: 1; }
.guide-title { font-weight: 600; font-size: 13.5px; }
.guide-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.guide-arrow { color: var(--green); font-size: 16px; }

/* ── DEMAND ── */
.demanda-page { max-width: 640px; margin: 0 auto; padding: 40px 20px 80px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.cat-btn { border: 2px solid var(--border); background: var(--surface); border-radius: 10px; padding: 14px 8px; text-align: center; cursor: pointer; transition: all 0.15s; }
.cat-btn:hover, .cat-btn.selected { border-color: var(--green); background: var(--green-light); }
.cat-icon { font-size: 22px; margin-bottom: 5px; }
.cat-label { font-size: 11.5px; font-weight: 600; color: var(--text); }
.info-box { background: var(--green-light); border: 1px solid #b7dfc9; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-size: 13.5px; color: #1a4a2e; line-height: 1.55; }
.info-box strong { color: var(--green-dark); }
.info-box a { color: var(--green); font-weight: 600; text-decoration: none; }

/* ── TAGS ── */
.tag-status { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.tag-open { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.tag-progress { background: var(--green-light); color: var(--green); border: 1px solid #b7dfc9; }
.tag-done { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.tag-recusado { background: var(--danger-light); color: var(--danger); border: 1px solid #fca5a5; }
.tag-bairro-cn { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 600; letter-spacing: 0.04em; }
.tag-bairro-vp { background: var(--orange-light); color: #92400e; border: 1px solid #fcd34d; font-size: 10px; padding: 2px 8px; border-radius: 20px; font-weight: 600; letter-spacing: 0.04em; }

/* ── ADMIN PANEL ── */
.admin-header { background: var(--green-dark); padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.admin-header h2 { font-family: 'Playfair Display', serif; font-size: 19px; color: #fff; }
.admin-header p { color: rgba(255,255,255,0.55); font-size: 12.5px; margin-top: 2px; }
.admin-badge { background: var(--gold); color: #fff; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.admin-body { max-width: 1440px; margin: 0 auto; padding: 0 20px 72px; }

.admin-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.admin-tabs::-webkit-scrollbar { height: 5px; }
.admin-tab {
  padding: 12px 18px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap;
  transition: all 0.15s; background: none; border-top: none; border-left: none; border-right: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.admin-tab:hover { color: var(--green); }
.admin-tab.active { color: var(--green); border-bottom-color: var(--green); }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; }
.metric-num { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--green-dark); font-weight: 700; }
.metric-label { font-size: 11.5px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.metric-delta { font-size: 12px; color: var(--green); font-weight: 600; margin-top: 3px; }
.metric-breakdown { margin-top: 11px; padding-top: 8px; border-top: 1px solid var(--border); }
.metric-breakdown-item { padding: 4px 0; }
.metric-breakdown-item[hidden] { display: none; }
.metric-breakdown-row { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.metric-breakdown-row strong { color: var(--text); font-weight: 700; }
.metric-breakdown-values { display: inline-flex; gap: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-breakdown-track { height: 8px; margin-top: 4px; overflow: hidden; border-radius: 5px; background: var(--bg); }
.metric-breakdown-fill { display: block; height: 100%; border-radius: inherit; transition: width .35s ease; }
.metric-breakdown-fill-cn { background: var(--blue); }
.metric-breakdown-fill-vp { background: var(--orange); }
.metric-breakdown-fill-outros { background: var(--muted); }
@media (prefers-reduced-motion: reduce) { .metric-breakdown-fill { transition: none; } }
.metric-note { color: var(--muted); font-size: 10.5px; margin-top: 7px; line-height: 1.4; }

.admin-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-cols > .admin-panel { min-width: 0; }
.admin-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.dashboard-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dashboard-table { width: 100%; min-width: 260px; border-collapse: collapse; font-size: 13px; }
.dashboard-table th, .dashboard-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.dashboard-table th { color: var(--muted); background: var(--bg); font-size: 11px; }
.dashboard-table td:last-child { text-align: right; }
.dashboard-table tr.demanda-row { display: table-row; padding: 0; }
.dashboard-table tr.demanda-row:hover { background: var(--bg); }
.dashboard-table-wide { min-width: 620px; }
.dashboard-filter-label { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.dashboard-filter-label a, .dashboard-table a { color: var(--green); font-weight: 700; }
.admin-panel-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-panel-title { font-weight: 700; font-size: 13.5px; }
.monthly-chart { padding: 14px 18px 16px; }
.monthly-chart-note { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.monthly-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; color: var(--text); font-size: 11px; }
.monthly-legend span { display: inline-flex; align-items: center; gap: 5px; }
.monthly-types { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 10px; color: var(--muted); font-size: 10.5px; }
.monthly-swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.monthly-cn { background: var(--blue); }
.monthly-vp { background: var(--orange); }
.monthly-other { background: var(--muted); }
.monthly-chart-scroll { max-width: 100%; overflow-x: auto; padding: 3px 0 8px; -webkit-overflow-scrolling: touch; }
.monthly-chart-scroll:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.monthly-columns { display: flex; flex-wrap: nowrap; gap: 8px; min-width: 320px; }
.monthly-columns[data-has-other] { min-width: 480px; }
.monthly-month { min-width: 0; text-align: center; flex: 0 0 56px; }
.monthly-column-plot { height: 140px; padding-top: 18px; box-sizing: border-box; border-bottom: 1px solid var(--border); display: flex; align-items: flex-end; gap: 2px; }
.monthly-series { position: relative; height: 100%; flex: 1; min-width: 0; }
.monthly-stack { position: absolute; bottom: 0; left: 0; width: 100%; height: var(--pct); border-radius: 4px 4px 0 0; overflow: hidden; display: flex; flex-direction: column-reverse; }
.monthly-segment { display: block; width: 100%; flex-basis: 0; min-height: 0; }
a.monthly-segment:hover { filter: brightness(1.18); }
a.monthly-segment:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; z-index: 1; }
.monthly-value { position: absolute; bottom: calc(var(--pct) + 3px); left: 50%; transform: translateX(-50%); color: var(--text); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.monthly-month-link { display: block; margin-top: 8px; color: var(--text); font-size: 11px; font-weight: 700; text-decoration: none; }
.monthly-month-link:hover, .monthly-month-link:focus-visible { color: var(--blue); text-decoration: underline; }
.monthly-scroll-hint { display: none; margin: 6px 0 0; color: var(--muted); font-size: 10px; text-align: right; }
@media (max-width: 600px) { .monthly-scroll-hint { display: block; } }
.admin-panel-action { font-size: 12px; color: var(--green); font-weight: 600; cursor: pointer; border: none; background: none; font-family: 'Plus Jakarta Sans', sans-serif; }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); transition: background 0.1s; }
.admin-row:last-child { border-bottom: none; }
.admin-row:hover { background: var(--bg); }
.admin-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--green); flex-shrink: 0; background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; }
.admin-row-info { flex: 1; min-width: 0; }
.admin-row-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-row-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.admin-row-actions { display: flex; gap: 5px; flex-shrink: 0; }

/* Lista de membros: a rolagem fica na tabela, não na página inteira. */
.member-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.member-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; }
.member-table th, .member-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.member-table th { background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.member-table tbody tr { cursor: default; transition: background .15s; }
.member-table tbody tr:hover { background: var(--bg); }
.member-table tbody tr:last-child td { border-bottom: 0; }
.member-table td:nth-child(3), .member-table td:nth-child(4), .member-table td:nth-child(5) { white-space: nowrap; }
.member-identity { display: flex; align-items: center; gap: 10px; min-width: 175px; }
.member-name { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.member-count { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; padding: 5px 9px; border-radius: 999px; background: var(--green-light); color: var(--green); font-size: 12px; font-weight: 700; }
.member-count-open { background: var(--danger-light); color: var(--danger); }
.member-table-empty { margin: 0; padding: 16px; color: var(--muted); font-size: 13px; text-align: center; }
.member-search-label { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.member-search-label input { width: 190px; max-width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; }
.member-search-label input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 600px) { .member-search-label { width: 100%; justify-content: space-between; } .member-search-label input { flex: 1; } }

.demanda-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.demanda-row:last-child { border-bottom: none; }
.demanda-cat-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.demanda-info { flex: 1; min-width: 0; }
.demanda-title { font-weight: 600; font-size: 13px; }
.demanda-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.demandas-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.demandas-table-wrap:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.demandas-table { width: 100%; min-width: 1130px; border-collapse: collapse; font-size: 12px; }
.demandas-table th, .demandas-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.demandas-table th { background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.demandas-table tr.demanda-row { display: table-row; padding: 0; cursor: pointer; }
.demandas-table tbody tr:hover { background: var(--bg); }
.demandas-table tbody tr:last-child td { border-bottom: 0; }
.demandas-table td:nth-child(1), .demandas-table td:nth-child(3), .demandas-table td:nth-child(6), .demandas-table td:nth-child(7), .demandas-table td:nth-child(8), .demandas-table td:nth-child(9) { white-space: nowrap; }
.demandas-table-protocolo { font-weight: 700; color: var(--green-dark); }
.demandas-table-descricao { min-width: 230px; max-width: 320px; line-height: 1.45; }
.demandas-table-descricao strong { font-weight: 600; }
.demandas-table-descricao small { display: block; color: var(--muted); margin-top: 3px; }
.demandas-table-oficios { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.demandas-table-oficios span { color: var(--green); background: var(--green-light); border-radius: 10px; padding: 2px 7px; font-size: 10.5px; font-weight: 600; }
.demandas-table-resolucao { font-variant-numeric: tabular-nums; }
.demandas-table-empty { text-align: center !important; color: var(--muted); padding: 24px !important; }
.demandas-table-note { margin: 0; padding: 10px 16px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.filter-bar { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-btn {
  border: 1.5px solid var(--border); background: var(--surface); color: var(--muted);
  padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--green); background: var(--green-light); color: var(--green); }

/* Mensagens */
.msg-row { display: flex; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.1s; }
.msg-row:last-child { border-bottom: none; }
.msg-row:hover { background: var(--bg); }
.msg-row.unread { background: #fef9ec; }
.msg-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green-light); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.msg-info { flex: 1; min-width: 0; }
.msg-name { font-weight: 700; font-size: 13px; }
.msg-preview { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-time { font-size: 11px; color: var(--muted); flex-shrink: 0; margin-top: 3px; }
.msg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 7px; }
.messages-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.messages-filter-form { display: grid; grid-template-columns: minmax(200px,2fr) repeat(4,minmax(145px,1fr)) auto; gap: 8px; align-items: end; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.messages-filter-form label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.messages-filter-form input, .messages-filter-form select { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; }
.messages-filter-form .btn-green, .messages-filter-form .btn-secondary { padding: 8px 12px; white-space: nowrap; }
.message-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.message-table { width: 100%; min-width: 1120px; border-collapse: collapse; font-size: 12px; }
.message-table th, .message-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.message-table th { background: var(--bg); color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.message-table tbody tr:last-child td { border-bottom: 0; }
.message-table tbody tr:hover { background: #f8faf8; }
.message-row-unread { background: #fffbeb; }
.message-avatar { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; align-items: center; justify-content: center; flex-shrink: 0; }
.message-avatar-initials { background: var(--green-light); color: var(--green); font-size: 12px; font-weight: 700; }
.message-member-name { min-width: 145px; font-weight: 700; color: var(--text); }
.message-preview-cell { min-width: 240px; max-width: 360px; color: var(--muted); }
.message-preview-cell strong { color: var(--text); }
.message-state { display: block; font-size: 11px; font-weight: 700; white-space: nowrap; }
.message-state-new { color: #9a6700; }
.message-state-waiting { color: var(--muted); }
.message-state-done { color: var(--green); }
.message-table time, .message-state-date { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.message-table-empty { padding: 24px !important; color: var(--muted); text-align: center !important; }
.message-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 8px; color: var(--muted); font-size: 13px; }
.message-pagination a { color: var(--green); font-weight: 700; text-decoration: none; }
.message-pagination a:hover, .message-pagination a:focus-visible { text-decoration: underline; }
@media (max-width: 1024px) { .messages-filter-form { grid-template-columns: repeat(2,minmax(150px,1fr)); } }
@media (max-width: 560px) { .messages-filter-form { grid-template-columns: 1fr; } .messages-filter-form .btn-green, .messages-filter-form .btn-secondary { width: 100%; text-align: center; } .message-pagination { gap: 10px; font-size: 12px; } }

/* Ofícios */
.oficio-row { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); transition: background 0.1s; }
.oficio-row:last-child { border-bottom: none; }
.oficio-row:hover { background: var(--bg); }
.oficio-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.oficio-info { flex: 1; min-width: 0; }
.oficio-title { font-weight: 600; font-size: 13px; }
.oficio-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.oficio-num { font-size: 11px; font-weight: 700; color: var(--blue); background: var(--blue-light); padding: 2px 7px; border-radius: 4px; flex-shrink: 0; }

/* Conselhos */
.conselho-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.conselho-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.conselho-title { font-weight: 700; font-size: 14px; }
.conselho-tag { font-size: 11px; font-weight: 700; background: var(--green-light); color: var(--green); padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.conselho-rep { display: flex; align-items: center; gap: 10px; padding: 10px 0 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.conselho-rep-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-light); border: 2px solid #f5d080; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.conselho-rep-info { flex: 1; }
.conselho-rep-name { font-size: 13px; font-weight: 600; }
.conselho-rep-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* Calendário */
.calendar-list { display: flex; flex-direction: column; gap: 10px; }
.event-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 14px; align-items: center; }
.event-date { width: 48px; text-align: center; flex-shrink: 0; }
.event-day { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--green-dark); font-weight: 700; line-height: 1; }
.event-month { font-size: 10px; text-transform: uppercase; color: var(--muted); font-weight: 600; letter-spacing: 0.08em; }
.event-divider { width: 2px; background: var(--border); align-self: stretch; border-radius: 2px; flex-shrink: 0; }
.event-info { flex: 1; }
.event-title { font-weight: 700; font-size: 13.5px; margin-bottom: 3px; }
.event-desc { font-size: 12.5px; color: var(--muted); }
.event-type { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; margin-top: 6px; display: inline-block; }
.event-type-reuniao  { background: var(--blue-light);   color: var(--blue);   }
.event-type-assemb   { background: var(--orange-light); color: var(--orange); }
.event-type-conselho { background: var(--green-light);  color: var(--green);  }
.event-type-mutirao  { background: #fef3c7;             color: #b45309;       }
.event-type-evento   { background: #fce7f3;             color: #be185d;       }

/* Thumbnail do banner no card compacto (diretoria) — largura fixa como
   .event-date, não deve aumentar a altura da linha. */
.event-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

/* Faixa 3:1 no card do associado (texto em cima, imagem embaixo) */
.event-card-media { flex-direction: column; align-items: stretch; padding: 0; }
.event-banner { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; display: block; }
.event-card-row { display: flex; gap: 14px; align-items: center; padding: 14px 18px; }

/* Botão "voltar" global da área do associado (core/_botao_voltar.html) —
   visível em qualquer largura, mesmo comportamento do lado diretoria
   (cada tela de drill-down de lá também mostra seu "← Voltar" sempre,
   sem esconder no desktop). */
.btn-voltar-area { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--green-dark); margin-bottom: 10px; }

/* ── LOGIN ── */
.login-page { min-height: calc(100vh - 58px); display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px 32px; width: 100%; max-width: 400px; box-shadow: var(--shadow-md); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; font-family: 'Playfair Display', serif; margin: 0 auto 10px; }
.login-logo-name { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--green-dark); }
.login-logo-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.login-title { font-weight: 700; font-size: 16px; margin-bottom: 20px; text-align: center; color: var(--text); }
.login-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }
.login-footer a { color: var(--green); font-weight: 600; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }

/* Botão Google OAuth */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 20px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all 0.15s;
  margin-bottom: 4px;
}
.btn-google:hover { background: var(--bg); border-color: #aaa; box-shadow: var(--shadow); }

/* Divisor "ou" */
.login-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0; color: var(--muted); font-size: 12px; font-weight: 500;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--green-dark); color: #fff; padding: 12px 22px;
  border-radius: 10px; font-size: 13.5px; font-weight: 500; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2); opacity: 0; transform: translateY(20px);
  transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── STATUS UPDATE MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 500; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 14px; padding: 24px; max-width: 420px; width: 100%; box-shadow: 0 12px 48px rgba(0,0,0,0.2); }
.modal-title { font-weight: 700; font-size: 15px; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ── RESPONSIVE ── */
@media (max-width: 1299px) {
  .admin-cols { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .inner-grid { grid-template-columns: 1fr 1fr; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-cols { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .directors-grid { grid-template-columns: 1fr 1fr; }
  .phones-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 52px 20px 56px; }
  .hero.hero-bg { padding: 72px 20px 80px; min-height: 420px; }
  .login-card { padding: 28px 20px; }
  .admin-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .admin-tab { padding: 10px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
  .inner-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .stat { min-width: 50%; }
  .form-actions { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
  .admin-row-actions { flex-direction: column; gap: 4px; }
}

/* ── Off-canvas Demanda ─────────────────────────────────────────────────── */
#sd-overlay {
  position: fixed; inset: 0; background: rgba(10,20,15,.45);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#sd-overlay.active { opacity: 1; pointer-events: all; }

#sd-panel {
  position: fixed; top: 0; right: 0; width: 440px; max-width: 96vw;
  height: 100vh; background: var(--surface); z-index: 1001;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: -6px 0 32px rgba(0,0,0,.18);
}
#sd-panel.active { transform: translateX(0); }

.sd-header {
  background: #134f2c; padding: 18px 20px 16px; color: #fff; flex-shrink: 0;
}
.sd-header-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.sd-id { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 5px; font-weight: 500; }
.sd-titulo { font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.sd-close {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 6px; cursor: pointer;
  font-size: 1rem; flex-shrink: 0; transition: background .15s;
}
.sd-close:hover { background: rgba(255,255,255,.28); }
.sd-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sd-meta { font-size: 11.5px; color: rgba(255,255,255,.6); margin-top: 8px; }

.sd-body { flex: 1; overflow-y: auto; padding: 20px; }

.sd-section { margin-bottom: 20px; }
.sd-section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.sd-loc-box {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
}
.sd-loc-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.demanda-local-update {
  display: inline-block; margin-top: 7px; padding: 5px 9px;
  border-radius: 6px; background: #e8f5ee; color: #145c39;
  font-size: .78rem; font-weight: 700;
}
.sd-notice {
  margin-top: 12px; padding: 10px 12px; border-radius: 7px;
  background: #e8f5ee; border: 1px solid #a9d8bc;
  color: #145c39; font-size: .82rem; font-weight: 700;
}
.sd-location-details {
  margin: 9px 2px 0; color: var(--text); font-size: .83rem; line-height: 1.7;
}
.sd-location-details strong { color: var(--muted); font-weight: 600; }
.sd-map-card {
  margin-top: 12px; padding: 12px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg);
}
.sd-map-heading { font-weight: 700; font-size: .85rem; margin-bottom: 9px; }
.sd-map-toggle {
  background: var(--surface); border: 1px solid var(--primary);
  color: var(--primary); padding: 7px 11px; border-radius: 6px;
  font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
}
#sd-mapa { height: 220px; margin-top: 10px; border-radius: 6px; z-index: 0; }
.sd-map-caption { margin-top: 8px; font-size: .75rem; color: var(--muted); }
.sd-timeline { list-style: none; margin: 0; padding: 0 0 0 9px; }
.sd-timeline li {
  border-left: 2px solid #b7dfc8; padding: 0 0 16px 16px;
  color: var(--text); font-size: .82rem; line-height: 1.5;
}
.sd-timeline li:last-child { padding-bottom: 0; }
.sd-timeline strong { display: block; color: #145c39; }
.sd-timeline time { display: block; color: var(--muted); font-size: .76rem; margin: 2px 0; }
.sd-timeline .sd-timeline-empty { border-color: var(--border); color: var(--muted); }
.sd-desc-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 14px;
  font-size: .88rem; color: var(--text); line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}
.sd-anexo-box {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.sd-anexo-file {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: var(--bg);
  font-size: .85rem; font-weight: 600; color: var(--text);
}
.sd-anexo-actions {
  display: flex; gap: 8px; padding: 10px 14px;
  border-top: 1px solid var(--border); background: var(--surface);
}
.sd-btn-view {
  flex: 1; text-align: center; padding: 8px 0;
  background: var(--primary); color: #fff; border-radius: 6px;
  font-size: .83rem; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; transition: background .15s;
}
.sd-btn-view:hover { background: var(--primary-dark); color: #fff; }
.sd-btn-dl {
  flex: 1; text-align: center; padding: 8px 0;
  background: var(--bg); color: var(--primary);
  border: 1px solid var(--primary); border-radius: 6px;
  font-size: .83rem; font-weight: 600; text-decoration: none;
  transition: background .15s;
}
.sd-btn-dl:hover { background: #e8f5ee; }

.sd-oficio-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 7px;
  margin-bottom: 6px; font-size: .84rem; background: var(--bg);
}
.sd-oficio-nome { font-weight: 600; color: var(--text); }
.sd-oficio-status { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 8px; }

.sd-obs-box {
  background: #fffbea; border: 1px solid #f5d080;
  border-radius: 8px; padding: 11px 14px;
  font-size: .85rem; color: #7a5f00; line-height: 1.55;
}

.sd-footer {
  padding: 14px 20px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; flex-shrink: 0; background: var(--surface);
}
.sd-footer .btn-secondary { flex: 1; }
.sd-footer .btn-green { flex: 2; }

.sd-update-box {
  display: none; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; margin-bottom: 16px;
}
.sd-update-box.open { display: block; }

/* ── Off-canvas Detalhes do Ofício ───────────────────────────────────────── */
#ofp-overlay {
  position: fixed; inset: 0; background: rgba(10,20,15,.45);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#ofp-overlay.active { opacity: 1; pointer-events: all; }

#ofp-panel {
  position: fixed; top: 0; right: 0; width: 460px; max-width: 96vw;
  height: 100vh; background: var(--surface); z-index: 1001;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: -6px 0 32px rgba(0,0,0,.18);
}
#ofp-panel.active { transform: translateX(0); }

/* ── Off-canvas Evento ────────────────────────────────────────────────────── */
#evp-overlay {
  position: fixed; inset: 0; background: rgba(10,20,15,.45);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#evp-overlay.active { opacity: 1; pointer-events: all; }

#evp-panel {
  position: fixed; top: 0; right: 0; width: 500px; max-width: 96vw;
  height: 100vh; background: var(--surface); z-index: 1001;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: -6px 0 32px rgba(0,0,0,.18);
  overflow: hidden;
}
#evp-panel.active { transform: translateX(0); }

#pc-overlay {
  position: fixed; inset: 0; background: rgba(10,20,15,.45);
  z-index: 1000; opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#pc-overlay.active { opacity: 1; pointer-events: all; }

#pc-panel {
  position: fixed; top: 0; right: 0; width: 500px; max-width: 96vw;
  height: 100vh; background: var(--surface); z-index: 1001;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: -6px 0 32px rgba(0,0,0,.18);
  overflow: hidden;
}
#pc-panel.active { transform: translateX(0); }

/* Preview do banner dentro do evp-panel */
#evp-banner-preview-wrap {
  width: 100%; aspect-ratio: 3 / 1; border-radius: 8px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border); position: relative;
}
#evp-banner-preview-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
#evp-banner-preview-wrap.vazio img { display: none; }
#evp-banner-preview-wrap.vazio::after {
  content: 'Sem imagem — um modelo automático será usado';
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 16px; font-size: 11.5px; color: var(--muted);
}

/* Preview do logo/banner dentro do pc-panel (Parceiros) — mesma estrutura
   do preview de evento, só a proporção muda (5:2, ver SPONSOR_BANNER_SIZE) */
#pc-logo-preview-wrap {
  width: 100%; aspect-ratio: 5 / 2; border-radius: 8px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border); position: relative;
}
#pc-logo-preview-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
#pc-logo-preview-wrap.vazio img { display: none; }
#pc-logo-preview-wrap.vazio::after {
  content: 'Sem imagem — mostramos as iniciais do nome';
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 16px; font-size: 11.5px; color: var(--muted);
}

/* ── Modal de recorte reutilizável (Eventos e Parceiros) ─────────────────── */
#crop-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 1499; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
#crop-overlay.active { opacity: 1; pointer-events: all; }

#crop-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.96);
  width: 520px; max-width: 94vw; max-height: 88vh;
  background: var(--surface); border-radius: 12px; z-index: 1500;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
#crop-modal.active { opacity: 1; pointer-events: all; transform: translate(-50%,-50%) scale(1); }

.evp-crop-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: #134f2c; color: #fff; flex-shrink: 0;
  font-weight: 700; font-size: .9rem;
}
.evp-crop-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.evp-crop-canvas-wrap { flex: 1; min-height: 220px; background: #111; touch-action: none; overflow: hidden; }
.evp-crop-canvas-wrap img { display: block; max-width: 100%; }
.evp-crop-zoom {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-top: 1px solid var(--border); flex-shrink: 0;
}
.evp-crop-zoom input[type="range"] { flex: 1; }
.evp-crop-footer {
  display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border);
  flex-shrink: 0; background: var(--surface);
}
.evp-crop-footer button { flex: 1; min-height: 44px; }

@media (max-width: 768px) {
  #crop-modal {
    top: 0; left: 0; transform: none; width: 100vw; height: 100vh;
    max-width: 100vw; max-height: 100vh; border-radius: 0;
  }
  #crop-modal.active { transform: none; }
}

.evp-tipo-btn {
  padding: 6px 4px; border-radius: 6px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border); background: #fff;
  color: var(--muted); transition: all .15s; text-align: center;
}
.evp-tipo-btn:hover { background: var(--bg); border-color: var(--green); color: var(--green); }
.evp-tipo-btn.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ── Aba Parceiros (painel da diretoria) ─────────────────────────────────── */
.pc-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: box-shadow .15s;
}
.pc-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.pc-card-logo {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--border);
}
.pc-card-info { flex: 1; min-width: 0; }
.pc-card-nome { font-weight: 700; font-size: .92rem; color: var(--text); margin-bottom: 3px; }
.pc-card-periodo { font-size: .8rem; color: var(--muted); }
.pc-card-ordem { font-size: .78rem; color: var(--muted); flex-shrink: 0; }
.pc-status-tag {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.pc-status-rascunho { background: #f3f4f6; color: #6b7280; }
.pc-status-ativo    { background: var(--green-light); color: var(--green); }
.pc-status-suspenso { background: #fee2e2; color: #b91c1c; }

.btn-danger {
  background: #fff; color: #dc2626; border: 1.5px solid #fca5a5; padding: 7px 14px;
  border-radius: 8px; font-size: .83rem; font-weight: 700; cursor: pointer;
  transition: all .15s;
}
.btn-danger:hover { background: #fef2f2; border-color: #dc2626; }

/* ── Off-canvas Perfil do Membro ──────────────────────────────────────────── */
#mp-overlay {
  position: fixed; inset: 0; background: rgba(10,20,15,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease; z-index: 1100;
}
#mp-overlay.active { opacity: 1; pointer-events: all; }

#mp-panel {
  position: fixed; top: 0; right: 0; width: 480px; max-width: 97vw;
  height: 100vh; background: var(--surface); display: flex; flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,.18);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  z-index: 1101; overflow: hidden;
}
#mp-panel.active { transform: translateX(0); }

/* Header do membro */
.mp-header {
  background: #134f2c; padding: 20px 20px 16px; color: #fff; flex-shrink: 0;
}
.mp-header-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.mp-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: #fff; flex-shrink: 0;
  letter-spacing: 1px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
}
.mp-header-info { flex: 1; min-width: 0; }
.mp-nome  { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.mp-email { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: 3px; word-break: break-all; }
.mp-close {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  border-radius: 50%; width: 30px; height: 30px; font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s; flex-shrink: 0;
}
.mp-close:hover { background: rgba(255,255,255,.3); }
.mp-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; }

/* KPI mini-cards */
.mp-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; padding: 14px 16px; background: var(--bg);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.mp-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 10px 8px; text-align: center;
}
.mp-stat-num  { font-size: 1.4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.mp-stat-lbl  { font-size: .68rem; color: var(--muted); text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.mp-stat-sub  { font-size: .7rem; color: var(--muted); margin-top: 2px; }

/* Abas internas */
.mp-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  background: var(--bg); flex-shrink: 0;
}
.mp-tab {
  flex: 1; padding: 10px 6px; font-size: .8rem; font-weight: 600;
  color: var(--muted); border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.mp-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--surface); }

/* Body scrollável */
.mp-body { flex: 1; overflow-y: auto; }
.mp-tab-content { display: none; padding: 16px; }
.mp-tab-content.active { display: block; }

/* Info pessoal */
.mp-info-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .88rem;
}
.mp-info-row:last-child { border-bottom: none; }
.mp-info-label { font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 600; min-width: 110px; flex-shrink: 0; }
.mp-info-value { color: var(--text); font-weight: 500; }
.mp-obs-box { background: #fffbea; border: 1px solid #f5d080; border-radius: 8px; padding: 10px 12px; font-size: .83rem; color: #7a5c00; margin-top: 10px; }

/* Cards de demanda no painel */
.mp-dem-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.mp-dem-row:last-child { border-bottom: none; }
.mp-dem-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.mp-dem-body { flex: 1; min-width: 0; }
.mp-dem-titulo { font-weight: 700; font-size: .87rem; color: var(--text); margin-bottom: 3px; }
.mp-dem-meta { font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.mp-dem-desc { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Threads no painel */
.mp-thread-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; text-decoration: none; color: var(--text);
}
.mp-thread-row:last-child { border-bottom: none; }
.mp-thread-row:hover .mp-thread-titulo { color: var(--primary); }
.mp-thread-icon { font-size: 1.2rem; flex-shrink: 0; }
.mp-thread-body { flex: 1; min-width: 0; }
.mp-thread-titulo { font-weight: 700; font-size: .85rem; margin-bottom: 2px; }
.mp-thread-meta { font-size: .75rem; color: var(--muted); }

/* Docs no painel */
.mp-doc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.mp-doc-row:last-child { border-bottom: none; }
.mp-doc-icon { font-size: 1.8rem; flex-shrink: 0; }
.mp-doc-info { flex: 1; }
.mp-doc-label { font-weight: 700; font-size: .87rem; color: var(--text); }
.mp-doc-sub { font-size: .76rem; color: var(--muted); margin-top: 2px; }

/* Footer */
.mp-footer {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; background: var(--surface); flex-shrink: 0;
}
.mp-footer .btn-secondary { flex: 1; }
.mp-footer .btn-green     { flex: 2; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE — refactor
   ═══════════════════════════════════════════════════════════════════ */

/* ── Nav transparente (home) ── */
.nav-bar.nav-home {
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.nav-bar.nav-home.nav-scrolled {
  background: rgba(26,107,60,0.97);
  border-bottom-color: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── Page wrap sem padding-top (hero full-bleed) ── */
.page-wrap-fullbleed { padding-top: 0 !important; }

/* ── Hero ── */
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--green-dark);
}
.home-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0; pointer-events: none;
}
.home-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(8,32,18,0.88) 0%,
    rgba(18,72,42,0.74) 50%,
    rgba(8,32,18,0.85) 100%
  );
}
.home-hero-content {
  position: relative; z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 120px 28px 80px;
}
.home-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 7vw, 58px);
  color: #fff;
  line-height: 1.08;
  margin-bottom: 18px;
}
.home-hero-title span { color: #f5d080; }
.home-hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* Barra de números — seção própria abaixo do hero, fundo claro
   (antes vivia dentro do hero como .home-hero-stats; extraída pro
   redesign da home). */
.home-stats {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 24px;
}
.home-stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  text-align: center;
  padding: 8px;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Scroll hint */
.home-hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.35);
  animation: heroBounce 2.2s ease-in-out infinite;
}
@keyframes heroBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(9px); }
}

/* ── Features section ── */
.home-features {
  background: var(--bg);
  padding: 80px 28px 88px;
}
.home-features-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.home-features-header {
  text-align: center;
  margin-bottom: 52px;
}
.home-features-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 34px);
  color: var(--green-dark);
  margin-bottom: 10px;
}
.home-features-header p {
  color: var(--muted);
  font-size: 15px;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}
.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.hf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.hf-card:hover {
  box-shadow: 0 8px 32px rgba(26,107,60,0.14);
  transform: translateY(-4px);
  border-color: #b7dfc9;
  color: var(--text);
}
.hf-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.hf-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 9px;
  color: var(--text);
}
.hf-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.hf-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* ── Conquistas (transparência) ── */
.home-conquistas { background: var(--bg); padding: 64px 28px 72px; }
.home-conquistas-inner { max-width: 1000px; margin: 0 auto; }
.conquistas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.conquista-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.conquista-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.conquista-icone { font-size: 22px; }
.conquista-desc {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}
.conquista-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ── Próximos eventos (preview na home) ── */
.home-eventos { background: var(--surface); padding: 64px 28px 72px; border-top: 1px solid var(--border); }
.home-eventos-inner { max-width: 900px; margin: 0 auto; }
.eventos-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.evento-preview-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.evento-preview-img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; display: block; }
.evento-preview-body { padding: 16px 18px; }
.evento-preview-tipo {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.evento-preview-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.evento-preview-data { font-size: 12.5px; color: var(--muted); }

/* ── CTA final ── */
.home-cta-final { background: var(--green-dark); padding: 64px 24px; text-align: center; }
.home-cta-final-inner { max-width: 560px; margin: 0 auto; }
.home-cta-final h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 30px);
  color: #fff;
  margin-bottom: 10px;
}
.home-cta-final p {
  color: rgba(255,255,255,0.75);
  font-size: 14.5px;
  margin-bottom: 26px;
  line-height: 1.6;
}

/* ── Sponsors — banner carousel ── */
.home-sponsors {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 28px 52px; /* padding restaurado */
}
.home-sponsors-header {
  text-align: center;
  margin-bottom: 28px;
}
.home-sponsors-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ── Parceiros — coverflow (Swiper.js) ──
   .parceiros-wrap tem espaço lateral pras setas e padding embaixo pra
   paginação. .parceiros-swiper some com overflow:visible pra deixar os
   cards vizinhos "espiarem" fora do container central. */
.parceiros-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px 8px;
}

.parceiros-swiper {
  overflow: visible;
  padding: 28px 0 12px;
}

/* Fallback sem o JS do Swiper: vira uma faixa horizontal com scroll —
   os cards continuam visíveis e clicáveis, só sem o efeito coverflow.
   Restrito a :not(.swiper-initialized) de propósito — o Swiper
   controla a posição dos slides via transform, e overflow-x:auto +
   scroll-snap aqui colidiam com isso (scroll nativo + translate3d
   somados jogavam os cards a milhares de px fora da tela). */
.parceiros-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.parceiros-swiper:not(.swiper-initialized) .parceiro-card {
  scroll-snap-align: center;
}

/* Seletor composto (.swiper-slide.parceiro-card) de propósito: o CSS
   do próprio Swiper define ".swiper-slide { width: 100%; height:
   100% }" com a mesma especificidade de uma classe só — como o
   swiper-bundle.min.css é carregado depois do style.css (via
   extra_head), ele vencia a cascata e esticava o card pro tamanho
   inteiro do container. Duas classes = especificidade maior, resolve
   independente da ordem de carregamento. */
.swiper-slide.parceiro-card {
  width: 270px;
  height: auto;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Topo do card — mesma proporção 5:2 que a diretoria recorta
   (SPONSOR_BANNER_SIZE em core/banners.py), pra logos já enviados
   não ficarem espremidos/cortados errado. */
.parceiro-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 2;
  background: var(--green-dark); /* fallback só quando não há logo */
  overflow: hidden;
}
.parceiro-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.parceiro-card-img .banner-logo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback quando não há logo cadastrada (compartilhado com o card) */
.banner-logo-fallback {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  letter-spacing: -1px;
}

.parceiro-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  text-align: center;
}
.parceiro-nome {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.parceiro-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.parceiro-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.parceiro-cta:hover { background: var(--green-dark); }
.parceiro-cta svg { flex-shrink: 0; }

/* Setas prev/next */
.parceiros-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--green-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}
.parceiros-nav:hover { background: var(--green-light); }
.parceiros-nav.swiper-button-disabled { opacity: 0.35; pointer-events: none; }
.parceiros-prev { left: 4px; }
.parceiros-next { right: 4px; }

/* Paginação (dots) */
.parceiros-pagination {
  position: relative;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.parceiros-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  opacity: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  margin: 0;
}
.parceiros-pagination .swiper-pagination-bullet-active {
  background: var(--green);
  transform: scale(1.25);
}

/* ── Modal de confirmação do sponsor ── */
.sp-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.sp-modal-overlay.open { display: flex; }

.sp-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 16px 56px rgba(0,0,0,0.22);
  text-align: center;
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.sp-modal-icon { font-size: 40px; margin-bottom: 12px; }
.sp-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.sp-modal-msg {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}
.sp-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.65);
  padding: 52px 28px 28px;
}
.site-footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}
.site-footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.site-footer-logo-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}
.site-footer-logo-text {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.03em;
}
.site-footer-tagline {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 300px;
}
.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.site-footer-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
}
.site-footer-link:hover { color: #f5d080; }
.site-footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.site-footer-copy {
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive extras ── */
@media (max-width: 768px) {
  .home-features-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-hero-content { padding: 100px 22px 68px; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .site-footer-links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 14px; }
  /* Parceiros coverflow */
  .swiper-slide.parceiro-card { width: 240px; }
  .parceiros-wrap { padding: 0 44px 8px; }
  .parceiros-nav { width: 34px; height: 34px; }
}
@media (max-width: 480px) {
  .home-hero-content { padding: 88px 18px 56px; }
  /* Barra de números / Conquistas / Eventos — 2 colunas no celular */
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .stat-num { font-size: 26px; }
  .conquistas-grid, .eventos-preview-grid { grid-template-columns: 1fr; }
  /* Parceiros coverflow mobile — 1 card central, vizinhos espiando nas
     bordas; setas somem, swipe por toque assume (Swiper já cuida). */
  .swiper-slide.parceiro-card { width: 78vw; max-width: 250px; }
  .parceiro-nome { font-size: 16px; }
  .parceiros-wrap { padding: 0 4px 8px; }
  .parceiros-nav { display: none; }
  .sp-modal-box { padding: 24px 20px 22px; }
}
/* ======================================================================
   HOMEPAGE MODERNA — CSS ADICIONAL
   Adicionar ao final de static/core/style.css (ou criar partial e incluir)
   Usa apenas variáveis CSS já existentes (--green, --gold, --bg, etc.)
   ====================================================================== */

/* ── HERO MODERNO ── */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.trust-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.15);
}

/* ── SEÇÃO COMO FUNCIONA ── */
.home-how {
  background: var(--bg);
  padding: 80px 28px 88px;
}
.home-how-inner { max-width: 1000px; margin: 0 auto; }
.home-section-header {
  text-align: center;
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.home-section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 4vw, 34px);
  color: var(--green-dark);
  margin: 0;
}
.home-section-header p {
  color: var(--muted);
  font-size: 15px;
  max-width: 460px;
  margin: 0;
  line-height: 1.6;
}
.section-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  font-size: 13.5px;
  margin-top: 4px;
  transition: color 0.15s;
}
.section-link:hover { color: var(--green-dark); text-decoration: underline; }

.home-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  position: relative;
}
.how-card:hover {
  box-shadow: 0 8px 32px rgba(26,107,60,0.14);
  transform: translateY(-4px);
  border-color: #b7dfc9;
  color: var(--text);
}
.how-step {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.18;
  line-height: 1;
}
.how-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.how-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 9px;
  color: var(--text);
}
.how-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}
.how-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  text-decoration: none;
}
.how-link:hover { text-decoration: underline; }

/* ── NÚMEROS VIVOS (cards modernos) ── */
.home-stats-modern {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 24px;
}
.home-stats-grid-modern {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card-modern {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card-modern:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-icon-modern {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}
.stat-num-modern {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}
.stat-label-modern {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.stat-trend {
  font-size: 11.5px;
  color: var(--green);
  font-weight: 600;
  margin-top: 8px;
}

/* ── CONQUISTAS RECENTES ── */
.home-wins { background: var(--bg); padding: 64px 28px 72px; }
.home-wins-inner { max-width: 1000px; margin: 0 auto; }
.wins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.win-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.win-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.win-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.win-icon { font-size: 22px; }
.win-desc {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 12px;
}
.win-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ── PRÓXIMOS EVENTOS (cards modernos) ── */
.home-events { background: var(--surface); padding: 64px 28px 72px; border-top: 1px solid var(--border); }
.home-events-inner { max-width: 900px; margin: 0 auto; }
.events-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.event-card-modern {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: box-shadow 0.2s, transform 0.2s;
}
.event-card-modern:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-img-wrap { position: relative; }
.event-img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; display: block; }
.event-type-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(26,107,60,0.95);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}
.event-body { padding: 16px 18px; }
.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.event-meta-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ── CTA FINAL (já existe .home-cta-final, mantém) ── */

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .home-how-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-stats-grid-modern { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .stat-num-modern { font-size: 26px; }
  .wins-grid, .events-grid-modern { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .home-stats-grid-modern { grid-template-columns: repeat(2, 1fr); }
}
.site-footer-copy {
  font-size: 11.5px;
  color: rgba(255,255,255,0.35);
}

/* ======================================================================
   HOMEPAGE MODERNA — CSS ADICIONAL (apenas classes novas)
   Adicionado ao final de static/core/style.css
   Usa apenas variáveis CSS já existentes do projeto
   ====================================================================== */

/* ── SECTION COMMON (nova estrutura unificada) ── */
.section {
  padding: 100px 24px;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.section-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  font-size: 13.5px;
  margin-top: 4px;
  transition: color 0.15s;
}
.section-link:hover { color: var(--green-dark); text-decoration: underline; }

/* ── HERO TRUST INDICATORS (inline no hero) ── */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}
.trust-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.15);
}

/* ── HOW IT WORKS ── */
.how { background: var(--bg); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.how-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.how-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.how-card:hover::before { transform: scaleX(1); }
.how-number {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 800;
  color: var(--gold);
  opacity: .1;
  line-height: 1;
  margin-bottom: 16px;
  transition: var(--transition);
}
.how-card:hover .how-number { opacity: .2; transform: translateX(8px); }
.how-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.how-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.how-desc {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.how-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--green); font-size: 14px;
  transition: var(--transition);
  margin-top: auto;
  text-decoration: none;
}
.how-link:hover { gap: 12px; color: var(--green-dark); }

/* ── LIVE METRICS ── */
.metrics {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.metric-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}
.metric-trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--green);
  margin-top: 10px;
}

/* ── RECENT WINS ── */
.wins { background: var(--bg); }
.wins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.win-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  position: relative;
}
.win-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.win-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
  margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: .04em;
}
.win-tag--resolvida { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.win-tag--em_andamento { background: var(--green-light); color: var(--green); border: 1px solid #b7dfc9; }
.win-tag--aberta { background: var(--gold-light); color: #92400e; border: 1px solid #f5d080; }
.win-icon { font-size: 24px; margin-bottom: 12px; }
.win-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 8px;
}
.win-desc {
  color: var(--muted);
  line-height: 1.6; font-size: 14px;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.win-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); font-weight: 500;
}
.win-meta span { display: flex; align-items: center; gap: 4px; }

/* ── EVENTS MODERN ── */
.events { background: var(--surface); border-top: 1px solid var(--border); }
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.event-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.event-body { padding: 24px; }
.event-type {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
  margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .05em;
}
.event-type--reuniao { background: var(--blue-light); color: var(--blue); }
.event-type--assembleia { background: var(--gold-light); color: #92400e; }
.event-type--conselho { background: var(--green-light); color: var(--green); }
.event-type--mutirao { background: var(--gold-light); color: #b45309; }
.event-type--evento { background: #fce7f3; color: #be185d; }
.event-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: var(--text);
  margin-bottom: 12px;
}
.event-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--muted);
}
.event-meta span { display: flex; align-items: center; gap: 6px; }

/* ── PARTNERS MODERN (TABS + GRID) ── */
.partners { background: var(--bg); }
.partners-header { text-align: center; margin-bottom: 48px; }
.partners-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 40px;
}
.partner-tab {
  padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  cursor: pointer; transition: var(--transition);
}
.partner-tab.active, .partner-tab:hover {
  background: var(--green); color: #fff; border-color: var(--green);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.partner-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.partner-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--green-dark); }
.partner-body { padding: 24px; text-align: center; }
.partner-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--text);
  margin-bottom: 8px;
}
.partner-desc {
  color: var(--muted); font-size: 14px; line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.partner-tags {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.partner-tag {
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .04em;
}
.partner-tag--comercio { background: var(--green-light); color: var(--green); }
.partner-tag--servico { background: var(--blue-light); color: var(--blue); }
.partner-tag--alimentacao { background: var(--gold-light); color: #92400e; }
.partner-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; font-size: 13px; font-weight: 600;
  color: var(--green); background: var(--green-light); border-radius: 8px;
  transition: var(--transition);
}
.partner-btn:hover { background: var(--green); color: #fff; }

/* ── CTA FINAL ── */
.cta {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius-lg);
  padding: 64px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 0h40v40H40V0zm0 40h40v40H40V40zm40-40h40v40H80V0zM0 40h40v40H0V40zm0 40h40v40H0V80z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: #fff;
  margin-bottom: 12px;
}
.cta-desc {
  color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.7;
  margin-bottom: 28px;
}
.cta .btn-primary { background: #fff; color: var(--green-dark); }
.cta .btn-primary:hover { background: var(--gold); color: #fff; }

/* ── RESPONSIVE PARA NOVAS SEÇÕES ── */
@media (max-width: 1024px) {
  .how-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .wins-grid, .events-grid, .partners-grid { grid-template-columns: 1fr; }
  .how-card { padding: 28px 24px; }
  .section { padding: 72px 20px; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 24px; }
  .how-card { padding: 28px 24px; }
  .metric-num { font-size: clamp(24px, 4vw, 32px); }
}

/* ── ACCESSIBILITY ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
.btn:focus-visible,
.nav-link:focus-visible,
.partner-tab:focus-visible,
.partner-btn:focus-visible,
.footer-link:focus-visible,
.how-link:focus-visible,
.section-link:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ======================================================================
   FIM — HOMEPAGE MODERNA
   ====================================================================== */

/* ======================================================================
   SPLIT-SCREEN LOGIN (página de autenticação)
   ====================================================================== */

.page-wrap-auth { padding-top: 0 !important; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Nav na página de auth - transparente, sem sombra */
.nav-bar.nav-auth {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ============ LADO ESQUERDO — LOGIN ============ */
.auth {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px clamp(24px, 5vw, 72px);
  background: var(--surface);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 800; color: #fff;
}

.brand-text {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--green-dark); line-height: 1.1;
}
.brand-text small {
  display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .04em; margin-top: 2px;
}

.auth-box {
  width: 100%; max-width: 400px; margin: 40px auto;
}

.auth-title {
  font-family: 'Playfair Display', serif; font-size: clamp(30px, 4vw, 38px); font-weight: 700; color: var(--green-dark); line-height: 1.15; margin-bottom: 8px;
}
.auth-sub { color: var(--muted); margin-bottom: 28px; }

/* Recuperação segura de formulários com token CSRF antigo/ausente. */
.csrf-recovery { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.csrf-recovery-card { width: 100%; max-width: 520px; padding: clamp(24px, 5vw, 40px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.csrf-recovery-card h1 { font-family: 'Playfair Display', serif; color: var(--green-dark); font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin: 18px 0 12px; }
.csrf-recovery-card p { margin-bottom: 16px; color: var(--text); }
.csrf-recovery-card .csrf-recovery-hint { margin: 18px 0 0; color: var(--muted); font-size: 13px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-google { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-google:hover { border-color: var(--green); background: var(--green-light); }
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 4px 14px rgba(201,150,42,.4); }
.btn-primary:hover { background: var(--gold-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,150,42,.5); color: #fff; }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline:hover { background: var(--green-light); }

.divider {
  display: flex; align-items: center; gap: 14px; margin: 22px 0;
  color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Form fields */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--green-dark); margin-bottom: 6px; }
.input-wrap { position: relative; }
.input {
  width: 100%; padding: 13px 16px; font-size: 15px; color: var(--text);
  background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-sm);
  transition: var(--transition);
}
.input::placeholder { color: #a3b1aa; }
.input:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(26,107,60,.1); }
.input.has-toggle { padding-right: 48px; }
.toggle-pass {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: none; background: transparent; color: var(--muted);
  border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.toggle-pass:hover { color: var(--green-dark); background: var(--green-light); }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--green); }
.link { color: var(--green); font-weight: 600; }
.link:hover { color: var(--green-dark); text-decoration: underline; }

.alert {
  display: none; background: var(--danger-light); border: 1px solid #f0c4be; color: var(--danger);
  font-size: 14px; padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px;
}
.alert.show { display: block; }

.signup {
  margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--green-light); text-align: center;
}
.signup p { font-size: 14px; color: var(--green-dark); margin-bottom: 12px; }
.signup strong { font-weight: 700; }

.auth-foot { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.auth-foot a:hover { color: var(--green-dark); text-decoration: underline; }

/* ============ LADO DIREITO — IMAGENS + RESUMO ============ */
.showcase {
  position: relative; overflow: hidden; color: #fff;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  padding: 56px clamp(28px, 5vw, 72px);
}

.slides { position: absolute; inset: 0; z-index: 0; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease;
}
.slide.active { opacity: .5; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }

.showcase-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(160deg, rgba(8,32,18,.92) 0%, rgba(18,72,42,.78) 50%, rgba(8,32,18,.9) 100%);
}

.showcase-content { position: relative; z-index: 2; max-width: 520px; width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,150,42,.2); border: 1px solid rgba(201,150,42,.4);
  color: var(--gold-soft); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 100px; margin-bottom: 20px;
}

.headline {
  font-family: 'Playfair Display', serif; font-size: clamp(32px, 3.6vw, 48px); font-weight: 700; line-height: 1.12; margin-bottom: 16px;
}
.headline span { color: var(--gold); }

.summary { font-size: clamp(15px, 1.3vw, 17px); font-weight: 300; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 36px; }

.how-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--gold-soft); margin-bottom: 16px; }

.steps { list-style: none; display: grid; gap: 12px; }
.step {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); backdrop-filter: blur(6px); transition: var(--transition);
}
.step:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.step-num {
  flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 800;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.step p { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.55; }

.dots { display: flex; gap: 8px; margin-top: 28px; }
.dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: var(--transition); }
.dot.active { width: 26px; border-radius: 10px; background: var(--gold); }

/* ============ RESPONSIVO ============ */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .auth { padding: 24px; }
  .auth-box { margin: 28px auto; }
  .showcase { padding: 48px 24px; }
}
@media (max-height: 760px) and (min-width: 961px) {
  .showcase { align-items: flex-start; overflow-y: auto; }
  .summary { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .slide.active { animation: none; }
  .btn, .step { transition: none; }
}
.btn:focus-visible, .link:focus-visible, .dot:focus-visible, .toggle-pass:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Informação sobre cookies necessários — sem falso consentimento. */
.cookie-notice[hidden] { display: none !important; }
.cookie-notice {
  position: fixed; z-index: 10000; bottom: 16px; left: 16px; right: 16px;
  max-width: 850px; margin: 0 auto; display: flex; align-items: center;
  gap: 16px; background: #fff; color: #163a29; border: 1px solid #b5d4bf;
  border-radius: 12px; padding: 15px 18px; box-shadow: 0 8px 28px #0003;
  font: 14px/1.5 'Plus Jakarta Sans', sans-serif;
}
.cookie-notice p { margin: 0; flex: 1; }
.cookie-notice a { color: #155f34; font-weight: 700; text-decoration: underline; }
.cookie-notice button { border: 0; background: #1a6b3c; color: #fff;
  border-radius: 7px; padding: 9px 17px; cursor: pointer; font: inherit; }
.cookie-notice button:focus-visible, .cookie-notice a:focus-visible {
  outline: 3px solid #c9962a; outline-offset: 2px;
}
@media (max-width: 560px) {
  .cookie-notice { flex-direction: column; align-items: stretch; }
  .cookie-notice button { align-self: flex-end; }
}
