:root {
  --navy: #062b50;
  --navy-2: #031a34;
  --lime: #5f9f57;
  --lime-2: #9dd98f;
  --blue: #3f8f44;
  --dark: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f4f7fb;
  --white: #ffffff;
  --danger: #ef4444;
  --shadow: 0 18px 45px rgba(5, 20, 45, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  background:
    radial-gradient(circle at top left, rgba(95, 159, 87, .18), transparent 32%),
    linear-gradient(135deg, #eef9ec 0%, #f7fbf2 44%, #e8f5e5 100%);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration: none;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 7s ease-in-out infinite alternate;
}

.orb-one {
  width: 170px;
  height: 170px;
  background: rgba(95, 159, 87, .28);
  top: 10%;
  left: 4%;
}

.orb-two {
  width: 240px;
  height: 240px;
  background: rgba(6, 43, 80, .18);
  bottom: 9%;
  right: 2%;
  animation-delay: 1.5s;
}

@keyframes floatOrb {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-28px) scale(1.06); }
}

.app-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: rgba(2, 10, 20, .52);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 29;
  width: min(84vw, 320px);
  height: 100vh;
  padding: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  box-shadow: -18px 0 42px rgba(5, 20, 45, .22);
  transform: translateX(102%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  display: grid;
  gap: 18px;
}

.side-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--lime);
  font-weight: 900;
}

.side-drawer h3 {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: 26px;
  line-height: .96;
}

.drawer-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(6, 43, 80, .08);
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.drawer-nav {
  display: grid;
  gap: 10px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(6, 43, 80, .08);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .05);
}

.drawer-nav a[href="admin/login.php"] {
  background: linear-gradient(135deg, var(--navy), var(--lime));
  color: var(--white);
}

.drawer-note {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(95, 159, 87, .10);
  color: var(--navy);
  font-size: 13px;
  line-height: 1.6;
}

body.drawer-open .drawer-backdrop {
  opacity: 1;
  visibility: visible;
}

body.drawer-open .side-drawer {
  transform: translateX(0);
}

body.drawer-open {
  overflow: hidden;
}

.screen {
  display: none;
  min-height: 100vh;
  background: var(--white);
  animation: pageEnter .48s cubic-bezier(.2, .8, .2, 1);
}

.screen.active {
  display: block;
}

.screen-transition {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background:
    linear-gradient(135deg, rgba(3, 26, 52, .96), rgba(5, 79, 117, .82)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .2), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(157, 217, 143, .28), transparent 18%);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.screen-transition::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 28px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
  transform: translateX(-18%) scale(1.02);
  opacity: .65;
}

.screen-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: translateX(-140%);
}

.screen-transition span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 132px;
  height: 132px;
  margin: -66px 0 0 -66px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 0 0 16px rgba(255, 255, 255, .06), 0 0 44px rgba(255, 255, 255, .2);
  opacity: 0;
  transform: scale(.58);
}

.screen-transition.active {
  opacity: 1;
  visibility: visible;
}

.screen-transition.active::after {
  animation: transitionSweep .58s ease;
}

.screen-transition.active span {
  animation: transitionPulse .58s ease;
}

@keyframes transitionSweep {
  from { transform: translateX(-140%); }
  to { transform: translateX(140%); }
}

@keyframes transitionPulse {
  0% {
    opacity: 0;
    transform: scale(.58);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.32);
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateX(30px) scale(.985);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

.hero {
  position: relative;
  min-height: 430px;
  padding: 22px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 26, 52, .70), rgba(3, 26, 52, .94)),
    radial-gradient(circle at 70% 25%, rgba(95, 159, 87, .35), transparent 20%),
    linear-gradient(135deg, #031a34, #083967);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 25%, rgba(255,255,255,.08) 26%, transparent 27% 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 60px);
  opacity: .55;
}

