.myb-page {
  background: #f5f7fb;
  min-height: 100vh;
  padding-bottom: 48px;
}

.hero-block {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  padding: 48px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-content h1 {
  margin: 8px 0;
}

.hero-content .lead {
  max-width: 560px;
  line-height: 1.6;
}

.lookup-form {
  background: #0b1224;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.lookup-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lookup-form label span {
  font-weight: 600;
}

.lookup-form input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.lookup-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.lookup-form .helper {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.4;
}

.results {
  margin-top: -32px;
  position: relative;
  z-index: 1;
}

.result-header {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0ea5e9;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  background: #eef2ff;
  color: #312e81;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  min-height: 140px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.muted {
  color: #6b7280;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  background: #f1f5f9;
  color: #0f172a;
  padding: 8px 12px;
  border-radius: 999px;
}

.totals {
  display: grid;
  gap: 4px;
  font-size: 18px;
  font-weight: 700;
}

.totals .secondary {
  font-size: 14px;
  color: #475569;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  position: relative;
  padding-left: 16px;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0ea5e9;
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-secondary[hidden] {
  display: none !important;
}

.empty-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  margin-top: 24px;
}

.plan-balance {
  font-weight: 700;
  font-size: 18px;
  margin-top: 6px;
}

.plan-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  gap: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: #38bdf8;
  color: #0b1220;
  border: 1px solid #0f172a;
}

.btn-primary:hover {
  background: #0ea5e9;
  border-color: #111827;
}

.btn-secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  border-color: #94a3b8;
  color: #0b1224;
}

.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
}

.ghost-action {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.ghost-action:hover {
  background: #e2e8f0;
}

.live-status-card {
  grid-column: 1 / -1;
}

.status-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.status-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  min-height: 180px;
}

.status-title {
  margin: 8px 0;
  font-size: 16px;
}

.ladder {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.ladder-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: flex-start;
}

.ladder-step::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  border: 2px solid #94a3b8;
  background: #fff;
}

.ladder-step.completed::before {
  background: #0ea5e9;
  border-color: #0ea5e9;
}

.ladder-step.current::before {
  background: #10b981;
  border-color: #10b981;
}

.ladder-title {
  font-weight: 600;
  color: #0f172a;
}

.ladder-time {
  grid-column: 2 / span 1;
  font-size: 12px;
}

.pill-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.status-pill {
  background: #eef2ff;
  color: #312e81;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.live-status-card .muted.small {
  font-size: 12px;
}
