@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #04050a;
  --card: rgba(8, 12, 22, 0.78);
  --line: rgba(80, 170, 255, 0.18);
  --text: #f4f7ff;
  --muted: #9aa7c2;
  --orange: #ff3358;
  --orange2: #5aa7ff;
  --red: #ff2d4a;
  --cyan: #00d4ff;
  --blue: #3b82ff;
  --glow-red: rgba(255, 45, 90, 0.35);
  --glow-blue: rgba(0, 180, 255, 0.28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 8% -5%, var(--glow-red), transparent 58%),
    radial-gradient(820px 480px at 95% 10%, var(--glow-blue), transparent 55%),
    radial-gradient(700px 400px at 50% 110%, rgba(80, 40, 160, 0.22), transparent 50%),
    #04050a;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("/bg.jpg");
  background-size: cover;
  background-position: center top;
  filter: saturate(1.1);
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 180, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 45, 90, 0.04) 1px, transparent 1px),
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(0, 212, 255, 0.55), transparent),
    radial-gradient(2px 2px at 78% 22%, rgba(255, 50, 90, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 32% 72%, rgba(90, 167, 255, 0.4), transparent),
    radial-gradient(2px 2px at 88% 78%, rgba(255, 45, 90, 0.28), transparent);
  background-size: 56px 56px, 56px 56px, auto, auto, auto, auto;
  mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 85%);
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1320px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.nav-links { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.brand { display: flex; align-items: center; }
.nav-logo { height: 48px; width: auto; display: block; background: transparent; filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.35)); }
.hero-logo { width: min(340px, 82%); height: auto; display: block; margin: 0 auto 8px; background: transparent; filter: drop-shadow(0 0 28px rgba(0, 180, 255, 0.25)); }
.logo-shine {
  position: relative;
  display: inline-block;
  line-height: 0;
  overflow: hidden;
}
.logo-shine img { position: relative; z-index: 0; }
.logo-shine::after {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 80, 140, 0.15) 44%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(80, 180, 255, 0.35) 56%,
    transparent 62%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: logoSweep 1.5s ease-in-out infinite;
  mix-blend-mode: screen;
  -webkit-mask-image: url("/logo.png?v=2");
  mask-image: url("/logo.png?v=2");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
