/* ==========================================================================
   Public Order & Status Tracking (/track & /track?c=...) — Executive Pro Theme (v1)
   Aligned with car-public-ch-pro.css (/car) & center-site-pro.css (/s/<slug>)
   Full RTL/LTR · Dark Mode (data-mode="dark" & data-theme="dark") · 320px+ 0px overflow
   All screen rules wrapped in @media screen so print output stays untouched.
   ========================================================================== */

@media screen {

.tp-page {
  --tp-accent: #e85d04;
  --tp-accent-rgb: 232, 93, 4;
  --tp-bg: #f6f4ef;
  --tp-surface: #ffffff;
  --tp-surface-2: #faf8f4;
  --tp-surface-3: #f0ece4;
  --tp-ink: #14171f;
  --tp-muted: #5d6472;
  --tp-border: rgba(20, 23, 31, 0.09);
  --tp-border-strong: rgba(20, 23, 31, 0.16);
  --tp-ok: #15803d;
  --tp-ok-bg: rgba(22, 163, 74, 0.11);
  --tp-ok-line: rgba(22, 163, 74, 0.28);
  --tp-warn: #b45309;
  --tp-warn-bg: rgba(217, 119, 6, 0.12);
  --tp-warn-line: rgba(217, 119, 6, 0.30);
  --tp-danger: #b91c1c;
  --tp-danger-bg: rgba(220, 38, 38, 0.11);
  --tp-danger-line: rgba(220, 38, 38, 0.28);
  --tp-blue: #1d4ed8;
  --tp-blue-bg: rgba(37, 99, 235, 0.10);
  --tp-blue-line: rgba(37, 99, 235, 0.24);
  --tp-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --tp-shadow-md: 0 12px 32px -12px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);
  --tp-shadow-lg: 0 24px 54px -18px rgba(15, 23, 42, 0.16);
  --tp-max: 1200px;

  background:
    radial-gradient(920px 380px at 90% -4%, rgba(var(--tp-accent-rgb), 0.10), transparent 62%),
    radial-gradient(680px 300px at 8% 14%, rgba(22, 163, 74, 0.06), transparent 60%),
    var(--tp-bg) !important;
  color: var(--tp-ink) !important;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

.tp-page.is-staff {
  min-height: auto;
  background: transparent !important;
}

html[data-mode="dark"] .tp-page,
html[data-theme="dark"] .tp-page {
  --tp-bg: #080c14;
  --tp-surface: #111827;
  --tp-surface-2: #162033;
  --tp-surface-3: #1e293b;
  --tp-ink: #f1f5f9;
  --tp-muted: #94a3b8;
  --tp-border: rgba(255, 255, 255, 0.09);
  --tp-border-strong: rgba(255, 255, 255, 0.17);
  --tp-ok: #4ade80;
  --tp-ok-bg: rgba(34, 197, 94, 0.15);
  --tp-ok-line: rgba(74, 222, 128, 0.30);
  --tp-warn: #fbbf24;
  --tp-warn-bg: rgba(245, 158, 11, 0.16);
  --tp-warn-line: rgba(251, 191, 36, 0.30);
  --tp-danger: #f87171;
  --tp-danger-bg: rgba(239, 68, 68, 0.16);
  --tp-danger-line: rgba(248, 113, 113, 0.30);
  --tp-blue: #60a5fa;
  --tp-blue-bg: rgba(59, 130, 246, 0.16);
  --tp-blue-line: rgba(96, 165, 250, 0.30);
  --tp-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.32);
  --tp-shadow-md: 0 16px 38px -12px rgba(0, 0, 0, 0.52);
  --tp-shadow-lg: 0 28px 60px -16px rgba(0, 0, 0, 0.68);
  background:
    radial-gradient(880px 380px at 90% -5%, rgba(var(--tp-accent-rgb), 0.16), transparent 62%),
    radial-gradient(640px 280px at 8% 16%, rgba(34, 197, 94, 0.08), transparent 60%),
    var(--tp-bg) !important;
}

html[data-mode="dark"] .tp-page.is-staff,
html[data-theme="dark"] .tp-page.is-staff {
  background: transparent !important;
}

html:has(.tp-page) {
  scroll-behavior: smooth;
}

.tp-page * {
  box-sizing: border-box;
}

.tp-muted {
  color: var(--tp-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* ==========================================================================
   1. Sticky Glass Top Bar
   ========================================================================== */
.tp-page .tp-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-inline: max(16px, calc((100% - var(--tp-max)) / 2));
  padding-block: 0.62rem;
  padding-top: calc(0.62rem + env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, 0.84) !important;
  backdrop-filter: blur(20px) saturate(165%);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  border-bottom: 1px solid var(--tp-border) !important;
  box-shadow: 0 4px 20px -16px rgba(15, 23, 42, 0.22);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

html[data-mode="dark"] .tp-page .tp-topbar,
html[data-theme="dark"] .tp-page .tp-topbar {
  background: rgba(11, 16, 28, 0.84) !important;
  box-shadow: 0 8px 28px -18px rgba(0, 0, 0, 0.78);
}

.tp-page .tp-topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.30);
}

html[data-mode="dark"] .tp-page .tp-topbar.is-scrolled,
html[data-theme="dark"] .tp-page .tp-topbar.is-scrolled {
  background: rgba(11, 16, 28, 0.94) !important;
}

.tp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--tp-ink);
  min-width: 0;
  flex: 0 1 auto;
}

.tp-brand-logo {
  width: 40px;
  height: 40px;
  max-width: 120px;
  border-radius: 11px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--tp-border-strong);
  padding: 3px;
  flex: 0 0 auto;
}

