.cm-customer-page {
  min-height: 72vh;
  padding: 72px 0 96px;
  background:
    radial-gradient(circle at 15% 0%, rgba(126, 34, 206, .16), transparent 34%),
    radial-gradient(circle at 92% 36%, rgba(168, 85, 247, .08), transparent 28%),
    var(--sm-bg);
}

.cm-customer-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid rgba(192, 132, 252, .42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(168, 85, 247, .22), transparent 34%),
    linear-gradient(135deg, #1c1026, #100817);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .3), 0 0 28px rgba(126, 34, 206, .1);
}

.cm-customer-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: #d8b4fe;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.cm-customer-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 13px #a855f7;
}

.cm-customer-hero h1 {
  margin: 0;
  background: linear-gradient(95deg, #fff, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -.045em;
}

.cm-customer-hero > div > p:last-child {
  max-width: 610px;
  margin: 10px 0 0;
  color: var(--sm-muted);
}

.cm-customer-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  padding: 13px 16px;
  border: 1px solid rgba(192, 132, 252, .26);
  border-radius: 12px;
  background: rgba(5, 2, 10, .46);
}

.cm-customer-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(216, 180, 254, .6);
  border-radius: 11px;
  background: linear-gradient(145deg, #9333ea, #581c87);
  color: white;
  box-shadow: 0 0 18px rgba(168, 85, 247, .3);
}

.cm-customer-identity small,
.cm-customer-identity strong {
  display: block;
}

.cm-customer-identity small {
  color: #8f8799;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.cm-customer-identity strong {
  max-width: 230px;
  overflow: hidden;
  color: white;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-customer-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--sm-border);
  border-radius: 13px;
  background: rgba(18, 10, 27, .78);
}

.cm-customer-nav a,
.cm-customer-nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #aaa2b3;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.cm-customer-nav a:hover,
.cm-customer-nav button:hover,
.cm-customer-nav a.is-active {
  border-color: rgba(192, 132, 252, .38);
  background: rgba(126, 34, 206, .17);
  color: #f3e8ff;
}

.cm-customer-nav button {
  margin-left: auto;
}

.cm-customer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.cm-customer-stats article {
  position: relative;
  display: grid;
  min-height: 158px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--sm-border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(29, 17, 40, .94), rgba(14, 8, 21, .94));
}

.cm-customer-stats article::after {
  position: absolute;
  right: -34px;
  bottom: -45px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(168, 85, 247, .14);
  border-radius: 50%;
  content: "";
}

.cm-customer-stats article > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: rgba(126, 34, 206, .18);
  color: #d8b4fe;
}

.cm-customer-stats small {
  align-self: end;
  margin-top: 18px;
  color: #938b9d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cm-customer-stats strong {
  color: white;
  font-size: 26px;
  font-weight: 900;
}

.cm-customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr);
  gap: 18px;
}

.cm-customer-panel {
  padding: 26px;
  border: 1px solid var(--sm-border);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(25, 14, 35, .94), rgba(12, 7, 18, .96));
}

.cm-customer-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sm-border);
}

.cm-customer-panel header p,
.cm-customer-help > p:first-of-type {
  margin: 0 0 5px;
  color: #c084fc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.cm-customer-panel h2 {
  margin: 0;
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.cm-customer-panel header > a,
.cm-customer-help > a {
  color: #d8b4fe;
  font-size: 12px;
  font-weight: 800;
}

.cm-latest-order {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
}

.cm-latest-order-icon,
.cm-customer-help > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(192, 132, 252, .38);
  border-radius: 13px;
  background: rgba(126, 34, 206, .15);
  color: #d8b4fe;
  font-size: 19px;
}

.cm-latest-order small,
.cm-latest-order strong,
.cm-latest-order p {
  display: block;
  margin: 0;
}

.cm-latest-order small {
  color: #898191;
  font-size: 10px;
  text-transform: uppercase;
}

.cm-latest-order strong {
  margin: 2px 0;
  color: white;
  font-size: 17px;
}

.cm-latest-order p,
.cm-customer-help > p {
  color: var(--sm-muted);
  font-size: 13px;
}

.cm-latest-order .sm-primary-button,
.cm-customer-empty .sm-primary-button {
  border-radius: 9px;
}

.cm-customer-empty {
  padding: 34px 12px 10px;
  color: var(--sm-muted);
  text-align: center;
}

.cm-customer-empty > i {
  color: #c084fc;
  font-size: 30px;
}

.cm-customer-empty h3 {
  margin: 12px 0 4px;
  color: white;
  font-weight: 900;
}

.cm-customer-empty p {
  margin: 0 0 18px;
}

.cm-customer-help > span {
  margin-bottom: 22px;
}

.cm-customer-help h2 {
  margin-bottom: 9px;
}

