:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #ccfbf1;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #ffffff;
  --page: #f4f6f8;
  --line: #e2e8f0;
  --purple: #7c3aed;
}
body { background: var(--page); color: var(--ink); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--brand); }
.navbar-brand { font-weight: 800; letter-spacing: -.02em; }
.navbar-brand .logo { display:inline-grid; place-items:center; width:34px; height:34px; border-radius:9px; background:var(--brand); color:#fff; margin-right:.5rem; }
.navbar { background: #fff; border-bottom: 1px solid var(--line); }
.navbar .nav-link { font-weight: 500; color: #334155; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--brand); }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.text-brand { color: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-soft); }
.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; border-radius: 14px 14px 0 0 !important; }
.hero { background: linear-gradient(135deg, #0f766e 0%, #0e7490 60%, #1e3a8a 100%); color: #fff; border-radius: 20px; padding: 3rem 2.5rem; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero h1 { font-weight: 800; letter-spacing: -.03em; }
.hero .lead { color: rgba(255,255,255,.85); }
.search-card { margin-top: -2.2rem; position: relative; z-index: 2; }
.stat { padding: 1.1rem 1.25rem; }
.stat .num { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.stat .lbl { color: var(--muted); font-size: .85rem; }
.route .city { font-weight: 600; white-space: nowrap; }
.run-card { transition: transform .12s ease, box-shadow .12s ease; }
.run-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.pill { display:inline-flex; align-items:center; gap:.3rem; padding:.2rem .6rem; border-radius:999px; font-size:.78rem; font-weight:600; background:#f1f5f9; color:#334155; }
.pill.good { background:#dcfce7; color:#166534; }
.pill.warn { background:#fef9c3; color:#854d0e; }
.pill.bad { background:#fee2e2; color:#991b1b; }
.status-badge { font-weight: 600; padding: .4em .65em; }
.text-bg-purple { background: var(--purple) !important; color: #fff !important; }
.clickable { cursor: pointer; }
.progress-steps { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.progress-steps li { flex: 1; text-align: center; position: relative; font-size: .8rem; color: var(--muted); }
.progress-steps li::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto .35rem; border-radius: 50%; background: #e2e8f0; border: 3px solid #fff; box-shadow: 0 0 0 1px #e2e8f0; position: relative; z-index: 1; }
.progress-steps li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: #e2e8f0; }
.progress-steps li:first-child::after { display: none; }
.progress-steps li.done { color: var(--brand); font-weight: 600; }
.progress-steps li.done::before { background: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.progress-steps li.done::after, .progress-steps li.current::after { background: var(--brand); }
.progress-steps li.current { color: var(--ink); font-weight: 700; }
.progress-steps li.current::before { background: #fff; box-shadow: 0 0 0 3px var(--brand); }
.progress-steps.failed li.current::before { box-shadow: 0 0 0 3px #dc2626; }
.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.5rem; border-left: 2px solid var(--line); margin-left: .4rem; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .25rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.timeline li.payment::before, .timeline li.payout::before { border-color: #16a34a; }
.timeline li.penalty::before, .timeline li.dispute::before, .timeline li.carrier_cancelled::before, .timeline li.dispute_rejected::before { border-color: #dc2626; }
.timeline .when { font-size: .75rem; color: var(--muted); }
.action-box { border: 2px solid var(--brand); border-radius: 14px; background: #f0fdfa; }
.action-box.danger { border-color: #dc2626; background: #fef2f2; }
.money-row { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.money-row:last-child { border-bottom: 0; }
.evidence-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.demo-btn { text-align: left; }
.demo-btn small { display: block; color: var(--muted); font-weight: 400; }
.doc-content h1 { font-size: 1.8rem; font-weight: 800; }
.doc-content h2 { font-size: 1.35rem; margin-top: 2rem; font-weight: 700; }
.doc-content h3 { font-size: 1.1rem; margin-top: 1.5rem; font-weight: 700; }
.doc-content table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: .92rem; }
.doc-content th, .doc-content td { border: 1px solid var(--line); padding: .45rem .6rem; vertical-align: top; }
.doc-content th { background: #f8fafc; }
.doc-content pre { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: 10px; font-size: .8rem; }
.doc-content blockquote { border-left: 4px solid var(--brand); padding-left: 1rem; color: var(--muted); }
.footer { color: var(--muted); font-size: .85rem; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.4rem; display: block; margin-bottom: .5rem; color: #cbd5e1; }
.price-big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.nav-tabs .nav-link.active { font-weight: 600; }
.badge-count { font-size: .7rem; vertical-align: top; }
