.orders-shell { padding-top: 52px; }
.orders-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.orders-hero h1 { margin: 12px 0 6px; font-size: clamp(38px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
.orders-hero p { margin: 0; color: var(--muted); line-height: 1.7; }
.orders-state-card { display: flex; align-items: center; gap: 16px; min-height: 128px; padding: 26px; }
.orders-state-card > div { flex: 1; }
.orders-state-card strong { font-size: 17px; }
.orders-state-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.state-icon { display: grid; place-items: center; width: 46px; height: 46px; color: #071005; background: var(--lime); border-radius: 14px; font-size: 20px; font-weight: 900; }
.orders-primary-link { padding: 11px 16px; color: #071005; border-radius: 11px; background: var(--lime); font-size: 13px; font-weight: 850; text-decoration: none; }
.orders-account-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .35fr) auto; gap: 18px; align-items: center; margin-bottom: 20px; padding: 18px 22px; }
.orders-account-bar > span { display: grid; gap: 5px; min-width: 0; }
.orders-account-bar small, .orders-section-heading small, .orders-detail-heading small { color: var(--lime); font-size: 9px; font-weight: 850; letter-spacing: .16em; }
.orders-account-bar strong { overflow-wrap: anywhere; }
.orders-account-bar button { min-height: 38px; padding: 0 15px; }
.orders-page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.orders-list-panel { min-width: 0; padding: 25px; }
.orders-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.orders-section-heading h2, .orders-detail-heading h2 { margin: 5px 0 0; }
.orders-section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.orders-table-wrap { width: 100%; margin-top: 12px; overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; min-width: 810px; }
.orders-table th { padding: 10px 9px; color: var(--muted); text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 10px; font-weight: 750; white-space: nowrap; }
.orders-table td { padding: 13px 9px; border-bottom: 1px solid rgba(255,255,255,.065); font-size: 12px; vertical-align: middle; }
.orders-table tr { transition: background .18s ease; }
.orders-table tbody tr:hover, .orders-table tbody tr.is-selected { background: rgba(186,255,63,.045); }
.orders-table code { color: #e8f5ec; font-size: 11px; }
.orders-table .route-cell { color: #65e6ff; font-weight: 750; white-space: nowrap; }
.orders-table .amount-cell { color: var(--lime); font-weight: 850; white-space: nowrap; }
.orders-table .date-cell { color: #a7b4ac; white-space: nowrap; }
.orders-table button { min-height: 30px; padding: 0 10px; color: var(--lime); border-color: rgba(186,255,63,.25); background: rgba(186,255,63,.055); font-size: 11px; }
.orders-table button:hover { color: #071005; background: var(--lime); }
.orders-empty { padding: 58px 20px; text-align: center; }
.orders-empty strong { font-size: 18px; }
.orders-empty p { color: var(--muted); }
.orders-empty a { color: var(--lime); font-weight: 800; }
.orders-detail-panel { position: sticky; top: 20px; padding: 22px; }
.orders-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.orders-detail-placeholder { min-height: 230px; display: grid; place-items: center; color: var(--muted); text-align: center; font-size: 13px; }
#ordersDetailContent dl { margin: 17px 0 0; }
#ordersDetailContent dl > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 12px; }
#ordersDetailContent dt { color: var(--muted); }
#ordersDetailContent dd { min-width: 0; margin: 0; text-align: right; overflow-wrap: anywhere; }
#ordersDetailContent a { color: var(--lime); }
.detail-refresh-button { width: 100%; min-height: 38px; margin-top: 15px; color: var(--lime); border-color: rgba(186,255,63,.28); background: rgba(186,255,63,.055); font-size: 12px; }
.detail-refresh-button:hover:not(:disabled) { color: #071005; background: var(--lime); }
.orders-detail-error { color: var(--danger); line-height: 1.6; }

@media (max-width: 980px) {
  .orders-page-layout { grid-template-columns: 1fr; }
  .orders-detail-panel { position: static; }
}
@media (max-width: 680px) {
  .orders-shell { padding-top: 34px; }
  .orders-hero { display: block; }
  .orders-account-bar { grid-template-columns: 1fr; }
  .orders-account-bar button { width: 100%; }
  .orders-list-panel { padding: 18px 14px; }
  .orders-section-heading { display: block; }
  .orders-section-heading p { margin-top: 6px; }
  .orders-state-card { align-items: flex-start; flex-wrap: wrap; }
  .orders-state-card .orders-primary-link { width: 100%; text-align: center; }
}
