/* ===== ACCOUNT DASHBOARD ===== */

/* Reduce top space so avatar sits centered between nav and tiles */
.page-content:has(.account-header) {
  padding-top: 80px;
}

.account-header {
  text-align: center;
  margin-bottom: 8px;
  padding-top: 0;
}

.account-avatar {
  width: 56px;
  height: 56px;
  margin: 28px auto 10px;
  border-radius: 50%;
  background: rgba(196, 168, 130, 0.18);
  border: 2px solid rgba(196, 168, 130, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 700;
  color: #c4a882;
  line-height: 1;
}

.account-name {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #f0ece4;
  margin-bottom: 2px;
}

.account-email {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  display: none;
}

.account-since {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(196, 168, 130, 0.7);
  letter-spacing: 0.02em;
}

.account-since.account-since--admin {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4a882;
}

/* Edit Profile Toggle */
.account-edit-toggle {
  display: inline-block;
  margin-top: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #c4a882;
  background: none;
  border: 1px solid rgba(196, 168, 130, 0.3);
  border-radius: 999px;
  padding: 6px 20px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.account-edit-toggle:hover {
  background: rgba(196, 168, 130, 0.1);
  border-color: rgba(196, 168, 130, 0.5);
}

/* Edit Profile Panel */
.account-edit-panel {
  max-width: 420px;
  margin: 0 auto 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

.account-edit-panel.is-open {
  max-height: 700px;
  opacity: 1;
  margin-bottom: 40px;
}

.account-edit-panel.is-open ~ .account-grid,
.account-edit-panel.is-open ~ .account-detail {
  display: none !important;
}

.edit-field {
  margin-bottom: 16px;
}

.edit-field label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}

.edit-field input,
.edit-field textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #f0ece4;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.25s ease;
  box-sizing: border-box;
}

.edit-field input:focus,
.edit-field textarea:focus {
  border-color: rgba(196, 168, 130, 0.5);
}

.edit-field textarea {
  resize: vertical;
  min-height: 60px;
}

.edit-section-label {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #c4a882;
  margin-bottom: 16px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.edit-row {
  display: flex;
  gap: 12px;
}

.edit-field--grow {
  flex: 1;
}

.edit-field--sm {
  width: 70px;
  flex-shrink: 0;
}

.edit-field--md {
  width: 110px;
  flex-shrink: 0;
}

.edit-optional {
  font-weight: 300;
  color: #666;
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.edit-field--sm input {
  text-transform: uppercase;
}

.edit-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.edit-save {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  background: #c4a882;
  border: none;
  border-radius: 6px;
  padding: 9px 24px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.edit-save:hover {
  background: #d4ba96;
}

.edit-cancel {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #888;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 9px 24px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.edit-cancel:hover {
  color: #bbb;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Dashboard Tile Grid */
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 48px;
}

.account-grid.is-hidden {
  display: none;
}

.account-tile {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px 24px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.account-tile:hover {
  border-color: rgba(196, 168, 130, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.account-tile__icon {
  margin-bottom: 14px;
}

.account-tile__icon svg {
  width: 28px;
  height: 28px;
  color: #c4a882;
}

.account-tile__title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #f0ece4;
  margin-bottom: 6px;
}

.account-tile__summary {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #777;
  line-height: 1.5;
}

.account-tile__arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-size: 24px;
  color: rgba(196, 168, 130, 0.4);
  transition: color 0.3s ease, right 0.3s ease;
  line-height: 1;
}

.account-tile:hover .account-tile__arrow {
  color: #c4a882;
  right: 16px;
}

.account-tile[data-section="promos"] {
  grid-column: 1 / -1;
  width: min(100%, 420px);
  justify-self: center;
}

/* Detail Panels */
.account-detail {
  display: none;
  animation: detailFadeIn 0.35s ease;
  margin-top: 0;
}

.account-detail.is-active {
  display: block;
}

#detail-contact-submissions {
  position: relative;
}

@keyframes detailFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-detail__back {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #c4a882;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: -16px 0 24px;
  transition: color 0.25s ease;
}

.account-detail__back:hover {
  color: #d4ba96;
}

.account-detail__heading {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #f0ece4;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-detail__lede {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(240, 236, 228, 0.75);
  margin: -12px 0 20px;
  max-width: 42em;
}

.account-detail__lede strong {
  color: #c4a882;
  font-weight: 600;
}

.account-detail__content {
  min-height: 200px;
}

.account-card__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #999;
  line-height: 1.6;
  margin-bottom: 16px;
}

.account-empty {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #777;
  line-height: 1.65;
}

.account-empty a {
  color: #c4a882;
  border-bottom: 1px solid rgba(196, 168, 130, 0.3);
  transition: border-color 0.25s ease;
}

.account-empty a:hover {
  border-bottom-color: #c4a882;
}

/* Newsletter Archive */
.nl-archive {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nl-archive__title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #c4a882;
  margin-bottom: 20px;
}

.nl-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 14px;
  transition: border-color 0.3s ease;
}

.nl-item:hover {
  border-color: rgba(196, 168, 130, 0.2);
}

.nl-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.nl-item__date {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

.nl-item__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nl-item__tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4a882;
  background: rgba(196, 168, 130, 0.1);
  border: 1px solid rgba(196, 168, 130, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
}

.nl-item__subject {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #f0ece4;
  margin-bottom: 6px;
}

.nl-item__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

/* Orders Empty State */
.orders-empty {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.orders-empty .account-empty {
  margin: 0;
}

.orders-empty__shop {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  background: #c4a882;
  border-radius: 999px;
  padding: 8px 22px;
  white-space: nowrap;
  transition: background 0.25s ease;
  text-decoration: none;
}

.orders-empty__shop:hover {
  background: #d4ba96;
}

.admin-orders-card {
  border: 1px solid rgba(196, 168, 130, 0.24);
  border-radius: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.admin-orders-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-orders-link {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  background: #c4a882;
  border: 1px solid #c4a882;
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.admin-orders-link::after {
  content: " \2197";
  font-size: 11px;
  vertical-align: text-top;
}

.admin-orders-link:hover {
  background: #d4ba96;
  border-color: #d4ba96;
}

.admin-orders-link--secondary {
  background: transparent;
  color: #c4a882;
  border-color: rgba(196, 168, 130, 0.4);
}

.admin-orders-link--secondary:hover {
  background: rgba(196, 168, 130, 0.12);
  border-color: rgba(196, 168, 130, 0.6);
}

/* Newsletter Toggle */
.account-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.account-toggle input {
  display: none;
}

.account-toggle__track {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.account-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #888;
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.account-toggle input:checked + .account-toggle__track {
  background: rgba(196, 168, 130, 0.3);
}

.account-toggle input:checked + .account-toggle__track::after {
  transform: translateX(20px);
  background: #c4a882;
}

.account-toggle__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #aaa;
}

/* Promotions */
.promo-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.promo-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.promo-item:first-child {
  padding-top: 0;
}

.promo-badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c4a882;
  background: rgba(196, 168, 130, 0.12);
  border: 1px solid rgba(196, 168, 130, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.promo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #bbb;
  line-height: 1.55;
}

.promo-text strong {
  color: #f0ece4;
}

.promo-code {
  display: inline-block;
  margin-top: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #c4a882;
  background: rgba(196, 168, 130, 0.08);
  border: 1px dashed rgba(196, 168, 130, 0.35);
  border-radius: 4px;
  padding: 6px 14px;
}

.contact-submission-item {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-submission-item--unread {
  border-left: 2px solid rgba(196, 168, 130, 0.75);
  padding-left: 12px;
}

.contact-submission-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-submission-item:first-child {
  padding-top: 0;
}

.contact-submission-item__meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #a7a7a7;
  margin-bottom: 4px;
}

.contact-submission-item__meta strong {
  color: #f0ece4;
  font-weight: 500;
}

.contact-submission-item__message {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #bbbbbb;
  line-height: 1.6;
  margin: 10px 0;
  white-space: pre-wrap;
}

.contact-submission-item__reply {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #c4a882;
  background: rgba(196, 168, 130, 0.12);
  border: 1px solid rgba(196, 168, 130, 0.6);
  border-radius: 999px;
  padding: 5px 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-submission-item__reply:hover {
  background: rgba(196, 168, 130, 0.16);
  border-color: rgba(196, 168, 130, 0.72);
}

.contact-submission-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-submission-bulk {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-submission-bulk__select,
.contact-submission-item__select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #d0d0d0;
}

.contact-submission-bulk__select input[type="checkbox"],
.contact-submission-item__select input[type="checkbox"],
.user-thread-list__select input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1px solid rgba(196, 168, 130, 0.55);
  border-radius: 3px;
  background: #0c0c0c;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
}

.contact-submission-bulk__select input[type="checkbox"]::before,
.contact-submission-item__select input[type="checkbox"]::before,
.user-thread-list__select input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  transition: transform 0.12s ease-in-out;
  box-shadow: inset 1em 1em #c4a882;
  clip-path: polygon(14% 44%, 0 62%, 39% 100%, 100% 22%, 84% 7%, 38% 68%);
}

.contact-submission-bulk__select input[type="checkbox"]:checked,
.contact-submission-item__select input[type="checkbox"]:checked,
.user-thread-list__select input[type="checkbox"]:checked {
  background: #0c0c0c;
  border-color: #c4a882;
}

.contact-submission-bulk__select input[type="checkbox"]:checked::before,
.contact-submission-item__select input[type="checkbox"]:checked::before,
.user-thread-list__select input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.contact-submission-item__top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.contact-submission-item__btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  height: 29px;
  padding: 0 12px;
  background: transparent;
  color: #dedede;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  cursor: pointer;
}

.contact-submission-item__btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.user-message-thread__composer .contact-submission-item__btn,
.contact-submission-reply-panel .contact-submission-item__btn {
  height: 34px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  background: rgba(196, 168, 130, 0.2);
  border-color: rgba(196, 168, 130, 0.7);
  color: #f3e3cc;
}

.user-message-thread__composer .contact-submission-item__btn:hover,
.contact-submission-reply-panel .contact-submission-item__btn:hover {
  background: rgba(196, 168, 130, 0.3);
  border-color: rgba(196, 168, 130, 0.95);
}

.contact-submission-item__btn--danger {
  border-color: rgba(224, 91, 111, 0.6);
  color: #ffd3db;
}

.contact-submission-reply-panel {
  display: none;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-submission-reply-panel.is-open {
  display: block;
}

.contact-submission-reply-panel__label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #cfcfcf;
  margin-bottom: 6px;
}

.contact-submission-reply-panel__input {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #f0ece4;
  padding: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  box-sizing: border-box;
  margin-bottom: 8px;
  user-select: text;
  -webkit-user-select: text;
}

.contact-submission-reply-panel__input:focus {
  outline: none;
  border-color: #c4a882;
  box-shadow: 0 0 0 1px rgba(196, 168, 130, 0.5);
}

.contact-submission-reply-panel__history {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-submission-reply-item {
  margin-bottom: 8px;
}

.contact-submission-reply-item__meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #9f9f9f;
}

.contact-submission-reply-item__body {
  margin: 4px 0 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #d7d7d7;
  white-space: pre-wrap;
}

.user-message-thread {
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.user-message-thread-popout {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.user-message-thread-popout__card {
  width: min(840px, 100%);
  height: min(82vh, 760px);
  max-height: calc(100vh - 56px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.98);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  padding: 0;
}

.user-message-thread-popout__back {
  border: none;
  background: transparent;
  color: #e1c39e;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin: 0 0 8px;
  padding: 0;
  text-align: left;
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
}

.user-message-thread-popout__back:hover {
  color: #f1d6b3;
}

.user-thread-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.user-thread-list__bulk {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: -2px 0 10px;
}

.user-thread-list__row {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "select item";
  align-items: center;
  gap: 8px;
}

.user-thread-list__item {
  grid-area: item;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.user-thread-list__item:hover {
  border-color: rgba(196, 168, 130, 0.38);
  background: rgba(196, 168, 130, 0.07);
  transform: translateY(-1px);
}

.user-thread-list__item.is-active {
  border-color: rgba(196, 168, 130, 0.56);
  background: rgba(196, 168, 130, 0.12);
}

.user-thread-list__item.is-unread .user-thread-list__subject::after {
  content: '•';
  margin-left: 6px;
  color: #d8bc92;
}

.user-thread-list__item.is-unread {
  border-color: rgba(196, 168, 130, 0.62);
  background: rgba(196, 168, 130, 0.14);
}

.user-thread-list__item.is-unread .user-thread-list__subject {
  color: #f1ddbe;
}

.user-thread-list__item.is-unread .user-thread-list__preview {
  color: #e4cbab;
}

.user-thread-list__item.is-unread .user-thread-list__time {
  color: #ddbf94;
}

.user-thread-list__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.user-thread-list__subject {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  color: #f0d9b9;
  line-height: 1.35;
}

.user-thread-list__time {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #afafaf;
  white-space: nowrap;
}

.user-thread-list__preview {
  margin-top: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #cbcbcb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-thread-list__select {
  grid-area: select;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 62px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #c7c7c7;
  user-select: none;
}

.user-thread-list__select input {
  accent-color: auto;
}

.user-message-thread__status {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #b9b9b9;
  margin-bottom: 10px;
}

.user-message-thread__subject {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  line-height: 1.25;
  color: #f0d9b9;
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}

.user-message-thread__header {
  position: relative;
  padding: 14px 56px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 8, 0.98);
  text-align: center;
}

.user-message-thread__chat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  padding: 8px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(196, 168, 130, 0.85) rgba(255, 255, 255, 0.08);
}

.user-message-thread__chat::-webkit-scrollbar {
  width: 10px;
}

.user-message-thread__chat::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.user-message-thread__chat::-webkit-scrollbar-thumb {
  background: rgba(196, 168, 130, 0.85);
  border-radius: 999px;
}

.admin-message-thread__meta {
  margin: 4px 0 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #c5c5c5;
  text-align: center;
}

.admin-message-thread__actions {
  margin-top: 0;
}

.user-chat-row {
  display: flex;
  align-items: flex-start;
  margin: 0;
}

.user-chat-row--user {
  justify-content: flex-end;
}

.user-chat-row--admin {
  justify-content: flex-start;
}

.user-chat-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: min(84%, 520px);
}

.user-chat-stack--user {
  align-items: flex-end;
}

.user-chat-stack--admin {
  align-items: flex-start;
}

.user-chat-bubble {
  display: block;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  border-radius: 10px;
  padding: 6px 10px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.user-chat-bubble--user {
  background: rgba(196, 168, 130, 0.18);
  border-color: rgba(196, 168, 130, 0.35);
}

.user-chat-bubble--admin {
  background: rgba(255, 255, 255, 0.05);
}

.user-chat-bubble__meta {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: #a8a8a8;
  margin: 0 0 4px;
  padding: 0 2px;
  line-height: 1.3;
}

.user-chat-stack--user .user-chat-bubble__meta {
  text-align: right;
}

.user-chat-stack--admin .user-chat-bubble__meta {
  text-align: left;
}

.user-chat-bubble p {
  margin: 0;
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #efefef;
  line-height: 1.38;
  white-space: pre-wrap;
}

.user-message-thread__composer {
  margin-top: 0;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 8, 0.98);
}

.user-message-composer {
  margin-bottom: 12px;
}

.user-message-composer__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(196, 168, 130, 0.35);
  border-radius: 999px;
  background: rgba(196, 168, 130, 0.08);
  color: #e9d2b1;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  cursor: pointer;
}

.user-message-composer__icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
}

.user-message-composer__icon svg {
  width: 100%;
  height: 100%;
}

.contact-submission-item__subject {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #e0d1bc;
  margin-bottom: 6px;
}

.user-message-modal__card {
  width: min(460px, calc(100vw - 40px));
}

.user-message-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.user-message-modal__field label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #d5c7b4;
}

.user-message-modal__field input,
.user-message-modal__field textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.45);
  color: #f5f5f5;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 10px 12px;
}