.hero::after {
  content: "";
  position: absolute;
  left: -45px;
  right: -45px;
  bottom: -70px;
  height: 150px;
  background: var(--white);
  transform: rotate(-4deg);
  border-radius: 50% 50% 0 0;
}

.topbar,
.hero-content,
.runner-card {
  position: relative;
  z-index: 2;
}

.landing-step {
  opacity: 0;
  transform: translateY(16px) scale(.98);
  animation: landingRise .72s cubic-bezier(.2, .8, .2, 1) forwards;
}

.step-1 { animation-delay: .08s; }
.step-2 { animation-delay: .18s; }
.step-3 { animation-delay: .28s; }
.step-4 { animation-delay: .40s; }
.step-5 { animation-delay: .50s; }
.step-6 { animation-delay: .60s; }
.step-7 { animation-delay: .70s; }
.step-8 { animation-delay: .82s; }
.step-9 { animation-delay: .92s; }
.step-10 { animation-delay: 1.00s; }
.step-11 { animation-delay: 1.08s; }
.step-12 { animation-delay: 1.16s; }
.step-13 { animation-delay: 1.24s; }
.step-14 { animation-delay: 1.34s; }
.step-15 { animation-delay: 1.46s; }
.step-16 { animation-delay: 1.56s; }

@keyframes landingRise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.98);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.topbar,
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
  padding: 4px 10px;
  background: rgba(255,255,255,.95);
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(255,255,255,.95);
}

.brand.mini .brand-logo {
  height: 18px;
  padding: 3px 6px;
}

.brand.center {
  justify-content: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lime), var(--lime-2));
  color: var(--navy);
  font-weight: 950;
  box-shadow: 0 12px 25px rgba(95, 159, 87, .25);
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: .82;
  letter-spacing: -1px;
  font-style: italic;
}

.brand small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.78);
}

.brand.mini .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 12px;
}

.brand.mini h1 {
  font-size: 16px;
}

.brand.mini small {
  font-size: 8px;
}

.icon-btn,
.back-btn {
  border: 0;
  background: rgba(255,255,255,.13);
  color: inherit;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 22px;
  backdrop-filter: blur(8px);
}

.back-btn {
  position: absolute;
  top: 18px;
  left: 16px;
  z-index: 10;
  background: rgba(6, 43, 80, .06);
  color: var(--navy);
}

.back-btn.inline {
  position: static;
  background: transparent;
  font-size: 30px;
}

.hero-content {
  margin-top: 54px;
  max-width: 280px;
}

.badge {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .9px;
  color: var(--lime-2);
  background: rgba(255,255,255,.08);
}

.hero-content h2 {
  margin: 15px 0 12px;
  font-size: 33px;
  line-height: .98;
  letter-spacing: -1.4px;
  text-transform: uppercase;
}

.hero-content h2 span {
  color: var(--lime-2);
}

.hero-content p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  line-height: 1.7;
}

.runner-card {
  position: absolute;
  right: 26px;
  bottom: 60px;
  width: 130px;
  height: 160px;
}

.runner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  animation: runPulse 1.8s ease-in-out infinite;
}

.runner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.55));
}

.runner-glow {
  position: absolute;
  inset: 24px 10px 14px;
  border-radius: 50%;
  background: var(--lime);
  filter: blur(35px);
  opacity: .35;
}

@keyframes runPulse {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-10px); }
}

.primary-btn,
.outline-btn,
.link-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  box-shadow: 0 14px 28px rgba(6, 43, 80, .24);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(6, 43, 80, .30);
}

.primary-btn:active,
.outline-btn:active,
.link-btn:active {
  transform: scale(.98);
}

.full {
  width: 100%;
}

.outline-btn {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
}

