:root {
  --navy: #0f2f56;
  --navy-2: #123a63;
  --blue: #2f7fc1;
  --blue-dark: #1a5f9e;
  --heading: #17496f;
  --ink: #22323f;
  --muted: #64748b;
  --bg: #e8ecf0;
  --card: #ffffff;
  --line: #e2e8ee;
  --shadow-sm: 0 1px 2px rgba(15, 47, 86, .06), 0 4px 12px rgba(15, 47, 86, .06);
  --shadow-md: 0 2px 6px rgba(15, 47, 86, .08), 0 16px 36px rgba(15, 47, 86, .14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(180deg, #eef1f4 0%, var(--bg) 32%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e6ebf0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
}

.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark svg { width: 100%; height: 100%; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-am {
  font-size: 15px;
  font-weight: 700;
  color: #123a63;
  letter-spacing: .2px;
}

.brand-en {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #6b7f92;
}

/* ---------- hero ---------- */
.hero-wrap { padding: 26px 0 6px; }

.hero {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.hero-track {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #0c2b4c;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity .55s ease;
}

.slide.is-active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 46%;
  background: linear-gradient(to bottom, rgba(6, 16, 28, .72), rgba(6, 16, 28, 0));
  pointer-events: none;
}

.slide figcaption {
  position: absolute;
  top: 22px;
  right: 24px;
  left: auto;
  bottom: auto;
  z-index: 2;
  max-width: 42%;
  text-align: right;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 20, 40, .7);
}

.slide-role {
  display: block;
  font-family: var(--sans);
  font-size: clamp(14px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .2px;
}

.slide-name {
  display: block;
  margin-top: 4px;
  font-size: clamp(12px, 1.25vw, 16px);
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, .9);
}

.slide figcaption h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: clamp(15px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: .2px;
}

.slide figcaption a {
  font-size: clamp(10px, 1.1vw, 13px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  padding-bottom: 2px;
}

.slide figcaption a span { margin-left: 4px; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: #33475b;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transition: background .2s, color .2s;
  z-index: 3;
}

.hero-arrow:hover { background: #fff; color: var(--navy); }
.hero-arrow svg { width: 15px; height: 15px; }
.hero-arrow.is-prev { left: 22px; }
.hero-arrow.is-next { right: 22px; }

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 2px;
}

.hero-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9d3dc;
  cursor: pointer;
  transition: background .2s, width .2s, border-radius .2s;
}

.hero-dots button.is-active {
  width: 16px;
  border-radius: 4px;
  background: #6f8497;
}

/* ---------- sections ---------- */
.section { padding: 46px 0 0; }
.section--tight { padding-top: 42px; }

.section-title {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 23px);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: .2px;
}

.section-title--serif {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 30px);
  color: var(--navy-2);
}

.center { text-align: center; }

/* ---------- news ---------- */
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
  justify-items: center;
}

.news-card {
  display: flex;
  width: 100%;
  max-width: 650px;
  height: 300px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-card > a {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.news-thumb {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #0c2b4c;
  container-type: inline-size;
}

.news-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 16, 28, .62), rgba(6, 16, 28, .28));
  pointer-events: none;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-card:hover .news-thumb img { transform: scale(1.03); }

.news-headline {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  max-width: none;
  padding: 6%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(15px, 4.6cqw, 29px);
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 15, 30, .8);
}

.news-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #111;
  color: #d6dde4;
  padding: 8px 18px;
  font-size: 10.5px;
  letter-spacing: .9px;
}

.news-meta svg { width: 14px; height: 14px; color: #9fb0c0; }

/* ---------- video player ---------- */
.player {
  position: relative;
  background: #121417;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(9, 18, 30, .28);
  aspect-ratio: 16 / 5;
  min-height: 170px;
  display: grid;
  place-items: center;
}

.player::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 50% 40%, #23272d 0%, #14171b 55%, #0e1013 100%);
}

.player-play {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .13);
  color: #e9eef3;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.player-play:hover { background: rgba(255, 255, 255, .22); transform: scale(1.04); }
