/* Public feature additions: announcements, wallet, media posts and moderation. */

html[data-theme] body.dashboard-v2.dashboard-v3 .latest-announcement {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  margin-bottom: var(--ui-grid-gap, 14px);
  padding: 14px 16px;
  color: var(--dash-text);
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--dash-primary-soft) 58%, var(--dash-surface-solid)), var(--dash-surface-solid) 62%);
  border: 1px solid color-mix(in srgb, var(--dash-primary) 17%, var(--dash-border));
  border-radius: var(--ui-card-radius, 16px);
  box-shadow: var(--dash-shadow);
  overflow: hidden;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .latest-announcement::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--dash-primary);
}

.latest-announcement__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--dash-primary);
  background: color-mix(in srgb, var(--dash-primary-soft) 78%, var(--dash-surface-solid));
  border: 1px solid color-mix(in srgb, var(--dash-primary) 16%, var(--dash-border));
  border-radius: 13px;
}

.latest-announcement__icon svg,
.latest-announcement__refresh svg,
.shop-wallet-card__icon svg,
.shop-wallet-card__actions svg,
.shop-upcoming svg,
.moderation-card header button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.latest-announcement__body {
  min-width: 0;
}

.latest-announcement__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  color: var(--dash-muted);
  font-size: 11px;
}

.latest-announcement__meta > span {
  padding: 2px 7px;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-radius: 999px;
  font-weight: 760;
}

.latest-announcement h2,
.latest-announcement p {
  margin: 0;
}

.latest-announcement h2 {
  color: var(--dash-heading);
  font-size: 14px;
  line-height: 1.4;
}

.latest-announcement p {
  margin-top: 2px;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.latest-announcement__refresh,
.moderation-card header button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--dash-muted);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: var(--ui-control-radius, 10px);
  cursor: pointer;
}

.latest-announcement__refresh:hover,
.moderation-card header button:hover {
  color: var(--dash-primary);
  border-color: color-mix(in srgb, var(--dash-primary) 35%, var(--dash-border));
}

.latest-announcement__refresh.is-loading svg,
.shop-wallet-card__actions button:disabled svg,
.moderation-card header button:disabled svg {
  animation: public-feature-spin 0.85s linear infinite;
}

.latest-announcement[data-state="empty"] {
  background: var(--dash-surface-solid);
  border-color: var(--dash-border);
}

.latest-announcement[data-state="error"]::after {
  background: var(--dash-red);
}

.latest-announcement[data-state="error"] .latest-announcement__icon {
  color: var(--dash-red);
  background: var(--dash-red-soft);
}

/* Community composer and media */

html[data-theme] body.dashboard-v2.dashboard-v3 .community-file-picker > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-file-picker small {
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 520;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-image-preview {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #0d1118;
  border: 1px solid var(--dash-border);
  border-radius: var(--ui-card-radius, 16px);
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-image-preview img,
html[data-theme] body.dashboard-v2.dashboard-v3 .community-image-preview video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #0d1118;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-image-preview button {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
  z-index: 2;
  min-height: 32px;
  padding: 0 10px;
  color: #fff;
  background: rgb(12 18 27 / 0.78);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 9px;
  backdrop-filter: blur(10px);
}

.community-private-option {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  min-height: 58px;
  padding: 10px 12px;
  color: var(--dash-text);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: var(--ui-control-radius, 10px);
  cursor: pointer;
}

.community-private-option > span {
  display: grid;
  gap: 2px;
}

.community-private-option strong {
  color: var(--dash-heading);
  font-size: 13px;
}

.community-private-option small {
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 520;
}

.community-private-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.community-private-option > i {
  position: relative;
  width: 38px;
  height: 22px;
  grid-column: 2;
  grid-row: 1;
  background: var(--dash-border-strong);
  border-radius: 999px;
  transition: 160ms ease;
}

.community-private-option > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.18);
  transition: transform 160ms ease;
}

.community-private-option input:checked + i {
  background: var(--dash-primary);
}

.community-private-option input:checked + i::after {
  transform: translateX(16px);
}

