:root {
    --bg-color: #060814;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary-neon: #7c3aed;
    --secondary-neon: #2dd4bf;
    --error-color: #ef4444;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --font-family: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-family); }

html { -webkit-text-size-adjust: 100%; }
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 0% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 100% 50%, rgba(45, 212, 191, 0.1) 0%, transparent 40%);
    overflow-x: hidden;
    animation: bgPulse 8s ease-in-out infinite;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    background-attachment: scroll;
    overscroll-behavior-y: auto;
}

.app-container {
    width: min(100%, 430px);
    background: rgba(10, 12, 24, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 30px 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    isolation: isolate;
    contain: layout paint;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
}

.app-container::before {
    content: ""; position: absolute; inset: -80px -60px auto auto; width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%); filter: blur(18px);
    z-index: -1; animation: softFloat 7s ease-in-out infinite;
}

/* Header & Hero */
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; }
.logo-icon { color: var(--primary-neon); font-size: 1.5rem; filter: drop-shadow(0 0 8px var(--primary-neon)); animation: logoPulse 2.8s ease-in-out infinite; }
.highlight { color: var(--primary-neon); }
.menu-btn { background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; transition: 0.2s; }
.menu-btn:focus-visible { outline: 2px solid var(--primary-neon); border-radius: 4px; }

.hero { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; position: relative; }
.hero-content { width: 60%; }
.hero-content h1 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 10px; }
.hero-content p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }
.hero-icon-3d {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, rgba(124,58,237,0.4), rgba(45,212,191,0.1));
    border: 1px solid rgba(124, 58, 237, 0.5); border-radius: 20px;
    display: flex; justify-content: center; align-items: center; font-size: 2rem; color: #fff;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4); position: relative; overflow: hidden; animation: heroFloat 4s ease-in-out infinite;
}
.hero-icon-3d::after {
    content: ""; position: absolute; inset: -35%; background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.28), transparent 65%);
    transform: translateX(-90%) rotate(18deg); animation: shineMove 4.5s ease-in-out infinite;
}

/* Pricing Cards (Agora botões) */
.pricing { display: flex; gap: 10px; margin-bottom: 30px; }
.price-card {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px;
    padding: 20px 10px; cursor: pointer; transition: all 0.3s ease; color: var(--text-muted); position: relative; overflow: hidden;
}
.price-card:hover { transform: translateY(-3px); border-color: rgba(124, 58, 237, 0.55); }
.price-card:focus-visible { outline: 2px solid var(--primary-neon); }
.price-card i { margin-bottom: 10px; font-size: 1.2rem; }
.price-card .duration { font-size: 0.8rem; margin-bottom: 5px; }
.price-card .price { font-size: 0.9rem; font-weight: 600; }
.price-card .price span { font-size: 1.2rem; }
.price-card .entry { margin-top: 5px; font-size: .65rem; color: var(--secondary-neon); }
.price-card.active {
    background: rgba(124, 58, 237, 0.1); border-color: var(--primary-neon);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3), inset 0 0 10px rgba(124, 58, 237, 0.2); color: var(--text-main);
}