.player-play svg { width: 18px; height: 18px; }

.player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .72) 100%);
  color: #cfd8e1;
}

.player-btn {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  opacity: .85;
}

.player-btn:hover { opacity: 1; }
.player-btn svg { width: 16px; height: 16px; }

.player-time {
  font-size: 10.5px;
  letter-spacing: .4px;
  color: #b9c5d1;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.player-time .sep { opacity: .6; }

.player-progress {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
  overflow: hidden;
}

.player-progress .fill {
  display: block;
  height: 100%;
  width: 0;
  background: #dfe8f1;
  transition: width .3s linear;
}

.player.is-playing .ic-play,
.player .ic-pause { display: none; }
.player.is-playing .ic-pause { display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 30px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-blue { background: var(--blue); box-shadow: 0 2px 8px rgba(47, 127, 193, .35); }
.btn-blue:hover { background: #2a72ae; }

.btn-navy { background: var(--navy-2); box-shadow: 0 2px 8px rgba(18, 58, 99, .35); }
.btn-navy:hover { background: #0e3055; }

#elMISPlayer + .center { margin-top: 18px; }

/* ---------- map ---------- */
.map-card {
  background: #fff;
  border-radius: 6px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
}

.map-card img {
  width: 100%;
  max-width: 660px;
  height: auto;
}

/* ---------- faq ---------- */
.faq-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  padding: 6px;
}

.faq-item + .faq-item { border-top: 1px solid #e6ebf0; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 14px;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: #2b3d4d;
  text-align: left;
  cursor: pointer;
}

.faq-q svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: #8b9aa8;
  transition: transform .25s ease, color .2s;
}

.faq-item.is-open .faq-q svg { transform: rotate(45deg); color: var(--blue); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-a p {
  margin: 0;
  padding: 0 14px 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 88%;
}

/* ---------- code ---------- */
.section--code { padding-top: 54px; }

.code-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  padding: 26px 20px 22px;
  display: grid;
  place-items: center;
}

.code-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.code-inputs {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}

.code-inputs input {
  width: 38px;
  height: 44px;
  border: 0;
  border-radius: 3px;
  background: #2f2f2f;
  color: #fff;
  text-align: center;
  font-size: 18px;
  font-family: var(--sans);
  outline: none;
  caret-color: #8fd0f5;
  transition: box-shadow .15s, background .15s;
}

.code-inputs input:focus {
  background: #1f2b35;
  box-shadow: 0 0 0 2px rgba(47, 127, 193, .55);
}

.code-form .btn-navy { min-width: 128px; height: 32px; }

.code-msg {
  margin: -6px 0 0;
  min-height: 14px;
  font-size: 11.5px;
  color: #2c7a4b;
}

.code-msg.is-error { color: #b23b3b; }

/* ---------- ministry banner ---------- */
.section--banner { padding-top: 48px; }

.ministry-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #cfdbe6;
  border-radius: 8px;
  padding: 22px 26px;
}

.banner-mark { width: 40px; height: 40px; flex: none; }
.banner-mark svg { width: 100%; height: 100%; }

.banner-text { flex: 1; }

.banner-text h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--navy-2);
}

.banner-text p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 54px;
  background: var(--navy);
  color: #cfdceb;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 42px 0 34px;
}

.brand--footer {
  justify-content: flex-start;
  padding: 0 0 16px;
}

.brand--footer .brand-am { color: #fff; font-size: 14px; }
.brand--footer .brand-en { color: #9db6cf; }

.footer-brand p {
  margin: 0;
  max-width: 430px;
  font-size: 12px;
  line-height: 1.8;
  color: #a9c0d6;
}

.footer-contact h4 {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f3d07a;
  letter-spacing: .2px;
}

.footer-contact ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
  color: #f0e2b4;
}

.footer-contact li svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 2px;
  color: #f3d07a;
}

.socials { display: flex; gap: 10px; }

.socials a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #cfdceb;
  transition: background .2s, color .2s;
}

.socials a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.socials svg { width: 14px; height: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .12);
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
}

