/* ═══════════════════════════════════════════════════════
   CDC CORE CSS  — visual premium, tema escuro profissional
   ═══════════════════════════════════════════════════════ */

:root {
  --cdc-bg:      #06060a;
  --cdc-black:   #06060a;
  --cdc-panel:   #0f0f14;
  --cdc-panel2:  #141419;
  --cdc-line:    rgba(255,255,255,.09);
  --cdc-metal:   #a0988e;
  --cdc-white:   #f0eade;
  --cdc-orange:  #f47a1f;
  --cdc-red:     #8f1717;
  --cdc-glow:    rgba(244,122,31,.35);
  --cdc-tr:      .22s cubic-bezier(.22,1,.36,1);
}

/* ─ Reset base ─────────────────────────────────────────── */
.cdc-hero, .cdc-section, .cdc-page-title,
.cdc-band, .cdc-login-wrap { box-sizing: border-box; }

.site-main .cdc-section,
.site-main .cdc-page-title,
.site-main .cdc-band,
.site-main .cdc-login-wrap { color: var(--cdc-white); }

/* ═══════════════════════════════════════════════════════
   HERO  (página inicial)
   ═══════════════════════════════════════════════════════ */
.cdc-hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(48px, 7vw, 90px) 20px;
  position: relative;
  overflow: hidden;
  background: var(--cdc-bg);
  color: var(--cdc-white);
}

/* glow central laranja */
.cdc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% -5%,  rgba(244,122,31,.22), transparent),
    radial-gradient(ellipse 50% 35% at 5%  90%,  rgba(143,23,23,.16), transparent),
    radial-gradient(ellipse 40% 30% at 95% 80%,  rgba(143,23,23,.10), transparent);
  pointer-events: none;
}

.cdc-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(0deg, var(--cdc-bg), transparent);
  pointer-events: none;
}

.cdc-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cdc-logo-large {
  width: min(200px, 44vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(244,122,31,.28)) drop-shadow(0 20px 32px rgba(0,0,0,.65));
}

.cdc-kicker {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid rgba(244,122,31,.35);
  border-radius: 999px;
  background: rgba(244,122,31,.09);
  color: var(--cdc-orange);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cdc-hero h1,
.cdc-page-title h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  line-height: .97;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}

.cdc-lead {
  font-size: clamp(17px, 2vw, 22px);
  color: #b8b0a4;
  max-width: 660px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ─ Page title (páginas internas) ──────────────────────── */
.cdc-page-title {
  position: relative;
  padding: clamp(52px, 8vw, 100px) 20px clamp(40px, 6vw, 76px);
  text-align: center;
  overflow: hidden;
  background: var(--cdc-bg);
  color: var(--cdc-white);
}

.cdc-page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 50% -10%, rgba(244,122,31,.18), transparent),
    radial-gradient(ellipse 40% 60% at 5% 100%,  rgba(143,23,23,.12), transparent);
  pointer-events: none;
}

.cdc-page-title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,122,31,.35), transparent);
}

.cdc-page-title h1,
.cdc-page-title p {
  position: relative;
  z-index: 1;
}

.cdc-page-title p,
.cdc-hero p,
.cdc-president-hero p {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ─ Band (faixa CTA) ────────────────────────────────────── */
.cdc-band {
  position: relative;
  text-align: center;
  padding: 64px 20px;
  overflow: hidden;
  background: var(--cdc-bg);
  color: var(--cdc-white);
  border-top: 1px solid rgba(244,122,31,.10);
  border-bottom: 1px solid rgba(244,122,31,.10);
}

.cdc-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 110%, rgba(244,122,31,.12), transparent);
  pointer-events: none;
}

.cdc-band h2, .cdc-band p { position: relative; z-index: 1; color: inherit; }

/* ─ Seção padrão ────────────────────────────────────────── */
.cdc-section {
  padding: clamp(48px, 7vw, 96px) 20px;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--cdc-white);
}

.cdc-section h1, .cdc-section h2, .cdc-section h3,
.cdc-section p, .cdc-section a,
.cdc-page-title h1, .cdc-page-title p,
.cdc-band h2, .cdc-band p {
  color: inherit;
  opacity: 1;
  text-shadow: none;
}

.cdc-section h2 {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.1;
  color: #fff;
  margin-top: 0;
}