.user-message-modal__field textarea {
  min-height: 120px;
  resize: vertical;
}

.user-message-modal__actions {
  margin-top: 4px;
}

.user-message-modal__cancel {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

.user-message-modal__send {
  background: #c4a882;
  color: #111111;
  border-color: #c4a882;
}

.user-message-modal__cancel:hover {
  background: #f4f4f4;
  border-color: #f4f4f4;
}

.user-message-modal__send:hover {
  background: #d4ba96;
  border-color: #d4ba96;
}

/* Favorites Grid */
.fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.fav-card {
  text-align: center;
}

.fav-card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
}

.fav-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fav-card__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.fav-card:hover .fav-card__remove {
  opacity: 1;
}

.fav-card__remove:hover {
  background: rgba(224, 91, 111, 0.8);
}

.fav-card__title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 400;
  color: #f0ece4;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.fav-card__cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fav-card__order {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #c4a882;
  border: 1px solid rgba(196, 168, 130, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.fav-card__order:hover {
  background: rgba(196, 168, 130, 0.12);
  border-color: rgba(196, 168, 130, 0.5);
}

/* Sign Out */
.account-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-bottom: 24px;
}

.account-delete--footer {
  margin-top: 26px;
  font-size: 11px;
  padding: 5px 10px;
}

