/* PayRelay Sky UI — shared palette */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --alice-blue: #f0faff;
  --pale-sky: #d1f0ff;
  --icy-blue: #bdeaff;
  --frozen-lake: #99dfff;
  --frozen-lake-2: #75d3ff;
  --deep-sky-blue: #2abeff;
  --fresh-sky: #00a7ff;
  --bright-ocean: #0091eb;
  --sapphire-sky: #0074e0;
  --sapphire: #0056a8;

  --brand: var(--sapphire-sky);
  --brand-deep: var(--sapphire);
  --accent: var(--deep-sky-blue);
  --ink: #0a2540;
  --muted: #5a7390;
  --line: var(--icy-blue);
  --paper: var(--alice-blue);
  --surface: #ffffff;
  --success: #0d9488;
  --warn: #c2410c;
  --danger: #dc2626;
  --bkash: #E2136E;
  --nagad: #EA580C;
  --rocket: #7C3AED;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(0, 86, 168, 0.08);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  background:
    radial-gradient(1000px 480px at 8% -8%, rgba(42, 190, 255, 0.28), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(0, 116, 224, 0.16), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--alice-blue) 45%, var(--pale-sky) 100%);
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }

.shell { max-width: 1100px; margin: 0 auto; padding: 28px 20px 56px; }
.shell-narrow { max-width: 560px; margin: 0 auto; padding: 28px 20px 56px; }

.brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand span { color: var(--sapphire-sky); }

.sub { color: var(--muted); font-size: 14px; margin-top: 6px; max-width: 42ch; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--line); background: rgba(255,255,255,.8);
}
.chip.ok { color: var(--success); border-color: rgba(13,148,136,.35); background: rgba(13,148,136,.08); }
.chip.warn { color: var(--warn); border-color: rgba(194,65,12,.3); background: rgba(194,65,12,.08); }

.panel {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}
.panel h2 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.metric {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.metric label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.metric strong {
  display: block; margin-top: 8px;
  font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em;
  color: var(--sapphire);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px; padding: 12px 16px;
  background: linear-gradient(135deg, var(--fresh-sky), var(--sapphire-sky));
  color: #fff; font-weight: 700; font-size: 14px; cursor: pointer;
  font-family: var(--font-body); text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 116, 224, 0.25);
}
.btn:hover { filter: brightness(1.05); color: #fff; }
.btn.ghost {
  background: rgba(255,255,255,.7);
  color: var(--sapphire);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.block { width: 100%; }
.btn.danger {
  background: transparent; color: var(--danger);
  border: 1px solid rgba(220,38,38,.3); box-shadow: none;
  padding: 6px 10px; font-size: 12px;
}

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--muted); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font-size: 14px;
  outline: none; font-family: var(--font-body);
}
.field input:focus {
  border-color: var(--deep-sky-blue);
  box-shadow: 0 0 0 3px rgba(42, 190, 255, 0.25);
}

.table-wrap { overflow-x: auto; }
table.sky {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.sky th {
  text-align: left; padding: 10px 12px; font-size: 11px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.sky td {
  padding: 12px; border-bottom: 1px solid rgba(189, 234, 255, 0.7);
  vertical-align: middle;
}
.sky tr:last-child td { border-bottom: none; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700; color: var(--sapphire); font-size: 12.5px;
}
.amount { font-family: var(--font-display); font-weight: 700; color: var(--success); }
.status-ok { color: var(--success); font-weight: 700; font-size: 12px; }
.status-wait { color: var(--warn); font-weight: 700; font-size: 12px; }
.status-muted { color: var(--muted); font-weight: 700; font-size: 12px; }

.pill {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700;
}
.pill.bkash { background: rgba(226,19,110,.12); color: var(--bkash); }
.pill.nagad { background: rgba(234,88,12,.12); color: var(--nagad); }
.pill.rocket { background: rgba(124,58,237,.12); color: var(--rocket); }
.pill.generic { background: var(--pale-sky); color: var(--sapphire); }

.code {
  margin-top: 8px; background: #0a2540; color: var(--frozen-lake);
  border-radius: 12px; padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; word-break: break-all;
}

.note {
  background: rgba(0, 145, 235, 0.08);
  border: 1px solid rgba(0, 116, 224, 0.22);
  color: var(--sapphire);
  border-radius: 12px; padding: 12px 14px; font-size: 13px; margin-bottom: 14px;
}
.note.warn {
  background: rgba(194,65,12,.08);
  border-color: rgba(194,65,12,.25);
  color: #9a3412;
}
.note.ok {
  background: rgba(13,148,136,.08);
  border-color: rgba(13,148,136,.25);
  color: #0f766e;
}

.empty { text-align: center; color: var(--muted); padding: 36px 12px; font-size: 14px; }

.top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}

.nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding: 18px 0 8px;
  max-width: 1100px; margin: 0 auto; width: calc(100% - 40px);
}
.nav-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav-links a:hover { color: var(--sapphire); }

