.account-shell {
  min-height: 70vh;
  padding: 32px 0 56px;
  background: #f6f7fb;
}

.account-shell--auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.account-shell__header {
  background: #ffffff;
}

.account-shell__container {
  max-width: 1200px;
}

.account-shell__container--auth {
  width: 100%;
  max-width: 460px;
}

.account-shell__link {
  color: #151515;
  text-decoration: none;
  font-size: 14px;
}

.account-auth-card,
.account-panel,
.account-sidebar-card {
  border: 1px solid #ece7e1;
  background: #ffffff;
}

.account-auth-card {
  padding: 36px 32px;
  border-radius: 14px;
  border: none;
}

.account-auth-card--compact {
  position: relative;
  padding: 28px 28px 24px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
  border-radius: 16px;
}

.account-auth-card__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.account-auth-card__brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  max-width: min(100%, 320px);
  color: #151515;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.account-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.account-brand__mark img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.account-brand__text {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-auth-card__head--center {
  text-align: center;
}

.account-auth-card__head h1 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.2;
}

.account-auth-card__head p {
  margin: 0;
  color: #675f57;
}

.account-auth-form {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.account-auth-alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.account-auth-alert--error {
  border: 1px solid #f1c2c6;
  background: #fff4f5;
  color: #8a2432;
}

.account-auth-alert--success {
  border: 1px solid #cfe5d2;
  background: #f4fbf5;
  color: #2f6f44;
}

.account-auth-toast-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.account-auth-toast {
  width: fit-content;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e7e3dc;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.account-auth-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.account-auth-toast--error {
  background: #fff5f6;
  border-color: #f2d6da;
  color: #8a2432;
}

.account-auth-toast--success {
  background: #f4fbf5;
  border-color: #d2e7d6;
  color: #2f6f44;
}

.account-auth-field {
  display: grid;
  gap: 8px;
}

.account-auth-field--with-action {
  position: relative;
}

.account-auth-field span {
  font-size: 14px;
  color: #151515;
}

.account-auth-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid #d9dde7;
  border-radius: 10px;
  background: #ffffff;
  box-sizing: border-box;
}

.account-auth-password {
  position: relative;
  display: block;
}

.account-auth-password input {
  padding-right: 56px;
}

.account-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f675f;
  transform: translateY(-50%);
  cursor: pointer;
}

.account-auth-password-toggle:hover,
.account-auth-password-toggle:focus-visible {
  color: #212121;
}

.account-auth-password-toggle svg {
  display: block;
}

.account-auth-password-icon {
  display: none;
  align-items: center;
  justify-content: center;
}

.account-auth-password-icon--closed {
  display: inline-flex;
}

.account-auth-password-toggle[aria-pressed='true'] .account-auth-password-icon--closed {
  display: none;
}

.account-auth-password-toggle[aria-pressed='true'] .account-auth-password-icon--closed {
  display: none;
}

.account-auth-password-toggle[aria-pressed='true'] .account-auth-password-icon--open {
  display: inline-flex;
}

.account-auth-field--with-action input {
  padding-right: 126px;
}

.account-auth-field input::placeholder {
  color: #9aa0aa;
}

.account-auth-form__submit {
  margin-top: 4px;
  min-height: 50px;
  border-radius: 10px;
}

.account-auth-code-row {
  display: block;
  width: 100%;
}

.account-auth-field--with-action .account-auth-code-row__button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 40px;
  min-width: 78px;
  margin: 0;
  border: 1px solid #151515 !important;
  border-radius: 10px;
  padding: 0 12px;
  background: #151515 !important;
  background-color: #151515 !important;
  color: #ffffff !important;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
}

.account-auth-field--with-action .account-auth-code-row__button:hover,
.account-auth-field--with-action .account-auth-code-row__button:focus-visible {
  background: #2a2a2a !important;
  background-color: #2a2a2a !important;
  border-color: #2a2a2a !important;
  color: #ffffff !important;
}

.account-auth-field--with-action .account-auth-code-row__button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.account-auth-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  font-size: 14px;
}

.account-auth-card__foot--center {
  justify-content: center;
  flex-wrap: wrap;
}

.account-auth-card__foot a,
.account-sidebar-link {
  color: #151515;
  text-decoration: none;
}

