/* ── Variáveis ────────────────────────────────────────── */
:root {
  --green-bright: #00e676;
  --green-mid:    #00c853;
  --green-dark:   #007a35;
  --teal:         #00bcd4;
  --teal-dark:    #007a8a;
  --bg-outer:     #000a01;
  --bg-card:      #050f03;
  --bg-inner:     #010800;
  --border-main:  #00943a;
  --border-inner: #163d20;
  --text-muted:   #96b0a0;
  --text-white:   #ffffff;
  --red-heart:    #ef5350;
}

/* ── Container principal ──────────────────────────────── */
#PixGgScreen {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  /* tamanho base */
  width: min(400px, 92vw);

  background: linear-gradient(145deg, #010a00, #000812);
  border-radius: 20px;
  border: 2px solid var(--border-main);
  box-shadow:
    0 0 0 1px rgba(0, 200, 80, 0.07),
    0 0 35px rgba(0, 148, 58, 0.18),
    0 10px 50px rgba(0, 0, 0, 0.75);
  z-index: 12921;
  overflow: hidden;
  padding-bottom: 24px;

  /* responsividade vertical */
  max-height: 95vh;
  overflow-y: auto;
  scrollbar-width: none;
}
#PixGgScreen::-webkit-scrollbar { display: none; }

/* brilho topo */
#PixGgScreen::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(0, 230, 118, 0.55),
    transparent
  );
  pointer-events: none;
}

/* ── Botão fechar ─────────────────────────────────────── */
#CloseButton {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color      0.2s ease,
    border-color 0.2s ease,
    transform  0.15s ease;
  z-index: 10;
  padding: 0;
}
#CloseButton:hover {
  background: rgba(239, 83, 80, 0.15);
  border-color: rgba(239, 83, 80, 0.5);
  color: #ef5350;
  transform: rotate(90deg);
}
#CloseButton:active {
  transform: rotate(90deg) scale(0.9);
}

/* ── Título do topo ───────────────────────────────────── */
#PixTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 18px;
  font-family: monospace;
  font-weight: bold;
  font-size: clamp(18px, 5vw, 26px);
  padding: 0 44px; /* espaço para o botão fechar */
}

#PixTitle img {
  width: clamp(32px, 8vw, 42px);
  filter: drop-shadow(0 0 6px rgba(0, 200, 80, 0.45));
}

/* ── Divisor ──────────────────────────────────────────── */
#PixGgScreen hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    rgba(0, 200, 80, 0.5) 30%,
    rgba(0, 188, 212, 0.38) 70%,
    transparent
  );
  margin: 0 20px;
}

/* ── Boas-vindas ──────────────────────────────────────── */
#welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  padding: 0 16px;
}

#welcome h1 {
  font-size: clamp(26px, 7vw, 34px);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 800;
  margin: 0 0 5px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#welcome h2 {
  font-size: clamp(11px, 3vw, 13px);
  font-family: monospace;
  font-weight: normal;
  margin: 0;
  background: linear-gradient(135deg, #8aaa96, #6b8c7a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Card interno ─────────────────────────────────────── */
#PixGoalCard {
  background: linear-gradient(160deg, #0a1f08, var(--bg-inner));
  border: 1px solid var(--border-inner);
  box-shadow:
    inset 0 1px 0 rgba(0, 200, 80, 0.05),
    0 4px 20px rgba(0, 0, 0, 0.45);
  width: min(82%, 320px);
  margin: 0 auto;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 18px;
}

/* ── Título do card ───────────────────────────────────── */
#GoalTitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 16px 0 8px;
}

#GoalTitle h2 {
  font-size: clamp(15px, 4vw, 18px);
  font-family: 'Segoe UI', Verdana, sans-serif;
  font-weight: 700;
  margin: 0;
  color: var(--text-white);
}

#GoalTitle span {
  font-size: clamp(14px, 3.5vw, 17px);
  font-family: Arial, Helvetica, sans-serif;
}

/* ── Descrição ────────────────────────────────────────── */
#GoalDescription {
  width: 90%;
}

#GoalDescription p {
  color: var(--text-muted);
  font-size: clamp(11px, 3vw, 13px);
  font-family: monospace;
  text-align: center;
  margin: 0;
  line-height: 1.65;
  padding: 2px 4px;
}

#pixText {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
  background: linear-gradient(135deg, var(--teal), var(--green-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#pixText img {
  transform: translateY(-1px);
}

/* ── Barra de progresso ───────────────────────────────── */
#GoalContainer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
}

#GoalbarWrapper {
  width: 86%;
}

#GoalbarTrack {
  margin-top: 14px;
  width: 100%;
  height: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 148, 58, 0.25);
  border-radius: 6px;
  overflow: hidden;
}

#progress-fill {
  height: 100%;
  width: 65%;
  border-radius: 6px;
  background: linear-gradient(to right, var(--green-mid), var(--teal));
  box-shadow: 0 0 8px rgba(0, 200, 80, 0.4);
  transition: width 0.5s ease-in-out;
}

/* ── Labels da meta ───────────────────────────────────── */
#GoalLabels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 0 1px;
}

#GoalCurrent {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(10px, 2.5vw, 12px);
  font-weight: 700;
  color: var(--green-bright);
  opacity: 0.9;
}

#GoalPercent {
  font-family: monospace;
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--green-mid), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
}

#GoalTotal {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(10px, 2.5vw, 12px);
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ── Botão doação ─────────────────────────────────────── */
#DonateButtonWrapper {
  margin-top: 16px;
  width: 86%;
}

#DonateButton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 0;
  border: 1px solid rgba(0, 200, 80, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg,
    rgba(0, 180, 60, 0.13),
    rgba(0, 140, 160, 0.10)
  );
  color: var(--green-bright);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition:
    background   0.25s ease,
    box-shadow   0.25s ease,
    transform    0.15s ease;
}

#DonateButton svg {
  color: var(--red-heart);
  filter: drop-shadow(0 0 4px rgba(239, 83, 80, 0.55));
  flex-shrink: 0;
}

#DonateButton:hover {
  background: linear-gradient(135deg,
    rgba(0, 200, 80, 0.2),
    rgba(0, 188, 212, 0.16)
  );
  box-shadow: 0 0 16px rgba(0, 200, 80, 0.22);
  transform: translateY(-1px);
}

#DonateButton:active {
  transform: translateY(0px);
  box-shadow: none;
}

/* ── Gradiente texto ──────────────────────────────────── */
.TextGradient {
  background: linear-gradient(135deg, var(--green-bright), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Responsividade ───────────────────────────────────── */
@media (max-width: 440px) {
  #PixGgScreen {
    border-radius: 14px;
    padding-bottom: 20px;
  }

  #PixGoalCard {
    width: 88%;
  }

  #GoalbarWrapper,
  #DonateButtonWrapper {
    width: 90%;
  }
}

@media (max-height: 600px) {
  #welcome { margin: 12px 0; }
  #PixTitle { margin-top: 14px; margin-bottom: 12px; }
  #GoalTitle { margin: 10px 0 6px; }
}

a
{
    text-decoration: none;
}