@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap');

:root {
  --bg: #0a0a10;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --muted: #9a9aa6;
  --orange: #ff7a1a;
  --orange-2: #ff5e00;
  --orange-3: #ffa14d;
  --orange-glow: rgba(255, 122, 26, 0.32);
  --green: #3fb950;
  --red: #f85149;
  --yellow: #e3b341;
  --radius: 18px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
  background-size: 34px 34px;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Animated background glow ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 12% -12%, rgba(255, 122, 26, 0.20), transparent 62%),
    radial-gradient(760px 540px at 108% 112%, rgba(255, 94, 0, 0.16), transparent 62%),
    radial-gradient(820px 620px at 50% 125%, rgba(255, 122, 26, 0.07), transparent 60%);
  filter: blur(30px);
  animation: aurora 16s ease-in-out infinite alternate;
}

@keyframes aurora {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4%, 3%) scale(1.08); }
}

a { color: var(--orange-3); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange); }

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.brand .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.4px;
}
.brand .name .accent {
  background: linear-gradient(135deg, var(--orange-3), var(--orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand .sub {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------- Card ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

h1, h2 { font-family: var(--font-head); }
h1 { font-size: 1.7rem; margin: 0 0 6px; letter-spacing: -0.5px; }
h2 { font-size: 1.15rem; margin: 0 0 18px; }

p.muted, .muted { color: var(--muted); }

/* ---------- Inputs ---------- */
label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.input::placeholder { color: #6b6b76; }
.input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.14);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--orange-3), var(--orange-2));
  box-shadow: 0 8px 24px var(--orange-glow);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  overflow: hidden;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 122, 26, 0.45);
  filter: brightness(1.06);
  text-decoration: none;
  color: #fff;
}
.btn:active { transform: translateY(0); }

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.btn:hover::after { left: 130%; }

.btn.block { width: 100%; }

.btn.ghost {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn.ghost:hover {
  border-color: var(--orange);
  color: var(--orange-3);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

/* ---------- Token box ---------- */
.token-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 12px;
  padding: 18px;
  font-family: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Consolas, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  color: var(--orange-3);
  word-break: break-all;
  margin: 14px 0;
  box-shadow: inset 0 0 30px rgba(255, 122, 26, 0.07);
  animation: reveal .6s ease both;
}

@keyframes reveal {
  from { opacity: 0; transform: scale(0.98); filter: blur(4px); }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* ---------- Alerts ---------- */
.alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.alert.warn  { background: rgba(227, 179, 65, 0.10); border: 1px solid rgba(227, 179, 65, 0.35); color: var(--yellow); }
.alert.error { background: rgba(248, 81, 73, 0.10); border: 1px solid rgba(248, 81, 73, 0.35); color: var(--red); }
.alert.ok    { background: rgba(63, 185, 80, 0.10); border: 1px solid rgba(63, 185, 80, 0.35); color: var(--green); }

/* ---------- File list ---------- */
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.25);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.file-list li:hover {
  transform: translateX(4px);
  border-color: var(--border-strong);
  background: rgba(0, 0, 0, 0.4);
}
.file-list li .icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-list li .name { font-weight: 500; }
.file-list li a.btn { padding: 10px 18px; font-size: 0.9rem; }

.file-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.file-pass {
  font-size: 0.8rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.file-pass code {
  color: var(--orange-3);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.8rem;
}
.mini-copy {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.72rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color .2s ease, border-color .2s ease;
}
.mini-copy:hover { color: var(--orange-3); border-color: var(--orange); }

:root { --orange-soft: rgba(255, 122, 26, 0.12); }

/* ---------- VIP / Pricing ---------- */
.vip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}

.vip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: left;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.vip-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(255, 122, 26, 0.15);
}
.vip-card .vip-left { flex: 1; min-width: 0; }
.vip-card .vip-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}
.vip-card .tier-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.vip-card .tier-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange-3);
  font-family: var(--font-head);
  line-height: 1;
}
.vip-card .tier-price span { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.tier-features { list-style: none; margin: 0; padding: 0; }
.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 2px 0;
}
.tier-features li::before { content: '▸'; color: var(--orange-3); flex: 0 0 auto; }
.vip-card.owned { border-color: rgba(63, 185, 80, 0.4); }
.owned-badge.rejected { color: var(--red); border-color: rgba(248, 81, 73, 0.4); }

.vip-reveal {
  flex-basis: 100%;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  animation: fadeUp .3s ease;
}
.reveal-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.reveal-row .input { flex: 1; }
.vip-card .owned-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

.addr-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 4px;
}
.addr-box .addr {
  flex: 1;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--orange-3);
  word-break: break-all;
}
.addr-box .btn { padding: 9px 14px; font-size: 0.85rem; flex: 0 0 auto; }

.pay-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 6px;
}

.amount-box {
  background: rgba(255, 122, 26, 0.08);
  border: 1px solid rgba(255, 122, 26, 0.3);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.amount-value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--orange-3);
}

.qr-wrap { margin: 4px 0 16px; }
.qr-img {
  display: block;
  margin: 12px auto 0;
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}

.file-list li.locked { opacity: 0.65; }
.file-list li.locked .lock-badge {
  font-size: 0.72rem;
  color: var(--yellow);
  border: 1px solid rgba(227, 179, 65, 0.4);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
}
.status-pill.vip { color: var(--orange-3); border-color: rgba(255, 122, 26, 0.4); }
.status-pill.warn { color: var(--yellow); border-color: rgba(227, 179, 65, 0.4); }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
.modal-box {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: #12121c;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: fadeUp .3s ease;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.modal-head h2 { margin: 0; }
.modal-x {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.7rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
  transition: color .2s ease;
}
.modal-x:hover { color: var(--text); }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.currency-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.currency-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color .2s ease, background .2s ease;
}
.currency-btn:hover { border-color: var(--orange); background: rgba(0, 0, 0, 0.5); }
.currency-btn::after { content: '→'; color: var(--orange-3); }

.buy-crypto { margin-top: 16px; }
.buy-crypto-links { display: flex; gap: 8px; flex-wrap: wrap; }

.notice-main {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.pending-box { text-align: center; padding: 20px 0; }
.pending-tier {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
}
.pending-status {
  color: var(--yellow);
  margin-top: 6px;
  font-size: 0.95rem;
}

.btn.pending {
  background: var(--surface-2);
  border: 1px solid rgba(227, 179, 65, 0.4);
  color: var(--yellow);
  box-shadow: none;
  cursor: default;
}
.btn.pending:hover { transform: none; box-shadow: none; filter: none; }
.btn.pending::after { display: none; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 14px;
}
.topbar h1 { margin: 0; }
.topbar .right { display: flex; gap: 10px; align-items: center; }

.badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt { margin-top: 16px; }
.hidden { display: none !important; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 20px 0;
}

/* ---------- Entrance animations ---------- */
.anim { animation: fadeUp .7s cubic-bezier(.16, 1, .3, 1) both; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .14s; }
.d3 { animation-delay: .23s; }
.d4 { animation-delay: .32s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .container { padding: 28px 16px 48px; }
  .card { padding: 24px; }
  h1 { font-size: 1.4rem; }
  .file-list li { flex-direction: column; align-items: flex-start; }
  .file-list li a.btn { width: 100%; }
  .vip-card { flex-direction: column; align-items: flex-start; }
  .vip-card .vip-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
}