.link-btn {
  display: block;
  margin: 8px auto 0;
  background: transparent;
  color: var(--navy);
  text-decoration: underline;
  box-shadow: none;
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple span.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transform: scale(0);
  animation: ripple .62s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.content {
  padding: 22px;
}

.content.no-top {
  padding-top: 14px;
}

.section-title {
  margin: 4px 0 14px;
  text-align: center;
}

.section-title h3,
.page-subtitle {
  margin: 0;
  color: var(--navy-2);
  font-size: 18px;
  letter-spacing: -.2px;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.mini-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: 14px;
  margin: 0 auto 24px;
  max-width: 360px;
}

.mini-card {
  min-height: 132px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
  transition: .25s ease;
}

.mini-card:hover {
  transform: translateY(-5px);
}

.mini-card.featured {
  border-color: rgba(95, 159, 87, .8);
  box-shadow: 0 14px 26px rgba(95, 159, 87, .20);
}

.mini-card span {
  display: block;
  font-size: 28px;
}

.mini-card span img {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  object-fit: contain;
}

.mini-card b {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 19px;
}

.mini-card small {
  display: block;
  color: var(--muted);
  min-height: 28px;
  font-size: 10px;
  text-transform: uppercase;
}

.mini-card strong {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 9px;
}

.facility-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.facility-row div {
  display: grid;
  place-items: center;
  gap: 7px;
  color: var(--navy);
}

.facility-row span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--soft);
  font-size: 21px;
}

.facility-row small {
  font-size: 10px;
  color: var(--muted);
}

.about-card,
.info-box,
.summary-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.about-card {
  padding: 18px;
  text-align: center;
}

.about-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal .7s ease forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-footer {
  padding: 22px;
  margin-bottom: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navy-2);
  color: var(--white);
  font-size: 12px;
}

.mobile-footer span {
  color: rgba(255,255,255,.66);
}

.sticky-cta {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 18px 18px;
  display: grid;
  gap: 10px;
  background: linear-gradient(to top, rgba(255,255,255,.98), rgba(255,255,255,.78), transparent);
  z-index: 20;
}

.sticky-cta button,
.hero-content button {
  width: 100%;
}

.success-code {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(95, 159, 87, .10);
  color: var(--navy-2);
  font-size: 13px;
  line-height: 1.5;
}

.success-code strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.history-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.history-result {
  margin-top: 16px;
}

.history-result .history-empty,
.history-result .history-error {
  padding: 16px;
  border-radius: 18px;
  background: var(--white);
  border: 1px dashed var(--line);
  color: var(--muted);
}

.history-result .result-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.auth-hero {
  padding: 80px 24px 22px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(95, 159, 87, .22), transparent 35%),
    linear-gradient(180deg, #05294d 0%, #062b50 78%, #fff 78%);
  color: var(--white);
}

.auth-hero h2 {
  margin: 42px 0 4px;
  color: var(--dark);
}

.auth-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tab-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 22px;
  margin-top: 8px;
}

.auth-card {
  margin: 16px 22px 26px;
  padding: 22px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
  text-align: center;
}

.auth-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.google-login-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.google-status {
  margin-top: 14px;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}

.tab {
  border: 0;
  background: transparent;
  padding: 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab.active {
  color: var(--navy);
  border-color: var(--navy);
}

.form-card {
  margin: 16px 22px 26px;
  padding: 18px;
}

.form-card.clean {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.form-card label {
  display: block;
  margin: 13px 0 7px;
  font-size: 13px;
  font-weight: 750;
  color: #293548;
}

.form-card label small {
  color: var(--muted);
  font-weight: 500;
}

input,
select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: var(--white);
  transition: border .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 117, 189, .11);
}

.password-wrap {
  position: relative;
}

.password-wrap span {
  position: absolute;
  right: 12px;
  top: 13px;
  color: var(--muted);
}

