:root {
  color-scheme: dark;
  --page: #101923;
  --panel: #1B2938;
  --picked: #213B56;
  --line: #2b3b4c;
  --blue: #278CFF;
  --muted: #aebbc8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: var(--page);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible { outline: 2px solid #8bc4ff; outline-offset: 3px; }
[hidden] { display: none !important; }
.shop { max-width: 440px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.brand img { border-radius: 50%; border: 1px solid var(--line); object-fit: cover; }
h1 { margin: 24px 0 8px; font-size: 32px; line-height: 1.08; letter-spacing: -.045em; font-weight: 800; }
.subtitle { margin: 0 0 22px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.section-label { margin: 0 0 8px; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.recipient { min-height: 54px; padding: 0 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.recipient-state { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.recipient-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(145deg, #bf75f4, #854cdd); font-size: 17px; font-weight: 700; object-fit: cover; flex: none; }
.recipient-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.recipient-remove { position: relative; width: 36px; height: 44px; margin-left: auto; border: 0; padding: 0; background: radial-gradient(circle at center, #536477 14px, transparent 14.5px); flex: none; }
.recipient-remove::before, .recipient-remove::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%) rotate(45deg); }
.recipient-remove::after { transform: translate(-50%, -50%) rotate(-45deg); }
.friend-input { min-width: 0; width: 100%; height: 38px; border: 0; background: transparent; color: #fff; font-size: 16px; }
.friend-input::placeholder { color: var(--muted); }
.recipient-restore { min-height: 44px; border: 0; border-radius: 8px; background: transparent; color: #8bc4ff; padding: 0 8px; font-size: 13px; font-weight: 650; }
.help { margin: 7px 0 20px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.packages { padding: 0; margin: 0; border: 0; min-width: 0; }
.packages legend { padding: 0; }
.package-list { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.package { position: relative; min-height: 51px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s ease; }
.package:last-child { border-bottom: 0; }
.package:has(input:checked) { background: var(--picked); box-shadow: inset 3px 0 var(--blue); }
.package:has(input:focus-visible) { outline: 2px solid #8bc4ff; outline-offset: -3px; }
.package-radio { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star { color: #FFB629; font-size: 22px; line-height: 1; width: 23px; flex: none; }
.package-amount { font-size: 14px; font-weight: 700; white-space: nowrap; }
.discount { background: #267edb; padding: 4px 5px; border-radius: 5px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.package-price { margin-left: auto; font-size: 13px; font-weight: 600; color: #d3dce6; white-space: nowrap; font-variant-numeric: tabular-nums; }
.purchase { width: 100%; min-height: 50px; margin-top: 19px; border: 0; border-radius: 11px; background: var(--blue); font-size: 15px; font-weight: 750; transition: filter .15s ease, transform .15s ease; }
.purchase:active { transform: scale(.99); filter: brightness(.92); }
.purchase:disabled { opacity: .65; cursor: wait; }
#purchase-status { text-align: center; font-size: 14px; }
#purchase-status p { margin: 16px 0 0; }
.error, .loading { padding: 18px; margin: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); font-size: 14px; line-height: 1.5; }
@media (max-width: 340px) {
  .shop { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 29px; }
  .package { gap: 7px; padding: 0 10px; }
  .package-amount { font-size: 12px; }
  .package-price { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