.footer-links a { color: #a9c0d6; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-bottom p {
  margin: 0;
  font-size: 11px;
  color: #8ea8c1;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .news-grid { gap: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero-wrap { padding-top: 16px; }
  .hero { padding: 8px; }
  .hero-arrow { width: 24px; height: 24px; }
  .hero-arrow.is-prev { left: 14px; }
  .hero-arrow.is-next { right: 14px; }
  .hero-track { aspect-ratio: 4 / 3; }
  .slide figcaption { top: 14px; right: 14px; left: auto; bottom: auto; max-width: 70%; }
  .section { padding-top: 36px; }
  .news-grid { gap: 14px; }
  .news-card { height: 240px; }
  .news-meta { padding: 7px 12px; }
  .player { aspect-ratio: 16 / 8; }
  .player-time, .player-bar .player-btn:last-child { display: none; }
  .map-card { padding: 14px; }
  .ministry-banner { flex-wrap: wrap; padding: 18px; }
  .banner-text { flex-basis: 100%; order: 3; }
  .banner-text p { max-width: none; }
  .ministery-banner .btn { margin-left: auto; }
  .code-inputs input { width: 34px; height: 40px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- admin ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body.is-locked { overflow: hidden; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--navy);
  border: 1px solid #cfdae4;
  border-radius: 4px;
  padding: 11px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.btn-ghost:hover { background: #f2f6fa; border-color: #b9c9d7; }

.admin-fab {
  position: fixed;
  right: 22px;
  left: auto;
  bottom: 22px;
  z-index: 70;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(15, 47, 86, .14);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.admin-fab svg { width: 18px; height: 18px; }
.admin-fab:hover { background: var(--navy); color: #fff; transform: translateY(-2px) rotate(35deg); }
.admin-fab:focus-visible { outline: 3px solid rgba(47, 127, 193, .45); outline-offset: 3px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 28, 48, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.modal[hidden] { display: none; }

.modal-card {
  width: 100%;
  max-width: 372px;
  padding: 28px 26px 22px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(4, 18, 34, .38);
  text-align: center;
  animation: modal-in .22s ease both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.modal-card.is-shaking { animation: modal-shake .38s ease; }

@keyframes modal-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.modal-lock {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #eaf3fb;
  color: var(--blue-dark);
}

.modal-lock svg { width: 24px; height: 24px; }

.modal-card h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
}

.modal-card > p {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.modal-card input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #ced9e2;
  border-radius: 5px;
  background: #fbfcfd;
  font: inherit;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--ink);
}

.modal-card input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 127, 193, .16);
}

.modal-msg {
  min-height: 16px;
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #b03a3a;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.modal-actions .btn { flex: 1; padding: 12px 10px; }

.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow-y: auto;
  background: #eef2f6;
  padding: 34px 20px 60px;
}

.admin-panel[hidden] { display: none; }

.admin-panel-inner { max-width: 1040px; margin: 0 auto; }

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d9e2ea;
}

.admin-eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #6a8299;
}

.admin-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  color: var(--navy);
}

.admin-head-actions { display: flex; align-items: center; gap: 10px; }

.admin-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #cfdae4;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.admin-close svg { width: 18px; height: 18px; }
.admin-close:hover { background: var(--navy); color: #fff; }

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  gap: 28px;
  align-items: start;
}

/* registration card — mirrors the ID record layout */
.reg-card {
  width: 100%;
  padding: 32px 26px 26px;
  background: #fff;
  border: 2px solid #2f6fb0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 47, 86, .1);
}

.reg-photo {
  position: relative;
  display: block;
  width: 138px;
  height: 168px;
  margin: 0 auto 30px;
  padding: 3px;
  border: 2px solid #1f6fb2;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.reg-photo img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.reg-photo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: #f4f8fc;
  color: #7e97ad;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.reg-photo-empty svg { width: 26px; height: 26px; }

.reg-photo--empty { cursor: default; }

.reg-photo:focus-visible { outline: 3px solid rgba(47, 127, 193, .4); outline-offset: 2px; }

.reg-rows { display: grid; }

.reg-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed #d9e2ea;
}

