:root{
    --az-blue:#2A5CA1;
    --az-blue-d:#1d4478;
    --az-blue-deep:#12325c;
    --az-red:#EE1E23;
    --az-red-d:#c4161c;
    --ink:#1f2937;
    --muted:#6b7280;
}

*{box-sizing:border-box;}

body{
    font-family:'Poppins','Arial',sans-serif;
    background:url('assets/bg.jpg') no-repeat center center fixed;
    background-size:cover;
    color:#fff;
    margin:0;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:32px 16px 48px;
    overflow-x:hidden;
}

/* Camada azul sobre a foto da fachada, para o card respirar */
body::before{
    content:"";
    position:fixed;
    inset:0;
    background:linear-gradient(180deg,rgba(18,50,92,.55),rgba(10,28,52,.88));
    z-index:0;
}

.card{
    position:relative;
    z-index:1;
    width:100%;
    max-width:440px;
    background:rgba(255,255,255,.13);
    backdrop-filter:blur(18px) saturate(140%);
    -webkit-backdrop-filter:blur(18px) saturate(140%);
    border:1px solid rgba(255,255,255,.24);
    border-radius:28px;
    box-shadow:0 26px 70px rgba(4,18,38,.55);
    padding:30px 22px 22px;
    animation:rise .6s cubic-bezier(.2,.8,.2,1) both;
    overflow:hidden;
}

/* Faixa azul→vermelha no topo do card (cores da marca) */
.card::before{
    content:"";
    position:absolute;
    top:0;left:0;right:0;
    height:5px;
    background:linear-gradient(90deg,var(--az-blue),var(--az-red));
}

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

/* ---------- Cabeçalho ---------- */
.profile{text-align:center;}

.logo-badge{
    width:124px;
    height:124px;
    margin:6px auto 16px;
    border-radius:26px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 12px 30px rgba(0,0,0,.4), 0 0 0 4px rgba(255,255,255,.5);
}
.logo-badge img{width:100%;height:100%;object-fit:cover;display:block;}

.profile h1{
    margin:4px 0 8px;
    font-size:23px;
    font-weight:700;
    letter-spacing:.2px;
    color:#fff;
    text-shadow:0 2px 12px rgba(0,0,0,.45);
}
.profile h1 span{
    display:block;
    font-size:29px;
    font-weight:800;
    letter-spacing:1px;
    text-transform:uppercase;
    color:#ff6b6b;
}

.slogan{
    display:inline-block;
    font-size:11px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#fff;
    background:linear-gradient(135deg,var(--az-red),var(--az-red-d));
    padding:5px 14px;
    border-radius:20px;
    box-shadow:0 6px 16px rgba(238,30,35,.4);
}

.profile p{
    font-size:14.5px;
    line-height:1.55;
    margin:14px auto 0;
    max-width:330px;
    color:rgba(255,255,255,.92);
}

.badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    margin-top:14px;
    font-size:12px;
    font-weight:600;
    color:#fff;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.26);
    padding:5px 13px;
    border-radius:20px;
}
.badge .dot{
    width:8px;height:8px;border-radius:50%;
    background:#31d16a;
    box-shadow:0 0 0 0 rgba(49,209,106,.7);
    animation:pulse 1.9s infinite;
}
@keyframes pulse{
    70%{box-shadow:0 0 0 8px rgba(49,209,106,0);}
    100%{box-shadow:0 0 0 0 rgba(49,209,106,0);}
}

.divisor{
    height:1px;
    margin:22px 0 18px;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.32),transparent);
}

/* ---------- Lista de comunidades ---------- */
.links{display:flex;flex-direction:column;gap:11px;}

.link{
    display:flex;
    align-items:center;
    gap:13px;
    padding:13px 15px;
    border-radius:16px;
    background:rgba(255,255,255,.97);
    color:var(--ink);
    text-decoration:none;
    border:1px solid rgba(255,255,255,.7);
    box-shadow:0 6px 16px rgba(4,18,38,.22);
    transition:transform .18s ease, box-shadow .18s ease;
    animation:slide .45s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes slide{from{opacity:0;transform:translateX(-12px);}to{opacity:1;transform:translateX(0);}}

.link:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 28px rgba(4,18,38,.32);
}
.link:active{transform:translateY(-1px);}

.wa-icon{
    width:42px;height:42px;flex-shrink:0;
    border-radius:13px;
    display:flex;align-items:center;justify-content:center;
    background:linear-gradient(135deg,#25D366,#128C7E);
    box-shadow:0 5px 12px rgba(18,140,126,.38);
}
.wa-icon svg{width:23px;height:23px;fill:#fff;}

.link .txt{display:flex;flex-direction:column;line-height:1.25;flex:1;min-width:0;}
.link .nome{
    font-size:15px;
    font-weight:700;
    color:var(--az-blue);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.link .txt small{font-size:11.5px;font-weight:500;color:var(--muted);}

.seta{flex-shrink:0;color:var(--az-red);transition:transform .18s ease;}
.link:hover .seta{transform:translateX(4px);}

.vazio{
    text-align:center;
    font-size:14px;
    color:rgba(255,255,255,.9);
    background:rgba(255,255,255,.1);
    border:1px dashed rgba(255,255,255,.3);
    border-radius:14px;
    padding:20px 16px;
    margin:0;
}

/* ---------- Rodapé ---------- */
footer{
    margin-top:22px;
    text-align:center;
    font-size:12px;
    color:rgba(255,255,255,.78);
}

@media(max-width:420px){
    .card{padding:26px 16px 18px;}
    .logo-badge{width:106px;height:106px;border-radius:22px;}
    .profile h1{font-size:20px;}
    .profile h1 span{font-size:25px;}
}

@media (prefers-reduced-motion: reduce){
    .card,.link{animation:none;}
    .badge .dot{animation:none;}
}
