* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Fundo da página */
body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(180deg, #000 0%, #0a0a0a 100%);
    /* padding: 30px;  <<< remove isso se não quiser espaço lateral */   
}

/* Container que segura o Card ROLÁVEL e o Card FIXO (Centralizador) */
.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 450px;
    margin: 20px 0;
    padding-top: 50px;
    padding-bottom: 110px;
}

/* CARD PRINCIPAL - ROLA AGORA NO BODY */
.card {
    width: 100%;
    background: rgba(255, 255, 255, 0.09);
    padding: 40px 20px 50px;  /* remove os 20px laterais */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    text-align: center;
    z-index: 10;
}

/* Imagem circular */
.profile-img {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.95);
    object-fit: cover;
    background: #222;
    z-index: 20;
}

.info-block, .actions-secondary, .icons-grid, .content-block, .extra-card {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
 
    
}

/* Conteúdo interno do card */
.info-block { 
    margin-top: 60px; 
    margin-bottom: 20px; 
    padding: 0 10px; 
    
}

.card h1 { 
    margin: 0; 
    font-size: 1.05rem; 
    font-weight: 700; 
    line-height: 1.3; 
    color: #fff;
}

.description { 
    font-size: 0.92rem; 
    opacity: 0.85; 
    margin-top: 8px;
    color: #fff;
}

                           /* Ações secundárias (Modo Offline, Salvar, Enviar) */
.actions-secondary {
  display: flex;
  justify-content: center; /* centraliza horizontalmente */
  align-items: center;
  gap: 250px; /* espaço entre os botões */
  margin: 15px 0;
  padding: 0;
  width: 100%;
  margin-left: 32px;
  
}

.actions-secondary a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
}

.btn-primary {
  position: relative;
  background-color: #080808;
  border-radius: 8px;
  padding: 10px 15px;
  color: #fff;
  bottom: 40px;
  text-decoration: none;
  right: 5px;

}

button {
  background: none;
  border: none;
  padding: 0;
  color: #fff;
}

                    /* BOTÕES COMPARTILHA CARTÕES */

                         /* QRCODE DO CONTATO.VCF */
                         
#offlinePanel {
  position: relative;
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at center, #0b0b0b 60%, #111 100%);
  padding: 35px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 20px rgba(0, 255, 120, 0.3),
    0 0 40px rgba(0, 255, 100, 0.15),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  max-width: 350px;
  left: 30px;
  
}

.offline-qrcode {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 25px;
}


                         /* ESTILIZA BOTAO DE LIGAR EMAIL WHATSAP E MAPA */
.icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 ícones por linha */
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    justify-items: center; /* centraliza os botões dentro da grid */
}

.icon-action {
    display: flex;
    flex-direction: column; /* ícone em cima, texto embaixo */
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

.icon-action img {
    width: 60px;
    height: 60px;
    border-radius: 12px; /* opcional: deixa o ícone levemente arredondado */
}

.icon-action p {
    margin-top: 8px;
    font-size: 14px;
    color: #fff;
}

/* Animação suave */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.content-block {
    text-align: left;
    padding: 10px;
    margin: 20px auto;
}
.footer-text {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.85;
    color: #fff;
}

/* Container da nova lista de cards longos */

.extra-cards-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espaço entre os cards */
    width: 500px;        /* ocupa toda largura do container */
}

            /* Cards de ação extra (Wifi, Redes, Pix, etc.) */
            
.extra-card {
    position: relative;
    width: 500px; /* ocupa toda largura da lista */
    background: #000; /* preto como você pediu */
    border: none;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: block;
    max-width: 410px;
    right: 45px;
    text-decoration: none;
}

.extra-card:hover { background: rgba(255, 255, 255, 0.1); }

/* Força o texto do link dentro do card a ficar branco */
.extra-card a {
  color: #fff;
  text-decoration: none;
   /* remove o sublinhado padrão */
}

/* Se quiser manter branco mesmo quando passa o mouse */
.extra-card a:hover {
  color: #fff;
}
                               /* BOTÃO SEGUIR */
.extra-card #btn-seguir {
  background-color: #080808;
  color: #fff;
  border: none;
  padding: 0px 10px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.extra-card:hover #btn-seguir {
    background: rgba(255, 255, 255, 0.0);
    color: #fff; /* texto continua branco */ 
}

                       /* BOTÃO SALVAR */