.cm-customer-help > p {
  margin-bottom: 22px;
  line-height: 1.65;
}

@media (max-width: 991.98px) {
  .cm-customer-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-customer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .cm-customer-page {
    padding: 38px 0 68px;
  }

  .cm-customer-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 25px;
  }

  .cm-customer-identity {
    min-width: 0;
  }

  .cm-customer-nav button {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .cm-customer-stats {
    grid-template-columns: 1fr;
  }

  .cm-customer-stats article {
    min-height: 136px;
  }

  .cm-latest-order {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cm-latest-order .sm-primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cm-customer-panel > header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.cm-orders-hero {
  align-items: center;
}

.cm-orders-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  padding: 18px;
  border: 1px solid rgba(192, 132, 252, .3);
  border-radius: 13px;
  background: rgba(7, 3, 12, .55);
}

.cm-orders-summary > span {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #9333ea, #581c87);
  color: white;
  box-shadow: 0 0 20px rgba(168, 85, 247, .3);
}

.cm-orders-summary small,
.cm-orders-summary strong {
  display: block;
}

.cm-orders-summary small {
  color: #938b9d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cm-orders-summary strong {
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.cm-orders-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 18px;
}

.cm-orders-heading p {
  margin: 0 0 5px;
  color: #c084fc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.cm-orders-heading h2 {
  margin: 0;
  color: white;
  font-size: 27px;
  font-weight: 900;
}

.cm-orders-heading > span {
  color: #8f8799;
  font-size: 12px;
}

.cm-orders-heading > span i {
  margin-right: 6px;
  color: #c084fc;
}

.cm-order-list {
  display: grid;
  gap: 14px;
}

.cm-order-card {
  overflow: hidden;
  border: 1px solid var(--sm-border);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(126, 34, 206, .12), transparent 28%),
    linear-gradient(145deg, rgba(25, 14, 35, .96), rgba(11, 6, 17, .98));
  box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.cm-order-card:hover {
  border-color: rgba(192, 132, 252, .44);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24), 0 0 24px rgba(126, 34, 206, .08);
  transform: translateY(-1px);
}

.cm-order-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 21px 22px;
}

.cm-order-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(192, 132, 252, .32);
  border-radius: 12px;
  background: rgba(126, 34, 206, .14);
  color: #d8b4fe;
  font-size: 18px;
}

.cm-order-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cm-order-title-row > a {
  overflow: hidden;
  color: white;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-order-title-row > a:hover {
  color: #d8b4fe;
}

.cm-order-title > p {
  margin: 5px 0 0;
  color: #8c8495;
  font-size: 11px;
}

.cm-order-title > p i {
  margin-right: 5px;
  color: #a855f7;
}

.cm-order-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(134, 239, 172, .22);
  border-radius: 999px;
  background: rgba(34, 197, 94, .11);
  color: #86efac;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cm-order-status[data-status="pending"],
.cm-order-status[data-status="partially_completed"] {
  border-color: rgba(253, 224, 71, .22);
  background: rgba(234, 179, 8, .11);
  color: #fde047;
}

.cm-order-status[data-status="confirming"] {
  border-color: rgba(147, 197, 253, .24);
  background: rgba(59, 130, 246, .12);
  color: #93c5fd;
}

.cm-order-status[data-status="out_of_stock"] {
  border-color: rgba(253, 186, 116, .24);
  background: rgba(249, 115, 22, .12);
  color: #fdba74;
}

.cm-order-status[data-status="refunded"] {
  border-color: rgba(94, 234, 212, .24);
  background: rgba(20, 184, 166, .12);
  color: #5eead4;
}

.cm-order-price {
  min-width: 90px;
  text-align: right;
}

.cm-order-price small,
.cm-order-price strong {
  display: block;
}

.cm-order-price small {
  color: #847c8d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cm-order-price strong {
  color: white;
  font-size: 19px;
  font-weight: 900;
}

.cm-order-products {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 22px;
  border-top: 1px solid var(--sm-border);
  border-bottom: 1px solid var(--sm-border);
  background: rgba(5, 2, 10, .28);
}

.cm-order-products > p {
  margin: 3px 0 0;
  color: #807788;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.cm-order-products > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cm-order-products span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(168, 85, 247, .18);
  border-radius: 8px;
  background: rgba(126, 34, 206, .07);
  color: #d8d2df;
  font-size: 11px;
  font-weight: 700;
}

.cm-order-products span i {
  color: #c084fc;
}

.cm-order-products span small {
  color: #8f8798;
}

.cm-order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 22px;
}

.cm-order-secondary,
.cm-order-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.cm-order-secondary {
  border: 1px solid var(--sm-border);
  background: rgba(255, 255, 255, .025);
  color: #c8c1cf;
}

