.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  background: transparent;
  transition: color 0.4s var(--ease), border-color 0.4s, transform 0.4s var(--ease);
}

.ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
  transform: translateY(-1px);
}

.page-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.page-card {
  background: var(--surface, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.07));
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: dp-rise 0.9s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}

.page-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff;
  min-height: 1.15em;
}

.page-title-type {
  display: inline;
}

.page-eyebrow-type {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  font-weight: 200;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  min-height: 1.2em;
}

.page-lead {
  margin: 0 0 1.25rem;
  color: var(--muted, rgba(255, 255, 255, 0.38));
  font-weight: 200;
  line-height: 1.85;
}

.page-lead code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  color: rgba(255, 255, 255, 0.7);
}

.checkout-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .checkout-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

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

@media (max-width: 640px) {
  .form-grid.two-col {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

.field input {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
  padding: 0.55rem 0.75rem;
  font: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.summary-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1rem;
  transition: border-color 0.3s var(--ease);
}

.summary-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.summary-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.summary-lines {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.summary-totals {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.summary-totals div {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
}

.summary-totals .total-row {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-pill, 999px);
  border: none;
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.25s, color 0.25s;
}

.primary-btn {
  width: 100%;
  margin-top: 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  border-radius: 0;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: none;
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.secondary-btn {
  padding: 0 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
}

.secondary-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: scale(1.02);
}

.alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.alert.error {
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.alert.info {
  background: rgba(30, 58, 138, 0.28);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #dbeafe;
}

.order-card {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.order-card-reveal {
  animation: dp-rise 0.65s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) forwards;
}

.order-card-head {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.order-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.status-pill {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.02);
}

.status-pill--pay {
  border-color: rgba(190, 150, 255, 0.2);
  color: rgba(190, 150, 255, 0.75);
  background: rgba(124, 58, 237, 0.08);
}

.order-id-block {
  display: grid;
  gap: 0.65rem;
}

.order-id-code {
  display: block;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.5;
  word-break: break-all;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.order-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-tracking-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem;
}

.order-tracking {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.order-tracking-code {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}

.order-items-section {
  display: grid;
  gap: 0.5rem;
}

.order-line-name {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.order-line-brand {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.order-line-qty {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
}

.order-line-price {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.order-extras {
  margin-top: 1.25rem;
}

/* —— Mono action buttons (order / help / track) —— */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease),
    background 0.35s var(--ease);
}

.action-btn:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.action-btn--accent {
  border-color: rgba(190, 150, 255, 0.28);
  color: rgba(210, 180, 255, 0.9);
  background: rgba(124, 58, 237, 0.1);
}

.action-btn--accent:hover {
  border-color: rgba(190, 150, 255, 0.45);
  background: rgba(124, 58, 237, 0.16);
}

.action-btn--flash {
  border-color: rgba(134, 239, 172, 0.35);
  color: rgba(187, 247, 208, 0.95);
}

.order-eyebrow {
  margin: 0;
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 9px;
  font-weight: 200;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

.order-meta,
.order-tracking,
.order-footnote,
.muted {
  margin: 0;
  color: var(--muted, rgba(255, 255, 255, 0.5));
  line-height: 1.55;
  font-weight: 300;
}

.order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.order-totals {
  display: grid;
  gap: 0.45rem;
}

.order-totals div {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
}

.order-total-row {
  font-weight: 600;
  font-size: 1.05rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
}

.track-form {
  display: grid;
  gap: 0.85rem;
  max-width: 560px;
}

.track-form input {
  width: 100%;
  min-height: 44px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
  padding: 0.55rem 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.track-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.track-submit-btn {
  width: 100%;
  min-height: 44px;
  margin-top: 0.25rem;
}

.home-title-tld {
  color: var(--accent, rgba(167, 139, 250, 0.75));
}

.help-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.help-thread {
  display: grid;
  gap: 0.65rem;
  max-height: 280px;
  overflow: auto;
  margin: 0.75rem 0;
}

.help-bubble {
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  max-width: 92%;
  line-height: 1.45;
  white-space: pre-wrap;
}

.help-bubble.customer {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: auto;
}

.help-bubble.admin {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.18);
  margin-left: auto;
}

.help-bubble time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  opacity: 0.7;
}

.help-compose textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 300;
  resize: vertical;
  transition: border-color 0.25s var(--ease);
}

.help-compose textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
}

.help-compose .action-btn {
  margin-top: 0.65rem;
  width: 100%;
}

.help-empty {
  font-style: italic;
}
