.orders-page { background: #fafafa; color: var(--text-primary); }
.orders-content {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 28px 120px 64px;
}
.orders-heading h1 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.orders-tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 0;
  border-bottom: 1px solid #e4e4e4;
  overflow-x: auto;
}
.orders-tabs button {
  flex: 0 0 auto;
  height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 0 10px;
  color: #6b6b6b;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}
.orders-tabs button.is-active {
  border-bottom-color: var(--brand-primary);
  color: #191919;
  font-weight: 600;
}
[data-user-tickets] {
  position: relative;
}
.orders-pane {
  transition: opacity .24s ease;
}
.orders-pane.is-enter { opacity: 0; }
.orders-pane.is-stack,
.orders-pane.is-leave {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.orders-pane.is-leave { opacity: 0; }
.orders-pane.is-boot { animation: orders-fade-in .28s ease both; }
@keyframes orders-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.order-list {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.order-row {
  margin: 0;
}
.order-row-main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  border-bottom: 1px solid #e4e4e4;
  color: inherit;
  text-decoration: none;
}
.order-row:last-child .order-row-main { border-bottom: 0; }
.order-list.is-skeleton { pointer-events: none; }
.order-skel-day,
.order-skel-meta,
.order-skel-title,
.order-skel-line {
  display: block;
  border-radius: 2px;
}
.order-skel-day { width: 36px; height: 26px; }
.order-skel-meta { width: 28px; height: 10px; }
.order-skel-title { width: 56%; max-width: 280px; height: 16px; }
.order-skel-line { width: 42%; max-width: 180px; height: 12px; }
.order-skel-line.is-short { width: 28%; max-width: 120px; }
.order-row.is-skeleton .order-row-cover { background: #ececec; }
.skeleton {
  background: linear-gradient(90deg, #ececec 25%, #f6f6f6 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: order-shimmer 1.35s infinite;
}
@keyframes order-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .orders-pane.is-boot { animation: none; }
  .orders-pane { transition: none; }
}
.order-row-date {
  display: flex;
  width: 56px;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}
.order-row-date b {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.order-row-date span {
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
}
.order-row-rule {
  display: block;
  width: 1px;
  height: 72px;
  flex: 0 0 auto;
  background: #e4e4e4;
}
.order-row-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}
.order-row-copy h2 {
  margin: 0;
  overflow: hidden;
  color: #191919;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-row-copy p {
  margin: 0;
  overflow: hidden;
  color: #6b6b6b;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-row-copy p + p { color: #4a4a4a; }
.order-row-action {
  margin-top: 2px;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 500;
}
.order-row-cover {
  width: 72px;
  height: 96px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #f1efee;
}
.order-row-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-row.is-used .order-row-date b,
.order-row.is-used .order-row-copy h2,
.order-row.is-cancelled .order-row-date b,
.order-row.is-cancelled .order-row-copy h2,
.order-row.is-unavailable .order-row-date b,
.order-row.is-unavailable .order-row-copy h2 {
  color: #6b6b6b;
}
.order-row.is-used .order-row-action,
.order-row.is-cancelled .order-row-action,
.order-row.is-unavailable .order-row-action { color: #6b6b6b; }
.order-row.is-used .order-row-cover,
.order-row.is-cancelled .order-row-cover,
.order-row.is-unavailable .order-row-cover { opacity: .4; }
.order-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 18px 16px;
  overflow: hidden;
  background: #fff;
}
.order-card-body {
  display: flex;
  gap: 16px;
}
.order-card-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.order-card-title {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: #191919;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.order-card-icon {
  margin-top: 1px;
  color: var(--brand-primary);
  font-size: 18px;
}
.order-card-subtitle,
.order-card-meta,
.order-card-option {
  margin: 5px 0 0;
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.order-card-amount {
  margin: 8px 0 0;
  color: #191919;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.order-card-status {
  margin: auto 0 0;
  padding-top: 12px;
  color: #16a34a;
  font-size: 13px;
  font-weight: 600;
}
.order-card-status[data-status="pending"],
.order-card-status[data-status="held"] { color: var(--brand-primary); }
.order-card-status[data-status="failed"],
.order-card-status[data-status="cancelled"],
.order-card-status[data-status="expired"] { color: #8a8a8a; }
.order-card-side {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  align-items: flex-end;
}
.order-card-cover {
  width: 108px;
  height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-muted);
}
.order-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}
.order-card-actions.has-two { grid-template-columns: 1fr 1fr; }
.order-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: #191919;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.order-card-btn:hover { background: #f6f6f6; }
.order-card-btn.is-primary {
  border-color: #ea580c;
  background: #ea580c;
  color: #fff;
}
.order-card-btn.is-primary:hover { background: #dc4a05; border-color: #dc4a05; }
.order-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 56px 24px 300px;
  color: #8a8a8a;
  font-size: 14px;
  text-align: center;
}
.order-empty h2 {
  margin: 12px 0 0;
  color: #878787;
  font-size: 13px;
  font-weight: 300;
}
.order-link { color: var(--brand-primary); font-weight: 600; }
.order-link:hover { text-decoration: underline; }
.order-message-error { color: var(--status-danger); }
.order-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 4px;
  color: var(--text-secondary);
  font-size: .85rem;
}
.order-pagination button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 12px;
  background: white;
  color: var(--text-primary);
  font-weight: 600;
}
.order-pagination button:disabled { cursor: not-allowed; opacity: .4; }
.order-pagination .material-symbols-outlined { font-size: 1.15rem; }
.result-progress-label { color: var(--brand-primary-dark); }
.result-progress-line { background: color-mix(in srgb, var(--brand-primary) 24%, var(--border-color)); }
.result-primary { background: var(--brand-primary); color: var(--surface-card); }
.result-primary:hover { background: var(--brand-primary-dark); }
.result-icon { color: var(--brand-primary); }
.result-icon[data-state="paid"] { color: var(--status-success); }
.result-icon[data-state="failed"] { color: var(--status-danger); }

@media (max-width: 1023px) {
  .orders-content { padding: 24px 48px 56px; }
}
@media (max-width: 639px) {
  .orders-content { width: 100%; padding: 20px 20px 40px; }
  .orders-heading h1 { margin-bottom: 16px; font-size: 22px; }
  .orders-tabs { gap: 22px; }
  .order-row-main { gap: 14px; padding: 16px 20px; }
  .order-row-copy h2 { font-size: 15px; }
  .order-row-cover { width: 60px; height: 80px; }
  .order-card { padding: 50px 20px 1000px; }
  .order-card-btn { min-height: 38px; font-size: 12px; padding: 8px 8px; }
}
