.account-page {
  width: min(1200px, calc(100% - 40px));
}

.account-heading {
  text-align: center;
}

.account-workspace {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.account-workspace[hidden] { display: none !important; }

.account-sidebar {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
}

.account-tab {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #757575;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.account-tab:hover { background: #f7f7f7; color: #000; }
.account-tab.active { background: #000; color: #fff; font-weight: 600; }
.account-tab:disabled { cursor: default; opacity: .65; }
.account-panels { min-width: 0; }
.account-panels > [hidden] { display: none !important; }
.account-panel-skeleton { display: none; }
.account-workspace.initializing .account-panels > [data-account-panel] { display: none; }
.account-workspace.initializing .account-panel-skeleton { display: flex; flex-direction: column; gap: 18px; }
.account-panel-skeleton i, .account-panel-skeleton .skeleton-card {
  background: linear-gradient(90deg, #ededed 25%, #f7f7f7 50%, #ededed 75%);
  background-size: 200% 100%;
  animation: account-skeleton 1.25s ease-in-out infinite;
}
.account-panel-skeleton i { display: block; border-radius: 5px; }
.skeleton-heading { width: 96px; height: 20px; }
.account-panel-skeleton .skeleton-card { border: 1px solid #ececec; border-radius: 16px; background-color: #fff; }
.skeleton-profile { min-height: 104px; display: grid; grid-template-columns: 54px 1fr 92px; align-items: center; gap: 16px; padding: 24px; }
.skeleton-profile > i:first-child { width: 54px; height: 54px; border-radius: 50%; }
.skeleton-profile > div { display: flex; flex-direction: column; gap: 10px; }
.skeleton-profile > div i:first-child { width: 150px; height: 18px; }
.skeleton-profile > div i:last-child { width: 78px; height: 12px; }
.skeleton-profile > i:last-child { width: 92px; height: 40px; }
.skeleton-details { min-height: 236px; padding: 20px 24px; display: flex; flex-direction: column; justify-content: space-around; }
.skeleton-details i { width: 42%; height: 18px; }
.skeleton-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.skeleton-benefits .skeleton-card { min-height: 102px; }
.skeleton-table { min-height: 204px; padding: 18px 24px; display: flex; flex-direction: column; justify-content: space-around; }
.skeleton-table i { width: 100%; height: 18px; }
.orders-header h2 { margin: 0 0 10px; font-size: 18px; line-height: 25px; }
.orders-header p { margin: 0; color: #757575; font-size: 14px; line-height: 20px; }

.orders-table-wrap {
  width: 100%;
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
}

.orders-table { min-width: 920px; }
.orders-row {
  display: grid;
  grid-template-columns: 1.35fr .9fr 1fr 1fr .9fr 1.3fr;
  min-height: 54px;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid #ececec;
  color: #000;
  font-size: 14px;
  line-height: 20px;
}
.orders-row:last-child { border-bottom: 0; }
.orders-row > span { min-width: 0; padding-right: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orders-head { height: 54px; background: #f7f7f7; font-weight: 600; }
.usage-skeleton-row {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 24px;
  min-height: 50px;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid #ececec;
}
.usage-skeleton-row:last-child { border-bottom: 0; }
.usage-skeleton-row i, .orders-skeleton-row i {
  display: block;
  width: min(100%, 120px);
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ededed 25%, #f7f7f7 50%, #ededed 75%);
  background-size: 200% 100%;
  animation: account-skeleton 1.25s ease-in-out infinite;
}
.orders-skeleton-row span { overflow: visible; }
.orders-skeleton-row i { width: min(85%, 110px); }
@keyframes account-skeleton { to { background-position: -200% 0; } }
.orders-empty, .orders-error { height: 178px; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.orders-empty { flex-direction: column; gap: 12px; background: #f7f7f8; color: #98a0a5; font-size: 14px; }
.orders-empty img { width: 90px; height: 90px; object-fit: contain; }
.orders-error { color: #dc2626; font-size: 14px; }
.orders-pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.orders-page-button { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid #e5e5e5; border-radius: 5px; background: #fff; color: #111; cursor: pointer; }
.orders-page-button.active, .orders-page-button:hover { border-color: #000; background: #000; color: #fff; }

@media (max-width: 760px) {
  .account-page { width: calc(100% - 28px); }
  .account-workspace { grid-template-columns: 1fr; gap: 24px; }
  .account-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .account-tab { text-align: center; }
  .orders-pagination { justify-content: center; }
  .skeleton-benefits { grid-template-columns: 1fr; }
  .skeleton-profile { grid-template-columns: 46px 1fr; }
  .skeleton-profile > i:last-child { display: none; }
}