.community-private-option:focus-within {
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dash-primary) 15%, transparent);
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__media {
  display: grid;
  background: #0d1118;
  border-bottom: 1px solid var(--dash-border);
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__image,
html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__video {
  position: relative;
  min-height: 130px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0d1118;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__media > * + * {
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__image img,
html[data-theme] body.dashboard-v2.dashboard-v3 .community-post-card__video video {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #0d1118;
}

.community-post-card__video-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 9px;
  color: #fff;
  background: rgb(12 18 27 / 0.72);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  font-size: 11px;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.community-post-card__private {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  padding: 4px 8px;
  color: var(--dash-violet);
  background: var(--dash-violet-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
}

.community-post-card__private::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

.community-post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.community-post-card__footer .community-author {
  min-width: 0;
  margin: 0;
}

.community-post-card__delete,
.chat-message__delete {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  color: var(--dash-red);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--dash-red) 24%, var(--dash-border));
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.community-post-card__delete:hover,
.chat-message__delete:hover {
  background: var(--dash-red-soft);
}

.community-post-card__delete:disabled,
.chat-message__delete:disabled {
  opacity: 0.55;
  cursor: wait;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__meta {
  flex-wrap: wrap;
}

html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__delete {
  margin-left: auto;
}

/* Wallet and future products */

.shop-wallet-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--ui-grid-gap, 14px);
  padding: 18px 20px;
  color: var(--dash-text);
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--dash-primary) 16%, transparent), transparent 42%),
    var(--dash-surface-solid);
  border: 1px solid color-mix(in srgb, var(--dash-primary) 18%, var(--dash-border));
  border-radius: var(--ui-card-radius, 16px);
  box-shadow: var(--dash-shadow);
  overflow: hidden;
}

.shop-wallet-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border: 1px solid color-mix(in srgb, var(--dash-primary) 18%, var(--dash-border));
  border-radius: 16px;
}

.shop-wallet-card__icon svg {
  width: 25px;
  height: 25px;
}

.shop-wallet-card__copy > span,
.shop-upcoming header span,
.moderation-card header span {
  color: var(--dash-muted);
  font-size: 11px;
  font-weight: 680;
}

.shop-wallet-card h2,
.shop-wallet-card p {
  margin: 0;
}

.shop-wallet-card h2 {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 2px;
  color: var(--dash-heading);
}

.shop-wallet-card h2 strong {
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.shop-wallet-card h2 small {
  color: var(--dash-muted);
  font-size: 12px;
}

.shop-wallet-card p {
  margin-top: 3px;
  color: var(--dash-muted);
  font-size: 12px;
}

.shop-wallet-card[data-state="error"] p {
  color: var(--dash-red);
}

.shop-wallet-card__actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border: 1px solid color-mix(in srgb, var(--dash-primary) 22%, var(--dash-border));
  border-radius: var(--ui-control-radius, 10px);
  font-weight: 720;
  cursor: pointer;
}

.shop-wallet-card__actions button:hover {
  border-color: var(--dash-primary);
}

.shop-upcoming {
  margin-top: var(--ui-grid-gap, 14px);
  padding: 18px;
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: var(--ui-card-radius, 16px);
  box-shadow: var(--dash-shadow);
}

.shop-upcoming > header,
.moderation-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.shop-upcoming header h2,
.moderation-card header h2 {
  margin: 2px 0 0;
  color: var(--dash-heading);
  font-size: 17px;
}

.shop-upcoming header > small {
  color: var(--dash-muted);
  font-size: 11px;
}

.shop-upcoming__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shop-upcoming__grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: calc(var(--ui-card-radius, 16px) - 3px);
}

.shop-upcoming__grid article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-radius: 12px;
}

.shop-upcoming__grid article > span.is-violet {
  color: var(--dash-violet);
  background: var(--dash-violet-soft);
}

.shop-upcoming__grid article > span.is-amber {
  color: var(--dash-amber);
  background: var(--dash-amber-soft);
}

.shop-upcoming__grid h3,
.shop-upcoming__grid p {
  margin: 0;
}

.shop-upcoming__grid h3 {
  margin-top: 2px;
  color: var(--dash-heading);
  font-size: 14px;
}

.shop-upcoming__grid article small,
.shop-upcoming__grid p {
  color: var(--dash-muted);
  font-size: 11px;
  line-height: 1.5;
}

.shop-upcoming__grid article > strong,
.shop-upcoming__grid article > button {
  grid-column: 1 / -1;
}

.shop-upcoming__grid article > strong {
  color: var(--dash-heading);
  font-size: 12px;
}

