:root {
  --bg: #0b1f3a;
  --bg-elevated: #122a4a;
  --surface: #ffffff;
  --surface-muted: #f4f7f9;
  --text: #0b1f3a;
  --text-soft: #3d4f66;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-soft: #ccfbf1;
  --accent-navy: #0b1f3a;
  --success: #059669;
  --success-soft: #d1fae5;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Sora", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --bottom-dock-height: 10.5rem;
  --bottom-dock-gap: 10px;
  --bottom-dock-offset: calc(var(--bottom-dock-height) + var(--bottom-dock-gap));
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/sora-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/sora-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/sora-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url("/static/fonts/jetbrains-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: var(--bottom-dock-offset);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: #eef3f6;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1;
  padding-bottom: 0;
}

.page-bottom-spacer {
  height: var(--bottom-dock-offset);
  min-height: var(--bottom-dock-offset);
  flex-shrink: 0;
  pointer-events: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 45% at 20% -5%, rgba(13, 148, 136, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 5%, rgba(11, 31, 58, 0.08), transparent 50%),
    linear-gradient(180deg, #e6eef4 0%, #eef3f6 45%, #f4f7f9 100%);
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.header {
  padding: 2.25rem 0 1.75rem;
  color: #fff;
  background: linear-gradient(135deg, #0b1f3a 0%, #12304f 48%, #0d4a45 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 90%);
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-right {
  flex: 1;
  max-width: 420px;
}

.browser-clock {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.browser-clock-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.2rem;
}

.browser-clock-time {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.browser-clock-tz {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.brand-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.brand-icon svg {
  width: 26px;
  height: 26px;
  opacity: 0.95;
}

.eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.header h1,
.brand-product {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero {
  margin: 0 0 1.25rem;
}

.page-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.page-hero p {
  margin: 0;
  max-width: 52ch;
  color: var(--text-soft);
  font-size: 1rem;
}

.subtitle {
  margin: 0;
  max-width: 52ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.85rem;
}

.header-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
  outline: none;
}

#add-shipment,
#shipments {
  scroll-margin-top: 1rem;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: -1.25rem 0 1.25rem;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.stat-value small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-active .stat-value { color: var(--primary); }
.stat-arrived .stat-value { color: var(--success); }
.stat-poll .stat-value { color: #0d9488; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
}

.card-head h2,
.section-title {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card-head p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.grid-2 > .upload-form,
.grid-2 > .form-stack {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.form-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-stack {
  gap: 1rem;
}

.track-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

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

.upload-form .dropzone-tall {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
}

.upload-form .dropzone-tall .dropzone-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem 1rem;
}

.upload-form .btn-primary {
  flex-shrink: 0;
  margin-top: auto;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field-hint {
  margin: -0.25rem 0 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Dropzone */
.dropzone {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-muted);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  cursor: pointer;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone-content {
  padding: 1.75rem 1rem;
  text-align: center;
  pointer-events: none;
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.65rem;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.dropzone-icon svg {
  width: 22px;
  height: 22px;
}

.dropzone-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.dropzone-hint {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.dropzone-file {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  word-break: break-all;
}

.dropzone.has-file {
  border-style: solid;
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* Input */
.input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-right: 1px solid var(--border);
}

.input-wrap input {
  flex: 1;
  border: none;
  padding: 0.8rem 0.9rem;
  font: 600 0.95rem var(--mono);
  outline: none;
  background: transparent;
}

.input-wrap input.input-flash {
  animation: inputFlash 1.1s ease;
}

@keyframes inputFlash {
  0%, 100% { background: transparent; }
  25%, 75% { background: var(--primary-soft); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.78rem 1.1rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, background 0.2s, box-shadow 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, #14b8a6, #0d9488);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #2dd4bf, #0f766e);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface-muted);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary-soft);
}

.btn-ghost:hover {
  background: var(--primary-soft);
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

/* Fixed bottom dock: meta line + carrier filters */
.bottom-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0 10px env(safe-area-inset-bottom, 0px);
}

.bottom-dock .container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.bottom-dock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.3;
}

.bottom-dock-meta strong {
  color: var(--text-soft);
  font-weight: 700;
}

.bottom-dock-meta-right {
  text-align: right;
  white-space: nowrap;
}

.carrier-filter-bar {
  position: relative;
  padding: 10px 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.carrier-filter-inner {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 0 2px;
}

.carrier-filter-inner::-webkit-scrollbar {
  display: none;
}

.carrier-filter-btn {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 4.25rem;
  padding: 0.45rem 0.65rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-muted);
  cursor: pointer;
  font: inherit;
  color: var(--text-soft);
  transition: background 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
}

.carrier-filter-btn img {
  border-radius: 8px;
  display: block;
}

.carrier-filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  white-space: nowrap;
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carrier-filter-label-full {
  display: none;
}

@media (min-width: 900px) {
  .carrier-filter-btn {
    min-width: 6.5rem;
    padding: 0.5rem 0.75rem;
  }

  .carrier-filter-label-short {
    display: none;
  }

  .carrier-filter-label-full {
    display: block;
    max-width: 7.5rem;
  }
}

.carrier-filter-count {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  min-width: 1.1rem;
  padding: 0.12rem 0.35rem;
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.carrier-filter-btn:hover {
  border-color: var(--carrier-color, var(--border-strong));
  background: #fff;
}

.carrier-filter-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.carrier-filter-btn.is-active {
  background: #fff;
  border-color: var(--carrier-color, var(--primary));
  color: var(--text);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.carrier-filter-btn.is-active .carrier-filter-count {
  background: color-mix(in srgb, var(--carrier-color, var(--primary)) 14%, white);
  border-color: color-mix(in srgb, var(--carrier-color, var(--primary)) 35%, white);
  color: var(--carrier-color, var(--primary));
}

.carrier-filter-btn[data-carrier-filter="all"].is-active .carrier-filter-count {
  background: var(--primary-soft);
  border-color: #bfdbfe;
  color: var(--primary);
}

.filter-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--surface);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.filter-empty[hidden] {
  display: none !important;
}

.filter-empty p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.shipment-card[hidden] {
  display: none !important;
}

.shipments-group[hidden] {
  display: none !important;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0.65rem 0;
  background: linear-gradient(180deg, #eef2f7 70%, transparent);
  backdrop-filter: blur(6px);
}

.toolbar .section-title {
  margin: 0;
}

/* Shipment cards */
.shipments {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: var(--bottom-dock-gap);
}

.shipments-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shipments-group-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.shipment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--brand, #64748b);
  transition: box-shadow 0.2s, transform 0.2s;
  animation: fadeUp 0.4s ease both;
}

.shipment-card:hover {
  box-shadow: var(--shadow-lg);
}

.shipment-card.is-arrived {
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 60%);
  border-color: #a7f3d0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shipment-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}

.shipment-identity {
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.airline-logo {
  flex-shrink: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.awb-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.awb-number {
  margin: 0;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.iata-code {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand) 12%, white);
  color: var(--brand);
  letter-spacing: 0.04em;
}

.carrier-name {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.route-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.65rem;
  background: var(--surface-muted);
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.airport {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
}

.airport.dest {
  color: var(--success);
}

.route-arrow svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  display: block;
}

.country-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-soft);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Status */
.status-panel {
  text-align: right;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-tracking {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-arrived {
  background: var(--success-soft);
  color: var(--success);
}

.badge-delivered {
  background: #e8edf3;
  color: #475569;
}

.btn-danger-text {
  color: var(--danger, #dc2626);
}

.btn-danger-text:hover {
  background: rgba(220, 38, 38, 0.08);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.8s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.current-status {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  max-width: 220px;
  margin-left: auto;
  line-height: 1.35;
}

.status-hint {
  margin: 0.5rem 0 0;
  max-width: 260px;
  margin-left: auto;
  padding: 0.55rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-soft);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
}

/* Details */
.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 1.15rem 0 0;
  padding: 1rem;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.detail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.detail-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.detail-value.tz-update,
.detail-value.tz-iso {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0;
}

.mono {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.shipment-actions {
  margin-top: 0.85rem;
}

.shipment-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edit-number-form {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.edit-number-form[hidden] {
  display: none !important;
}

.edit-number-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.edit-number-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Timeline */
.timeline-details {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.timeline-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-soft);
  list-style: none;
  padding: 0.25rem 0;
  user-select: none;
}

.timeline-details summary::-webkit-details-marker {
  display: none;
}

.timeline-details summary::after {
  content: "›";
  font-size: 1.1rem;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.timeline-details[open] summary::after {
  transform: rotate(90deg);
}

.event-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.timeline {
  margin-top: 0.85rem;
  padding-left: 0.5rem;
}

.timeline-item {
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1rem;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
  z-index: 1;
}

.timeline-body {
  flex: 1;
  min-width: 0;
}

.timeline-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-head strong {
  font-size: 0.9rem;
}

.flight-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 6px;
}

.timeline-meta {
  margin: 0.35rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.route-leg {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.tz-flight,
.tz-update,
.tz-iso {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 1.4;
}

.time-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.time-airport {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.time-airport strong {
  font-size: 0.72rem;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.time-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.time-local {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}

.time-past {
  font-style: normal;
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--warning);
}

/* Empty state */
.empty {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--surface);
  border: 2px dashed var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.empty h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.empty p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36ch;
  margin-inline: auto;
}

.empty-cta {
  margin-top: 1.1rem;
  display: inline-flex;
}

/* (footer removed — meta lives in bottom dock) */

/* Brand link in header */
.brand-link {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.brand-link:hover .brand-product,
.brand-link:focus-visible .brand-product,
.brand-link:hover .header h1,
.brand-link:focus-visible .header h1 {
  color: #99f6e4;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Site footer */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

/* Flash messages */
.flash {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}

.flash-info {
  background: var(--primary-soft);
  color: #115e59;
  border: 1px solid #99f6e4;
}

.flash-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Auth pages */
.auth-card {
  max-width: 28rem;
  margin: 2rem auto;
}

.auth-card h1,
.auth-card h2 {
  margin: 0 0 0.35rem;
}

.auth-lead {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
}

.auth-form label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.auth-form .btn {
  margin-top: 1.25rem;
  width: 100%;
}

.auth-footer {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-aside {
  margin: -0.15rem 0 0;
  font-size: 0.88rem;
}

.auth-aside a,
.auth-legal a {
  color: var(--primary-hover);
  font-weight: 600;
  text-decoration: none;
}

.auth-aside a:hover,
.auth-legal a:hover {
  text-decoration: underline;
}

.auth-legal {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-align: center;
}

.btn.is-loading {
  opacity: 0.78;
  cursor: wait;
}

/* Inline forms (nav logout, admin actions) */
.inline-form {
  display: inline;
  margin: 0;
}

.btn-link {
  background: none;
  border: none;
  padding: 0.2rem 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

.btn-link:hover,
.btn-link:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.account-test-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.account-actions {
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

.email-list-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.email-list-header h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.email-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.email-list-item {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.email-list-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.email-list-address {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}

.email-list-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.35rem;
}

.email-list-edit {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.email-list-edit-actions {
  display: flex;
  gap: 0.5rem;
}

.email-list-empty {
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--surface-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.email-list-add {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.email-list-add .form-control {
  flex: 1;
}

.email-list-add .btn {
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .email-list-view {
    flex-direction: column;
    align-items: flex-start;
  }

  .email-list-add {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════════════════
   Back Office
   ══════════════════════════════════════════════════════════════ */
.admin-header {
  margin: 0 0 1.5rem;
}

.admin-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.admin-header h2 {
  margin: 0 0 0.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-header .admin-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Pill tab navigation */
.admin-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.admin-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.admin-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.admin-nav a.active {
  color: #fff;
  background: linear-gradient(180deg, #14b8a6, #0d9488);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Card header inside admin */
.admin-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}

.admin-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-card-head .count-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
}

/* Admin form controls */
.admin-form {
  display: grid;
  gap: 1.1rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

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

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 5rem;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* Admin tables */
.admin-table-card {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table thead th {
  position: sticky;
  top: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 2px solid var(--border);
  background: var(--surface-muted);
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.admin-table tbody tr {
  transition: background 0.12s;
}

.admin-table tbody tr:hover {
  background: var(--surface-muted);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table .amount-cell {
  font-family: var(--mono);
  font-weight: 600;
  white-space: nowrap;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: capitalize;
  white-space: nowrap;
}

.badge-success { background: var(--success-soft); color: #047857; }
.badge-neutral { background: var(--surface-muted); color: var(--text-soft); border: 1px solid var(--border); }
.badge-danger  { background: #fef2f2; color: #b91c1c; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-info    { background: var(--primary-soft); color: #1e40af; }

.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Empty state */
.admin-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.admin-empty-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--text-muted);
}

.btn-danger-text {
  color: #b91c1c;
  border-color: #fecaca;
}

.btn-danger-text:hover {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

/* Responsive */
@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .admin-header-top {
    flex-direction: column;
  }

  .admin-nav {
    align-self: stretch;
    justify-content: flex-start;
    overflow-x: auto;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
  }

  .header-right {
    max-width: none;
  }

  .brand-tagline {
    display: none;
  }

  .header {
    padding-block: 0.85rem;
  }

  .brand-product {
    font-size: 1.35rem;
  }

  .header-nav {
    margin-top: 0.55rem;
    gap: 0.35rem 0.75rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .upload-form .dropzone-tall {
    min-height: 11rem;
  }

  .shipment-top {
    flex-direction: column;
  }

  .status-panel {
    text-align: left;
    width: 100%;
  }

  .current-status {
    margin-left: 0;
    max-width: none;
  }

  .status-hint {
    margin-left: 0;
    max-width: none;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .bottom-dock-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .bottom-dock-meta-right {
    text-align: left;
    white-space: normal;
  }

  .carrier-filter-btn {
    min-width: 3.75rem;
    padding: 0.4rem 0.5rem;
  }
}

/* Subscription / plan conversion */
.plan-upgrade {
  margin: 0 0 1.75rem;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(13, 148, 136, 0.08) 0%, rgba(255, 255, 255, 0.95) 42%, #fff 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: plan-rise 0.55s ease-out both;
}

.plan-upgrade-inner {
  padding: 1.35rem 1.4rem 1.5rem;
}

.plan-upgrade-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.15rem;
}

.plan-upgrade-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-hover);
}

.plan-upgrade-title {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-navy);
  line-height: 1.25;
}

.plan-upgrade-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.plan-chip-free {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.plan-chip-pro,
.plan-chip-complimentary {
  background: var(--primary-soft);
  color: #115e59;
  border: 1px solid #99f6e4;
}

.plan-chip-grace {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.plan-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}

.plan-compare th,
.plan-compare td {
  padding: 0.7rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.plan-compare th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.plan-compare td:first-child {
  color: var(--text);
  font-weight: 500;
}

.plan-compare .plan-col {
  text-align: center;
  width: 5.5rem;
}

.plan-yes {
  color: var(--primary-hover);
  font-weight: 700;
}

.plan-no {
  color: #94a3b8;
  font-weight: 600;
}

.plan-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-navy);
  color: #fff;
}

.plan-price-amount {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-price-amount span {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.85;
}

.plan-price-note {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

.plan-price-row .btn-primary {
  flex-shrink: 0;
  min-width: 11rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.plan-price-row .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.45);
}

.plan-locked {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.15rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.plan-locked h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.plan-locked p {
  margin: 0 0 0.75rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.plan-locked ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-locked li + li {
  margin-top: 0.35rem;
}

/* Free-user upgrade strips */
.upgrade-strip {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(13, 148, 136, 0.25);
  background:
    linear-gradient(120deg, rgba(11, 31, 58, 0.96), rgba(13, 74, 69, 0.92));
  color: #fff;
  box-shadow: var(--shadow-md);
  animation: plan-rise 0.5s ease-out both;
}

.upgrade-strip-copy h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.upgrade-strip-copy p {
  margin: 0 0 0.75rem;
  opacity: 0.88;
  font-size: 0.95rem;
}

.upgrade-strip-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.upgrade-strip-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.95;
}

.upgrade-strip-benefits li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: #5eead4;
  flex-shrink: 0;
}

.upgrade-strip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.upgrade-strip .btn-primary {
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.35);
}

.upgrade-strip .btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.78rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}

.upgrade-strip .btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.upgrade-cta-panel {
  margin-top: 1.25rem;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid rgba(13, 148, 136, 0.2);
  background: linear-gradient(160deg, #f0fdfa 0%, #fff 60%);
  animation: plan-rise 0.45s ease-out both;
}

.upgrade-cta-panel h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--accent-navy);
}

.upgrade-cta-panel p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.lookup-events {
  margin: 0;
  padding-left: 1.1rem;
}

.lookup-events li {
  margin: 0 0 0.55rem;
  line-height: 1.45;
  color: var(--text);
}

.lookup-events .muted {
  color: var(--text-muted);
  font-size: 0.9em;
}

/* Toast + confirm dialog */
.toast-host {
  position: fixed;
  z-index: 1100;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent-navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  animation: toast-in 0.28s ease-out both;
}

.toast-error {
  background: #7f1d1d;
}

.toast-success {
  background: #115e59;
}

.toast-out {
  animation: toast-out 0.22s ease-in both;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 31, 58, 0.45);
  backdrop-filter: blur(3px);
}

.confirm-backdrop.is-open,
.confirm-backdrop:not([hidden]) {
  display: grid;
  animation: fade-in 0.18s ease-out both;
}

.confirm-dialog {
  width: min(24rem, 100%);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  color: #0b1f3a;
  box-shadow: var(--shadow-lg);
  animation: plan-rise 0.28s ease-out both;
}

.confirm-dialog h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  color: #0b1f3a;
}

.confirm-dialog p,
#confirm-message {
  margin: 0 0 1.15rem;
  color: #3d4f66 !important;
  font-size: 0.95rem;
  line-height: 1.45;
  min-height: 1.4em;
  opacity: 1 !important;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.btn-danger {
  background: linear-gradient(180deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(180deg, #f87171, #ef4444);
}

@keyframes plan-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 700px) {
  :root {
    --bottom-dock-height: 12.5rem;
  }
}

@media (min-width: 720px) {
  .upgrade-strip {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: var(--accent-navy, #0b1f3a);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.landing-hero { padding: 2.5rem 0 2rem; max-width: 40rem; }
.landing-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-hover);
}
.landing-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--accent-navy, #0b1f3a);
}
.landing-lead, .content-lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 48ch;
  line-height: 1.55;
}
.landing-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.5rem; }
.landing-section { padding: 1.75rem 0; border-top: 1px solid var(--border); }
.landing-section h2 { margin: 0 0 0.75rem; font-size: 1.35rem; color: var(--accent-navy, #0b1f3a); }
.landing-section-muted {
  background: rgba(13, 148, 136, 0.05);
  margin: 0 -1rem;
  padding: 1.75rem 1rem;
  border-radius: var(--radius);
  border-top: none;
}
.landing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.landing-grid article {
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.landing-grid h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.landing-grid p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }
.content-page { max-width: 44rem; padding: 1.5rem 0 2.5rem; }
.content-page h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  color: var(--accent-navy, #0b1f3a);
}
.content-page h2 { margin: 1.75rem 0 0.55rem; font-size: 1.2rem; color: var(--accent-navy, #0b1f3a); }
.content-page p, .content-page li { color: var(--text-soft); line-height: 1.6; }
.content-page ul { padding-left: 1.2rem; }
.carriers-list { display: grid; gap: 1rem; margin: 1.5rem 0; }
.carrier-tile {
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.carrier-tile-head { display: flex; gap: 0.85rem; align-items: flex-start; margin-bottom: 0.55rem; }
.carrier-tile-head h2 { margin: 0; font-size: 1.1rem; }
.carrier-tile .muted { margin: 0.15rem 0 0; font-size: 0.88rem; color: var(--text-muted); }