.account-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.account-dashboard__sidebar {
  display: grid;
  gap: 20px;
}

.account-sidebar-card {
  padding: 24px;
}

.account-sidebar-card h1 {
  margin: 8px 0 12px;
  font-size: 30px;
  line-height: 1.2;
}

.account-sidebar-card p {
  margin: 0;
  color: #675f57;
}

.account-sidebar-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #eee7de;
}

.account-sidebar-link:last-child {
  border-bottom: 0;
}

.account-sidebar-link.is-active {
  font-weight: 600;
}

.account-dashboard__main {
  display: grid;
  gap: 24px;
}

.account-panel {
  padding: 28px;
}

.account-panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 60px;
  margin: 0;
  padding: 16px 24px;
  box-sizing: border-box;
}

.account-panel__head strong {
  font-size: 22px;
  line-height: 1.2;
}

.account-panel__head span {
  max-width: 420px;
  color: #675f57;
  text-align: right;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-stat-card,
.account-empty-card {
  border: 1px solid #eee7de;
  background: #faf7f2;
  padding: 22px 20px;
}

.account-stat-card span {
  display: block;
  margin-bottom: 12px;
  color: #675f57;
  font-size: 14px;
}

.account-stat-card strong {
  font-size: 30px;
  line-height: 1;
}

.account-empty-card p {
  margin: 0 0 16px;
  color: #675f57;
}

.account-app-page {
  margin: 0;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  grid-template-columns: none !important;
  background: #f0f3f8;
  color: #495057;
}

.account-app {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  background: #f0f3f8;
}

.account-app__sidebar {
  background: #ffffff;
  border-right: 1px solid #e9ecef;
  padding: 0 0 32px;
}

.account-app__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  color: #d1d3d4;
  background: #1c1c1c;
  border-radius: 0;
  padding: 0 18px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-sizing: border-box;
  text-align: center;
}

.account-app__brand .account-brand__mark {
  display: none;
}

.account-app__brand .account-brand__text {
  max-width: 100%;
}

.account-app__sidebar-title {
  display: none;
}

.account-app__nav {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 0 10px;
}

.account-app__nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 5px;
  color: #495057;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.account-app__nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.account-app__nav-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.account-app__nav-label {
  line-height: 1;
  text-align: left;
}

.account-app__nav-link:hover {
  background: #f1f3f5;
}

.account-app__nav-link.is-active {
  background: #e9ecef;
  color: #495057;
  font-weight: 600;
}

.account-app__content {
  min-width: 0;
  width: 100%;
  background: #f0f3f8;
}

.account-app__topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: #ffffff;
  color: #495057;
  border-bottom: 1px solid #e9ecef;
}

.account-app__topbar-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.account-app__topbar strong {
  font-size: 18px;
  font-weight: 600;
}

.account-app__topbar span {
  font-size: 14px;
  color: #6c757d;
}

.account-app__topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.account-app__topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #495057;
  text-decoration: none;
  font-size: 13px;
}

.account-app__topbar-link:hover {
  background: transparent;
}

.account-app__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.account-app__menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: #1c1c1c;
}

.account-app__drawer-backdrop {
  display: none;
}

.account-app__main {
  padding: 20px;
  display: grid;
  gap: 20px;
  align-content: start;
  background: #f0f3f8;
}

.account-hero-card {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border-radius: 5px;
  color: #000000;
  background: #ffffff;
  box-shadow: none;
}

.account-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.account-hero-card > * {
  position: relative;
  z-index: 1;
}

.account-hero-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: #e57f5b;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-hero-card h1 {
  margin: 18px 0 10px;
  font-size: 28px;
  line-height: 1.25;
  color: #000000;
}

.account-hero-card p {
  margin: 0;
  max-width: 760px;
  color: #1c1c1c;
}

.account-hero-card time {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1c;
}

.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-stat-panel,
.account-panel {
  border: 1px solid #e9ecef;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
}

.account-dashboard .account-stat-panel,
.account-dashboard .account-panel,
.account-dashboard .account-wallet-card {
  border: 0;
}

.account-stat-panel {
  padding: 18px 20px;
}