.extra-card #btn-salvar {
  background-color: #080808;
  color: #fff;
  border: none;
  padding: 0px 20px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.extra-card:hover #btn-salvar {
    background: rgba(255, 255, 255, 0.0);
    color: #fff; /* texto continua branco */ 
}

/* CONTINUAÇÃO DO WIFI PRA ESTILIZAR O NOME E A SENHA */

#wifi-qrcode {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #111;
  border: 2px solid #2f855a;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5),
              0 0 15px rgba(47, 133, 90, 0.6);
  padding: 20px;
  max-width: 230px;
  margin: 20px auto;
  right: 45px;;
}

#wifi-qrcode img {
  width: 150px;
  height: 150px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#wifi-qrcode p {
  color: #fff;
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
}

                /* Botão extra-card dentro da lista FAZ PARTE DO CODIGOD DO QRCODE PIX*/   

.pix-container {
  display: none; /* começa escondido */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 15px;
  padding: 20px;
  margin-top: 15px;
  transition: all 0.3s ease;
  width: 410px;
}

/* Imagem do QR Code */
.pix-image {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* Texto abaixo do QR Code */
.pix-container p {
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

/* Botão Pix estilizado */
#pix-btn {
  background-color: #080808;
  color: #fff;
  border: none;
  padding: 20px 20px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#pix-btn:hover {
  background-color: #444; /* cinza mais claro ao passar o mouse */
}

/* Card fixo destacado com borda e sombra mais visível */
                        
.extra-card.footer-highlight {
    position: fixed;
    left: 515px;
    bottom: 18px;
    transform: translateX(-50%) translateY(40px);
    width: calc(100% - 40px);
    max-width: 470px;
    background: rgba(8,8,8,0.95); /* fundo levemente transparente */
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15); /* borda clara */
    box-shadow: 0 8px 30px rgba(0,0,0,0.65); /* sombra */
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    z-index: 9999;
    pointer-events: auto;
    animation: highlightSlideUp 560ms cubic-bezier(.22,.9,.32,1) forwards;
    -webkit-animation: highlightSlideUp 560ms cubic-bezier(.22,.9,.32,1) forwards;
}