.shop-upcoming__grid article > button {
  min-height: 34px;
  color: var(--dash-muted);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 9px;
}

/* Moderator-only workspace */

.moderation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: var(--ui-grid-gap, 14px);
}

.moderation-card {
  min-width: 0;
  padding: 18px;
  color: var(--dash-text);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: var(--ui-card-radius, 16px);
  box-shadow: var(--dash-shadow);
}

.moderation-card header > b {
  padding: 5px 9px;
  color: var(--dash-violet);
  background: var(--dash-violet-soft);
  border-radius: 999px;
  font-size: 11px;
}

.moderation-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.moderation-lookup-form label,
.moderation-user-result > label {
  display: grid;
  gap: 6px;
  color: var(--dash-muted);
  font-size: 12px;
  font-weight: 650;
}

.moderation-lookup-form input,
.moderation-user-result input {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  color: var(--dash-text);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: var(--ui-control-radius, 10px);
  outline: none;
}

.moderation-lookup-form input:focus,
.moderation-user-result input:focus {
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dash-primary) 14%, transparent);
}

.moderation-lookup-form button,
.moderation-user-actions button {
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: var(--dash-primary);
  border: 1px solid var(--dash-primary);
  border-radius: var(--ui-control-radius, 10px);
  font-weight: 720;
  cursor: pointer;
}

.moderation-user-result {
  display: grid;
  gap: 13px;
  margin-top: 14px;
  padding: 14px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: calc(var(--ui-card-radius, 16px) - 3px);
}

.moderation-user-result > div:first-child {
  display: grid;
  gap: 2px;
}

.moderation-user-result > div:first-child > span,
.moderation-user-result > div:first-child > small {
  color: var(--dash-muted);
  font-size: 11px;
}

.moderation-user-result > div:first-child > strong {
  color: var(--dash-heading);
  font-size: 17px;
}

.moderation-state-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.moderation-state-tags span {
  padding: 4px 8px;
  color: var(--dash-green);
  background: var(--dash-green-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 720;
}

.moderation-state-tags span.is-danger {
  color: var(--dash-red);
  background: var(--dash-red-soft);
}

.moderation-state-tags span.is-warning {
  color: var(--dash-amber);
  background: var(--dash-amber-soft);
}

.moderation-state-tags span.is-staff {
  color: var(--dash-violet);
  background: var(--dash-violet-soft);
}

.moderation-user-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.moderation-user-actions button.is-danger {
  color: var(--dash-red);
  background: var(--dash-red-soft);
  border-color: color-mix(in srgb, var(--dash-red) 25%, var(--dash-border));
}

.moderation-user-actions button.is-warning {
  color: var(--dash-amber);
  background: var(--dash-amber-soft);
  border-color: color-mix(in srgb, var(--dash-amber) 25%, var(--dash-border));
}

.moderation-audit-list {
  max-height: 530px;
  display: grid;
  gap: 8px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--dash-border-strong) transparent;
}

.moderation-audit-list > p {
  margin: 0;
  padding: 30px 12px;
  color: var(--dash-muted);
  text-align: center;
  font-size: 12px;
}

.moderation-audit-list article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
}

.moderation-audit-list article > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.moderation-audit-list article strong {
  color: var(--dash-heading);
  font-size: 12px;
}

