:root {
  --bg: #070e1a;
  --card: #101a2e;
  --card2: #15243f;
  --line: rgba(255,255,255,.09);
  --text: #f4f7fb;
  --muted: #8b9cb8;
  --blue: #3b82f6;
  --blue2: #2563eb;
  --gold: #f0c14b;
  --gold2: #ffd978;
  --ok: #34d399;
  --bad: #fb7185;
  --nav: 68px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Sora", "Manrope", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(90% 50% at 80% -5%, rgba(240,193,75,.16), transparent 55%),
    radial-gradient(80% 45% at 10% 0%, rgba(59,130,246,.22), transparent 50%),
    linear-gradient(180deg, #0d1730 0%, #0a1322 42%, #060c16 100%);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; border: 0; background: 0; outline: 0; }
button { cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hidden { display: none !important; }

.app {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 14px 16px calc(var(--nav) + 22px);
}

.top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.logo {
  font-family: var(--display);
  font-weight: 800; font-size: 1.05rem; letter-spacing: -.04em;
}
.logo i { font-style: normal; color: var(--gold); }
.top a {
  height: 34px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 700;
}

h1 {
  font-family: var(--display);
  font-size: 1.55rem; font-weight: 800; letter-spacing: -.04em;
  line-height: 1.15; margin-bottom: 8px;
}
.lead { color: var(--muted); line-height: 1.45; margin-bottom: 18px; max-width: 34ch; }
.block-title {
  font-family: var(--display);
  font-size: .95rem; font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 12px; color: #d7e0ef;
}

/* ── Home hero ── */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px 20px 22px;
  margin-bottom: 22px;
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(165deg, rgba(18,32,58,.55), rgba(8,14,26,.92) 55%),
    radial-gradient(120% 90% at 100% 0%, rgba(240,193,75,.22), transparent 48%);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  animation: hero-in .55s ease both;
}
.hero-glow {
  position: absolute; inset: -20% -10% auto auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,193,75,.35), transparent 68%);
  filter: blur(8px);
  animation: drift 7s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-orb {
  position: absolute; right: -18px; top: 18px;
  width: 150px; height: 150px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff6d0 0%, #f0c14b 28%, #c4841a 62%, transparent 72%);
  opacity: .92;
  filter: drop-shadow(0 12px 28px rgba(240,193,75,.35));
  animation: pulse 3.6s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb::after {
  content: "";
  position: absolute; inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.55), transparent 60%);
}
.hero-hi {
  position: relative; z-index: 1;
  color: var(--muted); font-size: .86rem; font-weight: 600; margin-bottom: 8px;
}
.hero-brand {
  position: relative; z-index: 1;
  font-family: var(--display);
  font-size: clamp(2.4rem, 11vw, 3.1rem);
  font-weight: 800; letter-spacing: -.06em; line-height: .95;
  margin-bottom: 12px;
}
.hero-brand span { color: var(--gold); }
.hero-lead {
  position: relative; z-index: 1;
  color: #b7c5db; font-size: .95rem; line-height: 1.45;
  max-width: 28ch; margin-bottom: 18px;
}
.hero-cta {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.35fr .9fr; gap: 10px;
  margin-bottom: 16px;
}
.btn-ghost {
  height: 48px; border-radius: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}
.hero-rate {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line);
  color: var(--muted); font-size: .86rem; font-weight: 600;
}
.hero-rate b {
  color: var(--gold2); font-family: var(--display); font-size: 1.05rem;
}
.home-block { margin-bottom: 18px; }
.home-pay {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; color: var(--muted); font-size: .8rem; font-weight: 600;
}
.home-pay-icons { display: flex; gap: 8px; }
.home-pay-icons img {
  width: 28px; height: 28px; border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.04) translateY(-4px); }
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-18px, 12px); }
}