.tp-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--tp-accent), #1e293b);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.05rem;
  flex: 0 0 40px;
  box-shadow: 0 6px 16px -6px rgba(var(--tp-accent-rgb), 0.55);
}

.tp-brand-mark.is-lg {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  font-size: 1.35rem;
  border-radius: 15px;
}

.tp-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tp-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--tp-accent);
  line-height: 1.2;
}

.tp-brand-text strong {
  font-size: 0.96rem;
  font-weight: 900;
  color: var(--tp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.tp-top-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
}

.tp-top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--tp-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s, color 0.16s;
}

.tp-top-nav a:hover,
.tp-top-nav a.is-active {
  background: var(--tp-surface);
  color: var(--tp-accent);
  box-shadow: var(--tp-shadow-sm);
}

.tp-tools {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex: 0 0 auto;
}

.tp-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--tp-border);
  background: var(--tp-surface-2);
  color: var(--tp-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.98rem;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}

.tp-icon-btn:hover {
  border-color: rgba(var(--tp-accent-rgb), 0.45);
  background: rgba(var(--tp-accent-rgb), 0.10);
  color: var(--tp-accent);
}

.tp-icon-btn.is-copied,
.tp-pill.is-code.is-copied {
  border-color: var(--tp-ok) !important;
  background: var(--tp-ok-bg) !important;
  color: var(--tp-ok) !important;
}

.tp-top-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 36px;
  padding: 0 0.92rem;
  border-radius: 999px;
  background: var(--tp-accent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 18px -8px rgba(var(--tp-accent-rgb), 0.72);
  transition: transform 0.16s, filter 0.16s;
}

.tp-top-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  color: #ffffff;
}

.tp-top-cta.is-wa {
  background: #15803d;
  box-shadow: 0 8px 18px -8px rgba(21, 128, 61, 0.65);
}

/* ==========================================================================
   2. Main Container & Shared Primitives
   ========================================================================== */
.tp-main {
  width: 100%;
  max-width: var(--tp-max);
  margin: 0 auto;
  padding: 1.35rem 1rem 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  flex: 1 0 auto;
}

.tp-page.is-staff .tp-main {
  padding-inline: 0;
  padding-top: 0.5rem;
}

.tp-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 1.1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--tp-shadow-md);
  min-width: 0;
}

.tp-sec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tp-sec-title {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--tp-ink);
  margin: 0 0 0.18rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.tp-sec-title i {
  color: var(--tp-accent);
}

.tp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.tp-pill.is-kicker {
  background: rgba(var(--tp-accent-rgb), 0.11);
  border-color: rgba(var(--tp-accent-rgb), 0.26);
  color: var(--tp-accent);
}

.tp-pill.is-code {
  background: var(--tp-surface-2);
  border-color: var(--tp-border-strong);
  color: var(--tp-ink);
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}

.tp-pill.is-code:hover {
  border-color: rgba(var(--tp-accent-rgb), 0.45);
  background: rgba(var(--tp-accent-rgb), 0.08);
}

.tp-mini-copy {
  opacity: 0.65;
  font-size: 0.72rem;
}

.tp-pill.is-ok {
  background: var(--tp-ok-bg);
  border-color: var(--tp-ok-line);
  color: var(--tp-ok);
}

.tp-pill.is-warn {
  background: var(--tp-warn-bg);
  border-color: var(--tp-warn-line);
  color: var(--tp-warn);
}

.tp-pill.is-danger {
  background: var(--tp-danger-bg);
  border-color: var(--tp-danger-line);
  color: var(--tp-danger);
}

.tp-pill.is-blue {
  background: var(--tp-blue-bg);
  border-color: var(--tp-blue-line);
  color: var(--tp-blue);
}

.tp-pill.is-neutral {
  background: var(--tp-surface-2);
  border-color: var(--tp-border);
  color: var(--tp-muted);
}

.tp-pill.is-live {
  background: rgba(var(--tp-accent-rgb), 0.13);
  border-color: rgba(var(--tp-accent-rgb), 0.34);
  color: var(--tp-accent);
}

.tp-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(var(--tp-accent-rgb), 0.22);
  animation: tpPulse 1.8s infinite;
}

@keyframes tpPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.65; }
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 40px;
  padding: 0.48rem 0.98rem;
  border-radius: 0.72rem;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--tp-border-strong);
  background: var(--tp-surface);
  color: var(--tp-ink);
  transition: transform 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.tp-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--tp-accent-rgb), 0.45);
  color: var(--tp-accent);
}

.tp-btn.is-primary {
  background: var(--tp-accent);
  border-color: var(--tp-accent);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(var(--tp-accent-rgb), 0.68);
}

.tp-btn.is-primary:hover {
  filter: brightness(1.06);
  color: #ffffff;
}

.tp-btn.is-wa {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(21, 128, 61, 0.58);
}

.tp-btn.is-wa:hover {
  filter: brightness(1.07);
  color: #ffffff;
}

.tp-btn.is-danger {
  background: var(--tp-danger-bg);
  border-color: var(--tp-danger-line);
  color: var(--tp-danger);
}

.tp-btn.is-danger:hover {
  background: var(--tp-danger);
  border-color: var(--tp-danger);
  color: #ffffff;
}

.tp-btn.is-outline {
  background: var(--tp-surface-2);
  border-color: var(--tp-border-strong);
  color: var(--tp-ink);
}

.tp-btn.is-lg {
  min-height: 48px;
  padding: 0.62rem 1.3rem;
  font-size: 0.92rem;
  border-radius: 0.84rem;
}