.reg-row:last-child { border-bottom: 0; }

.reg-label {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #1f6fb2;
  text-align: right;
}

.reg-row input,
.reg-row select {
  width: 100%;
  padding: 5px 2px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font: inherit;
  font-size: 13.5px;
  color: #22323f;
}

.reg-row input::placeholder { color: #9aa9b6; }

.reg-row input:focus,
.reg-row select:focus {
  outline: none;
  background: #f4f9fd;
  box-shadow: inset 0 -2px 0 var(--blue);
}

.reg-country { display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 8px; }

.reg-elmis { position: relative; display: flex; align-items: center; }

.reg-elmis input { padding-right: 26px; }

.reg-dart {
  position: absolute;
  right: 2px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.reg-dart svg { width: 16px; height: 16px; }

.reg-dart:hover { color: var(--blue-dark); background: #e8f2fb; transform: translateY(-50%) scale(1.15); }
.reg-dart:active { transform: translateY(-50%) scale(.92); }
.reg-dart:focus-visible { outline: 2px solid rgba(47, 127, 193, .5); outline-offset: 1px; }

.reg-dart.is-spinning svg { animation: dart-spin .5s ease; }

@keyframes dart-spin {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(200deg) scale(1.2); }
  to { transform: rotate(360deg) scale(1); }
}

.reg-code {
  text-transform: uppercase;
  color: #7c8b99 !important;
  font-size: 12px !important;
}

.reg-status {
  width: auto !important;
  padding: 5px 16px !important;
  border: 1px solid #b8e3c6 !important;
  border-radius: 999px !important;
  background: #e6f6ec !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #2b7a4b !important;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}

.reg-status.is-pending { background: #fff5e0 !important; border-color: #f0d9a8 !important; color: #8a6414 !important; }
.reg-status.is-rejected { background: #fdeaea !important; border-color: #f3c2c2 !important; color: #a53636 !important; }

.reg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed #d9e2ea;
}

.reg-actions .btn { padding: 12px 24px; }

.reg-hint {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
}

.reg-msg {
  min-height: 16px;
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #2b7a4b;
}

.reg-msg.is-error { color: #b03a3a; }

.reg-msg.is-success {
  padding: 10px 12px;
  border: 1px solid #b8e3c6;
  border-radius: 4px;
  background: #eef8f2;
  line-height: 1.5;
}

/* saved records */
.admin-side h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--navy);
}

.reg-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 2px;
}

.reg-list { display: grid; gap: 16px; }

.reg-list-empty {
  padding: 22px;
  border: 1px dashed #c9d6e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .6);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.reg-list-empty.is-error {
  border-color: #e3bcbc;
  background: #fdf4f4;
  color: #b03a3a;
}

.reg-delete[disabled] { opacity: .45; }

.reg-view {
  position: relative;
  padding: 20px 18px 16px;
  background: #fff;
  border: 2px solid #2f6fb0;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(15, 47, 86, .08);
}

.reg-view .reg-photo { width: 96px; height: 118px; margin-bottom: 16px; cursor: default; }

.reg-view .reg-row { grid-template-columns: 132px minmax(0, 1fr); gap: 10px; padding: 7px 0; }
.reg-view .reg-label { font-size: 11.5px; }
.reg-value { font-size: 12.5px; color: #22323f; overflow-wrap: anywhere; }
.reg-value .cc { margin-left: 5px; font-size: 10.5px; color: #7c8b99; }

.status-pill {
  display: inline-block;
  padding: 4px 15px;
  border: 1px solid #b8e3c6;
  border-radius: 999px;
  background: #e6f6ec;
  font-size: 11.5px;
  font-weight: 600;
  color: #2b7a4b;
}

.status-pill.is-pending { background: #fff5e0; border-color: #f0d9a8; color: #8a6414; }
.status-pill.is-rejected { background: #fdeaea; border-color: #f3c2c2; color: #a53636; }

.reg-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #f2f6fa;
  color: #7b8fa1;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.reg-delete:hover { background: #fdeaea; color: #b03a3a; }

/* ---------- public registration record page ---------- */
.record-page { padding: 28px 0 60px; }

.record-page .container { max-width: 680px; }

.record-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-dark);
}

.record-back:hover { text-decoration: underline; }

.record-title {
  margin: 14px 0 6px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--navy);
}

.record-sub { margin: 0 0 22px; font-size: 13px; color: var(--muted); }

.record-sub strong {
  font-size: 14px;
  letter-spacing: 2px;
  color: #1f6fb2;
}

.record-state {
  max-width: 540px;
  margin: 0 auto;
  padding: 22px;
  border: 1px dashed #c9d6e1;
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.record-state.is-error {
  border-color: #e3bcbc;
  background: #fdf4f4;
  color: #b03a3a;
}

.record-state a { color: var(--blue-dark); font-weight: 600; text-decoration: underline; }

.record-card {
  max-width: 540px;
  margin: 0 auto;
  padding: 26px 24px 20px;
}

.record-attachment {
  max-width: 540px;
  margin: 18px auto 0;
  padding: 8px;
  border: 1px solid #dfe6ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(9, 18, 30, .07);
}

.record-attachment img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* receipt upload */
.receipt-card {
  max-width: 540px;
  margin: 18px auto 0;
  padding: 22px 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(9, 18, 30, .1);
}

.receipt-title {
  margin: 0 0 16px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #12294a;
}

.receipt-drop {
  padding: 16px;
  border: 1px dashed #b9c6d3;
  border-radius: 7px;
  background: #f7f9fb;
}

.receipt-help {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #6d7c8a;
}

.receipt-choose {
  display: inline-block;
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: #12305a;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease;
}

.receipt-choose:hover { background: #0d2444; }

.receipt-file {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #8a98a6;
  overflow-wrap: anywhere;
}

.receipt-file.is-chosen { color: #12294a; font-weight: 600; }

.receipt-submit {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  border: 0;
  border-radius: 6px;
  background: #12305a;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease;
}

.receipt-submit:hover { background: #0d2444; }

.receipt-msg {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: #2b7a4b;
}

.receipt-msg.is-error { color: #b03a3a; }

.record-card .reg-photo { width: 132px; height: 160px; margin-bottom: 22px; cursor: default; }
.record-card .reg-photo--empty { cursor: default; }
.record-card .reg-row { grid-template-columns: 172px minmax(0, 1fr); gap: 12px; padding: 9px 0; }
.record-card .reg-label { font-size: 12.5px; }
.record-card .reg-value { font-size: 13.5px; }

.record-foot {
  padding: 24px 20px 36px;
  border-top: 1px solid #dfe6ec;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 600px) {
  .record-title { font-size: 22px; }
  .record-card { padding: 22px 16px 16px; }
  .record-card .reg-row { grid-template-columns: 118px minmax(0, 1fr); gap: 10px; }
  .record-card .reg-label { font-size: 11px; }
  .record-card .reg-photo { width: 118px; height: 143px; }
}

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-panel { padding: 24px 16px 50px; }
  .reg-card { padding: 26px 18px 22px; }
  .reg-row { grid-template-columns: 150px minmax(0, 1fr); gap: 10px; }
  .reg-label { font-size: 12px; }
}

@media (max-width: 600px) {
  .reg-row { grid-template-columns: 116px minmax(0, 1fr); }
  .reg-label { font-size: 11px; }
  .reg-view .reg-row { grid-template-columns: 104px minmax(0, 1fr); }
  .admin-head { flex-wrap: wrap; align-items: flex-start; }
  .admin-head h1 { font-size: 22px; }
  .admin-fab { right: 14px; left: auto; bottom: 14px; width: 36px; height: 36px; }
}

/* ---------- site logo ---------- */
.brand-logo { height: 44px; width: auto; }
.brand--footer .brand-logo { height: 38px; padding: 6px 8px; border-radius: 5px; background: #fff; }

@media (max-width: 600px) {
  .brand-logo { height: 36px; }
  .brand--footer .brand-logo { height: 32px; }
}