.cdc-section__head, .cdc-two {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

/* ─ Grids ───────────────────────────────────────────────── */
.cdc-grid { display: grid; gap: 20px; }
.cdc-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cdc-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ─ Copy e copy ─────────────────────────────────────────── */
.cdc-copy { font-size: 17px; line-height: 1.75; color: #c0b8ae; }

/* ═══════════════════════════════════════════════════════
   CARDS / PAINÉIS
   ═══════════════════════════════════════════════════════ */
.cdc-card,
.cdc-panel,
.cdc-login,
.cdc-id-card {
  background: var(--cdc-panel);
  border: 1px solid var(--cdc-line);
  border-radius: 14px;
  padding: 24px;
  color: var(--cdc-white);
  box-shadow: 0 12px 36px rgba(0,0,0,.38);
}

/* linha de acento no topo */
.cdc-card::before,
.cdc-panel::before {
  content: "";
  display: block;
  height: 1px;
  margin: -24px -24px 22px;
  background: linear-gradient(90deg, rgba(244,122,31,.5), rgba(143,23,23,.3), transparent);
  border-radius: 14px 14px 0 0;
}

.cdc-card,
.cdc-panel {
  transition: transform var(--cdc-tr), border-color var(--cdc-tr), box-shadow var(--cdc-tr);
}

.cdc-card:hover,
.cdc-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(244,122,31,.32);
  box-shadow: 0 24px 58px rgba(0,0,0,.55), 0 0 0 1px rgba(244,122,31,.10) inset;
}

.cdc-card h3, .cdc-panel h2 { margin-top: 0; color: #fff; }
.cdc-card p, .cdc-panel p { color: #b8b0a4; }
.cdc-card a { color: var(--cdc-white); }
.cdc-card img, .cdc-profile-card img { max-width: 100%; height: auto; border-radius: 8px; }

/* ─ Profile card ────────────────────────────────────────── */
.cdc-profile-card { text-align: center; }

.cdc-profile-card .avatar,
.cdc-member-photo,
.cdc-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: #1a1a20;
  color: var(--cdc-orange);
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 0 0 2px rgba(244,122,31,.22);
}

.cdc-member-head .cdc-member-photo { width: 110px; height: 110px; flex: 0 0 auto; }

.cdc-profile-photo-field {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--cdc-line);
  border-radius: 10px;
  background: rgba(0,0,0,.20);
}
.cdc-profile-photo-field p {
  grid-column: 2;
  margin: -6px 0 0;
  color: #a09890;
  font-size: 14px;
}

.cdc-cover-thumb {
  width: 130px; height: 82px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(135deg, rgba(244,122,31,.18), transparent), #121218;
}

/* ═══════════════════════════════════════════════════════
   BOTÕES
   ═══════════════════════════════════════════════════════ */
.cdc-btn,
.cdc-form button,
.cdc-inline-form button {
  background: linear-gradient(165deg, #ff9030, #d44e0a);
  border: 0;
  color: #080808;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(212,78,10,.38), inset 0 1px 0 rgba(255,255,255,.20);
  transition: transform var(--cdc-tr), box-shadow var(--cdc-tr), filter var(--cdc-tr);
}

.cdc-btn:hover,
.cdc-form button:hover,
.cdc-inline-form button:hover {
  transform: translateY(-2px);
  filter: brightness(1.09);
  box-shadow: 0 12px 32px rgba(244,122,31,.52);
}

.cdc-btn--ghost,
.cdc-inline-form button + button {
  background: transparent;
  color: var(--cdc-white);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
.cdc-btn--ghost:hover,
.cdc-inline-form button + button:hover {
  background: rgba(255,255,255,.07);
  box-shadow: none;
}

.cdc-actions, .cdc-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ═══════════════════════════════════════════════════════
   FORMULÁRIOS
   ═══════════════════════════════════════════════════════ */
.cdc-form, .cdc-login { display: grid; gap: 14px; }

.cdc-form label, .cdc-login label {
  display: grid;
  gap: 6px;
  color: #cac3b8;
  font-weight: 700;
  font-size: 14px;
}

.cdc-form input,
.cdc-form textarea,
.cdc-form select,
.cdc-login input,
.cdc-inline-form input,
.cdc-inline-form select,
.cdc-president-form input,
.cdc-president-form textarea,
.cdc-president-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(0,0,0,.45);
  color: var(--cdc-white);
  padding: 12px 14px;
  font-size: 15px;
  transition: border-color .18s, box-shadow .18s;
}

.cdc-form input:focus,
.cdc-form textarea:focus,
.cdc-form select:focus,
.cdc-login input:focus,
.cdc-inline-form input:focus,
.cdc-inline-form select:focus,
.cdc-president-form input:focus,
.cdc-president-form textarea:focus,
.cdc-president-form select:focus {
  outline: none;
  border-color: rgba(244,122,31,.55);
  box-shadow: 0 0 0 3px rgba(244,122,31,.12);
}

.cdc-form textarea, .cdc-president-form textarea {
  min-height: 130px;
  resize: vertical;
}

.cdc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.cdc-form-wide { grid-column: 1 / -1; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.cdc-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.cdc-check input { width: auto; min-height: auto; }

/* ═══════════════════════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════════════════════ */
.cdc-status {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--cdc-white);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  border: 1px solid rgba(255,255,255,.10);
}
.cdc-status--confirmado { background: rgba(35,97,60,.45); border-color: rgba(35,197,94,.20); color: #5de8a0; }
.cdc-status--cancelado  { background: rgba(143,23,23,.45); border-color: rgba(255,80,80,.20); color: #ff8888; }
.cdc-status--concluido  { background: rgba(100,100,120,.30); }

/* ═══════════════════════════════════════════════════════
   ALERTAS
   ═══════════════════════════════════════════════════════ */
.cdc-alert {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(143,23,23,.28);
  border: 1px solid rgba(143,23,23,.40);
  color: #f0c0c0;
}
.cdc-alert--ok,
.cdc-alert--success {
  background: rgba(35,97,60,.28);
  border-color: rgba(35,197,94,.30);
  color: #9efacc;
}

/* ═══════════════════════════════════════════════════════
   LOGIN / REGISTER
   ═══════════════════════════════════════════════════════ */
.cdc-login-wrap {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background: var(--cdc-bg);
}

.cdc-login {
  width: min(440px, 100%);
  text-align: center;
  background: var(--cdc-panel);
  border: 1px solid var(--cdc-line);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,.50);
}

.cdc-login img {
  width: 100px; height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 18px rgba(244,122,31,.28));
  display: block;
}

.cdc-login button {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
}

.cdc-register-link {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  border: 1px solid rgba(244,122,31,.30);
  border-radius: 10px;
  color: var(--cdc-white);
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
  transition: background .18s, border-color .18s;
}
.cdc-register-link:hover {
  background: rgba(244,122,31,.08);
  border-color: rgba(244,122,31,.55);
}

.cdc-member-signup { max-width: 1120px; margin: 0 auto; }
.cdc-member-signup h2 {
  margin: 28px 0 10px;
  color: var(--cdc-orange);
  text-transform: uppercase;
  font-size: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(244,122,31,.25);
}

.cdc-signup-terms { align-items: flex-start; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════ */
.cdc-dashboard { display: grid; gap: 28px; }

.cdc-env-switch {
  width: min(760px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px auto;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(6,6,10,.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 48px rgba(0,0,0,.45);
}

.cdc-env-switch a {
  flex: 1 1 140px;
  padding: 11px 16px;
  border-radius: 999px;
  color: rgba(240,234,222,.65);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .18s, color .18s;
}
.cdc-env-switch a.is-active,
.cdc-env-switch a:hover {
  background: linear-gradient(135deg, #ff8c24, #c03808);
  color: #080808;
  box-shadow: 0 4px 16px rgba(244,122,31,.30);
}

.cdc-env-floating {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 9998;
  width: min(720px, calc(100% - 28px));
  transform: translateX(-50%);
}
.cdc-env-floating .cdc-env-switch { width: 100%; margin: 0; }

/* ═══════════════════════════════════════════════════════
   HERO DO PRESIDENTE
   ═══════════════════════════════════════════════════════ */
.cdc-president-hero {
  width: min(1200px, calc(100% - 32px));
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 20px auto;
  padding: 36px 40px;
  border: 1px solid rgba(244,122,31,.20);
  border-radius: 16px;
  background: var(--cdc-panel);
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0,0,0,.50);
}

.cdc-president-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% -10%, rgba(244,122,31,.22), transparent),
    radial-gradient(ellipse 40% 60% at 5% 100%, rgba(143,23,23,.18), transparent);
  pointer-events: none;
}

.cdc-president-hero > * { position: relative; z-index: 1; }

.cdc-president-hero span {
  color: var(--cdc-orange);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cdc-president-hero h1 {
  margin: 8px 0 12px;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: .94;
  text-transform: uppercase;
}

.cdc-president-hero p { max-width: 720px; color: #b8b0a4; font-size: 16px; }

.cdc-president-hero img {
  width: 160px; height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(244,122,31,.30)) drop-shadow(0 20px 32px rgba(0,0,0,.6));
  flex: 0 0 auto;
}

/* ─ Métricas ────────────────────────────────────────────── */
.cdc-president-metrics,
.cdc-president-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 18px auto;
}

.cdc-president-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.cdc-president-metrics article {
  min-height: 130px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-top: 2px solid var(--cdc-orange);
  background: var(--cdc-panel);
  box-shadow: 0 12px 32px rgba(0,0,0,.30);
}

.cdc-president-metrics span,
.cdc-approval-card span {
  color: #a09890;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.cdc-president-metrics strong {
  display: block;
  margin: 8px 0 4px;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.02em;
}

.cdc-president-metrics small,
.cdc-president-panel p,
.cdc-command-row span { color: #a09890; font-size: 13px; }

/* ─ Grid de painéis ─────────────────────────────────────── */
.cdc-president-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.cdc-president-panel {
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.09);
  background: var(--cdc-panel);
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  transition: transform var(--cdc-tr), border-color var(--cdc-tr);
}
.cdc-president-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(244,122,31,.28);
}

.cdc-president-panel--wide { grid-column: 1 / -1; }

.cdc-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.cdc-president-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ─ Approval cards ──────────────────────────────────────── */
.cdc-approval-list,
.cdc-president-form,
.cdc-president-actions { display: grid; gap: 10px; }

.cdc-approval-card,
.cdc-command-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(0,0,0,.22);
}

.cdc-approval-card h3,
.cdc-command-row strong { margin: 4px 0; color: #fff; font-size: 14px; }

.cdc-approval-card form { display: flex; gap: 8px; flex-wrap: wrap; }

.cdc-approval-card button,
.cdc-president-actions a,
.cdc-president-actions span {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: var(--cdc-white);
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
}
.cdc-approval-card button:hover,
.cdc-president-actions a:hover { background: rgba(255,255,255,.10); }

.cdc-approval-card button[value="approve"] {
  background: linear-gradient(135deg, #ff8a24, #c83a0a);
  border-color: transparent;
  color: #080808;
  box-shadow: 0 4px 14px rgba(244,122,31,.28);
}

.cdc-president-form label {
  display: grid;
  gap: 6px;
  color: #a09890;
  font-weight: 800;
  font-size: 13px;
}

.cdc-money {
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 40px;
  letter-spacing: -.02em;
}

/* ─ Help grid ───────────────────────────────────────────── */
.cdc-help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}
.cdc-help-grid article {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: var(--cdc-panel);
}
.cdc-help-grid strong { color: #fff; font-size: 14px; }
.cdc-help-grid span { color: #a09890; font-size: 13px; }

/* ─ Discipline ──────────────────────────────────────────── */
.cdc-discipline-contact p { margin-top: 0; color: #a09890; }
.cdc-discipline-case {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(0,0,0,.20);
}
.cdc-discipline-case strong { display: block; color: #fff; margin-bottom: 4px; }
.cdc-discipline-case span,
.cdc-discipline-case small { color: #a09890; }

/* ─ Member head ─────────────────────────────────────────── */
.cdc-member-head { display: flex; align-items: center; gap: 18px; }
.cdc-member-head .avatar { border-radius: 50%; }
.cdc-list { display: grid; gap: 16px; }

/* ═══════════════════════════════════════════════════════
   CARTEIRINHA DIGITAL
   ═══════════════════════════════════════════════════════ */
.cdc-id-card {
  width: min(720px, 100%);
  min-height: 360px;
  display: grid;
  grid-template-columns: 150px 1fr 190px;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(244,122,31,.22), transparent),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(143,23,23,.15), transparent),
    var(--cdc-panel);
  border: 1px solid rgba(244,122,31,.28);
  box-shadow: 0 28px 72px rgba(0,0,0,.65), inset 0 1px 0 rgba(244,122,31,.18);
}

.cdc-id-logo, .cdc-qr { width: 100%; height: auto; object-fit: contain; }
.cdc-id-card .cdc-member-photo { width: 120px; height: 120px; }

/* ═══════════════════════════════════════════════════════
   SOCIAL FEED
   ═══════════════════════════════════════════════════════ */
/* ── Layout principal 3 colunas ─────────────────────────────────────────── */
.cdc-social-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 500px) 240px;
  gap: 24px;
  align-items: start;
  max-width: 1100px;
}

.cdc-social-sidebar,
.cdc-social-right {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 14px;
}

/* ── Sidebar perfil ─────────────────────────────────────────────────────── */
.cdc-social-sidebar {
  text-align: center;
  padding: 24px 20px;
}

.cdc-social-sidebar .cdc-member-photo {
  width: 88px; height: 88px;
  margin: 0 auto 10px;
  border: 3px solid transparent;
  background:
    linear-gradient(var(--cdc-panel), var(--cdc-panel)) padding-box,
    linear-gradient(145deg, var(--cdc-orange), var(--cdc-red), #ffe0a0) border-box;
}

.cdc-social-sidebar h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}

.cdc-social-sidebar .cdc-social-rules {
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(240,234,222,.55);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.cdc-social-main { display: grid; gap: 16px; min-width: 0; }

/* ── Stories ────────────────────────────────────────────────────────────── */
.cdc-social-stories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: var(--cdc-panel);
  scrollbar-width: thin;
  scrollbar-color: rgba(244,122,31,.25) transparent;
}

.cdc-social-stories::-webkit-scrollbar { height: 3px; }
.cdc-social-stories::-webkit-scrollbar-thumb {
  background: rgba(244,122,31,.30);
  border-radius: 2px;
}

.cdc-story {
  flex: 0 0 70px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--cdc-white);
  text-align: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.cdc-story .cdc-member-photo {
  width: 62px; height: 62px;
  padding: 3px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--cdc-panel), var(--cdc-panel)) padding-box,
    linear-gradient(135deg, var(--cdc-orange) 0%, var(--cdc-red) 50%, #ffb347 100%) border-box;
  transition: transform .18s;
}

.cdc-story:hover .cdc-member-photo { transform: scale(1.06); }

.cdc-story span {
  width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(240,234,222,.75);
}

/* ── Composer ───────────────────────────────────────────────────────────── */
.cdc-social-composer {
  display: grid;
  gap: 12px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: var(--cdc-panel);
}

.cdc-social-composer-head { display: flex; align-items: center; gap: 12px; }
.cdc-social-composer-head .cdc-member-photo { width: 44px; height: 44px; flex: 0 0 44px; }
.cdc-social-composer-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: rgba(240,234,222,.6); }

.cdc-social-composer textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  color: var(--cdc-white);
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .18s;
}