@keyframes logoSweep {
  0% { background-position: 140% 0; }
  70%, 100% { background-position: -80% 0; }
}
.nav a, .nav button {
  background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; margin-left: 18px; font-size: 14px;
}
.nav a:hover, .nav button:hover { color: #fff; text-shadow: 0 0 12px rgba(0, 212, 255, 0.5); }
.nav-user { margin-left: 18px; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.nav a.on { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(90deg, #ff2d4a 0%, #c44bff 50%, #2b8cff 100%);
  color: #fff; border: 0; border-radius: 10px; padding: 12px 18px;
  font-weight: 800; cursor: pointer; letter-spacing: 0.04em;
  box-shadow: 0 8px 28px rgba(255, 45, 90, 0.28), 0 0 24px rgba(43, 140, 255, 0.22);
}
.btn.ghost {
  background: rgba(10, 16, 32, 0.7); border: 1px solid rgba(0, 180, 255, 0.28);
  box-shadow: none; color: #fff;
}
.btn.full { width: 100%; }
.landing {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(280px, 640px) 380px;
  justify-content: space-between;
  column-gap: clamp(200px, 22vw, 420px);
  align-items: center;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 56px 14vw 64px 4vw;
  box-sizing: border-box;
}
.landing-copy {
  min-width: 0;
  max-width: 620px;
  width: 100%;
  margin: 0 0 0 5vw;
  justify-self: start;
  overflow: hidden;
  pointer-events: none;
}
.landing-auth {
  position: relative;
  z-index: 6;
  pointer-events: auto;
  width: 380px;
  max-width: 100%;
  justify-self: end;
  margin-right: 0;
}
.center-brand { text-align: center; }
h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  font-weight: 800;
  text-align: center;
  margin: 18px auto;
  max-width: 100%;
}
h1 em {
  font-style: italic;
  display: block;
  background: linear-gradient(90deg, #ff3358, #7c5cff, #3b9eff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.pill {
  border: 1px solid rgba(0, 180, 255, 0.22);
  background: rgba(8, 14, 28, 0.7);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  color: #ddd;
  box-shadow: 0 0 16px rgba(0, 180, 255, 0.08);
}
.pill b { color: var(--cyan); margin-right: 6px; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 36px; text-align: center;
}
.stat-ico {
  width: 42px; height: 42px; margin: 0 auto 8px;
  border-radius: 10px;
  background: rgba(10, 18, 36, 0.9);
  border: 1px solid rgba(0, 180, 255, 0.35);
  display: grid; place-items: center; color: var(--cyan); font-size: 18px;
  box-shadow: 0 0 16px rgba(0, 180, 255, 0.15);
}
.stats strong { display: block; font-size: 22px; }
.stats span { color: var(--muted); font-size: 12px; }
.login-card {
  position: relative;
  z-index: 6;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(12, 18, 34, 0.92), rgba(6, 8, 16, 0.94));
  border: 1px solid rgba(0, 180, 255, 0.18);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 45, 90, 0.08), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}
.login-card input, .login-card button, .login-card a, .login-card select {
  position: relative;
  z-index: 7;
  pointer-events: auto;
}
.login-card h2 {
  text-align: center; letter-spacing: 0.18em; font-size: 22px;
  background: linear-gradient(90deg, #ff4d6d, #5aa7ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-card .sub { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 16px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.tabs button {
  border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 10px; cursor: pointer; font-weight: 700;
  background: #151a28; color: #fff;
}
.tabs button.on { background: linear-gradient(90deg, #ff2d4a, #2b8cff); border-color: transparent; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  box-shadow: 0 0 24px rgba(0, 180, 255, 0.06);
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 10px 0 70px; }
.product-card.sold-out { opacity: 1; }
.stock-off {
  color: #ff6b81;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 8px 0 0;
}
.product-card.sold-out .btn[disabled],
#pvPlans .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.85;
  background: #2a3144;
  border-color: #3a445c;
}
.product-img { width: 100%; border-radius: 14px; display: block; margin-bottom: 12px; object-fit: contain; background: transparent; }
.product-hero { width: 100%; max-height: 480px; object-fit: contain; border-radius: 14px; margin: 14px 0; display: block; background: transparent; border: 0; box-shadow: none; }
.product-card { overflow: hidden; }
.plat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; margin: 0 0 10px; width: fit-content;
}
.plat-mob { color: #86efac; background: rgba(22, 163, 74, 0.18); border: 1px solid rgba(74, 222, 128, 0.35); }
.plat-ios { color: #e2e8f0; background: rgba(148, 163, 184, 0.18); border: 1px solid rgba(226, 232, 240, 0.35); }
.plat-emu { color: #c4b5fd; background: rgba(109, 40, 217, 0.2); border: 1px solid rgba(167, 139, 250, 0.4); }
#pvBadge { margin: 8px 0 10px; }
.product-line { display: block; }
.product-line h2, .product-line h3 { margin: 0 0 8px; }
.product-desc, #pvDesc {
  white-space: pre-line;
  overflow: visible;
  margin: 0;
  line-height: 1.5;
}
.price { font-size: 32px; font-weight: 800; margin: 10px 0; background: linear-gradient(90deg, #ff4d6d, #5aa7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.pix-qr { display: block; width: min(240px, 100%); margin: 14px auto; border-radius: 12px; background: #fff; padding: 10px; }
.pix-copy { width: 100%; min-height: 88px; margin: 10px 0; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #0b1220; color: #fff; font-size: 12px; resize: vertical; }
#pixBox .btn { margin-right: 8px; margin-top: 8px; }
.key-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.key-row input { flex: 1; font-weight: 800; letter-spacing: 0.04em; }
.form { display: grid; gap: 10px; }
label { font-size: 13px; color: #cfd8ee; }
input, select, textarea {
  width: 100%; background: #0c1220; border: 1px solid #24304a; color: #fff;
  border-radius: 10px; padding: 12px 14px; font: inherit;
}
button[disabled] { opacity: 0.45; cursor: not-allowed; }
input:focus, select:focus { outline: 1px solid rgba(0, 212, 255, 0.55); box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.12); }
.linkish {
  background: none; border: 0; color: var(--cyan); cursor: pointer; font-size: 12px;
  text-align: right; display: block; width: 100%; font-weight: 600; margin: 2px 0 4px;
}
.msg { margin-top: 10px; font-size: 14px; }
.msg.err { color: #fb7185; }
.msg.ok { color: #4ade80; }
.hidden { display: none !important; }
.page { padding: 40px 0 80px; }
iframe { width: 100%; min-height: 360px; border: 0; border-radius: 12px; background: #000; }
.steps { margin: 16px 0 24px; color: var(--muted); padding-left: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table th, table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table code { font-size: 12px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin: 10px 0 24px; font-size: 28px; }
.shop-head { text-align: center; margin: 8px 0 18px; }
.shop-kicker {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.shop-cat {
  font-size: clamp(32px, 4vw, 46px); font-weight: 900; letter-spacing: 0.12em;
  background: linear-gradient(90deg, #ff4d6d, #c44bff, #5aa7ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shop-subs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
  margin: 0 auto 28px;
}
.shop-subs button {
  border: 1px solid rgba(0, 180, 255, 0.22);
  background: rgba(8, 14, 28, 0.75);
  color: #cfd8ee; border-radius: 999px;
  padding: 10px 18px; font: inherit; font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.shop-subs button.on {
  color: #fff;
  background: linear-gradient(90deg, #ff2d4a, #2b8cff);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(255, 45, 90, 0.25);
}
.shop-empty { text-align: center; padding: 40px 0 60px; }
.product-card .product-desc { max-height: 6.4em; overflow: hidden; }
@media (max-width: 980px) {
  .landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    grid-template-columns: none;
    column-gap: 0;
    min-height: auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 8px 16px 36px;
  }
  .landing-copy {
    margin: 0;
    max-width: 100%;
    justify-self: center;
    display: flex;
    justify-content: center;
  }
  .landing-copy h1,
  .landing-copy .pills,
  .landing-copy .stats {
    display: none !important;
  }
  .hero-logo {
    width: min(200px, 52vw);
    margin: 4px auto 18px;
  }
  .landing-auth {
    justify-self: center;
    width: min(400px, 100%);
    margin-right: 0;
  }
  .grid { grid-template-columns: 1fr; }
}
.auth-center { min-height: calc(100vh - 100px); display: grid; place-items: center; padding: 10px 0 60px; }
.auth-center .login-card { width: min(440px, 100%); }
.field { position: relative; }
.field input { padding-left: 42px; padding-right: 42px; background: #0c1220; border-color: #24304a; }
.field .ico, .field .eye {
  position: absolute; top: 50%; transform: translateY(-50%); color: #7f8eae; font-size: 14px; background: none; border: 0;
}
.field .ico { left: 14px; pointer-events: none; }
.field .eye { right: 12px; cursor: pointer; }
.or-line {
  display: flex; align-items: center; gap: 10px; color: #7a86a0; font-size: 11px; letter-spacing: .08em; margin: 4px 0;
}
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #3a4a6a, transparent); }
.gbtn {
  width: 100%; border-radius: 10px; border: 1px solid #2a3650; background: #101828; color: #fff;
  padding: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.gbtn .g-logo { width: 18px; height: 18px; flex: 0 0 18px; display: block; }
.secure { text-align: center; color: #c9d4ea; font-size: 12px; margin-top: 4px; }
.secure b { color: var(--cyan); }
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding: 8px 0 50px; align-items: start; }
.dash-side {
  background: rgba(8, 12, 22, 0.85); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
}
.dash-user { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.dash-avatar {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 12px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #ff2d4a, #2b8cff);
}
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar { width: 88px; height: 88px; font-size: 22px; flex: 0 0 88px; }
.profile-photo { display: flex; gap: 16px; align-items: center; margin: 16px 0; }
.dash-link {
  display: block; width: 100%; text-align: left; margin: 0 0 6px; padding: 10px 12px;
  border-radius: 10px; border: 0; background: transparent; color: var(--muted);
  font: inherit; cursor: pointer; text-decoration: none;
}
.dash-link.on, .dash-link:hover { background: rgba(255, 45, 74, 0.16); color: #fff; }
.dash-main {
  background: rgba(8, 12, 22, 0.78); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.dash-head h2 { margin-bottom: 4px; font-size: 22px; }
.dash-sub { margin: 22px 0 12px; font-size: 15px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.dash-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.dash-link.comm-side {
  display: flex; align-items: center; gap: 8px;
}
.comm-ico {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; flex: 0 0 22px; background: rgba(255,255,255,.06);
}
.comm-ico.wa { color: #25d366; }
.comm-ico.dc { color: #5865f2; }
.comm-arrow { margin-left: auto; color: #8b95a8; font-size: 14px; }
iframe { width: 100%; min-height: 280px; border: 0; border-radius: 12px; margin-top: 12px; }
@media (max-width: 800px) {
  .dash, .dash-grid { grid-template-columns: 1fr; }
}
.admin-dash { padding-top: 8px; }
.admin-compact { margin: 16px 0 18px; }
.admin-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; align-items: start; }
.admin-prod { padding: 10px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-prod.is-editing { grid-column: 1 / -1; }
.admin-prod img, .admin-prod-ph {
  width: 100%; height: 140px; object-fit: contain; border-radius: 10px; margin: 0;
  background: #0a0c12; display: block;
}
.admin-prod-bar { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.admin-prod-bar h3 {
  flex: 1; min-width: 0; font-size: 14px; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-prod-bar .btn { margin: 0; padding: 6px 12px; flex: 0 0 auto; }
.admin-prod .admin-edit { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.prod-editor { gap: 12px; }
.prod-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-items: stretch;
}
.prod-fields .dash-field {
  display: flex; flex-direction: column; min-width: 0; margin: 0;
}
.prod-fields .dash-field input,
.prod-fields .dash-field select,
.prod-fields .dash-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
}
.prod-fields .dash-field textarea { resize: vertical; min-height: 42px; }
.prod-fields .dash-field input[type="file"] { padding: 8px 10px; }
.plan-block { margin-top: 2px; min-width: 0; }
.plan-toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; font-size: 13px;
}
.plan-toolbar .btn { margin-left: auto; padding: 6px 10px; font-size: 12px; }
.plan-head, .plan-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 0.75fr) 32px;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.plan-head-create, .plan-row-create {
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
}
.plan-head {
  color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding: 0 8px;
}
.plan-row {
  margin: 0 0 6px; padding: 8px;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.2);
}
.plan-row input { width: 100%; min-width: 0; height: 38px; padding: 8px 10px; font-size: 13px; }
.plan-meta { font-size: 11px; text-align: center; white-space: nowrap; }
.plan-x {
  border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0;
  width: 32px; height: 32px;
}
.plan-x:hover { color: #ff5a73; }
.cat-actions { display: flex; gap: 8px; margin-top: 4px; }
.asset-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.asset-card { padding: 12px; }
.asset-bar { display: flex; align-items: center; gap: 12px; }
.asset-thumb {
  width: 52px; height: 52px; border-radius: 10px; object-fit: contain; flex: 0 0 52px;
  background: #0a0c12; border: 1px solid var(--line);
}
.asset-meta { flex: 1; min-width: 0; }
.asset-meta h3 { margin: 0 0 2px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-meta .muted { font-size: 12px; }
.asset-bar .btn { flex: 0 0 auto; margin: 0; padding: 7px 14px; }
.asset-edit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.asset-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.asset-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.asset-line input, .asset-line .btn { margin: 0; }
.asset-upload, .prod-extras { margin-top: 12px; }
.prod-tutorial, .prod-download-link, .asset-upload, .prod-extras { gap: 6px; }
.client-info { margin-top: 8px; white-space: pre-wrap; line-height: 1.5; color: var(--text); }
@media (max-width: 800px) {
  .admin-prod-grid, .prod-fields, .asset-cols { grid-template-columns: 1fr; }
  .plan-head { display: none; }
  .plan-row, .plan-row-create {
    grid-template-columns: 1fr 1fr;
  }
  .plan-row .plan-x { grid-column: 2; justify-self: end; }
  .asset-line { grid-template-columns: 1fr; }
}
