.center-page {
  background: #ffffff;
}

.center-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 48px;
}

.center-header h1 {
  margin: 0;
  text-align: center;
  font-size: 22px;
}

.center-hero {
  margin: 24px 0 18px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 122, 22, 0.12), transparent 52%),
    #f6f6f6;
}

.center-hero h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.center-hero p {
  margin: 0;
  color: #777777;
  font-size: 13px;
  line-height: 1.6;
}

.center-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding: 2px 0;
}

.center-filter-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 0;
  border-radius: 17px;
  background: #f2f2f2;
  color: #666666;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.center-filter-tabs button.active {
  background: #111111;
  color: #ffffff;
}

.center-list {
  display: grid;
  gap: 10px;
}

.center-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f7f7;
}

.center-card > div {
  min-width: 0;
}

.center-card > div:last-child {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.center-card strong {
  display: block;
  font-size: 15px;
}

.center-card span,
.center-card small {
  display: block;
  margin-top: 4px;
  color: #777777;
  font-size: 12px;
}

.center-card b {
  display: grid;
  justify-items: end;
  gap: 1px;
  max-width: 132px;
  text-align: right;
  font-size: 14px;
  line-height: 1.15;
}

.center-card b span {
  max-width: 132px;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.center-card b small {
  margin-top: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.center-card em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 26px;
  margin-top: 0;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f7ee;
  color: #239055;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.center-card em.pending {
  background: #fff5df;
  color: #b07a15;
}

.center-card em.process {
  background: #e7f0ff;
  color: #3167d6;
}

.center-card em.danger {
  background: #fff0f3;
  color: #e24961;
}

/* 2026 UI refresh */
.center-page {
  background: transparent;
}

.center-hero,
.center-card {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.center-hero {
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 14%, rgba(37, 99, 235, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(15, 143, 111, 0.11), rgba(245, 158, 11, 0.08)),
    #ffffff;
}

.center-hero p,
.center-card span,
.center-card small {
  color: var(--muted);
}

.center-filter-tabs button {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--muted);
}

.center-filter-tabs button.active {
  border-color: #0f172a;
  background: #0f172a;
}

.center-card {
  border-radius: 18px;
}

/* Tech blue refinement */
.center-hero {
  background:
    radial-gradient(circle at 88% 14%, rgba(84, 184, 255, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(36, 124, 255, 0.1), rgba(172, 221, 255, 0.18)),
    #ffffff;
}

.center-filter-tabs button.active {
  border-color: #1b65d8;
  background: #1b65d8;
}

/* Oh bits order center and ledger */
.center-page {
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}

.center-header {
  min-height: 58px;
}

.center-header h1 {
  color: var(--text);
  font-size: 24px;
}

.center-filter-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 18px;
  padding: 8px;
  border: 1px solid #303741;
  border-radius: 22px;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
  overflow: visible;
}

body[data-center-page="ledger"] .center-filter-tabs {
  padding: 0;
  border: 0;
  background: transparent;
}

.center-filter-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}

.center-filter-tabs button.active,
body[data-center-page="ledger"] .center-filter-tabs button.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #ffbe1a 0%, #f7a707 100%);
  color: #080b10;
  box-shadow: none;
}

body[data-center-page="orders"] .center-filter-tabs button.active {
  background: transparent;
  color: var(--brand);
}

.center-list {
  gap: 12px;
}

.center-card {
  border-color: #303741;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
  box-shadow: var(--shadow-soft);
}

.order-card {
  display: block;
  padding: 18px 14px;
  border-radius: 14px;
}

.order-card-head {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  padding-right: 28px;
}

.order-card-head > div {
  padding-right: 150px;
}

.center-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
}

.center-icon.teal,
.center-icon.green {
  background: linear-gradient(135deg, #35d875, #158c52);
}

.center-icon.orange {
  background: linear-gradient(135deg, #ffbe1a, #f7a707);
}

.center-icon.blue {
  background: linear-gradient(135deg, #7585ff, #4e5cf3);
}

.order-card strong,
.ledger-card strong {
  color: var(--text);
  font-size: 18px;
}

.order-card small,
.order-card-grid span,
.ledger-card span,
.ledger-card small {
  color: var(--muted);
}

.order-card code {
  display: inline-block;
  margin-top: 4px;
  color: var(--text);
  font: inherit;
}

.copy-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.copy-line button,
.order-card-grid b button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.copy-line button.copied,
.order-card-grid b button.copied {
  color: var(--brand);
  background: rgba(247, 167, 7, 0.12);
}

.order-card em {
  position: absolute;
  right: 26px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(34, 199, 97, 0.35);
  border-radius: 8px;
  background: rgba(34, 199, 97, 0.1);
  color: var(--green-2);
  font-size: 14px;
}

.order-card em.pending {
  border-color: rgba(247, 167, 7, 0.35);
  background: rgba(247, 167, 7, 0.1);
  color: var(--brand);
}

.order-card em.danger {
  border-color: rgba(255, 77, 87, 0.38);
  background: rgba(255, 77, 87, 0.1);
  color: var(--red);
}

.order-chevron {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  color: var(--muted);
}

.order-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #252b33;
  justify-items: stretch;
}

.order-card-grid div {
  display: grid;
  gap: 6px;
}

.order-card-grid b {
  display: inline-flex;
  align-items: center;
  max-width: none;
  color: var(--text);
  font-size: 16px;
  text-align: left;
}

.center-end-note {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

.ledger-summary-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0 20px;
  padding: 22px 8px;
  border: 1px solid rgba(247, 167, 7, 0.34);
  border-radius: 18px;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
}

.ledger-summary-card article {
  display: grid;
  justify-items: center;
  gap: 8px;
  border-right: 1px solid #3a414b;
}

.ledger-summary-card article:last-child {
  border-right: 0;
}

.ledger-summary-card span,
.ledger-summary-card small {
  color: var(--muted);
}

.ledger-summary-card strong {
  font-size: 24px;
}

.ledger-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(90px, auto) minmax(90px, auto) 18px;
  gap: 10px;
  align-items: center;
  min-height: 94px;
  padding: 14px;
  border-radius: 14px;
}

.ledger-card .ledger-main {
  min-width: 0;
}

.ledger-card small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.ledger-card b,
.ledger-card em {
  display: block;
  max-width: none;
  font-style: normal;
  font-size: 16px;
  font-weight: 800;
  text-align: right;
}

.ledger-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 380px) {
  .ledger-card {
    grid-template-columns: 48px minmax(0, 1fr) 86px 18px;
  }

  .ledger-card em {
    display: none;
  }

  .order-card-head {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }

  .order-chevron {
    display: none;
  }
}