/* Animação de subida do card fixo */
@keyframes highlightSlideUp {
    from { transform: translateX(-50%) translateY(40px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

@-webkit-keyframes highlightSlideUp {
    from { transform: translateX(-50%) translateY(40px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* Aplicando a nova duração e suavidade */
.extra-card.footer-highlight {
    animation: highlightSlideUp 1s cubic-bezier(.25,.8,.25,1) forwards;
    -webkit-animation: highlightSlideUp 1s cubic-bezier(.25,.8,.25,1) forwards;
}

.extra-card:hover {
    background: rgba(0.08);   /* Fundo mais claro no hover */
    border-color: rgba(255, 255, 255, 0.4);
}

            /* ESTILIZA DENTRO DA MARGI FIXA DO BOTAO TROCA CONTATO */

.extra-card .btn-troca {
    background-color: #000; /* fundo preto */
    color: #fff; /* letra branca */
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 12px;
}

/* Container de textos lado direito */
.extra-card .extra-text-container {
    display: flex;
    flex-direction: column; /* empilha os textos */
    justify-content: center;
    text-align: left;
}

/* Texto principal */
.extra-card .extra-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

/* Texto secundário embaixo do principal */
.extra-card .extra-subtext {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
}

                     /* PARTE RESPONSIVA DO COMEÇO ATE CARD  */

/* Responsividade para celular */
@media (max-width: 768px) {
    body {
        align-items: center;
        padding: 20px;
    }

    .card-container {
        max-width: 100%;
        padding-top: 30px;
        padding-bottom: 80px;
        margin: 10px 0;
        
    }

    .card {
        padding: 60px 15px 40px;
        font-size: 0.95rem;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    }
}

                /* RESPONSIVO DO INFO-BLOCK E IMAGEM ARREDONDADA */
/* Responsividade para celular */
@media (max-width: 768px) {
    .info-block, 
    .actions-secondary, 
    .icons-grid, 
    .content-block, 
    .extra-card {
        max-width: 100%;
        padding: 0 15px;
        margin: 0 auto 20px;
    }

    .profile-img {
        width: 90px;
        height: 90px;
        top: -40px;
        border-width: 3px;
    }

    .info-block {
        margin-top: 50px;
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .card h1 {
        font-size: 0.95rem;
    }

    .description {
        font-size: 0.85rem;
        margin-top: 6px;
    }
}

                /* RESPONSIVO DO BOTÃO OFFLINE, SALVAR NA AGENDA E COMPARTILHA CARTÃO */

/* Responsividade para celular */
@media (max-width: 768px) {

    /* Bloco de ações secundárias (botões superiores) */
    .actions-secondary {
        justify-content: center;
        align-items: center;
        gap: 500px;
        margin: 15px auto;
        padding: 10px 0;
        left: 200px;
    }

     /* Botão principal */
    .btn-primary {
        position: relative;
        padding: 10px 12px;
        font-size: 0.9rem;
        max-width: 100px;
        right: 15px;
        border-radius: 10px;
        bottom: 45px;
    }

    .actions-secondary #share-btn:last-child {
        transform: translateX(-150px);
    }

    .actions-secondary .offline-title {
        transform: translateX(140px);
    }

     /* Painel do QRCode */
    #offlinePanel {
        position: relative;
        display: flex;
        justify-content: center;
        flex-direction: column;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 0 10px rgba(0, 255, 120, 0.25);
        max-width: 300px;
        left: 85px;
    }


                     /* RESPONSIVO PRA CELULAR DE 320PX */

    @media (max-width: 320px) {
    .actions-secondary #share-btn:last-child {
        transform: translateX(-160px);
    }

    /* Painel do QRCode */
    #offlinePanel {
        position: relative;
        display: flex;
        justify-content: center;
        flex-direction: column;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 0 10px rgba(0, 255, 120, 0.25);
        max-width: 400px;
        transform: translateX(-200px);
        margin: 10px;
       
    }

    /* Botão principal */
    .btn-primary {
        position: relative;
        padding: 10px 12px;
        font-size: 0.9rem;
        max-width: 100px;
        border-radius: 10px;
        bottom: 60px;
        font-size: 10px;
        margin-left: 20px;
    }

    .actions-secondary #share-btn:last-child {
        transform: translateX(-175px);
        font-size: 12px;
    }

    .actions-secondary .offline-title {
        transform: translateX(180px);
    }

    }

                            /* RESPONSIVO PRO CELULAR DE 600 */

    @media (max-width: 600px) {

    #offlinePanel {
        position: relative;
        display: flex;
        justify-content: center;
        flex-direction: column;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 0 10px rgba(0, 255, 120, 0.25);
        max-width: 350px;
        transform: translateX(-85px);
        margin: 10px;
       
    }

    }
     
              /* FINAL DO RESPONSIVO DE 600PX */

    .action-item {
        font-size: 0.9rem;
        gap: 4px;
    }

    /* Grade de ícones (WhatsApp, Email, Mapa etc.) */
    .icons-grid {
        gap: 12px;
        padding: 15px 0;
    }

    .icon-action img {
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .icon-action p {
        font-size: 13px;
        margin-top: 6px;
    }

    /* Conteúdo e rodapé */
    .content-block {
        padding: 5px 10px;
        margin: 15px auto;
        text-align: center;
    }

    .footer-text {
        font-size: 0.85rem;
        line-height: 1.3;
        text-align: center;
    }
}

                                   /* RESPONSIVO DOS CARDS LONGOS */

/* Responsividade para celular */
@media (max-width: 768px) {

  .extra-cards-list {
    width: 100%;
    gap: 12px;
    align-items: center;
  }

  .extra-card {
    max-width: 100%;
    right: 0;
    padding: 25px;
    font-size: 0.9rem;
  }

  .extra-card #btn-seguir,
  .extra-card #btn-salvar {
    padding: 0px 12px;
    font-size: 0.9rem;
  }

  #wifi-qrcode {
    right: 0;
    max-width: 100%;
    width: 100%;
    padding: 15px;
  }

  #wifi-qrcode img {
    width: 120px;
    height: 120px;
  }

  #wifi-qrcode p {
    font-size: 0.85rem;
  }

  .pix-container {
    width: 100%;
    max-width: 100%;
    padding: 15px;
  }

  .pix-image {
    width: 160px;
    height: 160px;
  }

  #pix-btn {
    width: 100%;
    max-width: 504px;
    padding: 25px;
    font-size: 0.9rem;
  }

  .extra-card.footer-highlight {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: 90%;
    max-width: 95%;
    padding: 10px 15px;
    border-radius: 35px;
    
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .extra-card .btn-troca {
    width: 50px;
    margin: 0;
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .extra-card .extra-text-container {
    text-align: center;
  }

  .extra-card .extra-text {
    font-size: 0.9rem;
  }

  .extra-card .extra-subtext {
    font-size: 0.8rem;
  }
}



