:root {
  --bg: #0c110d;
  --bg-elev-1: #121810;
  --bg-elev-2: #182018;
  --border: rgba(230, 220, 200, 0.08);
  --border-strong: rgba(230, 220, 200, 0.16);
  --text-primary: #ece6d8;
  --text-secondary: #a39c88;
  --text-tertiary: #6f6a5a;
  --accent: #e0a458;
  --accent-soft: rgba(224, 164, 88, 0.14);
  --accent-strong: rgba(224, 164, 88, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: var(--space-5) var(--space-3);
  position: relative;
  overflow-x: hidden;
}

/* textura sutil + vinheta, dá profundidade sem ficar chapado */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(224, 164, 88, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(90, 120, 70, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

canvas#fireflies {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* brilho que segue o mouse, tipo luz de lanterna suave */
#glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
  opacity: 0;
  filter: blur(10px);
}

.container {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

.profile {
  text-align: center;
  margin-bottom: var(--space-5);
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-3);
  border: 2px solid var(--border-strong);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.profile h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}

.profile h1 .paw {
  color: var(--accent);
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: var(--space-1);
}

.links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.link-card:hover {
  background: var(--bg-elev-2);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.link-card:active {
  transform: translateY(0);
}

.link-thumb-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-right: var(--space-3);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.link-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.link-card:hover .link-thumb {
  transform: scale(1.15);
}

.link-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.link-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
}

.link-desc {
  font-size: 12.5px;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-left: var(--space-3);
}

.empty {
  text-align: center;
  color: var(--text-tertiary);
  padding: var(--space-4);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

footer {
  text-align: center;
  margin-top: var(--space-5);
  color: var(--text-tertiary);
  font-size: 12px;
}

footer .paw {
  color: var(--accent);
}

.acoes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.btn-contato {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-contato:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.btn-icone img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.btn-icone:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 6, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
  padding: var(--space-3);
}

.modal-overlay.aberto {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 380px;
  padding: var(--space-4);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.modal-header h2 {
  font-size: 17px;
  font-weight: 600;
}

.modal-fechar {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.modal-fechar:hover {
  color: var(--text-primary);
}

#form-contato label {
  display: block;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: var(--space-3) 0 6px;
}

#form-contato label:first-child {
  margin-top: 0;
}

#form-contato input,
#form-contato textarea {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

#form-contato input:focus,
#form-contato textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-enviar {
  width: 100%;
  margin-top: var(--space-4);
  padding: 11px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #1a1206;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-enviar:hover {
  filter: brightness(1.08);
}

.btn-enviar:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-status {
  text-align: center;
  font-size: 13px;
  margin-top: var(--space-2);
  color: var(--text-tertiary);
}

.form-status.ok {
  color: #8fbf7a;
}

.form-status.erro {
  color: #d97a6a;
}
