/* HORIZON MATERIALS PRIVATE LIMITED — Delivery Signal track (Neon Grove creative) */

@keyframes a36-route-spin {
  to { transform: rotate(360deg); }
}
@keyframes a36-route-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(255, 159, 28, 0.12); }
}
@keyframes a36-route-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.page-route-map.a36-track-creative {
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --route-ink: #0B1320;
  --route-panel: #121B2E;
  --route-surface: #F4F0E8;
  --route-muted: #5C6778;
  --route-line: rgba(78, 205, 196, 0.18);
  --route-mint: #4ECDC4;
  --route-mango: #FF9F1C;
  --route-berry: #E63946;
  background:
    radial-gradient(circle at 100% 0%, rgba(90, 24, 154, 0.05) 0%, transparent 38%),
    var(--route-surface);
}

.a36-route {
  padding: 0 0 3.75rem;
}

/* ── Hero ── */
.a36-route-hero {
  position: relative;
  padding: 2.5rem 0 2.25rem;
  overflow: hidden;
  background: var(--route-panel);
  color: #fff;
  margin-bottom: 1.75rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.a36-route-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78, 205, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  pointer-events: none;
}

.a36-route-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 88% 15%, rgba(255, 159, 28, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 45% 45% at 8% 85%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.a36-route-watermark {
  position: absolute;
  top: 0.5rem;
  right: 3%;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.03);
  letter-spacing: -0.04em;
  pointer-events: none;
}

.a36-route-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.a36-route-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--route-mint);
  background: rgba(78, 205, 196, 0.1);
  border: 1px solid rgba(78, 205, 196, 0.22);
}

.a36-route-kicker::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--route-mango);
  box-shadow: 0 0 8px rgba(255, 159, 28, 0.45);
}

.a36-route-hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.a36-route-hero h1 em {
  font-style: normal;
  color: var(--route-mango);
  position: relative;
}

.a36-route-hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: rgba(255, 159, 28, 0.22);
  z-index: -1;
  transform: skewX(-6deg);
}

.a36-route-lede {
  margin: 0;
  max-width: 50ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

/* Progress badge — diamond terminal readout */
.a36-route-badge {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transform: rotate(45deg);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: border-color 0.3s;
}

.a36-route-badge > * {
  transform: rotate(-45deg);
}

.a36-route-badge-ring {
  position: absolute;
  inset: -8px;
  border: 1px dashed rgba(78, 205, 196, 0.25);
  animation: a36-route-spin 20s linear infinite;
  pointer-events: none;
}

.a36-route-badge strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.a36-route-badge span:last-child {
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  max-width: 9ch;
  line-height: 1.25;
}

.a36-route-badge.is-found {
  border-color: var(--route-mint);
  background: rgba(78, 205, 196, 0.08);
}

.a36-route-badge.is-found strong {
  color: var(--route-mint);
}

.a36-route-badge.is-miss {
  border-color: var(--route-berry);
  background: rgba(230, 57, 70, 0.08);
}

.a36-route-badge.is-miss strong {
  color: var(--route-berry);
  font-size: 1rem;
}

/* ── Shell layout ── */
.a36-route-shell {
  display: grid;
  grid-template-columns: minmax(var(--a36-sidebar-min), var(--a36-sidebar-max)) minmax(0, 1fr);
  gap: var(--a36-layout-gap);
  align-items: start;
}

/* Lookup ticket */
.a36-route-ticket {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid rgba(11, 19, 32, 0.08);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 0 16px 44px rgba(11, 19, 32, 0.1);
}

.a36-route-ticket-notch {
  height: 4px;
  background: linear-gradient(90deg, var(--route-mango), var(--route-mint), var(--route-berry));
}

.a36-route-ticket-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.35rem 1.25rem 0;
  background: var(--route-ink);
  color: #fff;
}

.a36-route-ticket-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  background: rgba(255, 159, 28, 0.12);
  border: 1px solid rgba(255, 159, 28, 0.28);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.a36-route-ticket-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.a36-route-ticket-head p {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.a36-route-form {
  padding: 1.15rem 1.25rem 1rem;
}

.a36-route-field {
  display: block;
  margin-bottom: 0.85rem;
}

.a36-route-field span {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--route-muted);
}

.a36-route-field input {
  width: 100%;
  padding: 0.68rem 0.85rem;
  border: 1px solid rgba(11, 19, 32, 0.12);
  background: var(--route-surface);
  font: inherit;
  font-size: 0.88rem;
  color: var(--route-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.a36-route-field input:focus {
  border-color: var(--route-mint);
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.a36-route-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.a36-route-submit {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border: 0;
  background: var(--route-mango);
  color: var(--route-ink);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: filter 0.2s, transform 0.2s;
}

.a36-route-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.a36-route-reset {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(11, 19, 32, 0.15);
  background: transparent;
  color: var(--route-ink);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s;
}

.a36-route-reset:hover {
  border-color: var(--route-mint);
  background: rgba(78, 205, 196, 0.08);
}

.a36-route-ticket-foot {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  background: var(--route-surface);
  border-top: 1px dashed rgba(11, 19, 32, 0.1);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--route-muted);
}

/* ── Signal map panel ── */
.a36-route-map {
  background: var(--route-ink);
  color: #fff;
  padding: 1.5rem 1.45rem 1.65rem;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  box-shadow: 0 20px 50px rgba(11, 19, 32, 0.28);
  border: 1px solid rgba(78, 205, 196, 0.12);
}

.a36-route-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78, 205, 196, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 205, 196, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.a36-route-map-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.a36-route-map-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.a36-route-map-state {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%);
}

.a36-route-map-state.is-found {
  background: rgba(78, 205, 196, 0.15);
  color: var(--route-mint);
}

.a36-route-map-state.is-miss {
  background: rgba(230, 57, 70, 0.15);
  color: #ff8a94;
}

/* Serpentine path */
.a36-route-serpentine {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1.5rem;
  position: relative;
  z-index: 1;
  --a36-progress: 0;
}

.a36-route-serpentine::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 28px;
  bottom: 28px;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.a36-route-serpentine.is-found::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 28px;
  width: 2px;
  height: calc(var(--a36-progress) * 25%);
  max-height: calc(100% - 56px);
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--route-mango), var(--route-mint));
  z-index: 1;
  transition: height 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px rgba(78, 205, 196, 0.4);
}