.account-stat-panel span {
  display: block;
  margin-bottom: 12px;
  color: #6c757d;
  font-size: 13px;
}

.account-stat-panel strong {
  font-size: 30px;
  line-height: 1;
}

.account-latest-order-card {
  overflow: hidden;
}

.account-latest-order-card .account-panel__head {
  background: #fafafa;
  border-bottom: 1px solid #e9ecef;
}

.account-latest-order-card .account-panel__head strong {
  color: #495057;
}

.account-latest-order-card__body {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  background: #ffffff;
  align-items: start;
}

.account-latest-order-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: #f5f5f5;
}

.account-latest-order-card__content {
  min-width: 0;
}

.account-latest-order-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-latest-order-card__heading {
  min-width: 0;
}

.account-latest-order-card__top h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #212529;
}

.account-latest-order-card__amount {
  margin: 6px 0 0;
  color: #7a2330;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.account-latest-order-card__statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.account-latest-order-card__status {
  flex: 0 0 auto;
  margin: 0;
}

.account-latest-order-card__meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf1f5;
}

.account-latest-order-card__meta-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.account-latest-order-card__meta-label {
  color: #6c757d;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.account-latest-order-card__meta-value {
  color: #212529;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-all;
  font-weight: 500;
}

.account-latest-order-card__meta-value--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.account-panel {
  padding: 0;
  min-width: 0;
  overflow: hidden;
}

.account-password-card {
  overflow: hidden;
}

.account-profile-storage-card {
  overflow: hidden;
}

.account-profile-storage-card .account-panel__head {
  background: #fafafa;
  border-bottom: 1px solid #e9ecef;
}

.account-profile-storage-card .account-panel__head strong {
  color: #495057;
}

.account-profile-storage-card__body {
  padding: 20px 24px 24px;
}

.account-profile-storage-card__form {
  display: grid;
  gap: 16px;
}

.account-profile-storage-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: start;
}

.account-profile-storage-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-profile-storage-card__actions .account-mini-button {
  min-width: 108px;
  min-height: 44px;
  margin: 0;
}

.account-profile-storage-card__grid .account-form-field {
  min-width: 0;
}

.account-profile-storage-card__field-full {
  grid-column: 1 / -1;
}

.account-password-card .account-panel__head {
  background: #fafafa;
  border-bottom: 1px solid #e9ecef;
}

.account-password-card .account-panel__head strong {
  color: #495057;
}

.account-password-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 24px;
}

.account-password-card__body .account-form-field {
  min-width: 0;
  max-width: 420px;
}

.account-password-card__body .account-mini-button {
  min-width: 108px;
  min-height: 44px;
  margin: 0;
  justify-self: flex-start;
}

.account-orders-panel {
  overflow: hidden;
}

.account-orders-panel .account-panel__head {
  border-bottom: 1px solid #e9ecef;
}

.account-orders-panel .account-table-wrap {
  padding: 8px 24px 24px;
}

.account-orders-panel .account-order-table {
  min-width: 0;
  table-layout: fixed;
}

.account-orders-panel .account-order-table th,
.account-orders-panel .account-order-table td {
  padding: 18px 16px;
  border-top-color: #e9ecef;
}

.account-orders-panel .account-order-table th:first-child,
.account-orders-panel .account-order-table td:first-child {
  width: 34%;
}

.account-orders-panel .account-order-table td p {
  line-height: 1.5;
}

.account-orders-panel .account-order-table td {
  vertical-align: middle;
}

.account-orders-panel .account-order-table td strong {
  color: #495057;
}

.account-order-no {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-orders-panel .account-order-table td time {
  display: inline-block;
  color: #6c757d;
  font-size: 13px;
  white-space: nowrap;
}

.account-orders-panel .account-empty-card {
  margin: 24px;
  border-radius: 5px;
}

.account-orders-empty {
  margin: 24px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed #d8dde6;
  border-radius: 5px;
  background: #f8fafc;
  text-align: center;
}

.account-orders-empty p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.8;
}

.account-order-detail-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #111111;
  border-radius: 4px;
  background: transparent;
  color: #111111;
  cursor: pointer;
  white-space: nowrap;
}

.account-table-link.account-order-detail-trigger {
  color: #111111;
}