.cdc-social-composer textarea:focus {
  outline: none;
  border-color: rgba(244,122,31,.45);
  box-shadow: 0 0 0 3px rgba(244,122,31,.10);
}

.cdc-social-composer .cdc-form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cdc-social-composer input[type="file"],
.cdc-social-composer select {
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  color: var(--cdc-white);
  padding: 8px 10px;
  font-size: 13px;
  width: 100%;
}

.cdc-social-composer .cdc-btn { justify-self: end; min-width: 120px; }

/* ── Filtros ────────────────────────────────────────────────────────────── */
.cdc-social-filters { display: flex; gap: 6px; }

.cdc-social-filters a {
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: rgba(240,234,222,.60);
  text-decoration: none;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .15s;
}

.cdc-social-filters a:hover {
  border-color: rgba(244,122,31,.40);
  color: var(--cdc-orange);
}

.cdc-social-filters a.is-active {
  background: linear-gradient(135deg, #ff8c24, #c03808);
  border-color: transparent;
  color: #080808;
  box-shadow: 0 3px 12px rgba(244,122,31,.28);
}

/* ── Post card ──────────────────────────────────────────────────────────── */
.cdc-social-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: var(--cdc-panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  transition: border-color .2s;
}

.cdc-social-post:hover {
  border-color: rgba(244,122,31,.20);
}

/* Header do post */
.cdc-social-post__head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
}

