:root {
  --bg: #0a0a0a;
  --panel: #111111;
  --border: #8b0000;
  --border-light: #cc0000;
  --red: #cc0000;
  --red-bright: #ff2222;
  --text: #d4d4d4;
  --text-dim: #888;
  --text-muted: #555;
  --white: #f0f0f0;
  --accent: #ff4444;
  --link: #ff6666;
  --yes-bg: #0d1f0d;
  --no-bg: #1f0d0d;
  --yes-border: #1a4d1a;
  --no-border: #4d1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Share Tech Mono", monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(139, 0, 0, 0.03) 2px,
    rgba(139, 0, 0, 0.03) 4px
  );
}

/* Scanline overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.15) 3px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 999;
}

.window {
  width: 100%;
  max-width: 490px;
  border: 2px solid var(--border);
  background: var(--panel);
  box-shadow:
    0 0 0 1px #000,
    0 0 20px rgba(139, 0, 0, 0.4),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Pulsing red glow */
.window::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--red);
  opacity: 0.4;
  animation: glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.2;
    box-shadow: 0 0 8px var(--red);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 20px var(--red);
  }
}

/* ── TOP BAR ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
  background: #0d0d0d;
  font-family: "VT323", monospace;
  font-size: 18px;
}

.topbar-handle {
  color: var(--red-bright);
  letter-spacing: 1px;
}
.topbar-time {
  color: var(--text);
}
.topbar-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.topbar-icons i {
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.15s;
}
.topbar-icons i:hover {
  color: var(--red-bright);
}

/* ── MAIN GRID ── */
.main {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  min-height: 240px;
}

/* LEFT PANEL */
.left-panel {
  border-right: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* FOTO PEQUENA */
.photo-small {
  width: 100%;
  height: 120px;
  background: linear-gradient(
    135deg,
    #1a0000 0%,
    #000 40%,
    #0a0000 70%,
    #200000 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.photo-small::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 60% 40%,
    rgba(139, 0, 0, 0.3) 0%,
    transparent 70%
  );
}

.photo-small .silhouette {
  font-size: 48px;
}

.silhouette {
  position: relative;
  z-index: 1;
  font-family: "VT323", monospace;
  font-size: 80px;
  color: rgba(139, 0, 0, 0.5);
  text-shadow: 0 0 30px rgba(200, 0, 0, 0.5);
  user-select: none;
  line-height: 1;
  filter: blur(0.5px);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%; /* ajusta se precisares */
  display: block;
  position: relative;
  z-index: 1;
  filter: sepia(0.2) contrast(1.1); /* opcional - mantém o estilo dark */
}

.photo-corner {
  position: absolute;
  font-size: 10px;
  color: var(--border);
  font-family: "VT323", monospace;
}
.photo-corner.tl {
  top: 4px;
  left: 4px;
}
.photo-corner.br {
  bottom: 4px;
  right: 4px;
}

/* ── NOME E INFO DEBAIXO DA FOTO ── */
.under-photo-info {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: #111111;
}

.profile-name-left {
  font-family: "VT323", monospace;
  font-size: 20px;
  color: var(--white);
}

.profile-name-left span {
  color: var(--red-bright);
}

.profile-handle-left {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  line-height: 1.4;
}

/* ── SOCIAL ICONS ── */
.social-icons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.social-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: #1a0000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #aaaaaa;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--border);
  color: #fff;
  box-shadow: 0 0 8px var(--red);
}

/* ── RIGHT PANEL ── */
.right-panel {
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── ONLINE BOX ── */
.online-box {
  padding: 8px 10px 0 10px;
  background: #111111;
}

/* ON-LINE indicator */
.online-indicator {
  font-family: "VT323", monospace;
  font-size: 14px;
  color: var(--red-bright);
  letter-spacing: 2px;
}

@media (max-width: 520px) {
  .online-indicator {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

.info-box {
  border: 1px solid;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.5;
}

.info-box.yes {
  border-color: var(--yes-border);
  background: var(--yes-bg);
  color: #88cc88;
}

.info-box.no {
  border-color: var(--no-border);
  background: var(--no-bg);
  color: #cc7777;
}

.info-box .label {
  font-family: "VT323", monospace;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 2px;
  display: block;
}

.info-box.yes .label {
  color: #44cc44;
}
.info-box.no .label {
  color: var(--red-bright);
}

/* ── BOTTOM BAR ── */
.bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  border-top: 1px solid var(--border);
  background: #0d0d0d;
  color: var(--text-dim);
  font-family: "VT323", monospace;
  font-size: 15px;
}

.bottombar a {
  color: var(--link);
  text-decoration: none;
}
.bottombar a:hover {
  color: var(--red-bright);
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  margin-top: 12px;
  font-family: "VT323", monospace;
  font-size: 15px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

/* Cursor blink */
.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--red-bright);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Noise texture overlay */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 998;
  opacity: 0.6;
}

/* ── LANGUAGES BOX ── */
.lang-box {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: #111111;
}

.lang-title {
  display: block;
  font-family: "VT323", monospace;
  font-size: 18px;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text);
  padding: 1px 0;
}

.lang-row .stars {
  color: var(--red);
  letter-spacing: 1px;
  font-size: 10px;
}

/* ── FANDOMS BOX ── */
.info-box.fandoms {
  border-color: #1a1a4d;
  background: #0d0d1f;
  color: #8888cc;
}

.info-box.fandoms .label {
  color: #6666ff;
}

/* ── ABOUT ME BOX ── */
.about-box {
  border-bottom: 1px solid var(--border);
  background: #111111;
  padding: 8px 10px;
}

.about-title {
  display: block;
  font-family: "VT323", monospace;
  font-size: 18px;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 2px;
  /* border-bottom: 1px solid var(--border); */
  /* padding-bottom: 3px; */
}

.about-text {
  /* border: 1px solid var(--border); */
  padding: 0px;
  font-size: 11px;
  color: var(--text);
  line-height: 1.3;
  background: #111;
  margin-top: 2px;
}

/* ── FANDOM TAGS ── */
.fandom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.tag {
  display: inline-block;
  border: 1px solid #4444aa;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 10px;
  color: #aaaaee;
  background: #0d0d1f;
  white-space: nowrap;
  transition: all 0.15s;
}

.tag:hover {
  background: #1a1a4d;
  color: #ccccff;
  border-color: #6666ff;
}

/* ── DISCORD FLOATING POPUP ── */
.discord-popup {
  display: none;
  position: absolute;
  z-index: 1000;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #5865f2;
  background: #0d0d2a;
  font-size: 11px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
}

.discord-popup.visible {
  display: flex;
}

.discord-user {
  color: #aaaaff;
  font-family: "Share Tech Mono", monospace;
}

.discord-copy {
  background: #1a1a4d;
  border: 1px solid #5865f2;
  color: #aaaaff;
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.discord-copy:hover {
  background: #5865f2;
  color: #fff;
}

/* ── DISCLAIMER BOX ── */
.info-box.disclaimer {
  border-color: #4d3a00;
  background: #1a1200;
  color: #ccaa55;
}

.info-box.disclaimer .label {
  color: #ffaa00;
}

@media (max-width: 520px) {
  .window {
    max-width: 100%;
  }

  .main {
    grid-template-columns: 1fr;
  }

  .left-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .photo-small {
    height: 200px;
  }

  .right-panel {
    padding: 10px;
  }
}