* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: #e9e9ff;
  background: #070712;
}

.bg{
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 700px at 30% 15%, rgba(109,40,217,.55), transparent 60%),
    radial-gradient(900px 600px at 80% 35%, rgba(34,197,94,.20), transparent 60%),
    linear-gradient(180deg, rgba(10,10,28,.85), rgba(5,5,12,.95));
  filter: saturate(1.1);
  z-index: -2;
}

.bg::after{
  content:"";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .30;
  z-index: -1;
}

.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.18);
}

.brand{
  display:flex; gap:10px; align-items:center;
  font-weight: 700;
  letter-spacing: .3px;
}
.brand .dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: linear-gradient(135deg, #6d28d9, #22c55e);
  box-shadow: 0 0 22px rgba(109,40,217,.45);
}

.nav{ display:flex; gap:16px; opacity:.9; }
.navlink{
  color: #cfcfff; text-decoration:none; font-size: 14px;
  padding: 8px 10px; border-radius: 10px;
}
.navlink:hover{ background: rgba(255,255,255,.06); }

.ghost{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: #e8e8ff;
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.ghost:hover{ background: rgba(255,255,255,.07); }

.wrap{ max-width: 1100px; margin: 0 auto; padding: 22px; }
.results h2{ margin: 18px 0; font-size: 18px; font-weight: 700; opacity: .95; }

.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
  gap: 18px;
}

.card{
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
}

.cardTop{ display:flex; gap:12px; align-items:center; }
.appIcon{
  width: 54px; height: 54px; border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
}
.appName{ font-weight: 800; letter-spacing: .6px; }
.badge{
  margin-top: 6px;
  display:inline-flex;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(109,40,217,.18);
  border: 1px solid rgba(109,40,217,.35);
  color: #e6dcff;
}

.price{
  font-size: 26px;
  font-weight: 900;
  margin: 14px 0 12px;
}

.actions{ display:flex; gap:10px; }
.btn{
  border: 0;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}
.btn.primary{
  flex: 1;
  color: #0b0618;
  background: linear-gradient(135deg, #8b5cf6, #22c55e);
}
.btn.primary:hover{ filter: brightness(1.05); }
.btn.secondary{
  color: #e8e8ff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
}
.btn.secondary:hover{ background: rgba(255,255,255,.09); }

.footnote{
  margin-top: 26px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.infoTag{
  display:inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
}
.footnote p{ margin: 10px 0 0; opacity:.9; font-size: 13px; }

/* MODAL */
.modalOverlay{
  position: fixed; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.modal{
  width: min(820px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(15,20,45,.92), rgba(85,25,120,.85));
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
  overflow: hidden;
}

.modalHeader{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 18px 10px;
}
.modalTitle{ font-weight: 800; opacity:.95; }
.modalSubtitle{ margin-top: 6px; font-weight: 900; letter-spacing: .6px; }
.modalPrice{ opacity:.95; }

.modalBody{ padding: 14px 18px 18px; }
.appRow{ display:flex; gap:12px; align-items:center; margin-bottom: 12px; }
.appIconLg{
  width: 68px; height: 68px; border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
}
.smallMuted{ font-size: 13px; opacity: .85; }

.label{ display:block; font-size: 13px; opacity: .9; margin: 12px 0 7px; }
.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: #f1f1ff;
  outline: none;
}
.input:focus{ border-color: rgba(139,92,246,.65); box-shadow: 0 0 0 4px rgba(139,92,246,.15); }

.hr{ height: 1px; background: rgba(255,255,255,.12); margin: 16px 0; }

.pixBox{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  padding: 14px;
}

.pixGrid{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
}
@media (max-width: 760px){
  .pixGrid{ grid-template-columns: 1fr; }
}

.qrcode{
  width: 240px; height: 240px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}

.textarea{
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: #f1f1ff;
}

.pixActions{ display:flex; gap:10px; margin-top: 10px; }

.modalFooter{
  display:flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.10);
}