.moderation-audit-list article span,
.moderation-audit-list article time {
  color: var(--dash-muted);
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.moderation-audit-list article time {
  flex: 0 0 auto;
}

@keyframes public-feature-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .shop-upcoming__grid {
    grid-template-columns: 1fr;
  }

  .moderation-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html[data-theme] body.dashboard-v2.dashboard-v3 .latest-announcement {
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    gap: 10px;
    padding: 12px;
  }

  .latest-announcement__icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .latest-announcement__refresh {
    width: 32px;
    height: 32px;
  }

  .latest-announcement p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .shop-wallet-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .shop-wallet-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .shop-wallet-card__actions {
    grid-column: 1 / -1;
  }

  .shop-wallet-card__actions button {
    width: 100%;
  }

  .shop-upcoming,
  .moderation-card {
    padding: 14px;
  }

  .shop-upcoming > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .community-post-card__footer {
    align-items: flex-start;
  }

  .community-post-card__delete {
    margin-top: 2px;
  }

  html[data-theme] body.dashboard-v2.dashboard-v3 .chat-message__delete {
    margin-left: 0;
  }

  .moderation-lookup-form {
    grid-template-columns: 1fr;
  }

  .moderation-user-actions {
    grid-template-columns: 1fr;
  }

  .moderation-audit-list article {
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 390px) {
  .latest-announcement__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .shop-upcoming__grid article {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 12px;
  }

  .shop-upcoming__grid article > span {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-announcement__refresh.is-loading svg,
  .shop-wallet-card__actions button:disabled svg,
  .moderation-card header button:disabled svg {
    animation: none;
  }
}

/* Store catalog, checkout and delivery history. */
.shop-page {
  display: grid;
  align-content: start;
  gap: 14px;
}

.shop-page .shop-wallet-card,
.shop-page .shop-catalog,
.shop-page .shop-order-panel,
.shop-page .shop-order-history {
  margin: 0;
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 16px;
  box-shadow: var(--dash-shadow);
}

.shop-catalog,
.shop-order-history {
  padding: 18px;
}

.shop-section-head {
  margin-bottom: 14px;
}

.shop-section-head > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.shop-section-head > div:first-child > span {
  color: var(--dash-muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.shop-section-head h2 {
  margin: 0;
  color: var(--dash-heading);
  font-size: 18px;
}

.shop-section-head > div:last-child {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-section-head > div:last-child > strong {
  color: var(--dash-muted);
  font-size: 11px;
}

.shop-section-head button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--dash-muted);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 9px;
}

.shop-section-head button:hover {
  color: var(--dash-primary);
  border-color: color-mix(in srgb, var(--dash-primary) 32%, var(--dash-border));
}

.shop-section-head button:disabled svg {
  animation: public-feature-spin 700ms linear infinite;
}

.shop-section-head svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.shop-product-card {
  min-width: 0;
  min-height: 210px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 15px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 13px;
}

.shop-product-card:hover {
  border-color: color-mix(in srgb, var(--dash-primary) 24%, var(--dash-border));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--dash-heading) 7%, transparent);
}

.shop-product-card__head,
.shop-product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-product-card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border: 1px solid color-mix(in srgb, var(--dash-primary) 22%, var(--dash-border));
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
}

.shop-product-card__icon.is-scoreboard {
  color: #b7791f;
  background: color-mix(in srgb, #b7791f 10%, var(--dash-surface-solid));
  border-color: color-mix(in srgb, #b7791f 25%, var(--dash-border));
}

.shop-product-card__tag {
  max-width: calc(100% - 52px);
  overflow: hidden;
  padding: 5px 8px;
  color: var(--dash-muted);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-product-card__copy {
  min-width: 0;
}

.shop-product-card__copy h3,
.shop-product-card__copy p {
  margin: 0;
}

.shop-product-card__copy h3 {
  color: var(--dash-heading);
  font-size: 16px;
}

.shop-product-card__copy p {
  margin-top: 7px;
  color: var(--dash-muted);
  font-size: 12px;
  line-height: 1.65;
}

.shop-product-card__foot {
  padding-top: 12px;
  border-top: 1px solid var(--dash-border);
}

.shop-product-card__foot > strong {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--dash-heading);
}

.shop-product-card__foot > strong b {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.shop-product-card__foot > strong small {
  color: var(--dash-muted);
  font-size: 10px;
}

.shop-product-card__foot > button {
  min-height: 36px;
  padding: 0 12px;
  color: #fff;
  background: var(--dash-primary);
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 760;
}

.shop-product-card__foot > button:hover {
  background: var(--dash-primary-strong);
}

.shop-product-empty {
  min-height: 130px;
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  padding: 22px;
  color: var(--dash-muted);
  text-align: center;
  background: var(--dash-surface-soft);
  border: 1px dashed var(--dash-border);
  border-radius: 13px;
  font-size: 12px;
}

.shop-order-panel[hidden],
.shop-order-history[hidden] {
  display: none !important;
}

.shop-order-panel {
  overflow: hidden;
}

.shop-order-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px;
  background: var(--dash-surface-soft);
  border-bottom: 1px solid var(--dash-border);
}

.shop-order-panel__head > div:first-child {
  min-width: 0;
}

.shop-order-panel__head span {
  color: var(--dash-muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.shop-order-panel__head h2,
.shop-order-panel__head p {
  margin: 0;
}

.shop-order-panel__head h2 {
  margin-top: 3px;
  color: var(--dash-heading);
  font-size: 18px;
}

.shop-order-panel__head p {
  margin-top: 4px;
  color: var(--dash-muted);
  font-size: 11px;
}

.shop-order-panel__head > div:last-child {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-order-panel__head > div:last-child > strong {
  color: var(--dash-heading);
  font-size: 13px;
}

.shop-order-panel__head button {
  width: 34px;
  height: 34px;
  color: var(--dash-muted);
  background: var(--dash-surface-solid);
  border: 1px solid var(--dash-border);
  border-radius: 9px;
  font-size: 21px;
}

.shop-order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.shop-order-form > label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--dash-text);
  font-size: 11px;
  font-weight: 720;
}

.shop-order-form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--dash-text);
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 9px;
  outline: none;
}

.shop-order-form input:focus {
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dash-primary) 12%, transparent);
}

