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

:root {
  --bg-0: #0a0e14;
  --bg-1: #0d1420;
  --bg-2: #111a28;
  --surface: rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text: #eef3f8;
  --muted: #8fa1b3;
  --muted-2: #62748a;
  --accent: #66c0f4;
  --accent-2: #4ce0c1;
  --accent-3: #8b7cff;
  --ok: #4ce0a0;
  --warn: #f4c464;
  --err: #ff6b6b;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 60px rgba(102,192,244,0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(102,192,244,0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(139,124,255,0.08), transparent 55%),
    var(--bg-0);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Manrope', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 100px;
}

/* ---------- header ---------- */

header.top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

header.top .logo {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(102,192,244,0.45);
  flex-shrink: 0;
}
header.top .logo svg { width: 24px; height: 24px; }

header.top h1 { font-size: 19px; margin: 0; font-weight: 700; }
header.top .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.badge-row { display: flex; gap: 8px; margin-left: auto; }
.flag-badge {
  font-size: 12px; padding: 6px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-weight: 500;
}

/* ---------- hero ---------- */

.hero { text-align: left; padding: 8px 4px 32px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--accent-2);
  background: rgba(76,224,193,0.10); border: 1px solid rgba(76,224,193,0.25);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}
.hero h2 {
  font-size: 38px; line-height: 1.12; margin: 0 0 14px; font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, #b9d4e8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin: 0; line-height: 1.6; font-size: 15.5px; max-width: 520px; }

/* ---------- card ---------- */

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-glow), 0 20px 50px -25px rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
}

label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted); margin: 0 0 8px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
label:not(:first-child) { margin-top: 22px; }

.input-wrap { position: relative; }
input[type=text], input[type=number] {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder { color: var(--muted-2); }
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(102,192,244,0.12);
  background: rgba(0,0,0,0.35);
}
.input-suffix {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); font-size: 14px; pointer-events: none;
}

.price-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border);
}
.price-row .label { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.price-row .amount {
  font-family: 'Manrope', sans-serif;
  font-size: 32px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

button.btn {
  width: 100%;
  margin-top: 24px;
  padding: 17px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #051018;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(102,192,244,0.55);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
button.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(102,192,244,0.65); }
button.btn:active:not(:disabled) { transform: translateY(0); }
button.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button.btn.secondary {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  box-shadow: none;
}
button.btn.secondary:hover { background: var(--surface-hover); }

.msg { margin-top: 14px; font-size: 13.5px; padding: 12px 14px; border-radius: var(--radius-sm); display: none; line-height: 1.5; }
.msg.show { display: block; }
.msg.err { background: rgba(255,107,107,.10); color: var(--err); border: 1px solid rgba(255,107,107,.2); }
.msg.ok { background: rgba(76,224,160,.10); color: var(--ok); border: 1px solid rgba(76,224,160,.2); }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 16px;
}
.step .num {
  width: 26px; height: 26px; border-radius: 8px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(102,192,244,0.12); color: var(--accent); font-size: 13px; font-weight: 700;
}
.step .title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.step .desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .hero h2 { font-size: 30px; }
}

/* ---------- status badge ---------- */

.status-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.status-badge .pulse { width: 7px; height: 7px; border-radius: 50%; }
.status-new { background: rgba(244,196,100,.12); color: var(--warn); }
.status-new .pulse { background: var(--warn); box-shadow: 0 0 0 0 rgba(244,196,100,.5); animation: pulse 1.8s infinite; }
.status-paid { background: rgba(102,192,244,.12); color: var(--accent); }
.status-paid .pulse { background: var(--accent); box-shadow: 0 0 0 0 rgba(102,192,244,.5); animation: pulse 1.8s infinite; }
.status-fulfilled { background: rgba(76,224,160,.12); color: var(--ok); }
.status-fulfilled .pulse { background: var(--ok); }
.status-failed { background: rgba(255,107,107,.12); color: var(--err); }
.status-failed .pulse { background: var(--err); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244,196,100,.45); }
  70% { box-shadow: 0 0 0 8px rgba(244,196,100,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,196,100,0); }
}

.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--muted); font-size: 13.5px; }
.detail-row .v { font-weight: 600; font-size: 14.5px; }

.footnote { color: var(--muted-2); font-size: 12.5px; margin-top: 28px; text-align: center; line-height: 1.6; }
.footnote a { color: var(--muted); }

/* ---------- admin table ---------- */

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; }
tr:hover td { background: var(--surface); }
.mini-btn {
  padding: 6px 12px; font-size: 12px; font-weight: 600; border-radius: 7px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); cursor: pointer; transition: all .12s ease;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(102,192,244,0.08); }

/* ---------- misc ---------- */

.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; margin: 30px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
