/* ============================================================
   ZONIX PLAY — pix.css  (página de doação)
   ============================================================ */

/* ---------- RESET ---------- */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
}

/* ---------- VARIÁVEIS ---------- */
:root {
    --neon-blue:   #00d2ff;
    --neon-purple: #9d00ff;
    --gold:        #f0b429;
    --dark-bg:     #07090f;
    --card-bg:     #0c1120;
    --card-border: #1a2540;
    --text:        #e8eef8;
    --muted:       #5a6a88;
    --radius:      18px;
}

/* ---------- BODY ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg);
    background-image:
        linear-gradient(rgba(0,210,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,210,255,0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 40px 20px;
}

/* ---------- PARTÍCULAS DECORATIVAS ---------- */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: var(--neon-blue);
    opacity: 0;
    animation: float-up 8s ease-in infinite;
}
.particles span:nth-child(1) { width: 4px; height: 4px; left: 10%;  animation-delay: 0s;   animation-duration: 7s; }
.particles span:nth-child(2) { width: 6px; height: 6px; left: 30%;  animation-delay: 1.5s; animation-duration: 9s;  background: var(--neon-purple); }
.particles span:nth-child(3) { width: 3px; height: 3px; left: 55%;  animation-delay: 3s;   animation-duration: 6s; }
.particles span:nth-child(4) { width: 5px; height: 5px; left: 70%;  animation-delay: 0.5s; animation-duration: 8s;  background: var(--gold); }
.particles span:nth-child(5) { width: 4px; height: 4px; left: 85%;  animation-delay: 2s;   animation-duration: 7s;  background: var(--neon-purple); }
.particles span:nth-child(6) { width: 3px; height: 3px; left: 45%;  animation-delay: 4s;   animation-duration: 10s; }
@keyframes float-up {
    0%   { bottom: -10px; opacity: 0;  transform: translateX(0); }
    10%  { opacity: .6; }
    90%  { opacity: .2; }
    100% { bottom: 105vh; opacity: 0;  transform: translateX(30px); }
}

/* ---------- PAGE WRAPPER ---------- */
.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ---------- BTN VOLTAR ---------- */
.btn-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--muted);
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: rgba(255,255,255,0.03);
    transition: all .25s;
}
.btn-back:hover {
    color: var(--neon-blue);
    border-color: rgba(0,210,255,0.4);
    background: rgba(0,210,255,0.07);
}
.back-arrow {
    font-size: 14px;
    transition: transform .25s;
    display: inline-block;
}
.btn-back:hover .back-arrow {
    transform: translateX(-4px);
}

/* ---------- CARD PRINCIPAL ---------- */
.pix-card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0,210,255,0.05),
        0 24px 64px rgba(0,0,0,0.7),
        0 0 100px rgba(0,210,255,0.04);
    animation: card-in .5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes card-in {
    from { opacity: 0; transform: translateY(28px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- CABEÇALHO DO CARD ---------- */
.card-header {
    position: relative;
    padding: 38px 32px 28px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(0,210,255,0.07) 0%, transparent 100%);
    border-bottom: 1px solid var(--card-border);
}

/* Brilho radial atrás do título */
.header-glow {
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 260px; height: 160px;
    background: radial-gradient(ellipse, rgba(157,0,255,0.18) 0%, transparent 70%);
    pointer-events: none;
}

.heart-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    animation: heartbeat .9s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255,80,80,0.7));
}
@keyframes heartbeat {
    0%,100% { transform: scale(1);    }
    15%     { transform: scale(1.22); }
    30%     { transform: scale(1);    }
    45%     { transform: scale(1.12); }
    60%     { transform: scale(1);    }
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.1;
}
.accent {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.5;
    max-width: 340px;
    margin: 0 auto;
}

/* ---------- SEPARADOR ---------- */
.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 32px;
    margin: 24px 0 0;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,210,255,0.25), transparent);
}
.divider-icon {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--neon-blue);
    opacity: .7;
    padding: 4px 12px;
    border: 1px solid rgba(0,210,255,0.2);
    border-radius: 999px;
    background: rgba(0,210,255,0.05);
}

/* ---------- QR CODE ---------- */
.qr-section {
    padding: 28px 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Moldura com cantos neon */
.qr-frame {
    position: relative;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,210,255,0.2), 0 0 60px rgba(157,0,255,0.1);
}
/* Cantos decorativos */
.qr-corner {
    position: absolute;
    width: 18px; height: 18px;
    border-color: var(--neon-blue);
    border-style: solid;
}
.qr-corner.tl { top: -2px;  left: -2px;  border-width: 3px 0 0 3px; border-radius: 4px 0 0 0; }
.qr-corner.tr { top: -2px;  right: -2px; border-width: 3px 3px 0 0; border-radius: 0 4px 0 0; }
.qr-corner.bl { bottom: -2px; left: -2px;  border-width: 0 0 3px 3px; border-radius: 0 0 0 4px; }
.qr-corner.br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 4px 0; }

.qr-img {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 6px;
}

.qr-hint {
    font-size: .88rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .5px;
}

/* ---------- CHAVE PIX ---------- */
.pix-key-section {
    padding: 24px 32px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.key-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-blue);
    opacity: .8;
}

.copy-row {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: border-color .25s;
}
.copy-row:focus-within {
    border-color: rgba(0,210,255,0.45);
    box-shadow: 0 0 16px rgba(0,210,255,0.1);
}

.key-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: none;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 16px;
    outline: none;
    letter-spacing: .5px;
    min-width: 0;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--neon-blue), #007bcc);
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: filter .25s, transform .15s;
    flex-shrink: 0;
}
.btn-copy:hover {
    filter: brightness(1.15);
    transform: scaleX(1.03);
}
.btn-copy.copied {
    background: linear-gradient(135deg, #00cc88, #007755);
}
.copy-icon { font-size: 15px; }
.copy-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #000;
    white-space: nowrap;
}

/* ---------- MENSAGEM OBRIGADO ---------- */
.thank-you {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px 32px 32px;
    padding: 14px 20px;
    background: rgba(240,180,41,0.06);
    border: 1px solid rgba(240,180,41,0.18);
    border-radius: 10px;
}
.ty-icon { font-size: 20px; }
.ty-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: .5px;
}

/* ============================================================
   RESPONSIVO — CELULAR
   ============================================================ */
@media (max-width: 480px) {
    body { padding: 24px 16px; }

    .card-header  { padding: 28px 20px 22px; }
    .divider      { padding: 0 20px; }
    .qr-section   { padding: 22px 20px 0; }
    .qr-img       { width: 150px; height: 150px; }
    .pix-key-section { padding: 20px 20px 0; }
    .thank-you    { margin: 20px 20px 24px; }
    .key-input    { font-size: 11px; padding: 12px 12px; }
    .btn-copy     { padding: 0 14px; }
}