:root {
  --bg0: #0b0e17;
  --bg1: #141a2e;
  --card: rgba(22, 28, 48, 0.82);
  --line: rgba(212, 175, 106, 0.35);
  --gold: #e8c878;
  --gold2: #c9a227;
  --text: #f3efe6;
  --muted: #a8a094;
  --ok: #5dcea0;
  --danger: #e07a7a;
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(201, 162, 39, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(80, 120, 220, 0.16), transparent 50%),
    linear-gradient(180deg, #0b0e17 0%, #121826 45%, #0b0e17 100%);
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1080px, 100% - 2rem);
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  background: var(--bg1) center/cover no-repeat;
  min-height: 280px;
  display: grid;
  align-items: end;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 18, 0.25) 0%, rgba(8, 10, 18, 0.55) 45%, rgba(8, 10, 18, 0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.5rem 1.5rem;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1408;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-weight: 700;
}

h1 {
  margin: 0.7rem 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
  text-decoration: none !important;
  color: #1a1408;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn-play {
  background: linear-gradient(135deg, #f0d78c, #c9a227);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
  min-width: 9.5rem;
}

.btn-apk {
  background: linear-gradient(135deg, #7ddea8, #3fa876);
  color: #062416;
}

.btn-ipa {
  background: linear-gradient(135deg, #d0d6e8, #8b95b0);
  color: #151a28;
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem 1.35rem;
  backdrop-filter: blur(10px);
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--gold);
}

.card p.lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.dl-row {
  display: grid;
  gap: 0.75rem;
}

.dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dl-item .meta strong { display: block; font-size: 1rem; }
.dl-item .meta span { color: var(--muted); font-size: 0.85rem; }

.pay-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  align-items: start;
}

@media (max-width: 520px) {
  .pay-layout { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pay-fields { width: 100%; }
}

.qr-box {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid rgba(232, 200, 120, 0.55);
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-box .qr-fallback {
  color: #333;
  font-size: 0.78rem;
  padding: 0.6rem;
  text-align: center;
  line-height: 1.35;
}

.pay-fields {
  display: grid;
  gap: 0.55rem;
}

.field {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.92rem;
}

@media (max-width: 520px) {
  .field { grid-template-columns: 1fr; text-align: left; }
  .field button { width: 100%; }
}

.field label { color: var(--muted); }
.field code, .field .val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--text);
  word-break: break-all;
}

.btn-copy {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(232, 200, 120, 0.12);
  color: var(--gold);
  cursor: pointer;
}

.btn-copy:hover { background: rgba(232, 200, 120, 0.22); }

.note {
  margin-top: 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: rgba(232, 200, 120, 0.08);
  border: 1px dashed rgba(232, 200, 120, 0.35);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.foot {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  background: #1e2438;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  transition: 0.25s ease;
  z-index: 50;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