.a36-route-node {
  position: relative;
  z-index: 2;
  display: flex;
  margin-bottom: 1.65rem;
}

.a36-route-node:last-child {
  margin-bottom: 0;
}

.a36-route-node.side-left {
  justify-content: flex-start;
  padding-right: 52%;
}

.a36-route-node.side-right {
  justify-content: flex-end;
  padding-left: 52%;
}

.a36-route-node-card {
  position: relative;
  max-width: 240px;
  padding: 0.85rem 1rem 0.85rem 2.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}

.a36-route-node.side-right .a36-route-node-card {
  padding: 0.85rem 2.65rem 0.85rem 1rem;
  text-align: right;
}

.a36-route-node-glyph {
  position: absolute;
  top: 50%;
  left: -16px;
  width: 34px;
  height: 34px;
  background: var(--route-panel);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  transform: translateY(-50%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}

.a36-route-node.side-right .a36-route-node-glyph {
  left: auto;
  right: -16px;
}

.a36-route-node.is-done .a36-route-node-glyph {
  background: var(--route-mint);
  border-color: var(--route-mint);
  color: var(--route-ink);
}

.a36-route-node.is-current .a36-route-node-glyph {
  background: var(--route-mango);
  border-color: var(--route-mango);
  color: var(--route-ink);
  animation: a36-route-pulse 1.8s ease-in-out infinite;
}

.a36-route-node.is-done .a36-route-node-card {
  border-color: rgba(78, 205, 196, 0.35);
  background: rgba(78, 205, 196, 0.06);
}

.a36-route-node.is-current .a36-route-node-card {
  border-color: var(--route-mango);
  box-shadow: 0 8px 28px rgba(255, 159, 28, 0.15);
}

.a36-route-node.is-muted .a36-route-node-glyph {
  opacity: 0.35;
}

.a36-route-node.is-muted .a36-route-node-card {
  opacity: 0.45;
}

.a36-route-node-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

.a36-route-node-card small {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.48);
}

/* Receipt card */
.a36-route-receipt {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.a36-route-receipt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--route-mango), var(--route-mint));
}

.a36-route-receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.a36-route-receipt-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--route-mango);
}

.a36-route-receipt-status {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.5rem;
  background: rgba(78, 205, 196, 0.15);
  color: var(--route-mint);
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
}

.a36-route-receipt-id {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  word-break: break-all;
  letter-spacing: -0.02em;
}

.a36-route-receipt-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0 0 1.15rem;
}

.a36-route-receipt-meta div {
  padding: 0.55rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.a36-route-receipt-meta dt {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.15rem;
}

.a36-route-receipt-meta dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

.a36-route-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.a36-route-receipt-actions .a36-route-reset {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.a36-route-receipt-actions .a36-route-reset:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--route-mint);
}

/* Alerts */
.a36-route-alert {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  padding: 1.25rem 1.35rem;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.a36-route-alert strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.a36-route-alert p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.a36-route-alert.is-idle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

.a36-route-alert.is-idle strong {
  color: #fff;
}

.a36-route-alert.is-miss {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.25);
  color: #ffadb5;
}

.a36-route-alert-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--route-mango) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Quick chips */
.a36-route-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.85rem;
  justify-content: center;
}

.a36-route-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  background: #fff;
  border: 1px solid rgba(11, 19, 32, 0.1);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--route-ink) !important;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.a36-route-chip:hover {
  border-color: var(--route-mint);
  background: rgba(78, 205, 196, 0.08);
  box-shadow: 0 6px 20px rgba(11, 19, 32, 0.08);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.a36-route-chip span:first-child {
  font-size: 0.55rem;
  color: var(--route-mango);
  transform: rotate(45deg);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .a36-route-hero {
    clip-path: none;
  }

  .a36-route-hero-inner {
    grid-template-columns: 1fr;
  }

  .a36-route-badge {
    justify-self: start;
  }

  .a36-route-shell {
    grid-template-columns: 1fr;
  }

  .a36-route-ticket {
    position: static;
    clip-path: none;
  }

  .a36-route-map {
    clip-path: none;
  }

  .a36-route-node.side-left,
  .a36-route-node.side-right {
    padding-left: 3rem;
    padding-right: 0;
    justify-content: flex-start;
  }

  .a36-route-node.side-right .a36-route-node-card {
    text-align: left;
    padding: 0.85rem 1rem 0.85rem 2.65rem;
  }

  .a36-route-node.side-right .a36-route-node-glyph {
    right: auto;
    left: -16px;
  }

  .a36-route-serpentine::before,
  .a36-route-serpentine.is-found::after {
    left: 16px;
    transform: none;
  }

  .a36-route-receipt-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .a36-route-map {
    padding: 1.15rem;
  }

  .a36-route-watermark {
    display: none;
  }

  .a36-route-chips {
    flex-direction: column;
    align-items: stretch;
  }

  .a36-route-chip {
    justify-content: center;
    clip-path: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a36-route-badge-ring,
  .a36-route-node.is-current .a36-route-node-glyph {
    animation: none;
  }
}