.account-order-detail-trigger:hover {
  background: #f5f5f5;
}

.account-order-detail-templates {
  display: none;
}

.account-order-detail-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 28, 28, 0.45);
  z-index: 1000;
}

.account-order-detail-modal.is-visible {
  display: flex;
}

.account-order-detail-modal__dialog {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}

.account-order-detail-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #e9ecef;
}

.account-order-detail-modal__header strong {
  font-size: 20px;
  color: #495057;
}

.account-order-detail-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  color: #495057;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.account-order-detail-modal__body {
  padding: 24px;
}

.account-order-detail-card {
  display: grid;
  gap: 16px;
}

.account-order-detail-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-order-detail-card__heading {
  min-width: 0;
}

.account-order-detail-card__header-side {
  flex: 0 0 auto;
}

.account-order-detail-card__item-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f9fa;
}

.account-order-detail-card__item-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-order-detail-card__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #adb5bd;
  font-size: 22px;
  font-weight: 600;
}

.account-order-detail-card__heading > span,
.account-order-detail-card__metric span,
.account-order-detail-card__section span {
  display: block;
  margin-bottom: 8px;
  color: #6c757d;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.account-order-detail-card__order-no {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #212529;
  font-size: 22px;
  line-height: 1.2;
}

.account-order-detail-card__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-order-detail-card__metric {
  padding: 14px 16px;
  border-radius: 6px;
  background: #f8f9fa;
}

.account-order-detail-card__metric strong,
.account-order-detail-card__section strong {
  display: block;
  color: #495057;
  font-size: 15px;
  line-height: 1.6;
}

.account-order-detail-card__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.account-order-detail-card__section {
  padding: 16px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #ffffff;
}

.account-order-detail-card__section--items {
  height: 100%;
}

.account-order-detail-card__items {
  display: grid;
  gap: 10px;
}

.account-order-detail-card__aside {
  display: grid;
  gap: 12px;
}

.account-order-detail-card__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 6px;
  background: #f8f9fa;
}

.account-order-detail-card__item-content {
  min-width: 0;
}

.account-order-detail-card__item-content strong {
  display: block;
  margin: 0;
}

.account-order-detail-card__item p {
  margin: 4px 0 0;
  color: #6c757d;
  font-size: 13px;
  line-height: 1.5;
}

