:root {
  --nvidia-green: #76b900;
  --nvidia-green-dark: #3f8d00;
  --ink: #111315;
  --muted: #687078;
  --line: #dfe4e7;
  --surface: #ffffff;
  --page: #edf1f3;
  --warning: #f2b705;
  --blue: #2f6fed;
  --danger: #c8372d;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100%;
  margin: 0;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(118, 185, 0, 0.08), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(47, 111, 237, 0.08), transparent 28%),
    var(--page);
}

.pass-panel {
  position: relative;
  width: min(100%, 460px);
  min-height: calc(100vh - 28px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px 0;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(30deg, transparent 0 34px, rgba(17, 19, 21, 0.035) 35px 36px),
    var(--surface);
  box-shadow: 0 22px 60px rgba(17, 19, 21, 0.18);
}

.pass-panel::after {
  content: "ACCESS";
  position: absolute;
  right: -16px;
  top: 128px;
  z-index: 0;
  color: rgba(17, 19, 21, 0.045);
  font-size: 84px;
  font-weight: 900;
  letter-spacing: 0;
  transform: rotate(90deg);
  pointer-events: none;
}

.top-strip {
  position: absolute;
  right: 0;
  top: 0;
  width: 42%;
  height: 32px;
  background: linear-gradient(90deg, var(--nvidia-green), var(--nvidia-green-dark));
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
}

.brand-bar,
.status-hero,
.plate-panel,
.lookup-form,
.detail-grid,
.vehicle-block {
  position: relative;
  z-index: 1;
}

.brand-bar {
  display: grid;
  gap: 4px;
  align-items: start;
  justify-items: start;
  padding-top: 0;
  margin-top: -15px;
}

.brand-logo {
  display: block;
  width: min(156px, 48vw);
  height: auto;
  object-fit: contain;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-alert {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(242, 183, 5, 0.45);
  border-radius: 8px;
  background: rgba(242, 183, 5, 0.12);
  color: #5d4300;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
}

.alert-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(242, 183, 5, 0.16);
}

.status-hero {
  padding: 18px;
  border: 1px solid rgba(118, 185, 0, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(118, 185, 0, 0.12), transparent 45%),
    #fbfdf8;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--nvidia-green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 900;
}

.status-copy {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.code-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(118, 185, 0, 0.24);
}

.code-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.code-row strong {
  font-size: 50px;
  line-height: 0.9;
  font-weight: 900;
}

.plate-panel {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 111, 237, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(47, 111, 237, 0.1), rgba(255, 255, 255, 0.94));
}

.plate-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.plate-panel strong {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.lookup-form {
  display: grid;
  gap: 8px;
}

.lookup-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.input-row:focus-within {
  border-color: var(--nvidia-green);
  box-shadow: 0 0 0 4px rgba(118, 185, 0, 0.12);
}

input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  outline: none;
}

.input-row button,
.secondary-button {
  border: 0;
  cursor: pointer;
}

.input-row button {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.input-row button:hover:not(:disabled) {
  background: #272b2f;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 5%);
}

.input-row button:disabled {
  cursor: not-allowed;
  box-shadow: none;
}

button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.detail-grid article {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-grid article:nth-child(2n) {
  border-right: 0;
}

.detail-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.detail-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
  margin-bottom: 10px;
  color: var(--nvidia-green-dark);
}

.location-icon {
  border: 3px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.location-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: currentColor;
}

.zone-icon {
  border: 2px solid currentColor;
  border-top-width: 6px;
}

.zone-icon::before,
.zone-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: currentColor;
}

.zone-icon::before {
  top: 9px;
}

.zone-icon::after {
  top: 14px;
}

.level-icon {
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.level-icon::before,
.level-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
}

.level-icon::after {
  inset: 8px;
}

.calendar-icon {
  border: 2px solid currentColor;
  border-radius: 3px;
}

.calendar-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 6px;
  height: 2px;
  background: currentColor;
}

.detail-grid p,
.vehicle-block p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-grid strong,
.vehicle-block strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.12;
}

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

.vehicle-block div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.vehicle-block strong {
  font-size: 15px;
}

.photo-panel {
  position: relative;
  z-index: 1;
  display: none;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.photo-panel.is-visible {
  display: grid;
}

.photo-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.photo-panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 6px;
  background: #eef2f3;
}

.secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.pass-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin: auto -18px 0;
  padding: 0 18px;
  background: #090a0b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-logo {
  width: 48px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.footer-divider {
  width: 1px;
  height: 22px;
  margin-left: auto;
  background: var(--nvidia-green);
}

.is-denied .status-hero {
  border-color: rgba(200, 55, 45, 0.32);
  background:
    linear-gradient(135deg, rgba(200, 55, 45, 0.1), transparent 45%),
    #fffafa;
}

.is-denied .eyebrow,
.is-denied .detail-icon {
  color: var(--danger);
}

.is-denied .input-row:focus-within {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(200, 55, 45, 0.1);
}

@media (min-width: 760px) {
  .app-shell {
    padding: 32px;
  }

  .pass-panel {
    min-height: auto;
  }
}

@media (max-width: 360px) {
  .pass-panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-logo {
    width: min(148px, 48vw);
  }

  h1 {
    font-size: 26px;
  }

  .code-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .code-row strong {
    font-size: 44px;
  }

  .pass-footer {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
}