.account-delete.is-hidden {
  display: none;
}

.account-delete {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffd8de;
  background: rgba(224, 91, 111, 0.2);
  border: 1px solid rgba(224, 91, 111, 0.7);
  border-radius: 5px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.account-delete:hover {
  background: rgba(224, 91, 111, 0.3);
  border-color: rgba(224, 91, 111, 0.95);
  color: #ffe9ec;
}

.spell-suggest-menu {
  position: fixed;
  z-index: 5000;
  min-width: 210px;
  border: 1px solid rgba(196, 168, 130, 0.5);
  border-radius: 10px;
  background: rgba(12, 12, 12, 0.98);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  padding: 6px;
}

.spell-suggest-menu__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: #bda079;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 6px 6px;
}

.spell-suggest-menu__item {
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #f0ece4;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 7px 8px;
  cursor: pointer;
}

.spell-suggest-menu__item:hover {
  background: rgba(196, 168, 130, 0.16);
}

.account-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.account-confirm-modal.is-open {
  display: flex;
}

#contactDeleteConfirmModal {
  position: absolute;
  inset: 0;
  z-index: 40;
}

#contactDeleteConfirmModal .account-confirm-modal__card {
  margin-top: 36px;
}

.account-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.account-confirm-modal__card {
  position: relative;
  width: min(420px, 100%);
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 22px 20px 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.account-confirm-modal__title {
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: #f0ece4;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-bottom: 16px;
}

.account-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.account-confirm-modal__cancel,
.account-confirm-modal__delete {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 6px;
  padding: 9px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.account-confirm-modal__cancel {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #ffffff;
}

.account-confirm-modal__delete {
  background: #d44343;
  color: #ffffff;
  border-color: #d44343;
}

.account-confirm-modal__cancel:hover,
.account-confirm-modal__delete:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

#userMessageModal .account-confirm-modal__actions {
  margin-top: 6px;
}

#userMessageModal .account-confirm-modal__cancel,
#userMessageModal .account-confirm-modal__delete {
  border-radius: 999px;
  width: 84px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.24);
  text-align: center;
}