.account-order-detail-card__item-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-panel--split {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.account-panel__head--stack {
  border-right: 1px solid #efe5da;
}

.account-list-card__item,
.account-shortcut-card,
.account-order-list__item {
  border-top: 1px solid #efe5da;
}

.account-list-card__item:first-child,
.account-shortcut-card:first-child,
.account-order-list__item:first-child {
  border-top: 0;
}

.account-list-card__item {
  padding: 22px 24px;
}

.account-list-card__item strong,
.account-shortcut-card strong,
.account-order-list__item strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.account-list-card__item p,
.account-shortcut-card p,
.account-order-list__item p {
  margin: 8px 0 0;
  color: #7f6f61;
}

.account-shortcut-grid {
  display: grid;
}

.account-shortcut-card {
  padding: 22px 24px;
  color: #151515;
  text-decoration: none;
}

.account-shortcut-card:hover {
  background: #faf6f1;
}

.account-order-list__item {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 20px 24px;
}

.account-order-list__item span {
  display: block;
  margin-bottom: 6px;
  color: #9a8b7c;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.account-order-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.account-order-table th,
.account-order-table td {
  padding: 18px 12px;
  border-top: 1px solid #efe5da;
  text-align: left;
  vertical-align: top;
}

.account-order-table thead th {
  border-top: 0;
  color: #6c757d;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-order-table td strong {
  display: block;
  font-size: 15px;
  color: #6f5330;
}

.account-order-table td p {
  margin: 8px 0 0;
  color: #958676;
  font-size: 13px;
}

.account-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.account-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.account-status-pill--completed::before {
  background: #22c55e;
}

.account-status-pill--processing::before {
  background: #f4b400;
}

.account-status-pill--cancelled::before {
  background: #9ca3af;
}

.account-status-pill--order-received,
.account-status-pill--order-completed,
.account-status-pill--payment-paid {
  border-color: #d7f0df;
  background: #e8f7ec;
  color: #1f6a3b;
}

.account-status-pill--order-received::before,
.account-status-pill--order-completed::before,
.account-status-pill--payment-paid::before {
  background: #22c55e;
}

.account-status-pill--order-processing,
.account-status-pill--payment-unpaid {
  border-color: #f7e7a3;
  background: #fff7cc;
  color: #8a5a00;
}

.account-status-pill--order-processing::before,
.account-status-pill--payment-unpaid::before {
  background: #f4b400;
}

.account-status-pill--order-cancelled,
.account-status-pill--payment-cancelled {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #5f6570;
}

.account-status-pill--order-cancelled::before,
.account-status-pill--payment-cancelled::before {
  background: #9ca3af;
}

.account-status-pill--ticket-open,
.account-status-pill--ticket-priority-normal {
  border-color: #f7e7a3;
  background: #fff7cc;
  color: #8a5a00;
}

.account-status-pill--ticket-open::before,
.account-status-pill--ticket-priority-normal::before {
  background: #f4b400;
}

.account-status-pill--ticket-replied,
.account-status-pill--ticket-priority-low {
  border-color: #d7f0df;
  background: #e8f7ec;
  color: #1f6a3b;
}

.account-status-pill--ticket-replied::before,
.account-status-pill--ticket-priority-low::before {
  background: #22c55e;
}

.account-status-pill--ticket-closed {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #5f6570;
}

.account-status-pill--ticket-closed::before {
  background: #9ca3af;
}

.account-status-pill--ticket-priority-high,
.account-status-pill--ticket-priority-urgent {
  border-color: #ffd7d7;
  background: #fff1f1;
  color: #a33a3a;
}

.account-status-pill--ticket-priority-high::before,
.account-status-pill--ticket-priority-urgent::before {
  background: #ef4444;
}

.account-table-link {
  color: #8a6740;
  text-decoration: none;
  font-size: 13px;
}

.account-table-link.is-muted {
  color: #a7988a;
}

.account-order-table--ticket {
  min-width: 760px;
}

.account-ticket-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-panel__head--compact {
  padding-bottom: 0;
}

.account-ticket-detail-card {
  margin-bottom: 18px;
  padding: 20px 22px;
  border: 1px solid #e9ecef;
  border-radius: 0;
  background: #ffffff;
}

.account-ticket-detail-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.account-ticket-detail-card__head strong {
  display: block;
  font-size: 20px;
  line-height: 1.5;
  color: #1f2933;
}

.account-ticket-detail-card__head p {
  margin: 6px 0 0;
  color: #8d8479;
  font-size: 13px;
}

.account-ticket-detail-card__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-ticket-detail-card__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f2f4;
  color: #6b7280;
  font-size: 13px;
}

.account-ticket-thread__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 16px 0;
  box-sizing: border-box;
}

.account-ticket-thread__item {
  width: min(78%, 720px);
  padding: 18px 20px;
  border: 1px solid #ececec;
  border-radius: 5px;
  background: #ffffff;
  box-sizing: border-box;
}

.account-ticket-thread__item.is-admin {
  margin-right: auto;
  border-color: #d7e8ff;
  background: #f7fbff;
}

.account-ticket-thread__item.is-customer {
  margin-left: auto;
  border-color: #efe7da;
  background: #fffdfa;
}

.account-ticket-thread__item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.account-ticket-thread__item-head > div {
  display: grid;
  gap: 4px;
}

.account-ticket-thread__item-head strong {
  display: block;
  color: #1f2933;
}

.account-ticket-thread__item-head span,
.account-ticket-thread__item-head time {
  color: #8d8479;
  font-size: 13px;
}

.account-ticket-thread__item-body {
  color: #344054;
  line-height: 1.9;
  word-break: break-word;
}

.account-ticket-thread__item-body > :first-child {
  margin-top: 0;
}

.account-ticket-thread__item-body > :last-child {
  margin-bottom: 0;
}

.account-ticket-reply-card {
  margin-top: 24px;
  padding: 22px 24px 24px;
  border: 1px solid #e9ecef;
  border-radius: 0;
  background: #ffffff;
}