.list { display: grid; gap: 12px; }
.item {
  display: flex; align-items: center; gap: 14px;
  min-height: 76px; padding: 14px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent), var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  transition: transform .15s ease, border-color .15s ease;
}
.item:active { transform: scale(.99); }
.ico {
  width: 48px; height: 48px; border-radius: 14px; overflow: hidden; flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(0,0,0,.28);
}
.body { flex: 1; min-width: 0; }
.body b { display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: -.02em; }
.body span { display: block; margin-top: 3px; color: var(--muted); font-size: .86rem; }
.chev { color: #6d7f9c; font-size: 1.2rem; }
.badge {
  font-size: .7rem; font-weight: 700; color: var(--bad);
  background: rgba(251,113,133,.12); padding: 5px 8px; border-radius: 999px;
}

.rate { margin-top: 14px; color: var(--muted); font-size: .88rem; }
.rate b { color: #fff; }

.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: 12px; border-radius: 14px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line);
}
.seg button {
  height: 40px; border-radius: 11px; font-weight: 700; color: var(--muted);
}
.seg button.on { background: rgba(255,255,255,.1); color: #fff; }
.who { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

.lbl {
  margin: 18px 0 10px; font-size: .7rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.field {
  width: 100%; height: 52px; padding: 0 15px; border-radius: 14px;
  background: rgba(0,0,0,.28); border: 1px solid var(--line);
  font-size: 1.08rem; font-weight: 700;
}
.field::placeholder { color: #667894; font-weight: 500; font-size: .95rem; }
.hint { margin-top: 8px; color: var(--muted); font-size: .84rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  height: 38px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  font-weight: 700; display: inline-flex; align-items: center; gap: 5px;
}
.chip.on { background: rgba(59,130,246,.18); border-color: rgba(59,130,246,.5); }
.chip em { font-style: normal; color: var(--gold); }

.pay {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: var(--card); box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.pay button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px; text-align: left; border-bottom: 1px solid var(--line);
}
.pay button:last-child { border-bottom: 0; }
.pico {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; overflow: hidden;
  background: transparent; padding: 0;
}
.pico img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pay .t { flex: 1; }
.pay .t b { display: block; }
.pay .t span { color: var(--muted); font-size: .8rem; }
.pay .sum { font-weight: 800; }

.break {
  margin-bottom: 14px; padding: 13px 14px; border-radius: 14px;
  background: rgba(251,113,133,.1); border: 1px solid rgba(251,113,133,.22);
  color: #fecdd3; line-height: 1.45; font-size: .92rem;
}

.profile {
  display: flex; gap: 14px; align-items: center;
  padding: 16px; border-radius: 20px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line);
}
.ava {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  display: grid; place-items: center; font-weight: 800;
  overflow: hidden; flex-shrink: 0; position: relative;
}
.ava img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ava.has-photo span { display: none; }
.profile b { display: block; }
.profile span { color: var(--muted); font-size: .9rem; }

.btn {
  height: 48px; border-radius: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
}
.btn-main {
  background: linear-gradient(180deg, #4b8dff, var(--blue2));
  box-shadow: 0 10px 24px rgba(37,99,235,.35);
}
.btn-soft { border: 1px solid var(--line); background: rgba(255,255,255,.04); margin-top: 10px; }
.btn.disabled, a.btn.disabled {
  opacity: .45; pointer-events: none;
}

.nav {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: min(390px, calc(100% - 20px)); height: var(--nav);
  display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 8px;
  border-radius: 20px; background: rgba(8,13,24,.94); border: 1px solid var(--line);
  backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(0,0,0,.45); z-index: 50;
}
.nav a {
  display: grid; place-items: center; gap: 3px; border-radius: 14px;
  color: var(--muted); font-size: .7rem; font-weight: 700;
}
.nav a.on { color: #fff; background: rgba(59,130,246,.16); }
.nav .ni { width: 20px; height: 20px; }

.page { display: none; animation: up .22s ease; }
.page.on { display: block; }
@keyframes up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plan.on { border-color: rgba(59,130,246,.45); }
.ok {
  font-size: .72rem; font-weight: 700; color: var(--ok);
  background: rgba(52,211,153,.12); padding: 5px 8px; border-radius: 999px;
}

.found {
  margin-top: 10px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
  display: flex; align-items: center; gap: 12px; min-height: 56px;
}
.found.ok { border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.found.bad { border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.08); }
.found.wait { color: var(--muted); }
.found .fa {
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  display: grid; place-items: center; font-weight: 800; position: relative;
}
.found .fa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.found .ft { flex: 1; min-width: 0; }
.found .ft b { display: block; font-size: .98rem; }
.found .ft span { color: var(--muted); font-size: .82rem; }
.found .mark { color: var(--ok); font-weight: 800; font-size: .85rem; white-space: nowrap; }

.pay button.busy { opacity: .55; pointer-events: none; }
.pay-box {
  margin-top: 14px; padding: 16px; border-radius: 18px;
  border: 1px solid rgba(59,130,246,.35); background: rgba(59,130,246,.1);
}
.pay-box b { display: block; margin-bottom: 6px; }
.pay-box p { color: var(--muted); font-size: .9rem; line-height: 1.45; margin-bottom: 12px; }
.pay-box .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem; word-break: break-all; color: #dbeafe;
  background: rgba(0,0,0,.28); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
}
.pay-box .btn { margin-top: 4px; }

.faq-link {
  display: inline-flex; margin-top: 18px;
  color: #9eb6d8; font-size: .9rem; font-weight: 700;
}

.block-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.block-row .block-title { margin: 0; }
.linkish {
  color: #8eb6ff; font-size: .82rem; font-weight: 700;
}

.ref-card {
  padding: 16px; border-radius: 20px; margin-bottom: 18px;
  background:
    linear-gradient(145deg, rgba(240,193,75,.12), transparent 55%),
    var(--card);
  border: 1px solid var(--line);
}
.ref-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ref-sum {
  font-family: var(--display);
  font-size: 1.55rem; letter-spacing: -.04em; color: var(--gold2);
}
.ref-pct {
  font-size: .78rem; font-weight: 800; color: var(--gold);
  background: rgba(240,193,75,.12); padding: 6px 10px; border-radius: 999px;
}
.ref-link-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.ref-field { font-size: .78rem !important; font-weight: 600 !important; height: 44px !important; }
.ref-copy { width: auto; padding: 0 14px; height: 44px; }

.orders { display: grid; gap: 10px; }
.order {
  padding: 14px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
}
.order-top {
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
  margin-bottom: 8px;
}
.order-top b { font-size: .95rem; }
.order-meta { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.order-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.order-actions .btn { width: auto; height: 38px; padding: 0 12px; font-size: .82rem; }
.st {
  font-size: .7rem; font-weight: 800; padding: 5px 8px; border-radius: 999px;
  white-space: nowrap;
}
.st-pending { color: #fbbf24; background: rgba(251,191,36,.12); }
.st-paid, .st-delivering { color: #60a5fa; background: rgba(96,165,250,.12); }
.st-completed { color: var(--ok); background: rgba(52,211,153,.12); }
.st-failed, .st-review, .st-expired, .st-cancelled { color: var(--bad); background: rgba(251,113,133,.12); }

.track {
  padding: 18px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line);
}
.steps { display: grid; gap: 0; margin: 18px 0 8px; }
.step {
  display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  position: relative; padding-bottom: 18px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 13px; top: 26px; bottom: 0;
  width: 2px; background: rgba(255,255,255,.08);
}
.step:last-child::before { display: none; }
.dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.15);
  color: var(--muted); font-size: .75rem; font-weight: 800;
  background: rgba(0,0,0,.25);
}
.step.on .dot { border-color: var(--blue); color: #fff; background: rgba(59,130,246,.25); }
.step.done .dot { border-color: var(--ok); color: #063; background: rgba(52,211,153,.25); }
.step.done::before { background: rgba(52,211,153,.35); }
.step b { display: block; font-size: .92rem; }
.step span { color: var(--muted); font-size: .8rem; }
.track-actions { display: grid; gap: 8px; margin-top: 16px; }

.faq { display: grid; gap: 10px; }
.faq-item {
  border-radius: 16px; border: 1px solid var(--line);
  background: var(--card); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 15px 16px; font-weight: 750; font-size: .95rem;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--muted); font-size: 1.2rem; font-weight: 600;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  padding: 0 16px 16px; color: var(--muted); font-size: .9rem; line-height: 1.5;
}

@media (max-width: 360px) {
  .hero { min-height: 300px; padding: 24px 16px 18px; }
  .hero-brand { font-size: 2.2rem; }
  .hero-cta { grid-template-columns: 1fr; }
  .ref-link-row { grid-template-columns: 1fr; }
}
