:root {
  --navy: #0b1f3a;
  --navy-2: #123a6b;
  --ink: #142033;
  --muted: #5b6b7c;
  --copper: #c45c26;
  --copper-2: #a0471c;
  --teal: #1f8a8a;
  --bg: #f3f6fa;
  --card: #ffffff;
  --line: #d7e0ea;
  --ok: #15803d;
  --err: #b91c1c;
  --shadow: 0 18px 50px rgba(11, 31, 58, .12);
  --radius: 18px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Sora", "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(31,138,138,.16), transparent 55%),
    radial-gradient(900px 420px at -10% 0%, rgba(196,92,38,.12), transparent 50%),
    linear-gradient(180deg, #eef3f8 0%, var(--bg) 40%, #e8eef5 100%);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: var(--copper); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11,31,58,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 70px;
}
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--copper), #e08a4f);
  color: #fff; font-family: var(--display); font-size: .72rem; font-weight: 800;
  letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-size: 1rem; }
.brand-text small { color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 1rem; }
.site-nav a { color: rgba(255,255,255,.88); font-weight: 700; text-decoration: none; font-size: .92rem; }
.site-nav a:hover { color: #fff; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.1); padding: 10px 9px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px;
}

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; border-radius: 999px; padding: .9rem 1.35rem;
  background: linear-gradient(135deg, var(--copper), var(--copper-2));
  color: #fff !important; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 28px rgba(196,92,38,.28);
  text-decoration: none !important; font-family: inherit; font-size: .95rem;
}
.btn:hover { filter: brightness(1.05); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-outline {
  background: transparent; color: var(--navy) !important;
  border: 1.5px solid var(--navy); box-shadow: none;
}
.btn-outline:hover { background: rgba(11,31,58,.05); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(11,31,58,.94), rgba(18,58,107,.88) 55%, rgba(196,92,38,.55)),
    radial-gradient(circle at 80% 20%, rgba(31,138,138,.45), transparent 40%),
    #0b1f3a;
  color: #fff; padding: 3.5rem 0 4rem;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px; opacity: .35; pointer-events: none;
  animation: gridDrift 18s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 0; }
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  display: inline-block; letter-spacing: .14em; text-transform: uppercase;
  font-size: .72rem; font-weight: 800; color: #9fd8d8; margin-bottom: .85rem;
}
.hero h1 {
  font-family: var(--display); font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.12; margin: 0 0 .85rem; letter-spacing: -.02em;
}
.hero p { margin: 0 0 1.5rem; color: rgba(255,255,255,.88); font-size: 1.05rem; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .btn-outline { color: #fff !important; border-color: rgba(255,255,255,.55); }

.section { padding: 2.5rem 0; }
.section h2 {
  font-family: var(--display); font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 .5rem; color: var(--navy);
}
.section-lead { color: var(--muted); margin: 0 0 1.5rem; max-width: 40rem; }

.card {
  background: var(--card); border: 1px solid rgba(11,31,58,.08);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.35rem;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.fee-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.fee-table th, .fee-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.fee-table th { background: #f7fafc; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.fee-table tr:last-child td { border-bottom: 0; }

.form-card { max-width: 820px; margin: 1.5rem auto 2.5rem; }
.steps {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.step-pill {
  padding: .4rem .75rem; border-radius: 999px; background: #e8eef5;
  color: var(--muted); font-size: .8rem; font-weight: 800;
}
.step-pill.active { background: var(--navy); color: #fff; }
.step-pill.done { background: rgba(21,128,61,.12); color: var(--ok); }

label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .35rem; color: var(--navy); }
.hint { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; margin-top: .25rem; }
.field { margin-bottom: 1rem; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: .8rem .9rem; font: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,138,138,.15);
}
.field textarea { min-height: 90px; resize: vertical; }
.req::after { content: " *"; color: var(--err); }
.type-cards { display: grid; gap: .75rem; }
.type-card {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem;
  cursor: pointer; background: #fff; transition: .15s ease;
}
.type-card:hover { border-color: var(--teal); }
.type-card.active {
  border-color: var(--copper); background: rgba(196,92,38,.06);
  box-shadow: 0 0 0 3px rgba(196,92,38,.12);
}
.type-card strong { display: block; color: var(--navy); margin-bottom: .2rem; }
.type-card span { color: var(--muted); font-size: .88rem; }
.type-card input { position: absolute; opacity: 0; pointer-events: none; }

.summary-box {
  background: linear-gradient(180deg, #f8fafc, #eef4f8);
  border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem;
}
.summary-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem;
}
.summary-row:last-child { border-bottom: 0; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.meta-list { display: grid; gap: .65rem; }
.meta-list div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem .85rem; background: #f7f9fc; border-radius: 10px; font-size: .95rem;
}
.meta-list strong { color: var(--navy); text-align: right; }
.ok { color: var(--ok); font-weight: 800; }
.err { color: var(--err); font-weight: 700; }
.flash {
  margin: 1rem auto; width: min(1100px, calc(100% - 2rem));
  padding: .85rem 1rem; border-radius: 12px; font-weight: 700;
}
.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.site-footer {
  margin-top: 3rem; background: var(--navy); color: rgba(255,255,255,.85); padding: 2rem 0;
}
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer p { margin: .4rem 0 0; color: rgba(255,255,255,.65); font-size: .92rem; }
.footer-links { display: flex; gap: 1rem; align-items: flex-start; }
.footer-links a { color: #fff; }

/* Admin */
.admin-body { background: #edf1f6; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-aside {
  background: var(--navy); color: #fff; padding: 1.25rem 1rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.admin-brand { font-family: var(--display); font-weight: 800; letter-spacing: .04em; padding: .5rem; }
.admin-aside nav { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.admin-aside a {
  color: rgba(255,255,255,.85); text-decoration: none; padding: .65rem .75rem;
  border-radius: 10px; font-weight: 700;
}
.admin-aside a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-user { font-size: .85rem; color: rgba(255,255,255,.7); padding: .5rem; }
.admin-main { padding: 1.25rem 1.5rem 2rem; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-top h1 { margin: 0; font-family: var(--display); font-size: 1.45rem; color: var(--navy); }
.admin-nav-toggle { display: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat {
  background: #fff; border-radius: 14px; padding: 1rem 1.1rem;
  border: 1px solid rgba(11,31,58,.08); box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 1.6rem; color: var(--navy); font-family: var(--display); }
.stat span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.table-wrap { overflow: auto; background: #fff; border-radius: 14px; border: 1px solid rgba(11,31,58,.08); }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th, .data-table td { padding: .75rem .85rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .9rem; }
.data-table th { background: #f7fafc; color: var(--navy); position: sticky; top: 0; }
.badge {
  display: inline-flex; padding: .2rem .55rem; border-radius: 999px;
  font-size: .75rem; font-weight: 800;
}
.badge-paid { background: #dcfce7; color: #166534; }
.badge-pending { background: #fff7ed; color: #9a3412; }
.badge-failed { background: #fee2e2; color: #991b1b; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 140px; flex: 1; }
.filters .btn { align-self: end; }

@media (max-width: 900px) {
  .grid-3, .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-aside {
    position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw);
    transform: translateX(-105%); transition: transform .2s ease; z-index: 50;
  }
  .admin-aside.open { transform: translateX(0); }
  .admin-nav-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; left: 1rem; right: 1rem; top: 74px;
    background: #102744; border-radius: 14px; padding: 1rem;
    flex-direction: column; align-items: stretch; gap: .35rem;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .7rem .6rem; border-radius: 10px; }
  .site-nav a:hover { background: rgba(255,255,255,.06); }
  .grid-2, .grid-3, .stat-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 3rem; }
  .meta-list div { flex-direction: column; }
  .meta-list strong { text-align: left; }
}
