* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow: hidden; /* Mantém a tela sem barra de rolagem */
}

body {
  background-color: #030712;
  color: #f3f4f6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  position: relative;
}

/* Reflexos Glow */
.glow-cyan {
  position: fixed;
  top: -50px;
  left: -50px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(6, 182, 212, 0) 70%);
  pointer-events: none;
}

.glow-blue {
  position: fixed;
  bottom: -50px;
  right: -50px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0) 70%);
  pointer-events: none;
}

/* ================= ESTRUTURA FLIP 3D ================= */
.card-scene {
  width: 100%;
  max-width: 375px;
  height: calc(100dvh - 24px); /* Ocupa quase toda a altura útil visível */
  max-height: 720px;           /* Limite para telas muito altas */
  perspective: 1200px;
  cursor: pointer;
  z-index: 10;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.card-inner.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 26px;
  padding: 18px 20px 14px;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.75), 0 0 25px rgba(6, 182, 212, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Distribui os blocos harmoniosamente de cima a baixo */
  align-items: center;
  text-align: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-front {
  position: relative;
}

.card-back {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateY(180deg);
}

/* Dica de toque */
.flip-hint {
  font-size: 10px;
  font-family: monospace;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(8, 51, 68, 0.6);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
}

/* Moldura e foto do Avatar - Tamanho ampliado */
.avatar-wrapper {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.42);
  margin-bottom: 4px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Tipografia em destaque */
h1 {
  font-size: 21.5px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
  margin-bottom: 3px;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.subtitle {
  color: #38bdf8;
  font-family: monospace;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

.crea-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 7px;
  padding: 3px 12px;
}


/* Botão WhatsApp */
.btn-main {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(90deg, #06b6d4, #0284c7);
  color: #030712;
  font-weight: 700;
  font-size: 14px;
  border-radius: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.28);
  transition: transform 0.15s ease;
}

.btn-main:active {
  transform: scale(0.97);
}

/* Links Secundários */
.links-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-secondary {
  width: 100%;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 11px;
  color: #e2e8f0;
  font-size: 12.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: #06b6d4;
}

.link-info {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.icon-cyan {
  stroke: #22d3ee;
  flex-shrink: 0;
}

.icon-arrow {
  stroke: #64748b;
  flex-shrink: 0;
}

/* QR Code em proporção ideal */
.qr-section {
  display: flex;
  justify-content: center;
}

.qr-box {
  background: #ffffff;
  padding: 6px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.qr-box img {
  display: block;
  width: 102px;
  height: 102px;
  border-radius: 6px;
}

/* ================= VERSO ================= */
.back-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.back-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
}

/* Mantido compacto conforme solicitado */
.back-tagline {
  font-size: 11.5px;
  font-family: monospace;
  color: #38bdf8;
  margin-top: 4px;
}

.bio-box {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 18px;
  padding: 18px 14px;
  margin: 12px 0;
}

.bio-box p {
  font-size: 16px;
  line-height: 1.6;
  color: #e2e8f0;
  text-align: justify;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tech-tags span {
  font-size: 10px;
  font-family: monospace;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
  padding: 4px 10px;
  border-radius: 7px;
}

.social-links-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 14px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 13px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.social-btn:hover,
.social-btn:active {
  border-color: #06b6d4;
  color: #22d3ee;
  background: rgba(51, 65, 85, 0.85);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.2);
}
