:root {
  --ink: #1a1a2e; --muted: #5b6474; --line: #e2e8f0; --brand: #ff6b00; --brand-ink: #c24f00;
  --tint: #fff8f2; --navy: #232f7a; --navy-deep: #1c1f4a; --logo-orange: #f7941d; --bg: #f6f7f9; --card: #fff; --ok: #0f7b4b; --bad: #c0262d;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: 620px; margin: 0 auto; padding: 24px 16px 56px; }
.wrap.wide { max-width: 1120px; }
/* Aviz Academy brand header and footer */
header.brand {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-bottom: 4px solid var(--logo-orange);
  border-radius: 12px; padding: 14px 20px; margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(28, 31, 74, .06);
}
.brand-logo { display: block; line-height: 0; }
.brand-logo img { height: 68px; width: auto; }
.brand-tag {
  font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep)); border-radius: 99px; padding: 6px 14px;
}
.page-title { font-size: 24px; margin: 0 0 16px; color: var(--navy-deep); }
.site-foot { text-align: center; margin-top: 32px; color: var(--muted); font-size: 13px; }
.site-foot img { height: 32px; width: auto; opacity: .85; }
.site-foot p { margin: 6px 0 0; }
.site-foot a { color: var(--navy); white-space: nowrap; }
@media (max-width: 480px) {
  header.brand { padding: 12px 14px; }
  .brand-logo img { height: 48px; }
  .brand-tag { font-size: 12px; padding: 5px 10px; }
}
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 16px; }
.panel h2 { font-size: 16px; margin: 0 0 12px; }
label.field { display: block; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=password], select {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; font-size: 16px;
  border: 1px solid #b8c1cc; border-radius: 7px; background: #fff; color: var(--ink);
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.choice input { margin-top: 4px; accent-color: var(--brand); }
.choice small { display: block; color: var(--muted); font-weight: 400; }
.price { font-weight: 700; }
button { font: inherit; cursor: pointer; border-radius: 7px; }
button.primary { width: 100%; padding: 13px; border: 0; background: var(--brand); color: #1a1a2e; font-weight: 700; }
button.primary:disabled, button.small:disabled { opacity: .55; cursor: wait; }
button.small { padding: 6px 10px; border: 1px solid #b8c1cc; background: #fff; color: var(--ink); font-size: 13px; }
button.small.go { background: var(--ok); border-color: var(--ok); color: #fff; }
button.small.stop { color: var(--bad); border-color: var(--bad); }
.detail { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.detail:last-of-type { border-bottom: 0; }
.detail span:first-child { color: var(--muted); }
.detail span:last-child { font-weight: 600; overflow-wrap: anywhere; text-align: right; }
.qr { display: block; max-width: 220px; width: 100%; margin: 12px auto; border-radius: 8px; }
.note { color: var(--muted); font-size: 14px; }
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 14px; }
.terms input { margin-top: 4px; accent-color: var(--brand); }
.terms a { color: var(--brand-ink); }
.msg { padding: 12px; border-radius: 8px; margin-bottom: 14px; font-size: 15px; }
.msg.error { background: #fdecec; color: #8f1a20; }
.msg.done { background: #e8f6ef; color: #0b5c38; }
[hidden] { display: none !important; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.toolbar label { font-size: 14px; font-weight: 600; }
.toolbar .end { margin-left: auto; }
.contents { display: contents; }
.center { text-align: center; }
.reset-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.reset-form label { flex: 1 1 220px; margin: 0; }
.fixed-amount { font-size: 22px; font-weight: 700; margin: 0; }
.fixed-amount small { display: block; font-size: 13px; font-weight: 400; color: #4A5568; margin-top: 4px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; }
td .sub { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
td.actions { white-space: nowrap; }
td.actions button { margin: 0 4px 4px 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef0f3; }
.badge.pending_review, .badge.needs_review { background: #fff0dd; color: #8a4b00; }
.badge.approved { background: #e8f6ef; color: #0b5c38; }
.badge.rejected, .badge.refunded { background: #fdecec; color: #8f1a20; }
#utr-field { margin-top: 16px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin-bottom: 16px; background: #e9ecf1; border-radius: 10px; }
.tabs label { position: relative; }
.tabs input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tabs span { display: block; text-align: center; padding: 10px 6px; border-radius: 7px; font-weight: 600; font-size: 15px; color: var(--muted); }
.tabs input:checked + span { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.tabs input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
#amount-field { margin-top: 12px; margin-bottom: 0; }
.overdue { color: var(--bad) !important; font-weight: 600; }