.cdc-social-post__avatar .cdc-member-photo {
  width: 44px; height: 44px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--cdc-panel), var(--cdc-panel)) padding-box,
    linear-gradient(135deg, var(--cdc-orange), var(--cdc-red)) border-box;
}

.cdc-social-post__meta {
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.cdc-social-post__meta a { text-decoration: none; }
.cdc-social-post__meta strong { font-size: 14px; font-weight: 800; color: var(--cdc-white); }
.cdc-social-post__meta span  { font-size: 12px; color: rgba(240,234,222,.45); }

/* Botão "..." opções */
.cdc-social-post__more {
  position: relative;
  margin-left: auto;
}

.cdc-social-post__more summary {
  list-style: none;
  cursor: pointer;
  padding: 4px 8px;
  color: rgba(240,234,222,.50);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .04em;
  border-radius: 6px;
  transition: color .15s, background .15s;
}

.cdc-social-post__more summary::-webkit-details-marker { display: none; }
.cdc-social-post__more summary:hover { color: var(--cdc-white); background: rgba(255,255,255,.06); }

.cdc-social-post__more-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  min-width: 160px;
  padding: 8px;
  background: #1a1a20;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  display: grid;
  gap: 4px;
}

.cdc-social-edit-inline summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cdc-white);
  transition: background .15s;
}
.cdc-social-edit-inline summary:hover { background: rgba(255,255,255,.07); }
.cdc-social-edit-inline summary::-webkit-details-marker { display: none; }

.cdc-social-edit-inline[open] {
  padding: 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
}

.cdc-social-edit-inline textarea {
  width: 100%;
  min-height: 80px;
  margin: 8px 0;
  padding: 10px 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  color: var(--cdc-white);
  font-size: 13px;
  resize: vertical;
}

.cdc-social-delete-btn {
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #ff8080;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
.cdc-social-delete-btn:hover { background: rgba(255,80,80,.10); }

/* Mídia — padrão Instagram 4:5, máx 480px de altura ────────────────────── */
.cdc-social-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  object-fit: cover;
  background: #08080d;
  border: 0;
}

video.cdc-social-media {
  aspect-ratio: 4 / 5;
  max-height: 480px;
  object-fit: contain;
  background: #000;
}

/* Evento tag ─────────────────────────────────────────────────────────────── */
.cdc-social-event {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  color: rgba(240,234,222,.55);
  border-top: 1px solid rgba(255,255,255,.06);
}
.cdc-social-event svg { flex: 0 0 13px; color: var(--cdc-orange); }
.cdc-social-event a { color: var(--cdc-orange); text-decoration: none; font-weight: 700; }

/* Action bar ─────────────────────────────────────────────────────────────── */
.cdc-social-actions {
  display: flex;
  align-items: center;
  padding: 8px 12px 4px;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.cdc-social-actions__left {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.cdc-social-action-form { margin: 0; }

.cdc-reaction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(240,234,222,.85);
  cursor: pointer;
  padding: 0;
  transition: color .15s, transform .18s, background .15s;
}

.cdc-reaction svg { pointer-events: none; }

.cdc-reaction:hover {
  background: rgba(255,255,255,.07);
  transform: scale(1.14);
}

/* Coração — ativa vermelho no hover */
.cdc-reaction--heart svg { stroke: rgba(240,234,222,.85); transition: stroke .15s, fill .15s; }
.cdc-reaction--heart:hover { transform: scale(1.18); }
.cdc-reaction--heart:hover svg { stroke: #ff4c5d; fill: rgba(255,76,93,.15); }

/* Comentário */
.cdc-reaction--comment:hover svg { stroke: var(--cdc-orange); }

/* Compartilhar */
.cdc-reaction--share:hover svg { stroke: #7eb8ff; }

/* Denúncia — fica à direita, ícone de bandeira, bem discreto */
.cdc-social-report-form { margin-left: auto; }
.cdc-reaction--report {
  width: 36px; height: 36px;
  color: rgba(240,234,222,.25);
}
.cdc-reaction--report:hover {
  color: rgba(255,120,80,.70);
  background: rgba(255,80,50,.08);
  transform: scale(1.08);
}

/* Curtidas ───────────────────────────────────────────────────────────────── */
.cdc-social-counts {
  margin: 0;
  padding: 2px 16px 6px;
  color: var(--cdc-white);
  font-size: 14px;
  font-weight: 700;
}

/* Caption texto ──────────────────────────────────────────────────────────── */
.cdc-social-text {
  padding: 2px 16px 8px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(240,234,222,.90);
}

.cdc-social-text a { color: var(--cdc-white); text-decoration: none; font-weight: 800; }
.cdc-social-text a:hover { text-decoration: underline; }
.cdc-social-text p { display: inline; margin: 0; }

/* "Ver todos os X comentários" ───────────────────────────────────────────── */
.cdc-social-view-comments {
  margin: 0;
  padding: 4px 16px;
  color: rgba(240,234,222,.40);
  font-size: 13px;
  cursor: pointer;
}

/* Comentários com avatar ─────────────────────────────────────────────────── */
.cdc-social-comments {
  display: grid;
  gap: 10px;
  padding: 6px 16px 10px;
}

.cdc-social-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.cdc-social-comment .cdc-member-photo {
  width: 32px; height: 32px;
  flex: 0 0 32px;
}

.cdc-social-comment p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(240,234,222,.80);
  background: rgba(255,255,255,.04);
  padding: 7px 11px;
  border-radius: 12px;
}

.cdc-social-comment p a { color: var(--cdc-white); text-decoration: none; }
.cdc-social-comment p a:hover { text-decoration: underline; }
.cdc-social-comment strong { font-weight: 800; }

/* Formulário de comentário com avatar ────────────────────────────────────── */
.cdc-social-comment-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.cdc-social-comment-form .cdc-member-photo {
  width: 32px; height: 32px;
  flex: 0 0 32px;
}

.cdc-social-comment-form input {
  flex: 1;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--cdc-white);
  font-size: 14px;
  padding: 0;
  outline: none;
}

.cdc-social-comment-form input::placeholder { color: rgba(240,234,222,.35); }

.cdc-social-comment-form button {
  background: transparent;
  border: 0;
  color: var(--cdc-orange);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  transition: opacity .15s;
}
.cdc-social-comment-form button:hover { opacity: .75; }

/* Separador entre input e botão */
.cdc-social-comment-form::after {
  display: none;
}

/* Regras da sidebar ──────────────────────────────────────────────────────── */
.cdc-social-rules { font-size: 13px; line-height: 1.65; color: rgba(240,234,222,.50); }

/* Perfil social ──────────────────────────────────────────────────────────── */
.cdc-social-profile { display: grid; gap: 16px; }

/* Mini perfil na sidebar direita ─────────────────────────────────────────── */
.cdc-social-mini-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--cdc-white);
  text-decoration: none;
  transition: background .15s;
}