.tp-btn.is-sm {
  min-height: 35px;
  padding: 0.34rem 0.78rem;
  font-size: 0.8rem;
}

.tp-btn.is-xs {
  min-height: 31px;
  padding: 0.25rem 0.62rem;
  font-size: 0.76rem;
  border-radius: 0.58rem;
}

/* ==========================================================================
   3. Lookup Page (/track)
   ========================================================================== */
.tp-lookup-hero {
  background:
    radial-gradient(640px 260px at 0% 0%, rgba(var(--tp-accent-rgb), 0.11), transparent 62%),
    radial-gradient(500px 220px at 100% 100%, rgba(22, 163, 74, 0.07), transparent 60%),
    var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 1.35rem;
  padding: 2rem 1.85rem;
  box-shadow: var(--tp-shadow-lg);
}

.tp-lookup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(260px, 0.88fr);
  gap: 1.75rem;
  align-items: center;
}

.tp-center-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.78rem 0.3rem 0.45rem;
  border-radius: 999px;
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border-strong);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--tp-ink);
  margin-bottom: 0.75rem;
}

.tp-center-badge img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
}

.tp-center-badge i {
  color: var(--tp-accent);
  font-size: 1rem;
}

.tp-lookup-title {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 900;
  line-height: 1.22;
  color: var(--tp-ink);
  margin: 0.45rem 0 0.5rem;
}

.tp-lookup-sub {
  font-size: 0.94rem;
  color: var(--tp-muted);
  line-height: 1.65;
  margin: 0 0 1.2rem;
  max-width: 56ch;
}

.tp-lookup-error {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.95rem;
  border-radius: 0.82rem;
  background: var(--tp-danger-bg);
  border: 1px solid var(--tp-danger-line);
  color: var(--tp-danger);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tp-lookup-form {
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}

.tp-lookup-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.tp-lookup-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.tp-input-ico {
  position: absolute;
  inset-inline-start: 0.95rem;
  font-size: 1.15rem;
  color: var(--tp-accent);
  pointer-events: none;
}

.tp-lookup-input {
  width: 100%;
  min-height: 54px;
  padding: 0.75rem 1rem;
  padding-inline-start: 2.75rem;
  border-radius: 0.9rem;
  border: 1.5px solid var(--tp-border-strong);
  background: var(--tp-surface-2);
  color: var(--tp-ink);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.tp-lookup-input:focus {
  border-color: var(--tp-accent);
  background: var(--tp-surface);
  box-shadow: 0 0 0 4px rgba(var(--tp-accent-rgb), 0.14);
}

.tp-samples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.tp-samples-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--tp-muted);
  margin-inline-end: 0.25rem;
}

.tp-sample-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.3rem 0.68rem;
  border-radius: 999px;
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border-strong);
  color: var(--tp-ink);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tp-sample-pill i {
  color: var(--tp-accent);
}

.tp-sample-pill code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.74rem;
  color: var(--tp-accent);
  background: rgba(var(--tp-accent-rgb), 0.10);
  padding: 0.05rem 0.32rem;
  border-radius: 0.35rem;
}

.tp-sample-pill:hover {
  border-color: var(--tp-accent);
  background: rgba(var(--tp-accent-rgb), 0.08);
}

/* Dark Glass Preview Card on Lookup */
.tp-lookup-visual {
  display: flex;
  justify-content: center;
}

.tp-demo-pass {
  width: 100%;
  max-width: 320px;
  border-radius: 1.2rem;
  padding: 1.2rem;
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 44px -16px rgba(15, 23, 42, 0.48);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tp-demo-pass-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 800;
  color: #cbd5e1;
}

.tp-demo-pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.16);
  color: #4ade80;
  font-size: 0.7rem;
}

