:root {
  --dashboard-night: #111823;
  --dashboard-night-2: #1a2537;
  --dashboard-red: #d83249;
  --dashboard-page: #f3f5f8;
}

body {
  background: var(--dashboard-page);
}

.store-nav {
  box-shadow: 0 1px 0 rgba(20, 27, 39, .04);
}

.account-page {
  padding-top: 32px;
}

.account-shell {
  max-width: 1360px;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 36px;
}

.account-sidebar {
  top: 92px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(24, 31, 43, .055);
}

.account-profile {
  padding: 22px 20px;
  border: 0;
  background: var(--dashboard-night);
  color: #fff;
}

.account-profile__avatar {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.account-profile span {
  color: #96a1b2;
}

.account-menu {
  gap: 3px;
  padding: 12px;
}

.account-menu a {
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.account-menu a.is-active {
  background: #edf0f5;
}

.account-menu a.is-active::before {
  left: -1px;
  top: 10px;
  bottom: 10px;
  background: var(--dashboard-red);
}

.logout-button {
  margin: 0 12px 12px;
  width: calc(100% - 24px);
  padding: 13px 12px;
  border: 0;
  border-radius: 8px;
  background: #f5f6f8;
}

.orders-heading {
  align-items: center;
  margin: 0 0 24px;
}

.orders-heading h1 {
  font-size: 32px;
}

.browse-link {
  border-color: #dfe3e9;
  box-shadow: 0 3px 10px rgba(25, 32, 44, .04);
}

.account-overview {
  gap: 20px;
}

.overview-grid {
  grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.18fr);
  gap: 20px;
}

.overview-card,
.recent-purchases {
  border-radius: 14px !important;
  box-shadow: 0 6px 24px rgba(24, 31, 43, .055);
}

.profile-card {
  padding: 24px;
}

.profile-card__body {
  margin-top: 24px;
}

.profile-card__avatar {
  width: 52px;
  height: 52px;
}

.order-summary-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 26px;
  color: #fff;
  background: linear-gradient(145deg, var(--dashboard-night-2), var(--dashboard-night));
}

.order-summary-card::after {
  content: "LAA";
  position: absolute;
  z-index: -1;
  right: -12px;
  bottom: -24px;
  color: rgba(255, 255, 255, .035);
  font-size: 118px;
  font-weight: 700;
  letter-spacing: -.08em;
}

.order-summary-card .overview-card__head h2 {
  color: #fff;
}

.order-summary-card .inline-link {
  color: #c8d0dc;
}

.order-summary-card .inline-link:hover {
  color: #fff;
}

.order-summary-grid {
  margin-top: 38px;
}

.order-summary-card .summary-item {
  border-left-color: rgba(255, 255, 255, .12);
  color: #fff;
}

.order-summary-card .summary-item strong {
  color: #fff;
  font-size: 28px;
}

.order-summary-card .summary-item span {
  color: #aeb8c8;
}

.order-summary-card .summary-item:hover strong,
.order-summary-card .summary-item:hover span {
  color: #fff;
}

.recent-purchases {
  padding: 24px 26px 26px;
}

.recent-purchases__grid {
  gap: 10px;
}

.recent-order {
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #f6f7f9;
}

.recent-order:hover {
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 31, 43, .08);
}

.recent-order__game {
  width: 48px;
  height: 48px;
}

.order-filters {
  background: #fff;
  padding: 0 18px;
  border: 0;
  border-radius: 12px 12px 0 0;
}

.orders-toolbar {
  margin-top: 14px;
}

.order-card,
.cdk-order-card {
  box-shadow: 0 5px 20px rgba(24, 31, 43, .05);
}

.order-card:hover,
.cdk-order-card:hover {
  box-shadow: 0 9px 28px rgba(24, 31, 43, .08);
}

.status {
  font-weight: 700;
}

.security-card,
.verification-card,
.detail-view {
  box-shadow: 0 6px 24px rgba(24, 31, 43, .055);
}