.cdc-social-mini-profile:hover { background: rgba(255,255,255,.05); }
.cdc-social-mini-profile .cdc-member-photo { width: 40px; height: 40px; flex: 0 0 40px; }
.cdc-social-mini-profile span { display: grid; gap: 1px; min-width: 0; }
.cdc-social-mini-profile strong { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cdc-social-mini-profile small { font-size: 11px; color: rgba(240,234,222,.40); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cdc-social-cover { background-size: cover !important; background-position: center !important; }

/* Sidebar direita – anula padding do .cdc-panel e refaz internamente ─────── */
.cdc-social-right.cdc-panel {
  padding: 0;
  overflow: hidden;
}

.cdc-social-right h2 {
  padding: 16px 16px 12px;
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(240,234,222,.40);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* lista de irmãos com scroll se muitos */
.cdc-social-right > a,
.cdc-social-right .cdc-social-mini-profile {
  margin: 2px 6px;
}

/* Albums */
.cdc-album-card { overflow: hidden; }
.cdc-album-cover {
  min-height: 190px;
  margin: -24px -24px 20px;
  background: linear-gradient(135deg, rgba(244,122,31,.12), transparent), #070710;
  display: grid;
  place-items: center;
}
.cdc-album-cover img { width: 100%; height: 220px; object-fit: cover; display: block; }

.cdc-gallery-open {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}
.cdc-gallery-open:hover img { filter: brightness(1.10); }

.cdc-album-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 14px;
}
.cdc-album-strip img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(244,122,31,.20);
  transition: transform .18s ease;
}
.cdc-album-strip img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(244,122,31,.25);
}

/* Lightbox */
.cdc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.cdc-lightbox.is-open { display: grid; }
.cdc-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(244,122,31,.30);
  box-shadow: 0 40px 100px rgba(0,0,0,.80);
}
.cdc-lightbox__close {
  position: fixed;
  top: 22px; right: 24px;
  width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.cdc-lightbox__close:hover { background: rgba(244,122,31,.22); }

/* ═══════════════════════════════════════════════════════
   COMUNICADOS
   ═══════════════════════════════════════════════════════ */
.cdc-comm-hero h1 { max-width: 920px; }

.cdc-comm-flow {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.cdc-comm-flow span {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(244,122,31,.30);
  border-radius: 999px;
  background: rgba(244,122,31,.10);
  color: #fff7ee;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
}
.cdc-comm-flow i {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, rgba(244,122,31,.20), rgba(244,122,31,.70));
}

.cdc-comm-grid { align-items: start; }

.cdc-comm-kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.cdc-comm-kanban > div {
  min-height: 180px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
}
.cdc-comm-kanban h3 {
  margin: 0 0 12px;
  color: var(--cdc-orange);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}

.cdc-external-invite h2, .cdc-comm-grid h2 { color: #fff7ee; }

.cdc-external-invite { overflow: hidden; }
.cdc-external-invite::before {
  content: "";
  display: block;
  height: 3px;
  margin: -24px -24px 22px;
  background: linear-gradient(90deg, #f47a1f, #8f1717, transparent);
  border-radius: 14px 14px 0 0;
}

/* ═══════════════════════════════════════════════════════
   SENHA / RESET
   ═══════════════════════════════════════════════════════ */
.cdc-password-panel { max-width: 760px; margin: 0 auto; }

.cdc-password-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(244,122,31,.20);
}
.cdc-password-brand img {
  width: 88px; height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(244,122,31,.30));
}
.cdc-password-brand span {
  display: block;
  color: var(--cdc-orange);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.cdc-password-brand h2 { margin: 4px 0 0; }

/* ═══════════════════════════════════════════════════════
   MAIN BACKGROUND (site-main)
   ═══════════════════════════════════════════════════════ */
.site-main {
  background: var(--cdc-bg);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
/* ── Tablet grande: social vira 2 colunas (oculta sidebar direita) ── */
@media (max-width: 1100px) {
  .cdc-social-layout {
    grid-template-columns: 200px 1fr;
    gap: 16px;
  }
  .cdc-social-right {
    display: none;
  }
}

/* ── Tablet médio: social vira 1 coluna ─────────────────────────── */
@media (max-width: 860px) {
  .cdc-grid--3, .cdc-grid--4,
  .cdc-two, .cdc-section__head,
  .cdc-form-grid, .cdc-id-card,
  .cdc-social-layout,
  .cdc-president-metrics,
  .cdc-president-grid,
  .cdc-help-grid,
  .cdc-approval-card,
  .cdc-command-row {
    grid-template-columns: 1fr;
  }
  .cdc-social-right {
    display: grid;
  }

  .cdc-president-hero { display: grid; }
  .cdc-president-hero img { width: 120px; height: 120px; }

  .cdc-env-switch { border-radius: 14px; flex-direction: column; }

  .cdc-social-sidebar, .cdc-social-right { position: static; }
  .cdc-social-right { order: 3; }
  /* Em mobile mantém 4:5 (padrão Instagram portrait) */
  .cdc-social-media { aspect-ratio: 4 / 5; }

  .cdc-id-card { text-align: center; }
  .cdc-id-logo, .cdc-qr { max-width: 190px; margin: 0 auto; }

  .cdc-profile-photo-field { grid-template-columns: 1fr; }
  .cdc-profile-photo-field .cdc-member-photo,
  .cdc-profile-photo-field p { grid-column: auto; }

  .cdc-section { padding-left: 14px; padding-right: 14px; }
  .cdc-card, .cdc-panel, .cdc-login, .cdc-president-panel { padding: 18px; }

  .cdc-page-title h1, .cdc-hero h1, .cdc-president-hero h1 {
    font-size: clamp(28px, 8vw, 44px);
  }

  .cdc-comm-flow { grid-template-columns: 1fr; }
  .cdc-comm-flow i { width: 2px; height: 18px; margin: 0 auto; }
  .cdc-comm-kanban { grid-template-columns: 1fr; }
}

/* ── Mobile (até 480px) ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .cdc-section { padding: clamp(28px, 6vw, 48px) 14px; }
  .cdc-page-title { padding: 40px 16px 32px; }
  .cdc-hero { padding: 52px 16px; }

  /* touch targets generosos */
  .cdc-btn,
  .cdc-form button,
  .cdc-inline-form button,
  .cdc-login button { min-height: 52px; font-size: 14px; }

  .cdc-form input,
  .cdc-form textarea,
  .cdc-form select,
  .cdc-login input { min-height: 52px; font-size: 16px; } /* 16px evita zoom no iOS */

  .cdc-login { padding: 26px 18px; }

  .cdc-env-switch { border-radius: 14px; }
  .cdc-env-switch a { min-height: 48px; display: flex; align-items: center; justify-content: center; }

  .cdc-president-hero { padding: 24px 18px; }
  .cdc-president-hero img { width: 80px; height: 80px; }
  .cdc-president-metrics article { min-height: auto; }

  .cdc-card, .cdc-panel, .cdc-social-post, .cdc-president-panel { border-radius: 12px; }

  .cdc-social-filters a { padding: 8px 12px; font-size: 11px; }

  .cdc-album-strip { grid-template-columns: repeat(3, 1fr); }

  .cdc-id-card { padding: 18px; }

  .cdc-public-shell-inner { gap: 8px; }
  .cdc-public-action { min-height: 44px; padding: 0 12px; }
  .cdc-public-nav a { min-height: 40px; }
}

/* ═══════════════════════════════════════════════════════
   PRINT (carteirinha)
   ═══════════════════════════════════════════════════════ */
@media print {
  body * { visibility: hidden; }
  #cdc-id-card, #cdc-id-card * { visibility: visible; }
  #cdc-id-card { position: absolute; inset: 20px auto auto 20px; }
}

/* ═══════════════════════════════════════════════════════
   PUBLIC SHELL (fallback theme)
   ═══════════════════════════════════════════════════════ */
body.cdc-fallback-theme {
  background: var(--cdc-bg) !important;
  color: var(--cdc-white) !important;
}

body.cdc-fallback-theme .wp-site-blocks {
  background: var(--cdc-bg) !important;
  color: var(--cdc-white) !important;
}

body.cdc-fallback-theme .wp-site-blocks > header.wp-block-template-part,
body.cdc-fallback-theme .wp-site-blocks > footer.wp-block-template-part,
body.cdc-fallback-theme .wp-block-post-title { display: none !important; }

.cdc-public-shell-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(6,6,10,.94);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cdc-public-shell-header::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(244,122,31,.6) 35%,
    rgba(244,122,31,.8) 50%,
    rgba(244,122,31,.6) 65%,
    transparent 100%);
  pointer-events: none;
}

