:root {
  --bg: #07060a;
  --ink: #f6efe6;
  --muted: rgba(246, 239, 230, 0.62);
  --line: rgba(246, 239, 230, 0.12);
  --panel: rgba(18, 14, 18, 0.72);
  --accent: #e24a28;
  --accent-2: #f0a35a;
  --light: #f6efe6;
  --dark: #120e12;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
}

body {
  padding: 14px 16px calc(28px + env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(226, 74, 40, 0.28), transparent 58%),
    radial-gradient(700px 420px at 85% 18%, rgba(240, 163, 90, 0.16), transparent 55%),
    radial-gradient(600px 480px at 10% 80%, rgba(90, 20, 40, 0.35), transparent 60%),
    linear-gradient(180deg, #120a10 0%, #07060a 48%, #050407 100%);
}

#app {
  max-width: 460px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: center;
  padding: 4px 0 10px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd7a8, #e24a28 55%, #5a1018 100%);
  box-shadow: 0 0 12px rgba(226, 74, 40, 0.55);
}

.splash {
  text-align: center;
  padding: 8px 0 6px;
}

.splash-title {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 5.6vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.splash-title span {
  display: block;
}

#splash-sub {
  margin-top: 6px;
  color: var(--accent-2);
}

.hero-art {
  margin: 10px auto 8px;
  max-width: 100%;
  filter: drop-shadow(0 18px 40px rgba(226, 74, 40, 0.22));
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.splash-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.splash-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.block {
  margin-top: 22px;
}

.block h2, .panel h2 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.panel, .plan, .key {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.status, .pay {
  margin-top: 18px;
  padding: 16px;
}

.status .until {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.15rem;
}

.status .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.plans, .keys {
  display: grid;
  gap: 10px;
}

.plan, .key {
  padding: 14px 16px;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.plan:active, .key:active {
  transform: scale(0.99);
}

.plan .title, .key .title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.plan .sub, .key .sub, .muted {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.pay-actions {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn.light {
  background: var(--light);
  color: #1a1012;
}

.btn.accent {
  background: linear-gradient(135deg, #e24a28, #b4233a);
  color: #fff7f2;
  box-shadow: 0 10px 28px rgba(226, 74, 40, 0.28);
}

.btn.sbp {
  background: linear-gradient(135deg, #6c2bd9, #1f6feb);
  color: #f7f3ff;
  box-shadow: 0 10px 28px rgba(108, 43, 217, 0.28);
}

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

.toast, .error {
  position: sticky;
  bottom: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.toast {
  background: rgba(246, 239, 230, 0.92);
  color: #1a1012;
}

.error {
  background: rgba(226, 74, 40, 0.16);
  color: #ffb4a2;
  border: 1px solid rgba(226, 74, 40, 0.35);
}

[hidden] { display: none !important; }