.right-link {
  display: block;
  text-align: right;
  margin: 8px 0 16px;
  font-size: 12px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.social-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social-row button {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  font-weight: 950;
  font-size: 18px;
}

.bottom-text {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.page-head {
  height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.page-head h2 {
  margin: 0 auto;
  padding-right: 42px;
  color: var(--navy-2);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .5px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 16px 18px 12px;
  gap: 5px;
}

.step {
  display: grid;
  justify-items: center;
  gap: 6px;
  position: relative;
  color: var(--muted);
  font-size: 9px;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 62%;
  width: 75%;
  height: 1px;
  background: var(--line);
}

.step b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.step.active b,
.step.done b {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.step.done b {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--navy);
}

.step.active span,
.step.done span {
  color: var(--navy);
  font-weight: 800;
}

.category-list {
  display: grid;
  gap: 14px;
  margin: 14px 0 18px;
}

.category-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px auto 22px;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.category-card input {
  display: none;
}

.category-card.selected {
  border-color: var(--lime);
  box-shadow: 0 14px 30px rgba(95, 159, 87, .18);
  transform: translateY(-2px);
}

.category-illus {
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-size: 42px;
}

.category-illus img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.category-illus.green {
  background: #def0d9;
}

.category-illus.blue {
  background: #dbf1dd;
}

.category-illus.dark {
  background: #e8edf5;
}

.category-card h4 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 14px;
}

.category-card ul {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.category-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy-2);
  font-size: 12px;
}

.icon-credit {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.icon-credit a {
  color: inherit;
  text-decoration: underline;
}

.radio-dot {
  width: 18px;
  height: 18px;
  border: 1px solid #a7b0bd;
  border-radius: 50%;
}

.category-card.selected .radio-dot {
  border: 5px solid var(--navy);
}

.info-box {
  margin-top: 16px;
  padding: 15px;
  background: #f8fafc;
}

.payment-note {
  display: grid;
  gap: 10px;
}

.payment-note p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.payment-note label {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-2);
}

.info-box b {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 13px;
}

.info-box ul,
.info-box ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.radio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.radio-row label,
.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 8px 0 !important;
  font-weight: 600 !important;
  color: var(--muted) !important;
}

.radio-row input,
.check-row input {
  width: auto;
  height: auto;
}

.check-row {
  align-items: flex-start !important;
  font-size: 12px !important;
  line-height: 1.5;
}

.summary-card {
  padding: 17px;
  margin-bottom: 18px;
}

.summary-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
}

.summary-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}

.summary-card div:last-child {
  border-bottom: 0;
}

.summary-card span {
  color: var(--muted);
}

.summary-card b {
  text-align: right;
  color: var(--navy-2);
}

.payment-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
}

.payment-method {
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  text-align: left;
  transition: .22s ease;
}

.payment-method.active {
  border-color: var(--lime);
  background: #fbfff0;
  transform: translateX(4px);
}

.payment-method.manual {
  border-color: rgba(95, 159, 87, .2);
}

.payment-method.manual.active {
  background: rgba(95, 159, 87, .12);
}

.payment-method span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--soft);
}

.payment-method b {
  display: block;
  font-size: 13px;
  color: var(--navy-2);
}

.payment-method small {
  color: var(--muted);
  font-size: 11px;
}

.payment-method em {
  font-style: normal;
  color: var(--muted);
  font-size: 22px;
}

.timer-box {
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9e8, #fffdf5);
  text-align: center;
}

.timer-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.timer-box div {
  margin: 8px 0 2px;
  color: var(--navy-2);
  font-size: 31px;
  font-weight: 950;
  letter-spacing: 2px;
}

.timer-box small {
  color: var(--muted);
  font-size: 10px;
}

.payment-method small {
  color: var(--muted);
  font-size: 11px;
}

.manual-instructions {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(95, 159, 87, .08);
  color: var(--navy);
  font-size: 13px;
  line-height: 1.6;
}

.manual-instructions a {
  color: var(--navy);
  text-decoration: underline;
}

.manual-fallback-notice {
  display: none;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff8e8;
  border: 1px solid #f4d59f;
  color: #5d4a1f;
  font-size: 13px;
  line-height: 1.5;
}