.hero {
  max-width: 1100px; margin: 0 auto; padding: 48px 20px 56px;
  min-height: calc(100vh - 88px); display: grid; align-content: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: -15% -5% auto auto;
  width: min(70vw, 620px); height: min(70vw, 620px);
  background:
    radial-gradient(circle at 40% 40%, rgba(42,190,255,.45), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(0,116,224,.22), transparent 50%);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(-4%, 6%) scale(1.08); }
}
.hero > * { position: relative; z-index: 1; }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sapphire-sky); margin-bottom: 16px;
  opacity: 0; animation: fadeUp .7s ease forwards .1s;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -.045em; line-height: 1.05; max-width: 11ch;
  margin-bottom: 16px; opacity: 0; animation: fadeUp .8s ease forwards .2s;
}
.hero .lead {
  font-size: clamp(16px, 2.2vw, 19px); color: var(--muted);
  max-width: 36ch; margin-bottom: 28px;
  opacity: 0; animation: fadeUp .8s ease forwards .35s;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  opacity: 0; animation: fadeUp .8s ease forwards .5s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.section { max-width: 1100px; margin: 0 auto; padding: 48px 20px; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -.03em; margin-bottom: 10px;
}
.section-lead { color: var(--muted); max-width: 48ch; margin-bottom: 24px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.feature {
  padding: 20px; border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  transition: transform .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--frozen-lake-2); }
.feature h3 { font-family: var(--font-display); font-size: 16px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.plan {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.plan.featured {
  border-color: var(--fresh-sky);
  box-shadow: 0 22px 50px rgba(0, 116, 224, 0.16);
  position: relative;
}
.plan.featured::after {
  content: 'Popular';
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 700; color: var(--sapphire);
  background: var(--pale-sky); padding: 4px 8px; border-radius: 999px;
}
.plan h3 { font-family: var(--font-display); font-size: 20px; }
.plan .price {
  font-family: var(--font-display); font-size: 34px; font-weight: 700;
  letter-spacing: -.03em; color: var(--sapphire);
}
.plan .price small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan .blurb { color: var(--muted); font-size: 14px; flex: 1; }
.plan ul { list-style: none; font-size: 13px; margin: 8px 0 14px; }
.plan ul li { margin-bottom: 6px; padding-left: 16px; position: relative; }
.plan ul li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--deep-sky-blue); position: absolute; left: 0; top: 7px;
}

.footer {
  max-width: 1100px; margin: 0 auto; padding: 28px 20px 48px;
  color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.admin-shell {
  display: grid; grid-template-columns: 240px 1fr; min-height: 100vh;
}
.admin-side {
  background: linear-gradient(180deg, var(--sapphire) 0%, #003d7a 100%);
  color: #e8f6ff; padding: 28px 20px; display: flex; flex-direction: column; gap: 28px;
}
.admin-side .brand { color: #fff; }
.admin-side .brand span { color: var(--frozen-lake); }
.admin-side .host { font-size: 11px; color: rgba(255,255,255,.65); margin-top: 4px; }
.admin-nav { display: flex; flex-direction: column; gap: 6px; }
.admin-nav a {
  color: rgba(255,255,255,.82); padding: 10px 12px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.12); color: #fff;
}
.admin-side .side-foot { margin-top: auto; font-size: 12px; color: rgba(255,255,255,.5); }
.admin-main { padding: 28px 28px 48px; max-width: 1200px; }
.admin-main h1 {
  font-family: var(--font-display); font-size: 26px; letter-spacing: -.03em;
}

.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.login-card {
  width: min(420px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
}

.hero-amount {
  text-align: center; padding: 22px 12px; margin-bottom: 16px;
  background: linear-gradient(180deg, rgba(0,167,255,.12), rgba(0,116,224,.04));
  border: 1px solid var(--line); border-radius: 16px;
}
.hero-amount small {
  display: block; text-transform: uppercase; letter-spacing: .08em;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.hero-amount .sum {
  margin-top: 6px; font-family: var(--font-display);
  font-size: 40px; font-weight: 700; color: var(--sapphire); letter-spacing: -.03em;
}

.key-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(16px, 3vw, 22px); font-weight: 700;
  background: #0a2540; color: var(--frozen-lake);
  padding: 16px 18px; border-radius: 12px; word-break: break-all; margin: 14px 0;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 20px 16px 40px; }
  .hero { min-height: auto; padding-top: 36px; }
}
