:root{
  --accent:#dc143c;
  --bg:#0a0a0a;
  --card:rgba(255,255,255,0.03);
  --border:rgba(255,255,255,0.06);
  --text:#ffffff;
  --green:#00ff6a;
  --blue:#00eaff;
}

*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;tap-highlight-color:transparent;}

body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Press Start 2P', cursive;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  min-height:100vh;
}

header{
  position:sticky;
  top:0;
  z-index:10;

  width:100%;
  padding:25px 20px;

  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;

  background:linear-gradient(180deg,#111,#0a0a0a);
  border-bottom:1px solid #222;

  font-size:1.4rem;
  letter-spacing:2px;
  text-transform:uppercase;

  font-family:'Press Start 2P', cursive;

  box-shadow:0 0 20px rgba(220,20,60,0.25);
}

/* Ícone estilo pixel/cyber */
header::before{
  content:"";
  width:22px;
  height:22px;

  background:
    linear-gradient(#dc143c,#dc143c) center/100% 2px no-repeat,
    linear-gradient(#dc143c,#dc143c) center/2px 100% no-repeat;

  box-shadow:
    0 0 8px #dc143c,
    0 0 15px rgba(220,20,60,0.6);

  transform:rotate(45deg);
  border-radius:3px;
}

/* Glow animado leve */
header::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,#dc143c33,transparent);
  opacity:0.4;
  animation: scan 4s linear infinite;
  pointer-events:none;
}

@keyframes scan{
  0%{transform:translateX(-100%);}
  100%{transform:translateX(100%);}
}

.container{
  max-width:820px;
  margin:40px auto;
  padding:30px;
  background:var(--card);
  border-radius:16px;
  box-shadow:0 0 25px rgba(220,20,60,0.3);
  backdrop-filter:blur(8px);
  transition:all 0.3s ease;
}

h2{font-weight:600;margin-bottom:15px;color:#ff003c;}
.story{color:#aaa;line-height:1.6;margin-bottom:25px;}

.goal-info{display:flex;justify-content:space-between;margin-bottom:10px;font-size:0.9rem;color:#999;}
.progress-bar{width:100%;height:12px;background:#222;border-radius:20px;overflow:hidden;margin-bottom:25px;}
.progress{height:100%;width:0%;background:linear-gradient(45deg,#dc143c,#ff003c);transition:width 1s ease;border-radius:20px;box-shadow:0 0 10px rgba(220,20,60,0.5);}

.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:30px;}
.card{
  background:var(--card);
  border-radius:12px;
  padding:18px;
  text-align:center;
  transition:transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border:1px solid var(--border);
  color:#fff;
  font-family:'Press Start 2P', cursive;
}
.card:hover{
  transform:translateY(-5px) scale(1.02);
  box-shadow:0 0 25px rgba(220,20,60,0.4);
  border-color:var(--accent);
}
.card h3{font-size:1.3rem;margin-bottom:4px;color:#ff003c;transition:0.3s;}
.card span{color:#888;font-size:0.85rem;}
.card i{margin-bottom:6px;color:#fff;display:block;font-size:1.4rem;}

.donate{text-align:center;}
.donate input{
  width:180px;padding:12px;border-radius:8px;border:1px solid #222;
  background:#111;color:white;margin-right:10px;transition:0.2s;
}
.donate input:focus{outline:none;border-color:#dc143c;box-shadow:0 0 10px rgba(220,20,60,0.4);}
.donate button{
  padding:12px 22px;border:none;border-radius:8px;
  background:linear-gradient(45deg,#dc143c,#ff003c);
  color:white;font-weight:600;cursor:pointer;transition:0.3s;
  box-shadow:0 0 12px rgba(220,20,60,0.5);
}
.donate button:hover{
  background:#ff003c;transform:scale(1.05);
  box-shadow:0 0 20px rgba(220,20,60,0.8);
}

#qr img{margin-top:20px;max-width:220px;border-radius:8px;box-shadow:0 0 15px rgba(220,20,60,0.4);transition:all 0.3s ease;}
#copy button{margin-top:10px;padding:8px 18px;border:none;border-radius:6px;background:#dc143c;color:#fff;cursor:pointer;transition:0.3s;}
#copy button:hover{background:#dc143c;transform:scale(1.05);box-shadow:0 0 10px rgba(220,20,60,0.5);}

footer{text-align:center;padding:25px;color:#dc143c;font-size:0.8rem;}

@media(max-width:700px){
  .stats{grid-template-columns:1fr;}
  .donate input{width:100%;margin-bottom:10px;}
}

canvas#particles{position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;}

#loader{text-align:center;margin:20px 0;}
.dot{display:inline-block;width:10px;height:10px;margin:0 5px;background:linear-gradient(45deg,#dc143c,#ff003c);border-radius:50%;animation: jump 0.6s infinite alternate;}
.dot:nth-child(2){animation-delay:0.2s;}
.dot:nth-child(3){animation-delay:0.4s;}
@keyframes jump{to{transform: translateY(-10px);}}

#notifications{position: fixed;bottom: 20px;right: 20px;display:flex;flex-direction:column;gap:10px;z-index:9999;}
.notification{
  min-width:220px;padding:12px 18px;border-radius:10px;color:#fff;font-weight:500;font-size:0.9rem;
  opacity:0;transform:translateX(100%);
  animation: slideIn 0.5s forwards, fadeOut 0.5s forwards 3s;
  box-shadow:0 6px 20px rgba(220,20,60,0.5);
}
.notification.success{background:#fff;color:#111;}
.notification.error{background:#ff4b4b;}
.notification.info{background:#888;}
@keyframes slideIn{from{opacity:0;transform:translateX(100%);}to{opacity:1;transform:translateX(0);}}
@keyframes fadeOut{to{opacity:0;transform:translateX(100%);}}

.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.snow::before,
.snow::after {
  content: "";
  position: absolute;
  inset: -200%;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 80% 40%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 50% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 10% 80%, rgba(255,255,255,.7), transparent);
  background-size: 400px 400px;
  animation: snow 60s linear infinite;
}
.snow::after {animation-duration: 120s;opacity: .6;}

.comment{
  display:flex;gap:12px;align-items:center;background:var(--card);border:1px solid var(--border);padding:14px;border-radius:12px;opacity:0;transition:opacity 0.6s ease;font-family:'Press Start 2P', cursive;
}
.comment.show{opacity:1;}
.comment.hide{opacity:0;}
.comment:hover{box-shadow:0 0 15px rgba(220,20,60,0.4);transform:translateY(-2px);}

/* ---------------- PIX / Modal ---------------- */
#pixModal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  backdrop-filter:blur(8px);
  z-index:9999;

  display:flex;
  align-items:center;
  justify-content:center;
}

.pix-box{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;

  background:#111;
  padding:25px;
  border-radius:18px;
  width:90%;
  max-width:360px;
  text-align:center;

  border:1px solid #dc143c;
  box-shadow:0 0 25px rgba(220,20,60,0.6);
}

#qrImg{
  width:200px;
  margin-top:10px;
  border-radius:10px;
  box-shadow:0 0 15px rgba(220,20,60,0.6);
}

#pixStatus{
  margin-top:10px;
  font-weight:bold;
  color:#dc143c;
  animation:pulse 1.2s infinite;
}

@keyframes pulse{
  0%{opacity:1}
  50%{opacity:.4}
  100%{opacity:1}
}

#cancelPix{
  margin-top:15px;
  padding:10px 20px;
  background:#1a1a1a;
  border:1px solid #dc143c;
  color:#dc143c;
  border-radius:8px;
  cursor:pointer;
  transition:0.3s;
  font-family:'Press Start 2P', cursive;
}
#cancelPix.show{display:inline-block;}
#cancelPix:hover{
  background:#dc143c;
  color:#fff;
  box-shadow:0 0 12px rgba(220,20,60,0.7);
}

/* ---------------- Chat Box ---------------- */
#chatBox {
  background:#111;
  border:1px solid #222;
  padding:15px;
  border-radius:12px;
  text-align:left;
  font-family:'Press Start 2P', cursive;
  color:#fff;
}

#chatBox textarea {
  width:100%;
  background:#0b0b0b;
  border:1px solid #333;
  color:#fff;
  padding:10px;
  border-radius:8px;
  resize:none;
  margin-top:10px;
  margin-bottom:10px;
  font-family:'Press Start 2P', cursive;
}
#chatBox textarea:focus{
  outline:none;
  border-color:#dc143c;
  box-shadow:0 0 10px rgba(220,20,60,0.5);
}

#chatBox button{
  background:#fff;
  color:#111;
  border:none;
  padding:10px 20px;
  border-radius:8px;
  cursor:pointer;
  font-family:'Press Start 2P', cursive;
  transition:0.3s;
  box-shadow:0 0 10px rgba(220,20,60,0.4);
}
#chatBox button:hover{
  transform:scale(1.05);
  box-shadow:0 0 18px rgba(220,20,60,0.7);
}

/* ---------------- Comments Section ---------------- */
#commentsSection{
  display:none;
  margin-top:30px;
  font-family:'Press Start 2P', cursive;
}
#commentsList{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.comment{
  display:flex;
  gap:12px;
  align-items:center;
  background:#111;
  border:1px solid #222;
  padding:12px;
  border-radius:12px;
  animation: slideUp 0.4s ease;
  font-family:'Press Start 2P', cursive;
  color:#fff;
}

.comment img{
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid #dc143c;
  box-shadow:0 0 8px rgba(220,20,60,0.5);
}

.comment .content .name{
  font-weight:600;
  font-size:0.9rem;
  color:#dc143c;
}

.comment .content .text{
  font-size:0.85rem;
  color:#fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
}

@keyframes slideUp{
  from{opacity:0; transform:translateY(10px);}
  to{opacity:1; transform:translateY(0);}
}

.comment-buttons{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.comment-buttons .skip{
  background:#222;
  border:1px solid #555;
  color:#aaa;
  transition:.25s;
}
.comment-buttons .skip:hover{
  box-shadow:0 0 12px rgba(220,20,60,0.4);
  transform:translateY(-1px);
}

/* ---------------- Verify Token ---------------- */
.verify-token-box{
  width:90%;
  max-width:1000px;
  margin-bottom:60px;
  background:#111;
  border:1px solid #222;
  border-radius:18px;
  padding:25px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-align:center;
  font-family:'Press Start 2P', cursive;
}

.verify-token-box h3{
  margin:0;
  font-family:'Press Start 2P', cursive;
  font-size:12px;
  color:#dc143c;
}

.verify-token-box p{
  font-size:12px;
  opacity:.7;
  margin:0 0 8px 0;
}

.verify-token-box input{
  width:100%;
  max-width:350px;
  padding:12px;
  border-radius:12px;
  border:1px solid #222;
  background:#111;
  color:white;
  outline:none;
  text-align:center;
  font-family:'Press Start 2P', cursive;
}

.verify-token-box input:focus{
  border-color:#dc143c;
  box-shadow:0 0 10px rgba(220,20,60,.4);
}

.verify-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:5px;
}

.verify-actions a{
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
}

.btn-access.btn-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}