.cm-order-secondary:hover {
  border-color: rgba(192, 132, 252, .46);
  color: white;
}

.cm-order-primary {
  border: 1px solid #c084fc;
  background: linear-gradient(100deg, #7e22ce, #a855f7 58%, #6d28d9);
  color: white;
  box-shadow: 0 8px 20px rgba(88, 28, 135, .28), 0 0 17px rgba(168, 85, 247, .16);
}

.cm-order-primary:hover {
  color: white;
  filter: brightness(1.1);
}

.cm-orders-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 17px;
  border: 1px solid var(--sm-border);
  border-radius: 11px;
  background: rgba(18, 10, 27, .78);
}

.cm-orders-pagination p {
  margin: 0;
  color: #8e8697;
  font-size: 11px;
}

.cm-orders-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cm-orders-pagination a,
.cm-orders-pagination span,
.cm-orders-pagination b {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
}

.cm-orders-pagination a {
  border: 1px solid rgba(192, 132, 252, .3);
  color: #d8b4fe;
}

.cm-orders-pagination span {
  border: 1px solid var(--sm-border);
  color: #5f5866;
}

.cm-orders-pagination b {
  color: #9d95a6;
}

.cm-orders-empty {
  padding: 65px 24px;
  border: 1px solid var(--sm-border);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(25, 14, 35, .94), rgba(12, 7, 18, .96));
  text-align: center;
}

.cm-orders-empty > span {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(192, 132, 252, .42);
  border-radius: 15px;
  background: rgba(126, 34, 206, .14);
  color: #d8b4fe;
  font-size: 22px;
}

.cm-orders-empty h2 {
  margin: 0;
  color: white;
  font-weight: 900;
}

.cm-orders-empty p {
  max-width: 460px;
  margin: 8px auto 20px;
  color: var(--sm-muted);
}

.cm-ticket-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: visibility .18s ease, opacity .18s ease;
}

.cm-ticket-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.cm-ticket-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 1, 9, .88);
  backdrop-filter: blur(13px);
}

.cm-ticket-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 34px;
  border: 1px solid rgba(192, 132, 252, .62);
  border-radius: 17px;
  background:
    radial-gradient(circle at 88% 0%, rgba(168, 85, 247, .25), transparent 32%),
    linear-gradient(145deg, #1d1128, #0d0713);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(126, 34, 206, .2);
}

.cm-ticket-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(192, 132, 252, .28);
  border-radius: 9px;
  background: rgba(126, 34, 206, .1);
  color: #b8afc2;
  cursor: pointer;
}

.cm-ticket-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(216, 180, 254, .65);
  border-radius: 13px;
  background: linear-gradient(145deg, #9333ea, #581c87);
  color: white;
  box-shadow: 0 0 24px rgba(168, 85, 247, .32);
}

.cm-ticket-card > p:first-of-type {
  margin: 0 0 6px;
  color: #d8b4fe;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.cm-ticket-card h2 {
  margin: 0;
  color: white;
  font-size: 27px;
  font-weight: 900;
}

.cm-ticket-card > p:last-of-type {
  margin: 8px 0 22px;
  color: var(--sm-muted);
  font-size: 13px;
}

.cm-ticket-card form,
.cm-ticket-card label {
  display: grid;
  gap: 7px;
}

.cm-ticket-card form {
  gap: 14px;
}

.cm-ticket-card label {
  color: #eee8f3;
  font-size: 12px;
  font-weight: 800;
}

.cm-ticket-card input,
.cm-ticket-card textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid rgba(168, 85, 247, .28);
  border-radius: 9px;
  outline: none;
  background: rgba(6, 2, 11, .7);
  color: white;
  resize: vertical;
}

.cm-ticket-card input:focus,
.cm-ticket-card textarea:focus {
  border-color: #c084fc;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .14);
}

.cm-ticket-card input[readonly] {
  color: #a79faf;
}

.cm-ticket-message {
  min-height: 18px;
  margin: 0;
  color: #fca5a5;
  font-size: 11px;
  font-weight: 700;
}

.cm-ticket-card .cm-order-primary {
  width: 100%;
  min-height: 46px;
}

.sm-body.is-ticket-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .cm-orders-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cm-order-main {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .cm-order-price {
    grid-column: 2;
    text-align: left;
  }

  .cm-order-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cm-order-products {
    grid-template-columns: 1fr;
  }

  .cm-orders-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .cm-order-main,
  .cm-order-products,
  .cm-order-actions {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cm-order-actions {
    flex-direction: column;
  }

  .cm-order-secondary,
  .cm-order-primary {
    width: 100%;
  }

  .cm-orders-pagination > div {
    flex-wrap: wrap;
  }

  .cm-ticket-card {
    padding: 28px 20px 22px;
  }
}