body.admin-bar .cdc-public-shell-header { top: 32px; }

.cdc-public-shell-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cdc-public-brand {
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cdc-white) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  font-weight: 900;
  transition: opacity .2s;
}
.cdc-public-brand:hover { opacity: .82; }

.cdc-public-brand img {
  width: 50px; height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(244,122,31,.38));
}

.cdc-public-brand span {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 18px;
  line-height: 1;
  letter-spacing: .05em;
}

.cdc-public-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.cdc-public-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 6px;
  color: rgba(240,234,222,.65) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .18s, background .18s;
}
.cdc-public-nav a:hover {
  background: rgba(255,255,255,.06);
  color: var(--cdc-white) !important;
}

.cdc-public-actions { display: flex; align-items: center; gap: 8px; }

.cdc-public-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: linear-gradient(165deg, #ff9030, #d44e0a);
  color: #080808 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(212,78,10,.38);
  transition: transform .18s, box-shadow .18s, filter .18s;
}
.cdc-public-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244,122,31,.52);
  filter: brightness(1.08);
}

.cdc-public-action--ghost {
  background: transparent;
  color: rgba(240,234,222,.75) !important;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
.cdc-public-action--ghost:hover {
  background: rgba(255,255,255,.07);
  box-shadow: none;
  color: var(--cdc-white) !important;
}

body.cdc-fallback-theme .wp-site-blocks main { padding-top: 0 !important; }
body.cdc-fallback-theme .wp-site-blocks main > .wp-block-group {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 980px) {
  .cdc-public-shell-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px 0;
  }
  .cdc-public-brand { min-width: 0; }
  .cdc-public-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(244,122,31,.25) transparent;
  }
}

@media (max-width: 782px) {
  body.admin-bar .cdc-public-shell-header { top: 46px; }
  .cdc-public-brand span { display: none; }
}

@media (max-width: 560px) {
  .cdc-public-shell-inner { width: min(100% - 20px, 1240px); gap: 10px; }
  .cdc-public-brand img { width: 44px; height: 44px; }
  .cdc-public-action { min-height: 34px; padding: 0 11px; font-size: 10px; }
}