.account-ticket-reply-card .account-panel__head {
  display: block;
  margin-bottom: 16px;
  padding: 0 0 14px;
  padding-left: 0;
  padding-right: 0;
  min-height: 0;
  border-bottom: 1px solid #f0f2f4;
}

.account-ticket-reply-card--closed {
  background: #fafbfc;
}

.account-ticket-reply-card--closed .account-panel__head {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.account-ticket-followup-form {
  display: grid;
  gap: 16px;
}

.account-ticket-followup-form .account-form-field {
  gap: 10px;
}

.account-ticket-followup-form textarea {
  min-height: 144px;
}

.account-ticket-followup-form .account-ticket-form__actions {
  margin-top: 4px;
}

.account-wallet-card {
  border: 1px solid #e9ecef;
  border-radius: 5px;
  background: #ffffff;
  padding: 22px 24px;
  box-shadow: none;
}

.account-app__topbar--right {
  justify-content: flex-end;
}

.account-wallet-card__head span {
  display: block;
  color: #6c757d;
  font-size: 13px;
}

.account-wallet-card__head strong {
  display: inline-block;
  margin-top: 14px;
  font-size: 52px;
  line-height: 1;
  font-weight: 500;
}

.account-wallet-card__head em {
  margin-left: 12px;
  color: #6c757d;
  font-style: normal;
  font-size: 28px;
}

.account-wallet-card__actions,
.account-panel__actions {
  margin-top: 18px;
}

.account-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #495057;
  border-radius: 8px;
  background: #495057;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-mini-button--pill {
  border-radius: 999px;
}

.account-mini-button--ghost {
  border-color: #d7dce1;
  background: #ffffff;
  color: #495057;
}

.account-form-block,
.account-form-grid {
  padding: 0 24px 24px;
}

.account-form-block {
  display: flex;
  gap: 12px;
  align-items: center;
}

.account-form-block input,
.account-form-field input,
.account-form-field select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
  font: inherit;
  color: #495057;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-form-field {
  display: grid;
  gap: 8px;
}

.account-form-field span {
  color: #6c757d;
  font-size: 13px;
}

.account-form-field small {
  color: #6c757d;
  font-size: 12px;
  line-height: 1.6;
}

.account-toggle-list {
  padding: 0 24px 24px;
  display: grid;
  gap: 14px;
}

.account-switch-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #495057;
  font-size: 14px;
}

.account-switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.account-switch-row i {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #ced4da;
  flex: 0 0 auto;
}

.account-switch-row i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.16);
  transition: transform 0.18s ease;
}

.account-switch-row input:checked + i {
  background: #495057;
}

.account-switch-row input:checked + i::after {
  transform: translateX(14px);
}

.account-note-box {
  padding: 0 24px 24px;
}

.account-note-box p {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 3px solid #495057;
  border-radius: 6px;
  background: #f8f9fa;
  color: #6c757d;
}

.account-ticket-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.account-panel__head--plain {
  margin: 0;
}

.account-empty-table {
  padding: 54px 16px;
  text-align: center;
}

.account-empty-table strong {
  display: block;
  margin-bottom: 8px;
  color: #6c757d;
  font-size: 16px;
}

.account-order-table--ticket .account-empty-table strong {
  color: #6c757d;
}

.account-empty-table p {
  margin: 0;
  color: #adb5bd;
}

.account-ticket-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(28, 28, 28, 0.45);
  z-index: 1000;
}

.account-ticket-modal.is-visible {
  display: flex;
}

.account-ticket-modal__dialog {
  width: min(640px, 100%);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.18);
}

.account-ticket-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #e9ecef;
}

.account-ticket-modal__header strong {
  font-size: 20px;
  color: #495057;
}

.account-ticket-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f5;
  color: #495057;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.account-ticket-modal__body {
  padding: 24px;
}

.account-ticket-form {
  display: grid;
  gap: 16px;
}

.account-form-field--textarea textarea {
  width: 100%;
  min-height: 144px;
  padding: 12px 14px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
  resize: vertical;
  font: inherit;
  color: #495057;
}

.account-form-field__status.is-loading {
  color: #2563eb;
}

.account-form-field__status.is-success {
  color: #2f6f44;
}

.account-form-field__status.is-error {
  color: #b42318;
}

