/* =========================================================
   SPLASH — Imagem do Eleitorando (1.5s e some)
   ========================================================= */
.splash{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #1E40AF;
  animation: splashFade 1.6s ease-in-out forwards;
}
.splash__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes splashFade{
  0%, 65% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* =========================================================
   App PT — Identidade Visual
   Cores: vermelho #CC0000 + branco + preto duro
   Tipografia: Anton/Archivo Black (lambe-lambe) + Inter (body)
   ========================================================= */

:root{
  /* Variáveis driverizadas pelo config.js — não edite aqui, edite no config.js */
  --red: #CC0000;
  --red-dark: #990000;
  --red-deep: #660000;
  --black: #0a0a0a;
  --ink: #1a1a1a;
  --paper: #fbfbf6;
  --paper-2: #f0eee5;
  --on-primary: #fff;
  --star: #fff;
  /* Cores fixas independentes do partido */
  --muted: #707070;
  --line: #e5e3da;
  --green: #1f9d55;
  --yellow: #fbbf24;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --shadow-strong: 0 14px 40px rgba(0,0,0,.25);
}

*{ box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body{
  height: 100%;
  background: #1c1c1c;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button{ font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============== MOLDURA DE CELULAR ============== */
.phone-frame{
  width: 100%;
  min-height: 100vh;
  background: #1c1c1c;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  position: relative;
}

.phone-screen{
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 92px; /* espaço pra nav inferior */
}

.phone-notch{ display: none; }

/* No desktop: mostra moldura de smartphone */
@media (min-width: 768px){
  .phone-frame{
    align-items: center;
    padding: 28px 0;
    background: radial-gradient(ellipse at center, #2a2a2a 0%, #0d0d0d 80%);
  }
  .phone-frame::before{
    content:'';
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(45deg, transparent 0 38px, rgba(204,0,0,.04) 38px 39px);
    pointer-events: none;
  }
  .phone-screen{
    width: 390px;
    height: 844px;
    min-height: 844px;
    border-radius: 48px;
    border: 12px solid #0a0a0a;
    box-shadow:
      0 0 0 2px #222,
      0 30px 70px rgba(0,0,0,.6),
      0 8px 20px rgba(204,0,0,.2);
    overflow: hidden;
  }
  .phone-notch{
    display: block;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 30px;
    background: #0a0a0a;
    border-radius: 18px;
    z-index: 100;
  }
}

/* ============== TELAS ============== */
.screen{ display: none; min-height: 100%; }
.screen.active{ display: block; animation: fadeIn .3s ease; }

@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

.bottom-spacer{ height: 24px; }

/* ============== LOGIN — botão no header + tela ============== */
.login-link{
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
}
.login-link:active{ transform: scale(.96); background: rgba(255,255,255,.28); }
.login-link__avatar{
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,.92);
  color: var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
  overflow: hidden;
}
.login-link__avatar img{ width: 100%; height: 100%; object-fit: cover; }
.login-link__text{ white-space: nowrap; }

.login-wrap, .account-wrap{ padding: 24px 20px 16px; background: var(--paper); }

.login-hero{ text-align: center; margin-bottom: 18px; }
.login-hero__icon{
  width: 72px; height: 72px; margin: 0 auto 14px;
  background: var(--red); color: #fff; border-radius: 50%;
  display: grid; place-items: center;
}
.login-hero__icon svg{ width: 36px; height: 36px; }
.login-hero__title{
  font-family: 'Anton', sans-serif; font-weight: 400;
  font-size: 36px; line-height: 1; margin-bottom: 8px;
}
.login-hero__sub{
  font-size: 13px; color: var(--muted); line-height: 1.4;
  max-width: 300px; margin: 0 auto;
}

.login-disclaimer{
  display: flex; gap: 12px;
  background: #fff8e1; border-left: 4px solid #ffc107;
  border-radius: 8px; padding: 14px; margin-bottom: 22px;
}
.login-disclaimer__icon{ font-size: 22px; flex-shrink: 0; }
.login-disclaimer__text{ font-size: 12.5px; line-height: 1.45; color: #553a00; }
.login-disclaimer__text strong{ color: #8B5A00; }

.login-actions{ display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.btn-google{
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; background: #fff; border: 1.5px solid #dadce0;
  border-radius: 12px; padding: 14px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px;
  color: #3c4043; cursor: pointer; transition: all .15s;
}
.btn-google:active{ background: #f5f5f5; transform: scale(.98); }
.btn-google__icon{ display: grid; place-items: center; }

.btn-email{
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--ink); color: #fff;
  border: none; border-radius: 12px; padding: 14px;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all .15s;
}
.btn-email:active{ transform: scale(.98); }

.login-skip{
  text-align: center; padding: 12px; font-size: 13px;
  color: var(--muted); cursor: pointer; text-decoration: underline;
}

.login-benefits{
  background: #fff; border-radius: 12px; padding: 14px 16px;
  box-shadow: var(--shadow);
}
.login-benefit{
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; font-size: 12.5px; line-height: 1.35; color: var(--ink);
}
.login-benefit:not(:last-child){ border-bottom: 1px dashed var(--line); }
.login-benefit__check{
  width: 22px; height: 22px; background: var(--red); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 900; flex-shrink: 0; margin-top: 1px;
}

.account-card{
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; border-radius: 14px; padding: 24px;
  text-align: center; margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.account-card__avatar{
  width: 72px; height: 72px; margin: 0 auto 12px;
  background: rgba(255,255,255,.95); color: var(--red); border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Anton', sans-serif; font-size: 32px;
  border: 3px solid rgba(255,255,255,.4); overflow: hidden;
}
.account-card__avatar img{ width: 100%; height: 100%; object-fit: cover; }
.account-card__name{ font-family: 'Anton', sans-serif; font-size: 24px; letter-spacing: .5px; }
.account-card__email{ font-size: 12px; opacity: .85; margin-top: 2px; }
.account-card__badge{
  display: inline-block; background: rgba(255,255,255,.2);
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; margin-top: 12px;
}
.account-info{
  background: #fff; border-radius: 10px; padding: 14px 16px;
  font-size: 13px; line-height: 1.4; color: var(--muted);
  margin-bottom: 14px; box-shadow: var(--shadow);
}
.btn-logout{
  width: 100%; background: transparent; border: 1.5px solid var(--ink);
  color: var(--ink); border-radius: 12px; padding: 14px;
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.btn-logout:active{ background: var(--paper-2); }

/* ============== "DESENVOLVIDO POR ELEITORANDO" — assinatura sutil ============== */
.powered-by{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 16px 8px;
  opacity: .32;
  background: var(--paper);
}
.powered-by__text{
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--muted);
}
.powered-by__logo{
  height: 13px;
  width: auto;
  display: block;
  object-fit: contain;
}
.powered-by__fallback{
  font-family: 'Anton', sans-serif;
  font-size: 11px;
  letter-spacing: .3px;
  color: var(--ink);
  display: none;
}

/* ============== TOP BAR ============== */
.top-bar{
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top-bar--home{
  background: var(--red);
  border-bottom: none;
  color: #fff;
}

.top-bar--transparent{
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
  border: none;
}

.top-bar__title{
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 1.5px;
  font-weight: 400;
}

.brand{
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand__logo{
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand__name{
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  line-height: 1;
}

.star{
  display: inline-block;
  color: #fff;
}
.top-bar--home .star{ color: #fff; font-size: 22px; }

.icon-btn{
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: inherit;
  transition: background .15s;
}
.icon-btn svg{ width: 22px; height: 22px; }
.icon-btn:active{ background: rgba(0,0,0,.08); }
.top-bar--home .icon-btn:active{ background: rgba(255,255,255,.15); }

.icon-btn--solid{
  background: rgba(255,255,255,.95);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.icon-btn--ghost{ opacity: 0; pointer-events: none; }

/* ============== HOME — HERO (com imagem do Lula) ============== */
.hero{
  position: relative;
  width: 100%;
  background: var(--red);
  color: #fff;
  overflow: hidden;
  line-height: 0;
}

.hero__img{
  display: block;
  width: 100%;
  height: auto;
}

.hero__tag{
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fff;
  color: var(--red);
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 6px 10px;
  transform: rotate(-2deg);
  box-shadow: 3px 3px 0 rgba(0,0,0,.25);
  z-index: 3;
}

/* ============== Fallback: enquanto imagem não foi salva ============== */
.hero--fallback{
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 50%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deep) 100%);
}
.hero--fallback::before{
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 6px, rgba(0,0,0,.04) 6px 7px);
}
.hero--fallback::after{
  content: '★';
  position: absolute;
  top: 30px;
  right: -30px;
  font-size: 280px;
  color: rgba(255,255,255,.08);
  font-family: serif;
  line-height: 1;
  transform: rotate(-15deg);
  pointer-events: none;
}
.hero-fb-text{ display: none; }
.hero--fallback .hero-fb-text{
  display: block;
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  z-index: 2;
  font-family: 'Anton', sans-serif;
  font-size: 52px;
  line-height: .9;
  letter-spacing: -1px;
  text-shadow: 4px 4px 0 rgba(0,0,0,.25);
}


/* ============== HOME — CTAs 4 em linha (compactos) ============== */
.cta-grid{
  padding: 16px 16px 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cta-sq{
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  padding: 10px 6px;
  text-align: center;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .15s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cta-sq:active{ transform: scale(.95); }

.cta-sq__head{ display: contents; }

.cta-sq__icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.cta-sq__icon svg{ width: 20px; height: 20px; }

.cta-sq__num{ display: none; }

.cta-sq__title{
  font-weight: 800;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: -.1px;
  padding: 0;
}

.cta-sq::after{ display: none; }

.cta-sq--red{
  background: var(--red);
  color: #fff;
}
.cta-sq--red .cta-sq__icon{ background: rgba(255,255,255,.2); }

.cta-sq--white{
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.cta-sq--white .cta-sq__icon{ background: var(--red); color: #fff; }

.cta-sq--dark{
  background: var(--ink);
  color: #fff;
}
.cta-sq--dark .cta-sq__icon{ background: var(--red); color: #fff; }

/* ============== HOME — NEWS ============== */
.news{ padding: 16px 16px 0; }
.news__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title{
  font-family: 'Anton', sans-serif;
  font-size: 16px;
  letter-spacing: 1.5px;
  font-weight: 400;
}

.link{ font-size: 13px; color: var(--red); font-weight: 600; }

.news__list{ display: flex; flex-direction: column; gap: 10px; }
.news-card{
  background: #fff;
  border-left: 4px solid var(--red);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.news-card__date{
  font-family: 'Archivo Black', sans-serif;
  font-size: 10px;
  color: var(--red);
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}
.news-card__title{
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.news-card__src{
  font-size: 11px;
  color: var(--muted);
}

/* ============== CANDIDATOS — BANNER (imagem) ============== */
.cand-banner{
  position: relative;
  background: var(--red);
  color: #fff;
  overflow: hidden;
  line-height: 0;
}
.cand-banner__img{
  display: block;
  width: 100%;
  height: auto;
}

.cand-banner__back{
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
}
.cand-banner__back svg{ width: 20px; height: 20px; }

/* Fallback: enquanto imagem não foi salva — usa CSS poster */
.cand-banner__fallback{ display: none; }
.cand-banner--fallback{
  padding: 20px 18px 32px;
  background:
    radial-gradient(ellipse at 70% 0%, var(--red), var(--red-dark) 60%, var(--red-deep));
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  line-height: normal;
}
.cand-banner--fallback::after{
  content:'PT';
  position: absolute;
  top: 30%;
  right: -10px;
  font-family: 'Anton', sans-serif;
  font-size: 180px;
  color: rgba(255,255,255,.06);
  letter-spacing: -8px;
  line-height: 1;
  transform: rotate(-8deg);
}
.cand-banner--fallback .cand-banner__fallback{
  display: block;
  position: relative;
  z-index: 2;
  padding-top: 24px;
}

.cand-banner__top{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.cand-banner__logo{
  height: 42px;
  width: auto;
}
.cand-banner__sup{
  font-family: 'Archivo Black', sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(0,0,0,.3);
}

.cand-banner__title{
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 62px;
  line-height: .9;
  letter-spacing: -1.5px;
  text-shadow: 3px 3px 0 rgba(0,0,0,.25);
  margin: 4px 0 10px;
}

.cand-banner__sub{
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  opacity: .95;
  max-width: 280px;
}

/* ============== CANDIDATOS — BUSCA ============== */
.search-box{
  position: relative;
  margin-bottom: 14px;
}
.search-box__icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search-box input{
  width: 100%;
  padding: 12px 38px 12px 40px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s;
  -webkit-appearance: none;
}
.search-box input:focus{
  outline: none;
  border-color: var(--red);
}
.search-box input::placeholder{ color: #999; font-weight: 400; }
.search-box input::-webkit-search-decoration,
.search-box input::-webkit-search-cancel-button{ display: none; }

.search-box__clear{
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ============== CANDIDATOS — FILTROS ============== */
.filters{
  padding: 18px 16px 8px;
  background: var(--paper);
}

.filter-block{ margin-bottom: 14px; }
.filter-block:last-child{ margin-bottom: 4px; }

.filter-label{
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  color: var(--ink);
}
.filter-label .star{ color: var(--red); font-size: 14px; }

.chips{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chips--scroll{
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.chips--scroll::-webkit-scrollbar{ display: none; }

.chip{
  flex-shrink: 0;
  padding: 6px 11px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .15s;
  color: var(--ink);
}
.chip.active{
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.chip:active{ transform: scale(.95); }

/* ============== CANDIDATOS — DESTAQUE ============== */
.featured-wrap{ padding: 12px 16px 4px; background: var(--paper); }

.featured-card{
  position: relative;
  background: linear-gradient(110deg, var(--red-dark) 0%, var(--red) 50%, var(--red-deep) 100%);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 130px;
  box-shadow: 0 10px 24px rgba(204,0,0,.3);
  transition: transform .15s;
}
.featured-card:active{ transform: scale(.99); }

/* Variante com banner pronto (imagem inteira) */
.featured-card--banner{
  background: var(--red);
  min-height: 0;
  display: block;
  line-height: 0;
}
.featured-card--banner img{
  width: 100%;
  height: auto;
  display: block;
}

.featured-card::before{
  content: 'PT';
  position: absolute;
  font-family: 'Anton', sans-serif;
  font-size: 180px;
  color: rgba(255,255,255,.07);
  top: -30px;
  right: -10px;
  letter-spacing: -8px;
  line-height: 1;
  transform: rotate(-8deg);
  pointer-events: none;
}
.featured-card::after{
  content: '★';
  position: absolute;
  font-size: 200px;
  color: rgba(0,0,0,.1);
  bottom: -80px;
  left: -30px;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.featured-card__photo{
  width: 130px;
  height: 130px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.15), transparent 60%),
    linear-gradient(135deg, var(--red-dark), var(--red-deep));
  display: grid;
  place-items: center;
  font-family: 'Anton', sans-serif;
  color: #fff;
  font-size: 72px;
  flex-shrink: 0;
  position: relative;
  letter-spacing: -2px;
  overflow: hidden;
}
.featured-card__photo img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
}
.featured-card__initials{ position: relative; z-index: 1; }
.featured-card__photo::after{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 100% 50%, transparent 60%, var(--red) 100%);
  z-index: 3;
  pointer-events: none;
}
.featured-card__body{
  flex: 1;
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 14px 16px 14px 8px;
  text-align: right;
}
.featured-card__name{
  font-family: 'Anton', sans-serif;
  font-size: 50px;
  line-height: .9;
  letter-spacing: -1px;
  text-shadow: 3px 3px 0 rgba(0,0,0,.2);
}
.featured-card__cargo{
  font-family: 'Archivo Black', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  margin-top: 6px;
  opacity: .95;
}
.featured-card__loc{
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: 1px;
  opacity: .9;
}
.featured-card__loc .star{ color: #fff; }

/* ============== CANDIDATOS — TÍTULO OUTROS ============== */
.other-head{
  padding: 18px 16px 10px;
  background: var(--paper);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--ink);
}
.other-head svg{ color: var(--red); }
.other-head__count{
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0;
}

/* ============== CANDIDATOS — GRID 2 COLUNAS ============== */
.candidate-list{
  padding: 4px 16px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--paper);
}

.candidate-card{
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
  transition: transform .15s;
}
.candidate-card:active{ transform: scale(.97); }
.candidate-card::before{ display: none; }

.cand-photo{
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.15), transparent 50%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deep) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Anton', sans-serif;
  font-size: 56px;
  letter-spacing: -2px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: none;
}
.cand-photo img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
}
.cand-photo__initials{
  position: relative;
  z-index: 1;
}
.cand-photo::before{
  content: 'PT';
  position: absolute;
  font-family: 'Anton', sans-serif;
  font-size: 100px;
  color: rgba(255,255,255,.1);
  bottom: -15px;
  right: -10px;
  letter-spacing: -5px;
  line-height: 1;
  transform: rotate(-8deg);
  z-index: 1;
}
.cand-photo::after{
  content: '★';
  position: absolute;
  top: 6px;
  left: 8px;
  background: transparent;
  color: rgba(255,255,255,.5);
  width: auto;
  height: auto;
  border-radius: 0;
  font-size: 14px;
  border: none;
  display: block;
  place-items: initial;
  z-index: 3;
}

.cand-info{
  flex: 1;
  min-width: 0;
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cand-name{
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.1;
  margin: 0 0 3px;
  letter-spacing: -.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
.cand-cargo{
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  background: transparent;
  letter-spacing: .5px;
  margin-bottom: 6px;
  padding: 0;
  display: block;
  text-transform: uppercase;
}
.cand-meta{
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.cand-meta::before{
  content: '📍';
  font-size: 11px;
}
.cand-num,
.cand-fl{ display: none; }
.cand-uf{
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .5px;
}

/* ============== CANDIDATOS — PAGINAÇÃO ============== */
.pagination-wrap{
  padding: 6px 16px 8px;
  background: var(--paper);
  text-align: center;
}
.btn-loadmore{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform .15s;
  box-shadow: 0 6px 14px rgba(0,0,0,.15);
}
.btn-loadmore:active{ transform: scale(.97); }
.btn-loadmore .star{ color: var(--red); }
.pagination-info{
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
}

/* ============== PERFIL — NOVO DESIGN MODERNO ============== */
.perfil-hero{
  position: relative;
  background: var(--red);
  color: #fff;
  padding: 18px 20px 56px;
  overflow: hidden;
  min-height: 360px;
}

/* Modo imagem cheia: esconde todos os elementos sobrepostos */
.perfil-hero--image{
  padding: 0;
  min-height: 0;
  background: transparent;
  line-height: 0;
}
.perfil-hero--image .perfil-hero__bg,
.perfil-hero--image .perfil-hero__numero,
.perfil-hero--image .perfil-hero__photo,
.perfil-hero--image .perfil-hero__content{
  display: none;
}
.perfil-hero--image::after{ display: none; }
.perfil-hero__fullimg{
  display: block;
  width: 100%;
  height: auto;
}
.perfil-hero--image .perfil-hero__circle{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
}
.perfil-hero__bg{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, var(--red), var(--red-dark) 60%, var(--red-deep)),
    linear-gradient(180deg, var(--red), var(--red-deep));
  z-index: 1;
}
.perfil-hero__bg::before{
  content:'★';
  position: absolute;
  font-size: 380px;
  color: rgba(0,0,0,.08);
  top: -60px;
  right: -50px;
  font-family: serif;
  line-height: 1;
  transform: rotate(-12deg);
}
.perfil-hero__bg::after{
  content:'';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent 0 8px, rgba(0,0,0,.04) 8px 9px);
}

.perfil-hero__circle{
  position: absolute;
  top: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.perfil-hero__circle svg{ width: 20px; height: 20px; }
.perfil-hero__back{ left: 14px; }
.perfil-hero__share{ right: 14px; }

.perfil-hero__numero{
  position: absolute;
  top: 80px;
  right: 14px;
  font-family: 'Anton', sans-serif;
  font-size: 140px;
  color: rgba(255,255,255,.18);
  line-height: 1;
  z-index: 2;
  letter-spacing: -4px;
}

.perfil-hero__photo{
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 56%;
  height: 100%;
  z-index: 3;
  display: grid;
  place-items: end center;
  overflow: hidden;
}
.perfil-hero__photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.profile-photo__initials{
  font-family: 'Anton', sans-serif;
  font-size: 200px;
  color: rgba(255,255,255,.15);
  line-height: 1;
  align-self: center;
}

.perfil-hero__content{
  position: relative;
  z-index: 4;
  padding-top: 48px;
  max-width: 65%;
}
.perfil-hero__name{
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 72px;
  line-height: .88;
  letter-spacing: -2px;
  text-shadow: 3px 3px 0 rgba(0,0,0,.25);
  margin: 0;
  word-break: break-word;
}
.perfil-hero__cargo{
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: -.5px;
  line-height: 1;
  margin-top: 6px;
  opacity: .95;
}
.perfil-hero__cargo-suf{ opacity: .8; }
.perfil-hero__line{
  width: 40%;
  height: 2px;
  background: rgba(255,255,255,.5);
  margin: 12px 0 10px;
}
.perfil-hero__pills{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}
.pill-mini{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.pill-mini__icon--pt{
  background: #fff;
  color: var(--red);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.pill-mini__flag{ font-size: 14px; }
.pill-mini__sep{
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.4);
}
.pill-mini--green{
  color: #b8f5c8;
}
.pill-mini--green svg{ stroke: #b8f5c8; }

/* Onda no fim do hero */
.perfil-hero::after{
  content:'';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 30px;
  background: var(--paper);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  z-index: 4;
}

/* ============== PERFIL — BODY ============== */
.perfil-body{
  padding: 12px 20px 24px;
  background: var(--paper);
  position: relative;
  z-index: 2;
}
/* Quando hero usa imagem inteira, sobre cola na imagem */
.screen--perfil:has(.perfil-hero--image) .perfil-body{
  margin-top: -90px;
}

.perfil-section{ margin-bottom: 28px; }

.perfil-section__title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.perfil-section__title .star{ color: var(--red); font-size: 14px; }

/* SOBRE: bio + stats */
.perfil-sobre{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.perfil-bio{
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}
.perfil-stats{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
}
.stat{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.stat__icon{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 22px;
  line-height: 1;
}
.stat__icon svg{ width: 26px; height: 26px; }
.stat__label{
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* PROPOSTAS GRID */
.propostas-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.proposta-card{
  background: rgba(204,0,0,.04);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proposta-card__icon{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.proposta-card__icon svg{ width: 20px; height: 20px; }
.proposta-card__title{
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
}
.proposta-card__text{
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}

/* CITAÇÃO */
.perfil-quote{
  position: relative;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  padding: 20px 22px 22px 50px;
  border-radius: 14px;
  margin-top: 8px;
  box-shadow: 0 10px 24px rgba(204,0,0,.25);
  overflow: hidden;
}
.perfil-quote::before{
  content:'★';
  position: absolute;
  font-size: 140px;
  color: rgba(0,0,0,.1);
  bottom: -50px;
  right: -20px;
  font-family: serif;
  line-height: 1;
}
.perfil-quote__mark{
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: 'Anton', sans-serif;
  font-size: 60px;
  color: rgba(255,255,255,.4);
  line-height: 1;
}
.perfil-quote__text{
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  font-style: italic;
  position: relative;
  z-index: 2;
}
.perfil-quote__sign{
  margin-top: 8px;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  text-align: right;
  position: relative;
  z-index: 2;
  letter-spacing: 1px;
}

.add-colinha{
  width: 100%;
  background: var(--ink);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  transition: all .15s;
}
.add-colinha:active{ transform: scale(.98); }
.add-colinha.added{
  background: var(--green);
}
.add-colinha__icon{
  width: 24px;
  height: 24px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
}
.add-colinha.added .add-colinha__icon{ background: #fff; color: var(--green); }

.profile-section{ margin-bottom: 24px; }
.profile-section .section-title{ margin-bottom: 10px; }

.propostas{
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.propostas li{
  background: #fff;
  padding: 14px 16px 14px 44px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  box-shadow: var(--shadow);
}
.propostas li::before{
  content: '★';
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--red);
  font-size: 16px;
}

.profile-bio{
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  border-left: 4px solid var(--red);
}

.socials{ display: flex; gap: 8px; }
.social-btn{
  flex: 1;
  text-align: center;
  background: #fff;
  padding: 12px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.social-btn span{
  display: block;
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  color: var(--red);
  margin-bottom: 4px;
}

/* ============== COLINHA ============== */
.colinha-hero{
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 28px 20px 24px;
  overflow: hidden;
}
.colinha-hero__title{
  font-family: 'Anton', sans-serif;
  font-size: 44px;
  line-height: .9;
  letter-spacing: -.5px;
  position: relative;
  z-index: 2;
}
.colinha-hero__sub{
  font-size: 13px;
  margin-top: 8px;
  opacity: .8;
  position: relative;
  z-index: 2;
}
.colinha-hero__star{
  position: absolute;
  right: -30px;
  top: -30px;
  font-size: 200px;
  color: var(--red);
  font-family: serif;
  line-height: 1;
}

.colinha-slots{
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slot{
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.slot__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.slot__cargo{
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--red);
}
.slot__count{
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.slot__empty{
  padding: 20px 14px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.slot-pick{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.slot-pick:last-child{ border: none; }
.slot-pick__photo{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
}
.slot-pick__info{ flex: 1; min-width: 0; }
.slot-pick__name{
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-pick__num{
  font-size: 11px;
  color: var(--muted);
}
.slot-pick__remove{
  color: var(--muted);
  padding: 6px;
  font-size: 18px;
}

.colinha-actions{
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary, .btn-secondary{
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .15s;
}
.btn-primary{ background: var(--red); color: #fff; }
.btn-primary:active{ transform: scale(.98); }
.btn-primary--big{
  padding: 18px;
  font-size: 16px;
  letter-spacing: 1.5px;
}
.btn-secondary{
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--ink);
}

/* ============== COLA — PÔSTER DE VOTAÇÃO ============== */
.top-bar--cola{
  background: var(--red);
  color: #fff;
  border-bottom: none;
}
.top-bar--cola .icon-btn:active{ background: rgba(255,255,255,.15); }

/* Modo "frame": usa imagem pronta como fundo, posiciona linhas no quadrado branco */
.cola-poster.cola-poster--frame{
  background: var(--red);
  padding: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 853 / 1844;
  width: 100%;
}
.cola-poster--frame .cola-poster__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.cola-poster--frame .cola-poster__hero,
.cola-poster--frame .cola-poster__footer,
.cola-poster--frame .cola-poster__slogan{
  display: none;
}
.cola-poster--frame .cola-poster__rows{
  position: absolute;
  z-index: 2;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* posição preenchida via inline-style pelo JS */
}
.cola-poster--frame .cola-row{
  border-bottom: 1.5px dashed rgba(0,0,0,.12);
  padding: 5px 4px;
}
.cola-poster--frame .cola-row:last-child{ border-bottom: none; }
.cola-poster--frame .cola-row__photo{ width: 38px; height: 38px; font-size: 14px; }
.cola-poster--frame .cola-row__cargo{ font-size: 11px; }
.cola-poster--frame .cola-row__name{ font-size: 9px; }
.cola-poster--frame .cola-box{ width: 22px; height: 22px; font-size: 14px; }

.cola-poster{
  background: var(--red);
  color: #fff;
  padding: 18px 14px 20px;
  position: relative;
  overflow: hidden;
}
.cola-poster::before{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.08) 0, transparent 35%),
    repeating-linear-gradient(135deg, transparent 0 40px, rgba(0,0,0,.04) 40px 41px);
  pointer-events: none;
}

.cola-poster__hero{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}
.cola-poster__logo{
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  margin-bottom: 12px;
}
.cola-poster__logo-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.cola-poster__title{
  font-family: 'Anton', sans-serif;
  text-shadow: 3px 3px 0 rgba(0,0,0,.2);
  letter-spacing: -.5px;
}
.cola-poster__title-line{
  display: block;
  line-height: .95;
}
.cola-poster__title-line--top{ font-size: 32px; }
.cola-poster__title-line--mid{ font-size: 32px; }
.cola-poster__title-line--bot{
  font-size: 18px;
  margin-top: 6px;
  font-style: italic;
  color: var(--star);
  letter-spacing: 2px;
}

.cola-poster__rows{
  position: relative;
  z-index: 2;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  border: 2px solid var(--star);
}

.cola-row{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1.5px dashed var(--paper-2);
}
.cola-row:last-child{ border-bottom: none; }

.cola-row__photo{
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--red);
  color: var(--star);
  display: grid;
  place-items: center;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  overflow: hidden;
  border: 2px solid var(--star);
}
.cola-row__photo img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.cola-row__photo--empty{
  background: var(--red);
  padding: 4px;
}
.cola-row__photo--empty img{
  position: relative;
  inset: auto;
  object-fit: contain;
  object-position: center;
}

.cola-row__info{
  flex: 1;
  min-width: 0;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cola-row__cargo{
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: .5px;
  line-height: 1;
  text-transform: uppercase;
}
.cola-row__name{
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .3px;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cola-row__name span{ color: var(--red); }
.cola-row__name--empty{ color: var(--muted); font-weight: 600; font-style: italic; text-transform: none; }

.cola-row__boxes{
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.cola-box{
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  color: var(--red);
  background: #fff;
}

.cola-poster__footer{
  position: relative;
  z-index: 2;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 4px;
}
.cola-poster__year{
  flex: 1;
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
}
.cola-poster__year-num{
  display: inline-block;
  border: 2px solid var(--star);
  padding: 4px 14px;
  border-radius: 8px;
  color: var(--star);
  font-size: 22px;
  letter-spacing: 1.5px;
}
.cola-poster__values{
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: 'Anton', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--star);
}
.cola-poster__values div{ display: flex; align-items: center; gap: 6px; }
.cola-poster__values .star{ color: var(--star); }

.cola-poster__slogan{
  position: relative;
  z-index: 2;
  margin-top: 14px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  opacity: .9;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.cola-poster__slogan .star{ color: var(--star); font-size: 10px; }

/* ============== CARTEIRINHA — NOVA (frame com foto do usuário) ============== */
.carteira-instructions{
  padding: 18px 20px 8px;
  background: var(--paper);
  text-align: center;
}
.carteira-instructions__icon{
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.carteira-instructions__icon svg{ width: 24px; height: 24px; }
.carteira-instructions__title{
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 6px;
}
.carteira-instructions__text{
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.35;
}

.carteira-frame-wrap{
  padding: 14px 20px 0;
}
.carteira-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 1535;
  border-radius: 14px;
  overflow: hidden;
  background: #cc0000;
  box-shadow: 0 14px 36px rgba(204,0,0,.25);
}
.carteira-frame__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Camada da foto do usuário — fica em cima do frame, recortada num círculo.
   Usa padding-bottom trick pra altura = largura (mais compatível que aspect-ratio no iOS). */
.carteira-photo-layer{
  position: absolute;
  left: 21.78%;
  top: 26.72%;
  width: 56.44%;
  height: 0;
  padding-bottom: 56.44%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  background: #fff;
  cursor: grab;
  touch-action: none;
  /* Força camada GPU pra evitar bug de overflow no iOS Safari */
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
}
.carteira-photo-layer:active{ cursor: grabbing; }

#carteira-user-img{
  position: absolute;
  left: 50%;
  top: 50%;
  /* Tamanho e transform definidos via JS */
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  max-width: none; /* sobrescrever default browser */
}

/* Placeholder dentro do círculo, quando não tem foto */
.carteira-frame__placeholder{
  position: absolute;
  left: 21.78%;
  top: 26.72%;
  width: 56.44%;
  height: 0;
  padding-bottom: 56.44%;
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.carteira-frame__placeholder svg,
.carteira-frame__placeholder span{
  position: absolute;
  text-align: center;
}
.carteira-frame__placeholder svg{ top: 30%; left: 50%; transform: translateX(-50%); color: var(--red); }
.carteira-frame__placeholder span{
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.3;
  color: var(--red);
}

/* Hint "arraste pra ajustar" */
.carteira-frame__hint{
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  animation: hintFade 3s ease-in-out 1;
}
@keyframes hintFade {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}

/* Botões circulares sobrepostos à carteirinha */
.carteira-circle-btn{
  position: absolute;
  top: 10px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .15s, background .15s;
}
.carteira-circle-btn:active{ transform: scale(.92); }

.carteira-fullscreen-btn{ right: 10px; }
.carteira-mirror-btn{ right: 56px; }
.carteira-mirror-btn.active{ background: var(--red); }

/* Modal de tela cheia */
.fullscreen-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.95);
  z-index: 9999;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fsFadeIn .2s ease;
}
@keyframes fsFadeIn { from { opacity: 0; } to { opacity: 1; } }

.fullscreen-modal[style*="none"]{ display: none !important; }

.fullscreen-modal__content{
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.fullscreen-modal__content img{
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.fullscreen-modal__close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.2);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fullscreen-modal__hint{
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 0 16px;
}

/* Seletor de templates */
.carteira-templates-wrap{
  padding: 14px 20px 0;
}
.carteira-templates-label{
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.carteira-templates{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.carteira-templates::-webkit-scrollbar{ display: none; }

.template-thumb{
  flex-shrink: 0;
  width: 58px;
  height: 87px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  transition: all .15s;
}
.template-thumb.active{
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), 0 4px 12px rgba(204,0,0,.25);
}
.template-thumb:active{ transform: scale(.96); }
.template-thumb__placeholder{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
  background: var(--paper-2);
  padding: 4px;
  line-height: 1.2;
}
.template-thumb__plus{
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

/* Slider de zoom */
.carteira-zoom{
  padding: 14px 20px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.carteira-zoom__icon{
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  width: 22px;
  text-align: center;
}
#zoom-slider{
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  outline: none;
}
#zoom-slider::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--red);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(204,0,0,.3);
}
#zoom-slider::-moz-range-thumb{
  width: 22px;
  height: 22px;
  background: var(--red);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.carteira-actions{
  padding: 16px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-pick{
  padding: 16px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  transition: transform .15s;
  box-shadow: var(--shadow);
}
.btn-pick:active{ transform: scale(.97); }
.btn-pick--red{ background: var(--red); color: #fff; }
.btn-pick--dark{ background: var(--ink); color: #fff; }
.btn-pick--full{ width: 100%; }

.carteira-change-row{
  padding: 12px 20px 0;
  text-align: center;
}
.link-change{
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px dashed var(--ink);
  cursor: pointer;
}
.link-change:active{ background: rgba(0,0,0,.05); }

.carteira-share-actions{
  padding: 14px 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.carteira-share-actions .share-btn{
  background: #fff;
  padding: 14px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: none;
}
.carteira-share-actions .share-btn--ig{ color: #d62976; }
.carteira-share-actions .share-btn--wa{ color: #25d366; }
.carteira-share-actions .share-btn--save{ color: var(--ink); }
.carteira-share-actions .share-btn:active{ transform: scale(.97); }

/* ============== CARTEIRINHA — Antiga (mantida pra fallback) ============== */
.card-wrap{
  padding: 24px 20px 16px;
  perspective: 1000px;
}

.party-card{
  background:
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.1), transparent 50%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deep) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow:
    0 20px 50px rgba(204,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.2);
  position: relative;
  overflow: hidden;
  transform: rotate(-1deg);
}

.party-card::before{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 30px, rgba(255,255,255,.04) 30px 31px);
  pointer-events: none;
}

.party-card::after{
  content: '★';
  position: absolute;
  bottom: -50px;
  right: -30px;
  font-size: 280px;
  color: rgba(255,255,255,.06);
  line-height: 1;
  font-family: serif;
}

.party-card__top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.party-card__brand{
  display: flex;
  align-items: center;
  gap: 6px;
}
.party-card__brand .star{ color: #fff; font-size: 24px; }
.party-card__name{
  font-family: 'Anton', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  line-height: 1;
}
.party-card__year{
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  opacity: .7;
}

.party-card__avatar{
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
.avatar-circle{
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  display: grid;
  place-items: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 32px;
  border: 4px solid rgba(255,255,255,.3);
}

.party-card__name-block{
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.party-card__label{
  font-family: 'Archivo Black', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  opacity: .7;
  margin-bottom: 2px;
}
.party-card__person{
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1;
}
.party-card__value{
  font-weight: 700;
  font-size: 13px;
}

.party-card__meta{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.party-card__qr{
  background: #fff;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  margin: 0 auto 14px;
  padding: 6px;
  position: relative;
  z-index: 2;
}
.qr-pattern{
  width: 100%;
  height: 100%;
  background:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(-45deg, var(--ink) 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(45deg, transparent 75%, var(--ink) 75%) 0 0 / 12px 12px,
    linear-gradient(-45deg, transparent 75%, var(--ink) 75%) 0 0 / 12px 12px,
    #fff;
  position: relative;
}
.qr-pattern::before, .qr-pattern::after{
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 4px solid var(--ink);
}
.qr-pattern::before{ top: 0; left: 0; }
.qr-pattern::after{ bottom: 0; right: 0; }

.party-card__footer{
  text-align: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 12px;
  position: relative;
  z-index: 2;
}
.party-card__footer .star{ color: #fff; }

.share-buttons{
  padding: 16px 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.share-btn{
  background: #fff;
  padding: 14px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow);
}
.share-btn--ig{ color: #d62976; }
.share-btn--wa{ color: #25d366; }
.share-btn--save{ color: var(--ink); }

.manifesto{
  margin: 24px 20px 0;
  padding: 18px 18px 18px 50px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  position: relative;
}
.manifesto__quote{
  position: absolute;
  top: -4px;
  left: 14px;
  font-family: 'Anton', sans-serif;
  font-size: 60px;
  color: var(--red);
  line-height: 1;
}
.manifesto__text{
  font-size: 14px;
  line-height: 1.5;
  font-style: italic;
  font-weight: 500;
}

/* ============== FILIAÇÃO ============== */
.filiacao-hero{
  background: var(--red);
  color: #fff;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
}
.filiacao-hero__star{
  position: absolute;
  right: -30px;
  top: -30px;
  font-size: 200px;
  color: rgba(255,255,255,.1);
  font-family: serif;
  line-height: 1;
}
.filiacao-hero__title{
  font-family: 'Anton', sans-serif;
  font-size: 72px;
  line-height: .9;
  font-weight: 400;
  letter-spacing: -1px;
  position: relative;
  z-index: 2;
  text-shadow: 4px 4px 0 rgba(0,0,0,.2);
}
.filiacao-hero__sub{
  font-size: 14px;
  line-height: 1.4;
  margin-top: 12px;
  max-width: 280px;
  position: relative;
  z-index: 2;
}

.filiacao-form{
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row{
  display: flex;
  gap: 10px;
}
.form-field{ display: flex; flex-direction: column; gap: 6px; }
.form-field--grow{ flex: 1; }
.form-field label{
  font-family: 'Archivo Black', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.form-field input, .form-field select{
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus{
  outline: none;
  border-color: var(--red);
}

.check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  padding: 4px 0;
}
.check input{
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--red);
}

.form-note{
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

/* ============== NAV INFERIOR ============== */
.bottom-nav{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px 8px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,.05);
}

@media (min-width: 768px){
  .bottom-nav{
    position: absolute;
    width: 100%;
    max-width: calc(390px - 24px);
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    border-radius: 0 0 32px 32px;
  }
}

.nav-btn{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  transition: color .15s;
}
.nav-btn svg{ width: 22px; height: 22px; }
.nav-btn.active{ color: var(--red); }

.nav-btn--center .nav-center{
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-top: -16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  border: 3px solid #fff;
  overflow: hidden;
}
.nav-center__img{
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}
.nav-btn--center.active{ color: var(--red); }

/* ============== TOAST ============== */
.toast{
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all .3s;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .star{ color: var(--red); }

@media (min-width: 768px){
  .toast{
    bottom: 130px;
  }
}