/* ── Subtítulo de seção pública ────────────────────────────────────────────── */
.cdc-section-subtitle {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(240,234,222,.40);
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* ── Lista de integrantes no dashboard presidência ─────────────────────────── */
.cdc-members-list-president {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(244,122,31,.20) transparent;
}

.cdc-mlist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.cdc-mlist-row:last-child { border-bottom: 0; }
.cdc-mlist-row .cdc-member-photo { width: 36px; height: 36px; flex: 0 0 36px; }

.cdc-mlist-info { flex: 1; min-width: 0; }
.cdc-mlist-info strong { display: block; font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdc-mlist-info small { font-size: 11px; color: rgba(240,234,222,.40); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.cdc-mlist-cargo {
  font-size: 11px;
  font-weight: 700;
  color: var(--cdc-orange);
  white-space: nowrap;
  flex-shrink: 0;
}

.cdc-mlist-status {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255,255,255,.07);
  color: rgba(240,234,222,.55);
}

.cdc-mlist-status--ativo { background: rgba(45,222,110,.10); color: #2dde6e; }
.cdc-mlist-status--prospect { background: rgba(244,200,31,.10); color: #f4c81f; }
.cdc-mlist-status--pendente_aprovacao { background: rgba(244,122,31,.12); color: var(--cdc-orange); }
.cdc-mlist-status--suspenso,
.cdc-mlist-status--desligado { background: rgba(220,50,50,.10); color: #e05050; }

.cdc-mlist-id {
  font-size: 11px;
  font-weight: 900;
  color: rgba(240,234,222,.25);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 28px;
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════════════════════
   REDE SOCIAL — NOVA VERSÃO 1.5.2
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Indicador Online ──────────────────────────────────────────────────────── */
.cdc-online-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2dde6e;
  box-shadow: 0 0 0 2px var(--cdc-panel, #0f0f18), 0 0 6px rgba(45,222,110,.50);
  flex-shrink: 0;
}

.cdc-online-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #2dde6e;
  letter-spacing: .02em;
}

/* ── Sidebar esquerda ─────────────────────────────────────────────────────── */
.cdc-social-me {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 14px;
}

.cdc-social-me-photo {
  position: relative;
  flex: 0 0 auto;
}

.cdc-social-me-photo .cdc-online-dot {
  position: absolute;
  bottom: 2px; right: 2px;
}

.cdc-social-me-info { min-width: 0; }
.cdc-social-me-info strong { display: block; font-size: 14px; font-weight: 800; color: var(--cdc-white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdc-social-me-info small { font-size: 11px; color: rgba(240,234,222,.45); }

.cdc-social-sidebar-nav {
  display: grid;
  gap: 2px;
  margin-bottom: 16px;
}

.cdc-social-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(240,234,222,.70) !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background .15s, color .15s;
}

.cdc-social-sidebar-nav a:hover {
  background: rgba(255,255,255,.06);
  color: var(--cdc-white) !important;
}

.cdc-social-sidebar-nav a svg { flex: 0 0 18px; opacity: .65; }
.cdc-sidebar-nav-msgs { position: relative; }

.cdc-sidebar-online-count {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(240,234,222,.55);
}

/* ── Badge notificação ────────────────────────────────────────────────────── */
.cdc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--cdc-orange, #f47a1f);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Compositor moderno ────────────────────────────────────────────────────── */
.cdc-social-composer { padding: 16px 20px !important; }

.cdc-composer-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cdc-composer-trigger {
  flex: 1;
  min-height: 42px;
  padding: 11px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  color: rgba(240,234,222,.35);
  font-size: 14px;
  cursor: text;
  transition: background .15s, border-color .15s;
  user-select: none;
}

.cdc-composer-trigger:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(244,122,31,.25);
  color: rgba(240,234,222,.55);
}

.cdc-composer-form { display: grid; gap: 12px; padding-top: 14px; }

.cdc-composer-form textarea {
  width: 100%;
  min-height: 80px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--cdc-white);
  font-size: 15px;
  line-height: 1.6;
  resize: none;
  padding: 4px 0;
  outline: none;
  transition: border-color .18s;
}

.cdc-composer-form textarea:focus { border-bottom-color: rgba(244,122,31,.50); }
.cdc-composer-form textarea::placeholder { color: rgba(240,234,222,.30); }

/* Pré-visualização de mídia */
.cdc-composer-media-preview:empty { display: none; }

.cdc-preview-wrap {
  position: relative;
  display: inline-block;
  max-width: 280px;
  border-radius: 12px;
  overflow: hidden;
}

.cdc-preview-wrap img,
.cdc-preview-wrap video { display: block; width: 100%; max-height: 200px; object-fit: cover; border-radius: 12px; }

.cdc-preview-remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  border: 0;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.cdc-preview-remove:hover { background: rgba(200,40,40,.80); }

/* Linha de evento */
.cdc-composer-event-row select {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  color: var(--cdc-white);
  padding: 9px 12px;
  font-size: 13px;
}

/* Footer do compositor */
.cdc-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.cdc-composer-type-btns {
  display: flex;
  gap: 4px;
}

/* Botões de tipo (Foto / Vídeo / Evento) */
.cdc-ctype {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: rgba(240,234,222,.60);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.cdc-ctype:hover { background: rgba(255,255,255,.07); color: var(--cdc-white); }
.cdc-ctype svg { flex-shrink: 0; }
.cdc-ctype--photo:hover svg { stroke: #4db8ff; }
.cdc-ctype--video:hover svg { stroke: #ff6b8a; }
.cdc-ctype--event:hover svg { stroke: var(--cdc-orange); }

/* ── Sidebar direita — Mini-perfil com foto wrap para dot ──────────────────── */
.cdc-mini-photo-wrap {
  position: relative;
  flex: 0 0 40px;
}

.cdc-mini-photo-wrap .cdc-online-dot {
  position: absolute;
  bottom: 1px; right: 1px;
  width: 9px; height: 9px;
}

.cdc-social-ver-todos {
  display: block;
  text-align: center;
  padding: 10px 16px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cdc-orange) !important;
  text-decoration: none;
}

/* ── Post card — cargo abaixo do nome ──────────────────────────────────────── */
.cdc-social-post__meta { grid-template-rows: auto auto auto; }

.cdc-post-cargo {
  font-size: 11px;
  font-weight: 700;
  color: var(--cdc-orange);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  margin: -2px 0 1px;
}

/* ── Story com anel verde quando online ────────────────────────────────────── */
.cdc-story--online .cdc-member-photo {
  box-shadow: 0 0 0 2px var(--cdc-panel, #0f0f18), 0 0 0 4px #2dde6e;
}

/* ── Badge de cargo ────────────────────────────────────────────────────────── */
.cdc-badge-cargo {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(244,122,31,.12);
  border: 1px solid rgba(244,122,31,.22);
  color: var(--cdc-orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Brothers grid – novo layout ────────────────────────────────────────────── */
.cdc-brothers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.cdc-brother-card {
  background: var(--cdc-panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}

.cdc-brother-card:hover { border-color: rgba(244,122,31,.28); transform: translateY(-2px); }
.cdc-brother-card--online { border-color: rgba(45,222,110,.22); }

.cdc-brother-photo-wrap {
  position: relative;
  display: inline-block;
}

.cdc-brother-photo-wrap .cdc-online-dot {
  position: absolute;
  bottom: 3px; right: 3px;
}

.cdc-brother-info { display: grid; gap: 5px; }
.cdc-brother-info h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--cdc-white); }
.cdc-brother-info small { font-size: 12px; color: rgba(240,234,222,.45); }

/* ── Perfil social — cover melhorado ──────────────────────────────────────── */
.cdc-social-profile-cover {
  background: var(--cdc-panel);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: clamp(40px, 8vw, 80px) 0 0;
}

.cdc-social-profile-cover.cdc-social-cover {
  background-size: cover;
  background-position: center;
  min-height: 220px;
}

.cdc-profile-cover-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px clamp(24px, 4vw, 40px);
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.cdc-profile-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: -20px;
}

.cdc-profile-avatar-wrap .cdc-member-photo {
  width: 100px; height: 100px;
  border: 3px solid var(--cdc-panel);
  border-radius: 50%;
}

.cdc-profile-avatar-wrap .cdc-online-dot {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 14px; height: 14px;
}

.cdc-profile-cover-info { padding-bottom: 20px; min-width: 0; }
.cdc-profile-cover-info h1 { margin: 0 0 6px; font-size: clamp(22px, 4vw, 34px); color: var(--cdc-white); }
.cdc-profile-cover-info p { margin: 8px 0 0; font-size: 14px; color: rgba(240,234,222,.65); max-width: 480px; }

/* Card de informações do perfil */
.cdc-profile-infocard {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cdc-profile-facts { display: flex; flex-wrap: wrap; gap: 14px; }

.cdc-profile-fact {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(240,234,222,.65);
}

.cdc-profile-fact svg { flex-shrink: 0; color: rgba(244,122,31,.65); }

.cdc-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Galeria do perfil */
.cdc-profile-gallery-panel h2 { margin: 0 0 14px; font-size: 14px; font-weight: 800; color: rgba(240,234,222,.60); text-transform: uppercase; letter-spacing: .06em; }

.cdc-profile-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 8px;
  overflow: hidden;
}

.cdc-gallery-thumb {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: block;
  background: rgba(255,255,255,.04);
}

.cdc-gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .22s;
}

.cdc-gallery-thumb:hover img { transform: scale(1.06); }

.cdc-gallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
}

.cdc-profile-section-title {
  font-size: 16px;
  font-weight: 800;
  color: rgba(240,234,222,.55);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 8px 0 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MENSAGENS / CHAT PRIVADO
   ═══════════════════════════════════════════════════════════════════════════ */

.cdc-messages-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.cdc-messages-list { padding: 0 !important; overflow: hidden; }

.cdc-messages-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.cdc-messages-list-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--cdc-white);
}

.cdc-messages-empty {
  padding: 32px 20px;
  text-align: center;
  font-size: 14px;
  color: rgba(240,234,222,.45);
  line-height: 1.7;
}

.cdc-messages-empty a { color: var(--cdc-orange); text-decoration: none; }

/* Thread item */
.cdc-thread-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--cdc-white) !important;
  text-decoration: none;
  transition: background .15s;
  position: relative;
}

.cdc-thread-item:hover { background: rgba(255,255,255,.05); }
.cdc-thread-item--active { background: rgba(244,122,31,.08); border-right: 2px solid var(--cdc-orange); }

.cdc-thread-avatar {
  position: relative;
  flex: 0 0 44px;
}

.cdc-thread-avatar .cdc-member-photo { width: 44px; height: 44px; }
.cdc-thread-avatar .cdc-online-dot { position: absolute; bottom: 1px; right: 1px; }

.cdc-thread-meta { flex: 1; min-width: 0; }
.cdc-thread-meta strong { display: block; font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdc-thread-meta small { display: block; font-size: 12px; color: rgba(240,234,222,.40); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }

/* Chat area */
.cdc-chat-area {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 0 !important;
  overflow: hidden;
}

.cdc-chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 60px 20px;
  color: rgba(240,234,222,.40);
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}

.cdc-chat-empty a { color: var(--cdc-orange); text-decoration: none; }

.cdc-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.cdc-chat-head-avatar { position: relative; flex: 0 0 44px; }
.cdc-chat-head-avatar .cdc-member-photo { width: 44px; height: 44px; }
.cdc-chat-head-avatar .cdc-online-dot { position: absolute; bottom: 1px; right: 1px; }
.cdc-chat-head div { flex: 1; min-width: 0; }
.cdc-chat-head strong { display: block; font-size: 14px; font-weight: 800; color: var(--cdc-white); }
.cdc-chat-head small { font-size: 12px; color: rgba(240,234,222,.45); }

.cdc-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 440px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244,122,31,.20) transparent;
}

