.orders-page {
  margin: 0 auto;
  max-width: 1040px;
}

.orders-heading {
  margin-bottom: 42px;
}

.orders-heading .eyebrow {
  margin-bottom: 12px;
}

.orders-heading h1 {
  font-size: clamp(2.3rem, 5vw, 3.25rem);
  margin-bottom: 10px;
}

.orders-sort-label {
  color: var(--text-muted);
  font-size: 0.76rem;
  padding-bottom: 2px;
}

.orders-list {
  display: grid;
  gap: 11px;
}

.orders-load-more {
  display: flex;
  gap: 8px;
  margin: 22px auto 0;
}

.order-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm), var(--highlight);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 20px 22px;
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.order-row:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md), var(--highlight);
  transform: translateY(-1px);
}

.order-row-main {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.order-type-icon {
  align-items: center;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 16px;
  color: var(--blue);
  display: inline-flex;
  flex: 0 0 50px;
  height: 50px;
  justify-content: center;
}

.order-type-icon svg {
  height: 23px;
  width: 23px;
}

.order-type-telegram_premium {
  background: var(--violet-soft);
  border-color: var(--violet-border);
  color: var(--violet);
}

.order-type-topup {
  background: var(--green-soft);
  border-color: var(--green-border);
  color: var(--green);
}

.order-primary {
  min-width: 0;
}

.order-kicker {
  color: var(--text-muted);
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.3;
  margin-bottom: 4px;
}

.order-title {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.order-meta {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 10px;
  margin-top: 7px;
  white-space: normal;
}

.order-meta-separator {
  background: var(--border);
  border-radius: 50%;
  height: 3px;
  width: 3px;
}

.order-payment-info {
  min-width: 100px;
  text-align: right;
}

.order-payment-info > strong {
  color: var(--text);
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}

.order-row-side {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 100px 190px;
}

.order-status-card {
  gap: 6px;
  min-height: 29px;
  padding: 4px 10px;
}

.order-status-card::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.order-action {
  gap: 9px;
  min-height: 39px;
  padding: 0 14px;
  white-space: nowrap;
  width: 190px;
}

.order-action span {
  color: var(--blue);
  font-size: 1.05rem;
  transition: transform 0.16s var(--ease);
}

.order-action:hover span {
  transform: translateX(2px);
}

.orders-empty {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm), var(--highlight);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  padding: 38px 24px;
  text-align: center;
}

.orders-empty-icon {
  align-items: center;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: 20px;
  color: var(--blue);
  display: inline-flex;
  height: 62px;
  justify-content: center;
  margin-bottom: 18px;
  width: 62px;
}

.orders-empty-icon svg {
  height: 30px;
  width: 30px;
}

.orders-empty h2 {
  font-size: 1.1rem;
  margin-bottom: 7px;
}

.orders-empty p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
  max-width: 340px;
}

@media (max-width: 820px) {
  .orders-heading {
    align-items: start;
  }

  .order-row {
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
    padding: 17px;
  }

  .order-row-side {
    align-items: center;
    border-top: 1px solid var(--border);
    column-gap: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 13px;
    width: 100%;
  }

  .order-payment-info {
    grid-column: 1;
    text-align: left;
  }

  .order-row-side > .order-action {
    grid-column: 2;
    width: auto;
  }
}

@media (max-width: 520px) {
  .orders-heading {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 34px;
  }

  .orders-sort-label {
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .order-row-main {
    align-items: flex-start;
    gap: 12px;
  }

  .order-type-icon {
    border-radius: 14px;
    flex-basis: 44px;
    height: 44px;
  }

  .order-row-side {
    column-gap: 8px;
  }

  .order-payment-info {
    min-width: 0;
  }

  .orders-load-more {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .order-row,
  .order-action span {
    transition: none;
  }

  .order-row:hover {
    transform: none;
  }
}