.tp-demo-code {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.82rem;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-demo-code small {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
}

.tp-demo-code b {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.tp-demo-code i {
  font-size: 1.35rem;
  color: #fb923c;
}

.tp-demo-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tp-demo-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.tp-demo-step.is-done {
  color: #e2e8f0;
}

.tp-demo-step.is-on {
  color: #ffffff;
}

.tp-demo-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  flex: 0 0 22px;
}

.tp-demo-step.is-done .tp-demo-dot {
  background: #16a34a;
  color: #ffffff;
}

.tp-demo-step.is-on .tp-demo-dot {
  background: var(--tp-accent);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(var(--tp-accent-rgb), 0.30);
}

.tp-demo-pass-foot {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.tp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.tp-trust-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 1rem;
  padding: 1.05rem 1.1rem;
  box-shadow: var(--tp-shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.78rem;
}

.tp-trust-ico {
  width: 42px;
  height: 42px;
  border-radius: 0.78rem;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.tp-trust-ico.is-accent { background: rgba(var(--tp-accent-rgb), 0.12); color: var(--tp-accent); }
.tp-trust-ico.is-ok { background: var(--tp-ok-bg); color: var(--tp-ok); }
.tp-trust-ico.is-blue { background: var(--tp-blue-bg); color: var(--tp-blue); }

.tp-trust-card h2 {
  font-size: 0.94rem;
  font-weight: 900;
  color: var(--tp-ink);
  margin: 0 0 0.2rem;
}

.tp-trust-card p {
  font-size: 0.8rem;
  color: var(--tp-muted);
  margin: 0;
  line-height: 1.5;
}

/* Choices & Rate Limit */
.tp-alert-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-color: var(--tp-warn-line);
  background: var(--tp-warn-bg);
}

.tp-alert-ico {
  width: 46px;
  height: 46px;
  border-radius: 0.85rem;
  background: var(--tp-surface);
  color: var(--tp-warn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex: 0 0 46px;
}

.tp-alert-card h2 { font-size: 1.02rem; font-weight: 900; margin: 0 0 0.15rem; }
.tp-alert-card p { margin: 0; font-size: 0.86rem; color: var(--tp-muted); }

.tp-code-chip {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 0.35rem 0.75rem;
  border-radius: 0.6rem;
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border-strong);
}

.tp-choices-grid {
  display: grid;
  gap: 0.65rem;
}

.tp-choice-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 0.88rem;
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
  text-decoration: none;
  color: var(--tp-ink);
  transition: border-color 0.16s, transform 0.16s, background 0.16s;
}

.tp-choice-item:hover {
  border-color: rgba(var(--tp-accent-rgb), 0.5);
  background: var(--tp-surface);
  transform: translateY(-1px);
  color: var(--tp-ink);
}

.tp-choice-ico {
  width: 40px;
  height: 40px;
  border-radius: 0.72rem;
  background: rgba(var(--tp-accent-rgb), 0.12);
  color: var(--tp-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex: 0 0 40px;
}

.tp-choice-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.tp-choice-info strong { font-size: 0.94rem; font-weight: 900; }
.tp-choice-info small { font-size: 0.78rem; color: var(--tp-muted); }
.tp-choice-arrow { color: var(--tp-muted); }

/* ==========================================================================
   4. Tracking Result Executive Hero + Glass Spotlight Card
   ========================================================================== */
.tp-hero {
  position: relative;
  background:
    radial-gradient(700px 270px at 0% 0%, rgba(var(--tp-accent-rgb), 0.11), transparent 62%),
    radial-gradient(520px 220px at 100% 100%, rgba(22, 163, 74, 0.07), transparent 60%),
    var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 1.2rem;
  box-shadow: var(--tp-shadow-md);
  padding: 1.35rem 1.45rem;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(285px, 0.92fr);
  gap: 1.2rem;
  align-items: center;
}

.tp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.tp-hero-title {
  font-size: clamp(1.32rem, 2.5vw, 1.72rem);
  font-weight: 900;
  color: var(--tp-ink);
  margin: 0 0 0.35rem;
  line-height: 1.24;
}

.tp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--tp-muted);
  font-weight: 700;
  margin-bottom: 1.05rem;
}

.tp-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.tp-hero-meta i {
  color: var(--tp-accent);
}

.tp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Glass Spotlight Card */
.tp-spotlight {
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
  border-radius: 0.98rem;
  padding: 1.08rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.78rem;
}

.tp-spot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tp-spot-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--tp-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tp-spot-label i { color: var(--tp-accent); }

.tp-spot-badge {
  font-size: 0.71rem;
  font-weight: 800;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.tp-spot-badge.is-ok { background: var(--tp-ok-bg); border-color: var(--tp-ok-line); color: var(--tp-ok); }
.tp-spot-badge.is-warn { background: var(--tp-warn-bg); border-color: var(--tp-warn-line); color: var(--tp-warn); }
.tp-spot-badge.is-danger { background: var(--tp-danger-bg); border-color: var(--tp-danger-line); color: var(--tp-danger); }
.tp-spot-badge.is-blue { background: var(--tp-blue-bg); border-color: var(--tp-blue-line); color: var(--tp-blue); }

.tp-spot-main {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.tp-spot-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.08;
  color: var(--tp-ink);
  letter-spacing: -0.02em;
}

.tp-spot-unit {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--tp-muted);
}

.tp-spot-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--tp-surface-3);
  overflow: hidden;
}

.tp-spot-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tp-accent), #f59e0b);
  transition: width 0.35s ease;
}

.tp-spot-bar-fill.is-ok {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.tp-spot-bar-fill.is-danger {
  background: var(--tp-danger);
}

.tp-spot-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.tp-spot-chip {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 0.68rem;
  padding: 0.46rem 0.54rem;
  min-width: 0;
}

.tp-spot-chip.is-ok { border-color: var(--tp-ok-line); }
.tp-spot-chip.is-warn { border-color: var(--tp-warn-line); background: var(--tp-warn-bg); }
.tp-spot-chip.is-danger { border-color: var(--tp-danger-line); background: var(--tp-danger-bg); }

.tp-spot-k {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--tp-muted);
  margin-bottom: 0.14rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-spot-v {
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--tp-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-spot-chip.is-ok .tp-spot-v { color: var(--tp-ok); }
.tp-spot-chip.is-danger .tp-spot-v { color: var(--tp-danger); }
.tp-spot-chip.is-warn .tp-spot-v { color: var(--tp-warn); }

/* ==========================================================================
   5. Interactive 4-KPI Strip
   ========================================================================== */
.tp-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.78rem;
}

.tp-kpi-card {
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 0.98rem;
  padding: 0.92rem 1rem;
  box-shadow: var(--tp-shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.78rem;
  text-decoration: none;
  color: var(--tp-ink);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
  min-width: 0;
}

.tp-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--tp-accent-rgb), 0.45);
  box-shadow: var(--tp-shadow-md);
  color: var(--tp-ink);
}

