:root {
  --text: #fff7fb;
  --muted: #d8bdcd;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #070507;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #070507;
  pointer-events: none;
}

#bgVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.video-tint {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 3, 7, .10), rgba(11, 4, 9, .20));
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: .22;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: .018;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 3;
  width: min(92vw, 540px);
  padding: 44px 0;
  perspective: 1100px;
}

/* O painel principal é propositalmente quase transparente para o vídeo aparecer atrás. */
.profile-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
  background: rgba(12, 6, 11, .035);
  border: 1px solid rgba(255, 218, 236, .16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(.35px);
  -webkit-backdrop-filter: blur(.35px);
  transform-style: preserve-3d;
  transition: transform .16s ease-out, border-color .2s ease;
}
.profile-card:hover { border-color: rgba(255, 218, 236, .25); }

.shine {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,30%), rgba(255,201,226,.08), transparent 45%);
  opacity: .42;
}

.top-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.avatar-wrap { position: relative; flex: 0 0 auto; width: 96px; height: 96px; }
.avatar,
.avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  background: rgba(18, 8, 16, .18);
  border: 1px solid rgba(255,211,232,.15);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.avatar-placeholder {
  display: grid;
  place-items: center;
  color: #e8b8d0;
  font-size: 2rem;
}
.status-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 4px solid rgba(15, 8, 13, .84);
  background: #747f8d;
}
.status-dot.online { background: #23a55a; }
.status-dot.idle { background: #f0b232; }
.status-dot.dnd { background: #f23f43; }
.status-dot.offline { background: #80848e; }

.identity { min-width: 0; text-shadow: 0 2px 10px rgba(0,0,0,.55); }
.identity h1 {
  margin: 0;
  font-size: clamp(1.7rem, 6vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.identity p {
  margin: 7px 0 0;
  color: #f0d9e6;
  font-size: .94rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.links { display: grid; gap: 10px; position: relative; }
.link-card {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 13px;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 17px;
  border: 1px solid rgba(255,216,235,.11);
  background: rgba(7, 3, 7, .045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  font: inherit;
  cursor: pointer;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.link-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 198, 226, .08);
  border-color: rgba(255,211,232,.22);
}
.link-card strong, .link-card small { display: block; }
.link-card strong { font-size: .95rem; }
.link-card small { color: #e0c5d4; margin-top: 2px; }
.icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: rgba(12, 6, 11, .18);
  border: 1px solid rgba(255,255,255,.035);
  overflow: hidden;
}
.icon.discord { color: #a8b4ff; }
.icon.instagram { color: #ff8bc0; }
.icon.image-icon { background: transparent; }
.icon.image-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.arrow { color: #d0a7bd; font-size: 1.08rem; }

.discord-card {
  position: relative;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid rgba(255,117,181,.15);
  border-radius: 18px;
  background: rgba(9, 4, 8, .04);
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}
.discord-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f8d4e5;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.discord-body { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.discord-body img,
.discord-avatar-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  background: rgba(10, 5, 9, .18);
}
.discord-avatar-placeholder {
  display: grid;
  place-items: center;
  color: #dca9c1;
  font-size: 1.35rem;
  border: 1px solid rgba(255,211,232,.1);
}
.discord-info { min-width: 0; }
.discord-info strong,
.discord-info span,
.discord-info small { display: block; }
.discord-info strong { font-size: 1rem; }
.discord-info span { color: #ead2df; margin-top: 3px; font-size: .86rem; }
.discord-info small {
  color: #dfc3d2;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.footer-row {
  position: relative;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,216,235,.09);
  display: flex;
  justify-content: space-between;
  color: #d2afc2;
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,.65);
}
.footer-row span:first-child { display: flex; align-items: center; gap: 5px; }

.toast {
  position: fixed;
  z-index: 1100;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 18px);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,211,232,.15);
  background: rgba(24, 12, 22, .72);
  color: #ffe7f3;
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  font-size: .84rem;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.locked { overflow: hidden; }
.enter-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100%;
  min-height: 100%;
  border: 0;
  margin: 0;
  padding: 24px;
  cursor: pointer;
  color: #fff7fb;
  background: rgba(8, 3, 7, .24);
  backdrop-filter: blur(.35px);
  -webkit-backdrop-filter: blur(.35px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity .55s ease, visibility .55s ease;
  overflow: hidden;
}
.enter-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.enter-glow {
  position: absolute;
  width: min(70vw, 520px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255, 93, 169, .12);
  filter: blur(95px);
  pointer-events: none;
}
.enter-heart {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  font-size: 2.5rem;
  color: #ffd2e7;
  border: 1px solid rgba(255, 220, 237, .22);
  background: rgba(255, 135, 192, .08);
  box-shadow: 0 12px 40px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.06);
  animation: heartBeat 1.8s ease-in-out infinite;
}
.enter-title {
  position: relative;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,.75);
}
.enter-subtitle {
  position: relative;
  color: #ecd0df;
  font-size: .82rem;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0,0,0,.75);
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.08); }
  28% { transform: scale(1); }
  42% { transform: scale(1.05); }
  56% { transform: scale(1); }
}

@media (max-width: 560px) {
  .shell { width: min(94vw, 540px); padding: 24px 0; }
  .profile-card { padding: 20px; border-radius: 23px; }
  .avatar-wrap, .avatar, .avatar-placeholder { width: 80px; height: 80px; }
  .avatar, .avatar-placeholder { border-radius: 21px; }
  .identity h1 { font-size: 1.75rem; }
  .discord-info small { max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