.account-form-field__retry {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.account-form-field__retry:hover,
.account-form-field__retry:focus-visible {
  color: #1d4ed8;
  text-decoration: underline;
}

.account-ticket-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.account-ticket-modal__cancel {
  border-color: #ced4da;
  background: #ffffff;
  color: #495057;
}

@media (max-width: 899px) {
  .account-dashboard {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-app {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-app__sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1002;
    width: min(280px, 82vw);
    padding: 0 0 20px;
    border-right: 1px solid #dfe5ef;
    border-bottom: 0;
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.16);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    overflow-y: auto;
  }

  .account-app__nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 0 12px;
  }

  .account-app__nav-link {
    justify-content: flex-start;
    padding-left: 16px;
    padding-right: 16px;
  }

  .account-app__content {
    min-width: 0;
  }

  .account-app__topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 18px;
  }

  .account-app__topbar strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-app__menu-toggle {
    display: inline-flex;
  }

  .account-app__drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
  }

  .account-app-page.account-drawer-open {
    overflow: hidden;
  }

  .account-app-page.account-drawer-open .account-app__sidebar {
    transform: translateX(0);
  }

  .account-app-page.account-drawer-open .account-app__drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .account-panel__head {
    display: block;
  }

  .account-panel__head span {
    display: block;
    max-width: none;
    margin-top: 10px;
    text-align: left;
  }

  .account-order-detail-card__summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-order-detail-card__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-panel--split,
  .account-order-list__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-panel__head--stack {
    border-right: 0;
    border-bottom: 1px solid #edf1f5;
  }

  .account-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-form-block {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .account-form-block .account-mini-button,
  .account-ticket-toolbar .account-mini-button,
  .account-password-card__body .account-mini-button {
    width: auto;
  }

  .account-password-card__body .account-form-field {
    max-width: none;
  }

  .account-password-card__body {
    padding: 20px;
  }

  .account-orders-panel .account-table-wrap,
  .account-form-block,
  .account-form-grid,
  .account-toggle-list,
  .account-note-box {
    padding-left: 20px;
    padding-right: 20px;
  }

  .account-ticket-toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .account-ticket-modal__dialog,
  .account-order-detail-modal__dialog {
    width: min(100%, 720px);
  }

  .account-ticket-thread__item {
    width: min(88%, 100%);
  }

  .account-ticket-thread__list {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 699px) {
  .account-shell {
    padding: 20px 0 40px;
  }

  .account-shell--auth-page {
    padding: 20px 12px;
  }

  .account-auth-card,
  .account-panel,
  .account-sidebar-card {
    padding: 22px 18px;
  }

  .account-auth-card--compact {
    padding: 24px 18px 22px;
  }

  .account-auth-card__head h1,
  .account-sidebar-card h1 {
    font-size: 26px;
  }

  .account-auth-card__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-auth-toast-stack {
    top: 16px;
    right: 16px;
    left: 16px;
  }

  .account-auth-toast {
    min-width: 0;
    max-width: 100%;
  }


  .account-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-app__topbar {
    padding: 0 16px;
  }

  .account-app__topbar {
    flex-wrap: nowrap;
    align-items: center;
    row-gap: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .account-app__topbar-heading {
    flex: 1 1 auto;
    min-width: 0;
  }

  .account-app__topbar-actions {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  .account-app__main {
    padding: 14px;
  }

  .account-hero-card {
    padding: 18px 16px;
  }

  .account-hero-card h1 {
    font-size: 22px;
  }

  .account-stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-latest-order-card__body {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .account-profile-storage-card__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-profile-storage-card__actions {
    flex-wrap: wrap;
  }

  .account-latest-order-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    align-items: center;
  }

  .account-latest-order-card__statuses {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
  }

  .account-latest-order-card__status {
    margin-top: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .account-latest-order-card__meta {
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
  }

  .account-latest-order-card__meta-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .account-latest-order-card__media img {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
  }

  .account-latest-order-card__top h2 {
    font-size: 16px;
    line-height: 1.45;
  }

  .account-latest-order-card__heading {
    display: contents;
  }

  .account-latest-order-card__heading h2 {
    width: auto;
    grid-column: 1 / -1;
  }

  .account-latest-order-card__amount {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.4;
    grid-column: 1;
    width: max-content;
  }

  .account-latest-order-card__meta-label,
  .account-latest-order-card__meta-value,
  .account-latest-order-card__meta-value--mono {
    font-size: 12px;
    line-height: 1.55;
  }

  .account-panel__head,
  .account-list-card__item,
  .account-shortcut-card,
  .account-order-list__item,
  .account-order-table th,
  .account-order-table td {
    padding-left: 16px;
    padding-right: 16px;
  }

  .account-form-block,
  .account-ticket-toolbar {
    display: block;
  }

  .account-password-card__body,
  .account-orders-panel .account-table-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .account-password-card__body {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 18px;
  }

  .account-password-card__body .account-mini-button {
    width: 100%;
  }

  .account-orders-panel .account-order-table {
    min-width: 640px;
  }

  .account-order-detail-modal {
    padding: 14px;
  }

  .account-order-detail-modal__header,
  .account-order-detail-modal__body,
  .account-ticket-modal__header,
  .account-ticket-modal__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .account-order-detail-card__header,
  .account-order-detail-card__item,
  .account-order-detail-card__summary,
  .account-order-detail-card__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-order-detail-card__header {
    display: grid;
  }

  .account-form-block .account-mini-button,
  .account-ticket-toolbar .account-mini-button,
  .account-password-card__body .account-mini-button {
    width: 100%;
    margin-top: 12px;
  }

  .account-ticket-form__actions {
    flex-direction: column-reverse;
  }

  .account-ticket-form__actions .account-mini-button {
    width: 100%;
  }

  .account-ticket-thread__item {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .account-ticket-thread__list {
    padding-left: 0;
    padding-right: 0;
  }

  .account-ticket-thread__item-head {
    display: grid;
    gap: 8px;
  }

  .account-ticket-reply-card {
    padding: 18px 16px 20px;
  }

  .account-orders-panel .account-order-table th:nth-child(3),
  .account-orders-panel .account-order-table td:nth-child(3) {
    min-width: 120px;
    white-space: nowrap;
  }

  .account-orders-panel .account-order-table th:nth-child(4),
  .account-orders-panel .account-order-table td:nth-child(4) {
    min-width: 138px;
    white-space: nowrap;
  }

  .account-orders-panel .account-order-table th:nth-child(5),
  .account-orders-panel .account-order-table td:nth-child(5) {
    min-width: 124px;
    white-space: nowrap;
  }

  .account-orders-panel .account-order-table th:nth-child(6),
  .account-orders-panel .account-order-table td:nth-child(6) {
    min-width: 96px;
    white-space: nowrap;
  }

  .account-orders-panel .account-order-table {
    min-width: 900px;
    table-layout: auto;
  }

  .account-order-table--ticket {
    min-width: 860px;
    table-layout: auto;
  }

  .account-order-table--ticket th,
  .account-order-table--ticket td {
    white-space: nowrap;
  }

  .account-order-table--ticket th:nth-child(1),
  .account-order-table--ticket td:nth-child(1) {
    min-width: 140px;
  }

  .account-order-table--ticket th:nth-child(2),
  .account-order-table--ticket td:nth-child(2) {
    min-width: 200px;
    white-space: normal;
    word-break: break-word;
  }

  .account-order-table--ticket th:nth-child(3),
  .account-order-table--ticket td:nth-child(3),
  .account-order-table--ticket th:nth-child(4),
  .account-order-table--ticket td:nth-child(4) {
    min-width: 112px;
  }

  .account-order-table--ticket th:nth-child(5),
  .account-order-table--ticket td:nth-child(5),
  .account-order-table--ticket th:nth-child(6),
  .account-order-table--ticket td:nth-child(6) {
    min-width: 148px;
  }

  .account-order-table--ticket th:nth-child(7),
  .account-order-table--ticket td:nth-child(7) {
    min-width: 116px;
  }

  .account-wallet-card {
    padding: 18px 16px;
  }

  .account-wallet-card__head strong {
    font-size: 42px;
  }

  .account-ticket-modal__dialog,
  .account-order-detail-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 28px);
    border-radius: 6px;
  }
}