#userMessageModal .account-confirm-modal__cancel {
  background: linear-gradient(135deg, #b99668 0%, #d3ba96 100%);
  color: #101010;
  border-color: #cfb58f;
}

#userMessageModal .account-confirm-modal__delete {
  background: #0f0f0f;
  color: #f5f5f5;
  border-color: rgba(255, 255, 255, 0.18);
}

#userMessageModal .account-confirm-modal__cancel:hover,
#userMessageModal .account-confirm-modal__delete:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

#userMessageModal .user-message-modal__field input,
#userMessageModal .user-message-modal__field textarea {
  border-color: rgba(196, 168, 130, 0.45);
  box-shadow: inset 0 0 0 1px rgba(196, 168, 130, 0.08);
  user-select: text;
  -webkit-user-select: text;
}

#userMessageModal .user-message-modal__field input:focus,
#userMessageModal .user-message-modal__field textarea:focus {
  outline: none;
  border-color: #c4a882;
  box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.22);
}

.account-logout {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #888;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px 32px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.account-logout:hover {
  color: #e07c5a;
  border-color: rgba(224, 124, 90, 0.4);
}

/* Responsive */
@media (max-width: 700px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-tile[data-section="promos"] {
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
  }

  .account-name {
    font-size: 26px;
  }

  .account-detail__heading {
    font-size: 20px;
  }

  .edit-row {
    flex-wrap: wrap;
  }

  .edit-field--sm,
  .edit-field--md {
    flex: 1;
    width: auto;
  }

  .account-delete--footer {
    margin-top: 22px;
  }
}