.tp-kpi-ico {
  width: 42px;
  height: 42px;
  border-radius: 0.8rem;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.tp-kpi-ico.is-accent { background: rgba(var(--tp-accent-rgb), 0.12); color: var(--tp-accent); }
.tp-kpi-ico.is-ok { background: var(--tp-ok-bg); color: var(--tp-ok); }
.tp-kpi-ico.is-blue { background: var(--tp-blue-bg); color: var(--tp-blue); }
.tp-kpi-ico.is-warn { background: var(--tp-warn-bg); color: var(--tp-warn); }
.tp-kpi-ico.is-danger { background: var(--tp-danger-bg); color: var(--tp-danger); }

.tp-kpi-meta { min-width: 0; }
.tp-kpi-k { display: block; font-size: 0.74rem; font-weight: 800; color: var(--tp-muted); }
.tp-kpi-v { display: block; font-size: 1.16rem; font-weight: 900; line-height: 1.24; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-kpi-v.is-sm { font-size: 0.98rem; }
.tp-kpi-s { display: block; font-size: 0.72rem; color: var(--tp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   6. ch-rail Workspace Layout
   ========================================================================== */
.tp-workspace {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
}

.tp-rail-wrap {
  position: sticky;
  top: 76px;
  z-index: 20;
}

.tp-rail {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  border-radius: 1.05rem;
  padding: 0.55rem;
  box-shadow: var(--tp-shadow-sm);
}

.tp-rail .ch-rail-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.64rem 0.78rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--tp-muted);
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 0.16s, color 0.16s;
  white-space: nowrap;
}

.tp-rail .ch-rail-item i {
  font-size: 1rem;
  opacity: 0.85;
}

.tp-rail .ch-rail-item:hover {
  background: var(--tp-surface-2);
  color: var(--tp-ink);
}

.tp-rail .ch-rail-item.is-active {
  background: rgba(var(--tp-accent-rgb), 0.12);
  color: var(--tp-accent);
}

.tp-rail-badge {
  margin-inline-start: auto;
  font-style: normal;
  font-size: 0.71rem;
  font-weight: 900;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: var(--tp-surface-2);
  color: var(--tp-muted);
}

.tp-rail-badge.is-live { background: var(--tp-accent); color: #ffffff; }
.tp-rail-badge.is-ok { background: var(--tp-ok-bg); color: var(--tp-ok); }

.tp-panels {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.tp-panel {
  scroll-margin-top: 84px;
}

/* ==========================================================================
   7. Stepper & Status Callout
   ========================================================================== */
.tp-stepper-box {
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
  border-radius: 0.98rem;
  padding: 1.1rem 1.05rem;
  margin-bottom: 0.95rem;
}

.tp-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--tp-steps, 5), minmax(0, 1fr));
  gap: 0.35rem;
}

.tp-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.38rem;
}

.tp-step::before {
  content: "";
  position: absolute;
  top: 17px;
  inset-inline-start: -50%;
  width: 100%;
  height: 2.5px;
  background: var(--tp-border-strong);
  z-index: 0;
}

.tp-step:first-child::before { display: none; }
.tp-step.is-done::before,
.tp-step.is-current::before { background: var(--tp-accent); }

.tp-step-dot {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tp-surface);
  border: 2px solid var(--tp-border-strong);
  color: var(--tp-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.tp-step.is-done .tp-step-dot {
  background: var(--tp-ok);
  border-color: var(--tp-ok);
  color: #ffffff;
}

.tp-step.is-current .tp-step-dot {
  background: var(--tp-accent);
  border-color: var(--tp-accent);
  color: #ffffff;
  box-shadow: 0 0 0 5px rgba(var(--tp-accent-rgb), 0.22);
  transform: scale(1.06);
}

.tp-step-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--tp-muted);
  line-height: 1.25;
}

.tp-step.is-current .tp-step-label { color: var(--tp-accent); }
.tp-step.is-done .tp-step-label { color: var(--tp-ink); }

.tp-status-note {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.85rem 1rem;
  border-radius: 0.88rem;
  background: rgba(var(--tp-accent-rgb), 0.09);
  border: 1px solid rgba(var(--tp-accent-rgb), 0.24);
  color: var(--tp-ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}

.tp-status-note i {
  font-size: 1.15rem;
  color: var(--tp-accent);
  flex: 0 0 auto;
}

.tp-status-note.is-ok {
  background: var(--tp-ok-bg);
  border-color: var(--tp-ok-line);
}

.tp-status-note.is-ok i { color: var(--tp-ok); }

.tp-status-note.is-danger {
  background: var(--tp-danger-bg);
  border-color: var(--tp-danger-line);
}

.tp-status-note.is-danger i { color: var(--tp-danger); }

.tp-countdown-bar {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.88rem 1rem;
  border-radius: 0.9rem;
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
}

.tp-countdown-bar span {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--tp-muted);
  display: block;
}

.tp-countdown-bar strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--tp-accent);
}

/* ==========================================================================
   8. Items, Financial Summary, Bento Details, & Cafe Edit
   ========================================================================== */
.tp-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tp-item-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.82rem 0.95rem;
  border-radius: 0.9rem;
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
}

.tp-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: 0.72rem;
  overflow: hidden;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border);
  flex: 0 0 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tp-muted);
  font-size: 1.25rem;
}

.tp-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-item-body {
  flex: 1 1 auto;
  min-width: 0;
}

.tp-item-title {
  font-size: 0.94rem;
  font-weight: 900;
  color: var(--tp-ink);
  margin: 0 0 0.22rem;
  line-height: 1.35;
}

.tp-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--tp-muted);
  font-weight: 700;
}

.tp-qty-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 0.45rem;
  background: rgba(var(--tp-accent-rgb), 0.12);
  color: var(--tp-accent);
  font-weight: 900;
  font-size: 0.76rem;
}

.tp-variant-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.52rem;
  border-radius: 999px;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border-strong);
  color: var(--tp-ink);
  font-size: 0.74rem;
  font-weight: 800;
}