.manual-fallback-notice.active {
  display: block;
}

.manual-wrap {
  padding: 28px 22px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(14, 50, 19, .08);
  margin: 24px 16px;
}

.manual-wrap h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.manual-wrap p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.manual-wa,
.manual-code {
  display: inline-block;
  width: 100%;
  padding: 14px 16px;
  margin: 0 0 16px;
  border-radius: 16px;
  background: #f5fff2;
  color: var(--navy);
  font-weight: 700;
  text-align: center;
}

.manual-code {
  background: #eef7e9;
}

.secure {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.success-wrap {
  padding: 42px 24px 18px;
  text-align: center;
}

.checkmark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fb863, #79d64f);
  color: var(--white);
  font-size: 42px;
  font-weight: 950;
  box-shadow: 0 18px 34px rgba(47, 184, 99, .24);
  animation: popIn .55s cubic-bezier(.25, 1.4, .35, 1);
}

@keyframes popIn {
  from { transform: scale(.35) rotate(-20deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.success-wrap h2 {
  margin: 0 0 6px;
  color: var(--navy-2);
}

.success-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.bib-label {
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 900;
  font-size: 12px;
}

.bib-card {
  padding: 16px;
  border-radius: 20px;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(95, 159, 87, .45), transparent 26%),
    linear-gradient(135deg, #062b50, #031a34);
  box-shadow: var(--shadow);
}

.bib-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.bib-top b {
  color: var(--lime-2);
}

.bib-number {
  margin-top: 18px;
  font-size: 62px;
  line-height: .9;
  font-weight: 950;
  letter-spacing: -2px;
  text-align: center;
}

.bib-name {
  width: 82%;
  margin: 12px auto 0;
  padding: 8px;
  border-radius: 9px;
  background: var(--lime);
  color: var(--navy);
  text-align: center;
  font-weight: 950;
  text-transform: uppercase;
}

.barcode-box {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  background: var(--white);
}

.barcode-box b {
  color: var(--navy-2);
  font-size: 13px;
}

.barcode {
  width: 88%;
  height: 82px;
  margin: 14px auto 8px;
  background:
    repeating-linear-gradient(
      90deg,
      #111 0 3px,
      transparent 3px 6px,
      #111 6px 8px,
      transparent 8px 13px,
      #111 13px 17px,
      transparent 17px 21px
    );
}

.barcode-box strong {
  display: block;
  color: var(--navy-2);
}

.important {
  background: #f8fbff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  width: min(92%, 390px);
  padding: 14px 16px;
  border-radius: 15px;
  background: var(--navy-2);
  color: var(--white);
  box-shadow: var(--shadow);
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: .28s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.desktop-trust {
  position: relative;
  z-index: 2;
  width: min(100%, 950px);
  margin: 18px auto 0;
  padding: 18px 24px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 24px 24px 0 0;
}

.desktop-trust div {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 8px;
  align-items: center;
}

.desktop-trust span {
  grid-row: span 2;
  font-size: 24px;
}

.desktop-trust b {
  font-size: 12px;
  text-transform: uppercase;
}

.desktop-trust small {
  color: rgba(255,255,255,.70);
  font-size: 11px;
}

@media (min-width: 760px) {
  body {
    padding-top: 28px;
  }

  .app-shell {
    border-radius: 28px;
    min-height: calc(100vh - 76px);
  }

  .screen {
    min-height: calc(100vh - 76px);
  }

  .desktop-trust {
    display: grid;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-shell {
    width: 100%;
    max-width: 430px;
    box-shadow: none;
  }

  .screen {
    display: none !important;
  }

  #success {
    display: block !important;
  }

  .primary-btn,
  .outline-btn,
  .link-btn,
  .desktop-trust,
  .toast,
  .info-box {
    display: none !important;
  }
}