.shop-order-progress {
  min-width: 0;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
}

.shop-order-progress > span {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--dash-muted);
  border-radius: 999px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dash-muted) 12%, transparent);
}

.shop-order-progress[data-status="queued"] > span,
.shop-order-progress[data-status="joining"] > span,
.shop-order-progress[data-status="checking_player"] > span,
.shop-order-progress[data-status="delivering"] > span {
  background: var(--dash-primary);
  box-shadow: 0 0 0 4px var(--dash-primary-soft);
  animation: shop-order-pulse 1.15s ease-in-out infinite;
}

.shop-order-progress[data-status="delivered"] > span {
  background: #2e9668;
  box-shadow: 0 0 0 4px color-mix(in srgb, #2e9668 13%, transparent);
}

.shop-order-progress[data-status="failed"] > span {
  background: #d34b55;
  box-shadow: 0 0 0 4px color-mix(in srgb, #d34b55 13%, transparent);
}

.shop-order-progress > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.shop-order-progress strong {
  color: var(--dash-heading);
  font-size: 12px;
}

.shop-order-progress small {
  color: var(--dash-muted);
  font-size: 10px;
  line-height: 1.5;
}

.shop-order-form > .primary-button {
  min-height: 42px;
  justify-self: start;
}

.shop-order-form > .form-message {
  align-self: center;
  margin: 0;
}

.shop-order-list {
  display: grid;
  gap: 7px;
}

.shop-order-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: var(--dash-surface-soft);
  border: 1px solid var(--dash-border);
  border-radius: 10px;
}

.shop-order-row__status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: var(--dash-primary);
  background: var(--dash-primary-soft);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 760;
}

.shop-order-row[data-status="delivered"] .shop-order-row__status {
  color: #2e9668;
  background: color-mix(in srgb, #2e9668 10%, var(--dash-surface-solid));
}

.shop-order-row[data-status="failed"] .shop-order-row__status {
  color: #d34b55;
  background: color-mix(in srgb, #d34b55 10%, var(--dash-surface-solid));
}

.shop-order-row > div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(150px, auto) minmax(110px, auto);
  align-items: center;
  gap: 10px;
}

.shop-order-row strong,
.shop-order-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-order-row strong {
  color: var(--dash-heading);
  font-size: 12px;
}

.shop-order-row small {
  color: var(--dash-muted);
  font-size: 10px;
}

.shop-order-empty {
  margin: 0;
  padding: 18px;
  color: var(--dash-muted);
  text-align: center;
  background: var(--dash-surface-soft);
  border: 1px dashed var(--dash-border);
  border-radius: 10px;
  font-size: 11px;
}

@keyframes shop-order-pulse {
  50% { opacity: 0.45; }
}

@media (max-width: 980px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-order-row > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

@media (max-width: 620px) {
  .shop-catalog,
  .shop-order-history {
    padding: 14px;
  }

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

  .shop-order-progress,
  .shop-order-form > .primary-button,
  .shop-order-form > .form-message {
    grid-column: 1;
  }

  .shop-order-panel__head {
    align-items: flex-start;
    padding: 14px;
  }

  .shop-order-panel__head > div:last-child {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .shop-order-form {
    padding: 14px;
  }

  .shop-order-form > .primary-button {
    width: 100%;
  }

  .shop-order-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .shop-order-row__status {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-order-progress > span,
  .shop-section-head button:disabled svg {
    animation: none !important;
  }
}