.tp-item-sum {
  text-align: end;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.tp-item-sum strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--tp-ink);
}

.tp-item-sum small {
  font-size: 0.72rem;
  color: var(--tp-muted);
}

.tp-summary-box {
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
  border-radius: 0.92rem;
  padding: 0.9rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tp-sum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.86rem;
  color: var(--tp-muted);
  font-weight: 700;
}

.tp-sum-row b {
  color: var(--tp-ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tp-sum-row.is-total {
  padding-top: 0.6rem;
  margin-top: 0.2rem;
  border-top: 1px dashed var(--tp-border-strong);
  font-size: 1rem;
  color: var(--tp-ink);
  font-weight: 900;
}

.tp-sum-row.is-total b {
  font-size: 1.18rem;
  color: var(--tp-accent);
  font-weight: 900;
}

.tp-sum-row.is-ok b { color: var(--tp-ok); }
.tp-sum-row.is-due b { color: var(--tp-danger); }

/* Bento Info Grid */
.tp-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.tp-info-box {
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
  border-radius: 0.88rem;
  padding: 0.82rem 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.68rem;
  min-width: 0;
}

.tp-info-box.is-full {
  grid-column: 1 / -1;
}

.tp-info-ico {
  width: 36px;
  height: 36px;
  border-radius: 0.68rem;
  background: rgba(var(--tp-accent-rgb), 0.11);
  color: var(--tp-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex: 0 0 36px;
}

.tp-info-box small {
  display: block;
  font-size: 0.73rem;
  font-weight: 800;
  color: var(--tp-muted);
  margin-bottom: 0.14rem;
}

.tp-info-box strong,
.tp-info-box b {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--tp-ink);
  line-height: 1.45;
  word-break: break-word;
}

/* Payment & Digital Fulfillment */
.tp-pay-box {
  margin-top: 0.9rem;
  padding: 1rem 1.08rem;
  border-radius: 0.92rem;
  background: var(--tp-warn-bg);
  border: 1px solid var(--tp-warn-line);
}

.tp-pay-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--tp-ink);
}

.tp-pay-val {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.78rem;
  border-radius: 0.65rem;
  background: var(--tp-surface);
  border: 1px solid var(--tp-border-strong);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--tp-ink);
  margin: 0.35rem 0 0.5rem;
}

.tp-fulfill-grid {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tp-progress-wrap {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.88rem;
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
}

.tp-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.tp-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--tp-surface-3);
  overflow: hidden;
}

.tp-progress-track > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--tp-ok);
}

/* Cafe Edit / Cancel Controls */
.tp-flash {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 0.98rem;
  border-radius: 0.84rem;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.tp-flash.is-ok {
  background: var(--tp-ok-bg);
  border: 1px solid var(--tp-ok-line);
  color: var(--tp-ok);
}

.tp-flash.is-danger {
  background: var(--tp-danger-bg);
  border: 1px solid var(--tp-danger-line);
  color: var(--tp-danger);
}

.tp-cafe-edit-box {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 0.95rem;
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
}

.tp-cafe-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--tp-border);
  align-items: center;
}

.tp-cafe-edit-row:last-of-type { border-bottom: none; }

.tp-cafe-edit-row .tp-item-note-inp {
  grid-column: 1 / -1;
}

.tp-stepper-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tp-stepper-ctrl .mn-btn {
  width: 34px;
  height: 34px;
  border-radius: 0.6rem;
  border: 1px solid var(--tp-border-strong);
  background: var(--tp-surface);
  color: var(--tp-ink);
  font-weight: 900;
  cursor: pointer;
}

.tp-stepper-ctrl .mn-qty {
  width: 54px;
  height: 34px;
  text-align: center;
  border-radius: 0.6rem;
  border: 1px solid var(--tp-border-strong);
  background: var(--tp-surface);
  color: var(--tp-ink);
  font-weight: 900;
}

.tp-cafe-edit-box .form-control {
  background-color: var(--tp-surface);
  border: 1px solid var(--tp-border-strong);
  color: var(--tp-ink);
  border-radius: 0.68rem;
}

.tp-cafe-cancel {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tp-cafe-cancel .form-control {
  flex: 1 1 200px;
  background-color: var(--tp-surface);
  border: 1px solid var(--tp-border-strong);
  color: var(--tp-ink);
  border-radius: 0.68rem;
}

/* ==========================================================================
   9. Contact Center & Tracking QR
   ========================================================================== */
.tp-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.85fr);
  gap: 1.15rem;
  align-items: stretch;
}

.tp-contact-info {
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
  border-radius: 0.95rem;
  padding: 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tp-contact-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.tp-contact-head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.tp-contact-logo {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--tp-border-strong);
  padding: 4px;
  flex: 0 0 52px;
}

.tp-contact-head h3 { font-size: 1rem; font-weight: 900; margin: 0 0 0.15rem; color: var(--tp-ink); overflow-wrap: anywhere; }
.tp-contact-head p { font-size: 0.8rem; color: var(--tp-muted); margin: 0; overflow-wrap: anywhere; }

.tp-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.84rem;
  min-width: 0;
}

.tp-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--tp-ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.tp-contact-list i { color: var(--tp-accent); margin-top: 0.15rem; flex: 0 0 auto; }
.tp-contact-list a { color: var(--tp-ink); text-decoration: none; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.tp-contact-list a:hover { color: var(--tp-accent); }

.tp-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  min-width: 0;
  max-width: 100%;
}

.tp-contact-actions .tp-btn {
  max-width: 100%;
}