/* Formulário e Validações */
.form-section h2, .platforms h2 { font-size: 1rem; margin-bottom: 15px; font-weight: 600; }
.input-group {
    display: flex; align-items: center; background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px; padding: 15px; margin-bottom: 10px; gap: 15px; transition: border-color 0.2s;
}
.input-group:focus-within { border-color: rgba(124, 58, 237, 0.6); box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12); }
.input-group.error { border-color: var(--error-color); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
.error-msg { color: var(--error-color); font-size: 0.75rem; margin-top: -6px; margin-bottom: 10px; margin-left: 5px; font-weight: 500; }

.input-group i { color: var(--text-muted); font-size: 1.1rem; }
.input-group input, .input-group textarea, .input-group select { flex: 1; background: transparent; border: none; color: var(--text-main); font-size: 0.9rem; outline: none; }
.input-group input::placeholder, .input-group textarea::placeholder { color: var(--text-muted); }
.align-top { align-items: flex-start; } .input-group textarea { resize: none; }
.select-group { position: relative; } .select-group select { appearance: none; cursor: pointer; } .select-group .arrow-icon { position: absolute; right: 15px; pointer-events: none; }

/* Uploads */
.upload-container { display: flex; gap: 10px; margin-top: 15px; margin-bottom: 30px; }
.upload-box {
    flex: 1; background: var(--card-bg); border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px; padding: 15px 10px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.3s ease;
}
.upload-box:hover, .upload-box:focus-within { border-color: var(--primary-neon); background: rgba(124, 58, 237, 0.05); }
.upload-box .icon-wrapper { background: rgba(124, 58, 237, 0.2); width: 35px; height: 35px; border-radius: 8px; display: flex; justify-content: center; align-items: center; color: var(--primary-neon); }
.upload-text .title { font-size: 0.8rem; font-weight: 600; }
.upload-text .optional { font-weight: 400; color: var(--text-muted); }
.upload-text .subtitle { font-size: 0.65rem; color: var(--text-muted); margin-top: 3px; }

/* Tags (Agora botões) */
.platforms { margin-bottom: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    background: var(--card-bg); border: 1px solid var(--card-border); padding: 8px 16px; color: var(--text-muted);
    border-radius: 20px; font-size: 0.8rem; cursor: pointer; transition: all 0.3s ease; font-weight: 500;
}
.tag:focus-visible { outline: 2px solid var(--primary-neon); outline-offset: 2px; }
.tag.active { background: var(--primary-neon); border-color: var(--primary-neon); box-shadow: 0 0 15px rgba(124, 58, 237, 0.5); color: #fff; }

/* CTA Button */
.cta-btn {
    width: 100%; background: linear-gradient(90deg, #6d28d9, #4f46e5); color: #fff; border: none; border-radius: 12px;
    padding: 18px; font-size: 1rem; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: 10px;
    cursor: pointer; margin-bottom: 20px; box-shadow: 0 8px 25px rgba(109, 40, 217, 0.4); transition: transform 0.2s ease; position: relative; overflow: hidden;
}
.cta-btn:active { transform: scale(0.98); }
.cta-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cta-btn::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 80px; left: -120px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent); transform: skewX(-20deg); animation: ctaShine 3.2s ease-in-out infinite;
}
.cta-btn.loading { opacity: .86; pointer-events: none; }
.cta-btn.loading i { animation: spinPix .9s linear infinite; }

/* Payment Panel & Footer */
.payment-panel { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; padding: 16px; margin-bottom: 20px; animation: panelIn .28s ease both; overflow: hidden; }
.payment-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.payment-summary div { background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 12px; }
.payment-summary span { display: block; font-size: .68rem; color: var(--text-muted); margin-bottom: 5px; }
.payment-summary strong { font-size: .95rem; }
.pix-area { display: grid; gap: 10px; width: 100%; }
.qr-fake {
    position: relative; overflow: hidden; min-height: 180px; height: 180px; display: grid; place-items: center; border-radius: 16px; border: 1px dashed rgba(255,255,255,.18);
    background: radial-gradient(circle at 50% 0%, rgba(124,58,237,.16), transparent 55%), rgba(255,255,255,0.025); color: var(--primary-neon); font-size: 2rem; animation: qrPop .35s ease both; will-change: auto;
}
.qr-fake img { width: 158px; height: 158px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 0 22px rgba(124, 58, 237, .32); }
.qr-fake::after {
    content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(124,58,237,.24) 50%, transparent 100%);
    height: 44px; animation: qrScan 2.2s ease-in-out infinite; pointer-events: none; opacity: .55;
}
.pix-title { text-align: center; margin-bottom: 2px; font-size: .72rem; color: var(--text-muted); }
.pix-key-box { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(124, 58, 237, .08); padding: 10px 12px; }
.pix-key-box span { display: block; color: var(--text-muted); font-size: .68rem; margin-bottom: 4px; }
.pix-key-box strong { display: block; color: #fff; font-size: .72rem; line-height: 1.35; overflow-wrap: anywhere; }
.pix-area input { width: 100%; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,.18); color: #fff; border-radius: 12px; padding: 12px; outline: none; font-size: .72rem; line-height: 1.35; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { width: 100%; border-radius: 12px; padding: 13px; font-weight: 700; cursor: pointer; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; }
.whatsapp-btn {
    margin-top: 12px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 68px; padding: 14px 16px; border-radius: 16px;
    background: linear-gradient(135deg, #17c964 0%, #0ea55a 100%); color: #fff; font-weight: 800; text-decoration: none !important; box-shadow: 0 14px 26px rgba(25, 195, 108, .22); border: 1px solid rgba(255,255,255,.12); animation: whatsPulse 2.2s ease-in-out infinite;
}
.whatsapp-icon { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: 0 0 auto; font-size: 1.28rem; }
.whatsapp-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.whatsapp-text strong { font-size: .95rem; letter-spacing: -.01em; white-space: nowrap; }
.whatsapp-text small { font-size: 1.05rem; opacity: .98; font-weight: 800; }
.payment-note { margin-top: 10px; font-size: .72rem; color: var(--text-muted); text-align: left; line-height: 1.45; }

footer { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 0.65rem; color: var(--text-muted); }
footer .dot { font-size: 0.8rem; }

/* Animações */
@keyframes bgPulse { 0%, 100% { background-position: 0% 50%, 100% 50%; } 50% { background-position: 8% 48%, 92% 52%; } }
@keyframes softFloat { 0%, 100% { transform: translateY(0); opacity: .75; } 50% { transform: translateY(18px); opacity: 1; } }
@keyframes logoPulse { 0%, 100% { filter: drop-shadow(0 0 8px var(--primary-neon)); transform: scale(1); } 50% { filter: drop-shadow(0 0 15px var(--primary-neon)); transform: scale(1.04); } }
@keyframes heroFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes shineMove { 0%, 55% { transform: translateX(-90%) rotate(18deg); } 75%, 100% { transform: translateX(90%) rotate(18deg); } }
@keyframes ctaShine { 0%, 55% { left: -120px; } 80%, 100% { left: 110%; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spinPix { to { transform: rotate(360deg); } }
@keyframes qrPop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes qrScan { 0% { transform: translateY(-55px); opacity: 0; } 20% { opacity: .9; } 55% { opacity: .55; } 100% { transform: translateY(205px); opacity: 0; } }
@keyframes whatsPulse { 0%, 100% { box-shadow: 0 0 0 rgba(25,195,108,0); } 50% { box-shadow: 0 0 22px rgba(25,195,108,.35); } }
@keyframes toastInOut { 0% { opacity: 0; transform: translate(-50%, 18px) scale(.96); } 18%, 78% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, 14px) scale(.98); } }

/* Toast */
.copy-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 18px) scale(.96); opacity: 0; pointer-events: none; z-index: 9999; display: inline-flex; align-items: center; gap: 10px; min-width: min(92vw, 320px); justify-content: center; padding: 14px 18px; border-radius: 18px; color: #fff; font-weight: 800; background: linear-gradient(135deg, rgba(124,58,237,.96), rgba(49,93,255,.96)); box-shadow: 0 18px 40px rgba(49, 93, 255, .28); border: 1px solid rgba(255,255,255,.14); }
.copy-toast.show { animation: toastInOut 1.8s ease forwards; } .copy-btn.copied { background: linear-gradient(135deg, #7c3aed, #315dff) !important; color: #fff !important; transform: scale(.98); }

/* ==== MEDIA QUERIES UNIFICADAS ==== */
@media (min-width: 900px) {
    body { align-items: flex-start; padding-top: 34px; padding-bottom: 34px; }
    .app-container { max-width: 460px; padding: 34px 24px; }
    .payment-panel { padding: 18px; }
    .whatsapp-btn { justify-content: center; text-align: left; }
}

@media (max-width: 768px) {
    .app-container { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: 0 12px 28px rgba(0, 0, 0, .32) !important; }
    .app-container::before { display: none !important; }
    .hero-icon-3d { animation-duration: 6s !important; }
    .qr-fake::after { animation-duration: 3.6s !important; opacity: .35; }
    .whatsapp-btn { animation: none !important; }
}

@media (max-width: 430px) {
    body { padding: 8px; }
    .app-container { border-radius: 24px; padding: 22px 14px; max-width: 100%; box-shadow: 0 18px 38px rgba(0, 0, 0, .38); }
    header { margin-bottom: 22px; }
    .logo { font-size: 1.05rem; gap: 8px; } .menu-btn { font-size: 1.25rem; }
    .hero { gap: 12px; margin-bottom: 22px; } .hero-content { width: calc(100% - 84px); } .hero-content h1 { font-size: 1.32rem; } .hero-content p { font-size: .74rem; }
    .hero-icon-3d { width: 70px; height: 70px; border-radius: 18px; font-size: 1.65rem; }
    .pricing { gap: 7px; margin-bottom: 24px; }
    .price-card { padding: 14px 6px; border-radius: 14px; } .price-card .duration { font-size: .72rem; } .price-card .price span { font-size: 1.08rem; }
    .upload-container { flex-direction: column; }
    .tags { gap: 7px; } .tag { padding: 8px 13px; }
    .payment-panel { padding: 14px; border-radius: 16px; } .payment-summary { grid-template-columns: 1fr; }
    .qr-fake { height: 170px; min-height: 170px; } .qr-fake img { width: 148px; height: 148px; border-radius: 12px; }
    .pix-key-box strong, .pix-area input#pixCode { font-size: .68rem; }
    .copy-btn { padding: 12px; font-size: .92rem; }
    .whatsapp-btn { min-height: 64px; padding: 12px 14px; border-radius: 15px; gap: 10px; }
    .whatsapp-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 1.2rem; }
    .whatsapp-text strong { font-size: .86rem; } .whatsapp-text small { font-size: .98rem; }
    .payment-note { font-size: .7rem; }
    .qr-fake::after, .whatsapp-btn { animation-duration: 3s; }
    footer { flex-wrap: wrap; line-height: 1.5; }
    .copy-toast { bottom: 18px; padding: 13px 16px; border-radius: 16px; font-size: .92rem; }
}

@media (max-width: 360px) {
    .whatsapp-text strong { white-space: normal; font-size: .82rem; }
    .whatsapp-text small { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}