.cdc-chat-start {
  text-align: center;
  font-size: 13px;
  color: rgba(240,234,222,.35);
  padding: 24px 0;
  margin: auto;
}

/* Balões */
.cdc-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.cdc-msg .cdc-member-photo { width: 32px; height: 32px; flex: 0 0 32px; }

.cdc-msg--me { flex-direction: row-reverse; }

.cdc-msg-bubble {
  max-width: 70%;
  padding: 9px 14px 6px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  position: relative;
}

.cdc-msg--them .cdc-msg-bubble {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-bottom-left-radius: 4px;
  color: var(--cdc-white);
}

.cdc-msg--me .cdc-msg-bubble {
  background: linear-gradient(135deg, rgba(244,122,31,.70), rgba(180,55,10,.80));
  border-bottom-right-radius: 4px;
  color: #fff;
}

.cdc-msg-time {
  display: block;
  font-size: 10px;
  opacity: .50;
  text-align: right;
  margin-top: 3px;
}

.cdc-msg-img {
  display: block;
  max-width: 200px;
  border-radius: 10px;
  margin-top: 6px;
}

/* Chat form */
.cdc-chat-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.cdc-chat-attach {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: rgba(240,234,222,.45);
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.cdc-chat-attach:hover { background: rgba(255,255,255,.07); color: var(--cdc-white); }

.cdc-chat-input {
  flex: 1;
  min-height: 40px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  color: var(--cdc-white);
  font-size: 14px;
  padding: 0 16px;
  outline: none;
  transition: border-color .18s;
}

.cdc-chat-input:focus { border-color: rgba(244,122,31,.40); }
.cdc-chat-input::placeholder { color: rgba(240,234,222,.30); }

.cdc-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8c24, #c03808);
  border: 0;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 3px 12px rgba(200,60,10,.35);
}

.cdc-chat-send:hover { transform: scale(1.08); box-shadow: 0 5px 18px rgba(244,122,31,.55); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVO SOCIAL v2
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .cdc-messages-layout { grid-template-columns: 270px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .cdc-messages-layout { grid-template-columns: 1fr; }
  .cdc-chat-area { min-height: 420px; }
  .cdc-brothers-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 720px) {
  .cdc-composer-type-btns .cdc-ctype span { display: none; }
  .cdc-ctype { padding: 7px 10px; }
  .cdc-profile-cover-inner { flex-direction: column; align-items: flex-start; }
  .cdc-profile-avatar-wrap { margin-bottom: -10px; }
}

@media (max-width: 600px) {
  .cdc-brothers-grid { grid-template-columns: repeat(2, 1fr); }
  .cdc-profile-gallery { grid-template-columns: repeat(3, 1fr); }
  .cdc-msg-bubble { max-width: 88%; }
  .cdc-social-me-info strong { font-size: 13px; }
}

/* ── Favicon picker ──────────────────────────────────── */
.cdc-favicon-label { grid-column: 1 / -1; }
.cdc-favicon-picker {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 8px;
}
.cdc-favicon-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cdc-favicon-actions .button { width: fit-content; }
.cdc-favicon-actions .description {
  color: #aaa;
  font-size: 12px;
  margin: 0;
  max-width: 340px;
}
.cdc-btn-remove-favicon { color: #e55 !important; border-color: #e55 !important; }