@media (max-width: 980px) {
  .account-shell {
    grid-template-columns: 204px minmax(0, 1fr);
    gap: 22px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .account-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .account-page {
    padding: 18px 14px 44px;
  }

  .orders-heading h1 {
    font-size: 27px;
  }

  .order-summary-card {
    padding: 21px 16px;
  }

  .order-summary-grid {
    margin-top: 28px;
  }

  .order-summary-card .summary-item strong {
    font-size: 22px;
  }

  .recent-purchases {
    padding: 20px 16px;
  }
}

.coupon-wallet,
.coupon-history {
  padding: 24px 26px;
  border: 1px solid #e7e9ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(24, 31, 43, .055);
}

.coupon-history { margin-top: 18px; }
.coupon-wallet__intro,
.coupon-history__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.coupon-wallet__intro h2,
.coupon-history__head h2 { margin: 3px 0 0; font-size: 21px; }
.coupon-wallet__intro p:not(.section-kicker) { max-width: 620px; margin: 8px 0 0; color: #737b87; line-height: 1.65; }
.coupon-wallet__count,
.coupon-history__head > span { padding: 7px 10px; border-radius: 999px; color: #68717d; background: #f2f4f6; font-size: 12px; font-weight: 700; white-space: nowrap; }
.coupon-wallet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.coupon-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 178px; border: 1px solid #e5e8ec; border-radius: 13px; background: #fcfcfd; }
.coupon-card__value { display: flex; align-items: center; justify-content: center; padding: 18px 12px; color: #fff; background: linear-gradient(145deg, #2a3445, #171d27); font-size: 24px; font-weight: 800; letter-spacing: -.03em; text-align: center; }
.coupon-card__body { min-width: 0; padding: 18px 18px 58px; }
.coupon-card__code { display: inline-block; color: #cf3047; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.coupon-card h3 { margin: 7px 0 5px; color: #202630; font-size: 17px; }
.coupon-card p { margin: 0; color: #717985; font-size: 12px; line-height: 1.55; }
.coupon-card__meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-top: 12px; color: #8a919b; font-size: 10px; }
.coupon-card__actions { position: absolute; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 8px; }
.coupon-card__actions button,
.coupon-card__actions a { min-height: 32px; padding: 0 11px; border: 1px solid #dce0e5; border-radius: 8px; color: #3e4652; background: #fff; font-size: 11px; font-weight: 700; line-height: 30px; text-decoration: none; cursor: pointer; }
.coupon-card__actions a { border-color: #222a37; color: #fff; background: #222a37; }
.coupon-wallet__empty { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 15px; margin-top: 22px; padding: 22px; border: 1px dashed #dce0e5; border-radius: 12px; background: #fafbfc; }
.coupon-wallet__empty-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; color: #ca3047; background: #fff0f2; font-size: 21px; font-weight: 800; }
.coupon-wallet__empty strong,
.coupon-wallet__empty span { display: block; }
.coupon-wallet__empty span { margin-top: 4px; color: #7d8590; font-size: 12px; }
.coupon-history__list { margin-top: 18px; border-top: 1px solid #eceef1; }
.coupon-history__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 15px 2px; border-bottom: 1px solid #eceef1; }
.coupon-history__row strong,
.coupon-history__row span { display: block; }
.coupon-history__row div > span,
.coupon-history__row time { margin-top: 3px; color: #858d98; font-size: 11px; }
.coupon-history__status { padding: 6px 9px; border-radius: 999px; color: #48705f; background: #edf7f2; font-size: 11px; font-weight: 700; }
.coupon-history__status--released { color: #6f7782; background: #f0f2f4; }
.coupon-history__empty { margin-top: 18px; padding: 20px; border-radius: 10px; color: #838b96; background: #f7f8fa; text-align: center; }

@media (max-width: 720px) {
  .coupon-wallet__grid { grid-template-columns: 1fr; }
  .coupon-wallet__empty { grid-template-columns: 48px minmax(0, 1fr); }
  .coupon-wallet__empty .shop-button { grid-column: 1 / -1; text-align: center; }
  .coupon-history__row { grid-template-columns: minmax(0, 1fr) auto; }
  .coupon-history__row time { display: none; }
}

@media (max-width: 520px) {
  .coupon-wallet,
  .coupon-history { padding: 20px 16px; }
  .coupon-card { grid-template-columns: 88px minmax(0, 1fr); }
  .coupon-card__value { font-size: 19px; }
}