.tp-qr-box {
  background: var(--tp-surface-2);
  border: 1px solid var(--tp-border);
  border-radius: 0.95rem;
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.tp-qr-holder {
  width: 142px;
  max-width: 100%;
  height: 142px;
  padding: 10px;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--tp-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-qr-holder svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tp-qr-meta { min-width: 0; max-width: 100%; }
.tp-qr-meta strong { display: block; font-size: 0.92rem; color: var(--tp-ink); overflow-wrap: anywhere; }
.tp-qr-meta p { font-size: 0.78rem; color: var(--tp-muted); margin: 0.15rem 0 0.45rem; overflow-wrap: anywhere; }
.tp-qr-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.42rem; max-width: 100%; }

/* ==========================================================================
   10. Dark Rounded Executive Footer (1:1 Match with /s/<slug> & /store) & Mobile Quick Dock
   ========================================================================== */
.tp-page .tp-footer.csite-foot.st-foot {
  width: min(var(--tp-max, 1200px), calc(100% - 36px));
  max-width: calc(100% - 24px);
  margin: auto auto 28px;
  margin-top: auto;
  padding: 16px 22px;
  border-radius: 18px;
  background: #111621 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  color: #e2e8f0;
  box-sizing: border-box;
}

.tp-page .tp-footer.csite-foot.st-foot .st-foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.tp-page .tp-footer.csite-foot.st-foot .st-foot-ident {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.tp-page .tp-footer.csite-foot.st-foot .st-foot-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.tp-page .tp-footer.csite-foot.st-foot .st-foot-type {
  font-size: 0.76rem;
  font-weight: 700;
  color: #5b6472;
  padding: 2px 10px;
  border-radius: 999px;
  background: #f3f0ea;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.tp-page .tp-footer.csite-foot.st-foot .st-foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  max-width: 100%;
}

.tp-page .tp-footer.csite-foot.st-foot .st-foot-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.tp-page .tp-footer.csite-foot.st-foot .st-foot-pill i {
  font-size: 0.8rem;
  color: var(--tp-accent, #e85d04);
  flex: 0 0 auto;
}

.tp-page .tp-footer.csite-foot.st-foot a.st-foot-pill:hover {
  color: #ffffff;
  border-color: rgba(var(--tp-accent-rgb, 232, 93, 4), 0.45);
  background: rgba(255, 255, 255, 0.13);
}

.tp-page .tp-footer.csite-foot.st-foot .st-foot-pill.is-wa {
  background: rgba(22, 163, 74, 0.22);
  border-color: rgba(74, 222, 128, 0.34);
  color: #dcfce7;
}

.tp-page .tp-footer.csite-foot.st-foot .st-foot-pill.is-wa i {
  color: #4ade80;
}

.tp-page .tp-footer.csite-foot.st-foot a.st-foot-pill.is-wa:hover {
  background: rgba(22, 163, 74, 0.34);
  border-color: rgba(74, 222, 128, 0.55);
  color: #ffffff;
}

.tp-page .tp-footer.csite-foot.st-foot .st-foot-pill.is-meta {
  color: #cbd5e1;
  font-weight: 600;
}

.tp-page .tp-footer.csite-foot.st-foot .csite-foot-in {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.tp-page .tp-footer.csite-foot.st-foot .pub-brand {
  width: auto;
  max-width: 100%;
  flex: 0 1 auto;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.72) !important;
}

.tp-page .tp-footer.csite-foot.st-foot .pub-brand-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(226, 232, 240, 0.72) !important;
}

.tp-page .tp-footer.csite-foot.st-foot .pub-brand-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 5px;
  border-radius: 999px;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  text-decoration: none;
  color: #111827 !important;
  font-weight: 800;
  font-size: 0.82rem;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

html[dir="rtl"] .tp-page .tp-footer.csite-foot.st-foot .pub-brand-name {
  padding: 4px 5px 4px 11px;
}

.tp-page .tp-footer.csite-foot.st-foot .pub-brand-name:hover {
  background: #f8fafc !important;
  color: var(--tp-accent, #e85d04) !important;
  border-color: rgba(var(--tp-accent-rgb, 232, 93, 4), 0.45) !important;
}

.tp-page .tp-footer.csite-foot.st-foot .pub-brand-name img {
  height: 24px;
  width: 24px;
  max-width: 72px;
  border-radius: 999px;
  object-fit: contain;
  display: block;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 2px;
}

.tp-page .tp-footer.csite-foot.st-foot .pub-brand-name b {
  font-weight: 800;
  color: inherit !important;
}

.tp-page .tp-footer.csite-foot.st-foot .pub-brand-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-inline-start: 0;
  padding-inline-start: 0;
  border-inline-start: 0;
}

.tp-page .tp-footer.csite-foot.st-foot .pub-brand-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #111827 !important;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.tp-page .tp-footer.csite-foot.st-foot .pub-brand-links a:hover {
  background: #f8fafc !important;
  color: var(--tp-accent, #e85d04) !important;
  border-color: rgba(var(--tp-accent-rgb, 232, 93, 4), 0.45) !important;
}

.tp-page .tp-footer.csite-foot.st-foot .pub-brand-links i {
  font-size: 0.78rem;
  color: var(--tp-accent, #e85d04);
}

.tp-page .tp-footer.csite-foot.st-foot .csite-foot-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.68);
  white-space: nowrap;
}

html[data-mode="dark"] .tp-page .tp-footer.csite-foot.st-foot,
html[data-theme="dark"] .tp-page .tp-footer.csite-foot.st-foot {
  background: #111621 !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

html[data-mode="dark"] .tp-page .tp-footer.csite-foot.st-foot .st-foot-type,
html[data-theme="dark"] .tp-page .tp-footer.csite-foot.st-foot .st-foot-type {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

.tp-mobile-dock {
  display: none;
}

/* ==========================================================================
   11. Responsive Breakpoints (Tablet & Mobile 320px+)
   ========================================================================== */
@media (max-width: 1040px) {
  .tp-top-nav { display: none; }
  .tp-hero { grid-template-columns: minmax(0, 1fr); }
  .tp-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-workspace { grid-template-columns: minmax(0, 1fr); }
  .tp-rail-wrap {
    top: 58px;
    margin-inline: 0;
    padding-inline: 0;
    min-width: 0;
    max-width: 100%;
  }
  .tp-rail {
    flex-direction: row;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    padding: 0.38rem;
    gap: 0.35rem;
  }
  .tp-rail::-webkit-scrollbar { display: none; }
  .tp-rail .ch-rail-item {
    padding: 0.46rem 0.78rem;
    font-size: 0.8rem;
    flex: 0 0 auto;
  }
  .tp-lookup-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-lookup-visual { display: none; }
  .tp-trust-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  .tp-top-cta { display: none; }
  .tp-main { padding: 0.9rem 0.75rem 2rem; gap: 0.9rem; max-width: 100%; }
  .tp-card { padding: 1rem 0.92rem; border-radius: 0.98rem; max-width: 100%; }
  .tp-sec-head > div { min-width: 0; max-width: 100%; }
  .tp-hero { padding: 1.05rem 0.95rem; border-radius: 1.05rem; }
  .tp-lookup-hero { padding: 1.25rem 1rem; border-radius: 1.1rem; }
  .tp-lookup-row { flex-direction: column; }
  .tp-lookup-row .tp-btn { width: 100%; }
  .tp-spot-chips { grid-template-columns: minmax(0, 1fr); }
  .tp-info-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0.8rem;
  }
  .tp-step::before { display: none; }

  .tp-page.has-result.is-public {
    padding-bottom: calc(5.2rem + max(16px, env(safe-area-inset-bottom, 0px)));
  }

  .tp-page .tp-footer.csite-foot.st-foot {
    width: calc(100% - 24px);
    margin: 16px auto 20px;
    padding: 14px;
    border-radius: 16px;
  }
  .tp-page .tp-footer.csite-foot.st-foot .st-foot-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .tp-page .tp-footer.csite-foot.st-foot .st-foot-ident,
  .tp-page .tp-footer.csite-foot.st-foot .st-foot-links {
    justify-content: center;
  }
  .tp-page .tp-footer.csite-foot.st-foot .csite-foot-in {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .tp-page .tp-footer.csite-foot.st-foot .pub-brand,
  .tp-page .tp-footer.csite-foot.st-foot .pub-brand-links {
    justify-content: center;
  }
  .tp-page .tp-footer.csite-foot.st-foot .csite-foot-copy {
    white-space: normal;
    justify-content: center;
    flex-wrap: wrap;
  }
  .tp-page.has-result.is-public .tp-footer.csite-foot.st-foot {
    margin-bottom: 16px;
  }

  .tp-mobile-dock {
    position: fixed;
    inset-inline: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--tp-border-strong);
    box-shadow: 0 14px 36px -10px rgba(15, 23, 42, 0.28);
  }

  html[data-mode="dark"] .tp-mobile-dock,
  html[data-theme="dark"] .tp-mobile-dock {
    background: rgba(17, 24, 39, 0.92);
    box-shadow: 0 16px 38px -10px rgba(0, 0, 0, 0.72);
  }

  .tp-dock-btn {
    flex: 1 1 0;
    min-height: 44px;
    border-radius: 0.76rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.36rem;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 900;
    background: var(--tp-surface-2);
    color: var(--tp-ink);
    border: 1px solid var(--tp-border);
  }

  .tp-dock-btn.is-wa {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
  }

  .tp-dock-btn.is-primary {
    flex: 1.35 1 0;
    background: var(--tp-accent);
    border-color: var(--tp-accent);
    color: #ffffff;
  }
}

@media (max-width: 640px) {
  .tp-contact-actions,
  .tp-hero-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .tp-contact-actions .tp-btn,
  .tp-hero-actions .tp-btn {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .tp-qr-btns .tp-btn {
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .tp-kpi-strip { grid-template-columns: minmax(0, 1fr); }
  .tp-brand-text strong { max-width: 118px; font-size: 0.88rem; }
  .tp-spot-num { font-size: 1.65rem; }
  .tp-item-row { flex-wrap: wrap; }
  .tp-item-sum { width: 100%; text-align: start; padding-top: 0.35rem; border-top: 1px dashed var(--tp-border); }
  .tp-contact-actions .tp-btn { flex: 1 1 100%; }
}

/* 4-Stage Commerce Order Timeline (Received -> Preparing -> On the Way -> Delivered) */
.tp-stepper.is-store-tl {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
}
.tp-stepper.is-store-tl .tp-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
}
.tp-stepper.is-store-tl .tp-step-time {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--tp-muted, #64748b);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.tp-stepper.is-store-tl .tp-step.is-current .tp-step-dot {
  box-shadow: 0 0 0 5px rgba(var(--tp-accent-rgb, 232, 93, 4), .22);
}
@media (max-width: 520px) {
  .tp-stepper.is-store-tl {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .tp-stepper.is-store-tl .tp-step {
    flex-direction: row;
    text-align: start;
    align-items: center;
    gap: .75rem;
  }
  .tp-stepper.is-store-tl .tp-step-time {
    margin-inline-start: auto;
  }
}

}
