:root {
  --navy: #071d34;
  --ink: #121826;
  --muted: #667085;
  --line: #d8e2ee;
  --soft: #f4f8fc;
  --lime: #a8ff1a;
  --blue: #0b78d0;
}

* {
  box-sizing: border-box;
}

body.system-body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.system-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px clamp(20px, 4vw, 58px);
  background: rgba(7, 29, 52, 0.96);
  color: #fff;
  backdrop-filter: blur(14px);
}

.system-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 950;
  line-height: 0.98;
  text-decoration: none;
}

.system-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.system-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.system-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.system-hero {
  padding: clamp(80px, 12vw, 145px) clamp(22px, 6vw, 86px) 76px;
  background:
    linear-gradient(120deg, rgba(7, 29, 52, 0.98), rgba(7, 29, 52, 0.72)),
    url("./assets/pnr-court-01.jpg") center / cover;
  color: #fff;
}

.system-hero h1 {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(42px, 8vw, 100px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.system-hero p {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.58;
}

.system-section {
  padding: clamp(58px, 8vw, 100px) clamp(22px, 6vw, 86px);
}

.system-section.alt {
  background: var(--soft);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.system-hero .eyebrow {
  color: var(--lime);
}

.system-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.system-head h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.system-head p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.system-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-card {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.system-card.dark {
  color: #fff;
  background: var(--navy);
  border-color: rgba(255, 255, 255, 0.08);
}

.system-card span {
  display: inline-flex;
  min-width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--lime);
  color: #071d34;
  font-weight: 950;
}

.system-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.14;
}

.system-card p,
.system-card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.system-card.dark p,
.system-card.dark li {
  color: rgba(255, 255, 255, 0.78);
}

.system-card ul,
.system-card ol {
  margin: 14px 0 0;
  padding-left: 20px;
}

.system-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.system-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.system-table th,
.system-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.system-table th {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.system-table td:first-child {
  font-weight: 950;
}

.system-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  background: var(--navy);
  color: #fff;
}

.system-action p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.system-button,
.system-action a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--lime);
  color: #071d34;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.system-note {
  padding: 22px 24px;
  border-left: 6px solid var(--lime);
  background: #eef6ff;
  color: #334155;
  line-height: 1.7;
}

.application-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.application-tabs button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.application-tabs button.is-active {
  border-color: var(--lime);
  background: var(--lime);
  color: #071d34;
}

.application-panel {
  display: none;
}

.application-panel.is-active {
  display: block;
}

.application-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
}

.application-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 850;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.application-form textarea {
  min-height: 120px;
  resize: vertical;
}

.application-file-field span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.application-form input[type="file"] {
  padding: 10px 13px;
}

.application-form .full {
  grid-column: 1 / -1;
}

.application-form button {
  justify-self: start;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--navy);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.application-form button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.application-consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: #344054;
  line-height: 1.55;
}

.application-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.application-result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #b7eb8f;
  background: #f6ffed;
  color: #235a16;
  font-weight: 850;
  line-height: 1.6;
}

.application-admin {
  display: none !important;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.application-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.application-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.application-admin-actions button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.application-list {
  display: grid;
  gap: 10px;
}

.application-record {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.application-record strong {
  display: block;
}

.application-record span,
.application-record small {
  color: var(--muted);
}

.system-footer {
  padding: 34px clamp(22px, 6vw, 86px);
  background: #06182b;
  color: rgba(255, 255, 255, 0.74);
}

.system-footer strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .system-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .system-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .system-head {
    display: block;
  }

  .system-grid,
  .system-grid.two {
    grid-template-columns: 1fr;
  }

  .system-action {
    display: block;
  }

  .system-action a {
    margin-top: 18px;
  }

  .system-table {
    display: block;
    overflow-x: auto;
  }

  .application-form {
    grid-template-columns: 1fr;
  }

  .application-record {
    grid-template-columns: 1fr;
  }
}
