/* ==========================================================================
   Screen 24 — Shipping Bill + ICEGATE (Stage 7 ★)
   ========================================================================== */

/* Stage 7 ★ hero: same gold glow + star pill as screen 23 */
.star-note {
  color: #b45309;
}

/* ---- ICEGATE filing panel (hero visual) -------------------------------- */

.icegate {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(500px, 100%);
  padding: 16px 18px;
  border-radius: var(--r-lg);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 40px -22px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.icegate__logo {
  flex-shrink: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  background: linear-gradient(160deg, #ffffff, #d7f0ec);
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6);
}

.icegate__info {
  flex: 1;
  min-width: 0;
}

.icegate__name {
  font-size: var(--fs-base);
  font-weight: 650;
  line-height: 1.4;
}

.icegate__sb {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.icegate__status {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #2e7d32, #43a047);
  box-shadow: 0 8px 18px -8px rgba(46, 125, 50, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ---- Customs flow timeline --------------------------------------------- */

.flow .timeline__item {
  padding-bottom: 24px;
}

.flow .timeline__item:last-child {
  padding-bottom: 0;
}

.flow .timeline__item::before {
  display: none;
}

.flow__line {
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 2px;
  width: 2px;
  border-radius: 2px;
  background: var(--ink-200);
}

.flow__line.is-done {
  background: var(--accent);
}

.flow .is-done .timeline__dot {
  background: #1b5e20;
}

.flow .timeline__title {
  line-height: 1.45;
}

.flow .timeline__text {
  color: var(--ink-600);
}

.flow .is-now .timeline__dot {
  font-size: 15px;
  color: #bf360c;
  background: #ffd54f;
  border: 2px solid #f57f17;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 8px rgba(245, 127, 23, 0.22);
  animation: now-ring 2.2s ease-out infinite;
}

.flow .is-now .timeline__body {
  margin: -8px 0 0 -10px;
  padding: 12px 16px 14px;
  border-radius: 14px;
  background: linear-gradient(100deg, #fff6e0, rgba(255, 246, 224, 0.2));
  border-left: 3px solid #f57f17;
}

.flow .is-now .timeline__meta {
  font-weight: 600;
  color: #bf360c;
}

@keyframes now-ring {
  0%   { box-shadow: 0 0 0 4px var(--surface), 0 0 0 4px rgba(245, 127, 23, 0.45); }
  70%  { box-shadow: 0 0 0 4px var(--surface), 0 0 0 12px rgba(245, 127, 23, 0); }
  100% { box-shadow: 0 0 0 4px var(--surface), 0 0 0 4px rgba(245, 127, 23, 0); }
}

/* ---- LEO confirmation --------------------------------------------------- */

.leo {
  background:
    radial-gradient(240px 140px at 100% 0%, rgba(165, 214, 167, 0.35), transparent 70%),
    var(--tone-soft);
}

.leo .card__head {
  margin-bottom: 14px;
}

.leo .card__title {
  color: var(--tone-ink);
}

.leo__code {
  position: relative;
  padding: 14px 18px 14px 20px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: #a5d6a7;
  background: linear-gradient(135deg, #0c3312 0%, #1b5e20 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 24px -16px rgba(12, 51, 18, 0.9);
  overflow-wrap: anywhere;
}

.leo__code::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #66bb6a;
}

.leo__detail {
  margin-top: 12px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: #2e7d32;
}

/* ---- ECGC activation ---------------------------------------------------- */

.ecgc {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ecgc__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 14px;
  font-size: 24px;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  box-shadow: inset 0 0 0 1px var(--tone-line), 0 10px 22px -12px rgba(13, 71, 161, 0.6);
}

.ecgc__body {
  flex: 1;
  min-width: 0;
}

.ecgc__title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.45;
  color: var(--tone-ink);
}

.ecgc__detail {
  margin-top: 6px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--ink-600);
}

.ecgc__ref {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--tone-ink);
  background: var(--tone-soft);
  border: 1px solid var(--tone-line);
  overflow-wrap: anywhere;
}

/* ---- Container stuffing ------------------------------------------------- */

.stuffing {
  display: flex;
  flex-direction: column;
}

.stuffing .kv__val {
  color: #bf360c;
}

.stuffing__photo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 112px;
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 10px, rgba(0, 0, 0, 0.06) 10px 20px),
    linear-gradient(135deg, #bcaaa4 0%, #8d6e63 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 24px -16px rgba(78, 52, 46, 0.8);
}

/* ---- Bill of Lading ------------------------------------------------------ */

.bl {
  display: flex;
  flex-direction: column;
}

.bl .card__body {
  flex: 1;
  padding: 22px 24px 24px;
}

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

.bl .kv-cell {
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 75%);
}

.bl .kv-cell__v {
  overflow-wrap: anywhere;
}

/* ---- Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .page-head__visual {
    width: 100%;
  }

  .icegate {
    width: 100%;
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  .icegate {
    flex-wrap: wrap;
  }

  .icegate__info {
    flex-basis: calc(100% - 120px);
  }

  .bl__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
