:root {
  --ink: #131A18;
  --ink-2: #4C5855;
  --ink-3: #7B8683;
  --line: #E5E9E6;
  --line-strong: #CDD5D1;
  --bg-page: #F7F8F7;
  --bg-soft: #F3F6F4;
  --brand: #0F7B62;
  --brand-dark: #0B6350;
  --brand-soft: #E6F3EE;
  --accent: #E4A33C;
  --danger: #B42318;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 18px; height: 18px; flex: none; }
.icon--16 { width: 16px; height: 16px; }
.icon--28 { width: 28px; height: 28px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding: 28px 20px 56px;
}

.wrap--narrow { max-width: 820px; }

.view { display: none; }
.view.is-active { display: block; animation: fade-in 0.2s ease both; }
.view:focus, .view h1:focus, .view h2:focus { outline: none; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.me {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.me:hover { background: var(--bg-soft); }
.me__name { font-size: 14px; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }

.nav__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav__item:hover { background: var(--bg-soft); color: var(--ink); }
.nav__item[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.nav__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #3B2A06;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.topbar__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
  text-align: right;
}

.topbar__brand-name { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.topbar__brand-tagline { font-size: 11.5px; font-weight: 500; color: var(--ink-3); }

/* ---------- Avatars ---------- */

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background-color: var(--brand-soft);
  background-size: cover;
  background-position: center;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}

.avatar--sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar--xl { width: 84px; height: 84px; font-size: 26px; }
.avatar.has-photo { color: transparent; }

/* ---------- Page heads ---------- */

.page-head { margin-bottom: 24px; }
.page-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-head h1 { margin: 0; font-size: 26px; font-weight: 600; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}

.lede {
  margin: 6px 0 0;
  max-width: 60ch;
  font-size: 14.5px;
  color: var(--ink-3);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 44px 0 18px;
  flex-wrap: wrap;
}

.section-head h2 { margin: 0; font-size: 20px; font-weight: 600; }

.link-arrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

.hint { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.label-note { font-weight: 400; color: var(--ink-3); }
.count { font-size: 14px; font-weight: 500; color: var(--ink-3); }

/* ---------- Grids ---------- */

.grid { display: grid; gap: 16px; }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid--videos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- Cards ---------- */

.card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 18px rgba(19, 26, 24, 0.08);
  transform: translateY(-2px);
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.thumb svg { width: 54px; height: 54px; color: rgba(19, 26, 24, 0.5); }

.tint-mint { background: #E6F3EE; }
.tint-sand { background: #F6EFE2; }
.tint-peach { background: #FBEAE2; }
.tint-sky { background: #E6EFF7; }
.tint-stone { background: #EFEFEC; }
.tint-blush { background: #F9E9EE; }

.thumb--photo { background: #FFFFFF; padding: 12px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
}

.card__brand { font-size: 12px; color: var(--ink-3); }

.card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.card__name a { color: inherit; text-decoration: none; }
.card__name a:hover { text-decoration: underline; text-underline-offset: 2px; }

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-2);
  font-weight: 500;
}

.rating svg { width: 13px; height: 13px; color: var(--accent); }

.card__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.samples { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Video cards ---------- */

.video-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.video-thumb__play {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.93);
  color: var(--ink);
}

.video-thumb__play .icon { width: 22px; height: 22px; }

.video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(19, 26, 24, 0.78);
  color: #FFFFFF;
  font-size: 11.5px;
}

.video-card__body { display: flex; gap: 10px; padding: 12px 14px 14px; }

.video-card__title {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}

.video-card__sub { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.chip {
  appearance: none;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.chips--sm { margin-bottom: 0; gap: 6px; }
.chips--sm .chip { padding: 5px 11px; font-size: 12.5px; }

/* ---------- Form controls ---------- */

.input, .textarea, .select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input { height: 40px; }
.textarea { resize: vertical; line-height: 1.6; }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 123, 98, 0.14);
}

.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input[readonly] { background: var(--bg-soft); color: var(--ink-3); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: #FFFFFF; }
.btn--primary:hover { background: var(--brand-dark); }

.btn--ghost {
  background: #FFFFFF;
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 500;
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--ink-3); }

.btn--link {
  height: auto;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn--link:hover { color: var(--ink); }

.btn--sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 6px; }

/* ---------- Product detail ---------- */

.product-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 36px;
}

.product-media { display: flex; flex-direction: column; }

.media-box {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.media-box svg { width: 130px; height: 130px; color: rgba(19, 26, 24, 0.48); }
.media-box .badge { top: 14px; left: 14px; }

.media-box--photo {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 18px;
}

.media-box img { width: 100%; height: 100%; object-fit: contain; }

.price { font-weight: 600; color: var(--ink); }

.btn--block { width: 100%; margin-top: 12px; }
.hint--center { margin-top: 8px; text-align: center; }

.product-name {
  margin: 6px 0 10px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}

.spec-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.spec-list dt { color: var(--ink-3); }
.spec-list dd { margin: 0; color: var(--ink); font-weight: 500; }

.apply-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.panelbox--spaced { margin-top: 28px; }

.req-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------- Products layout ---------- */

.products-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
}

.cat-rail__title {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.cat-rail__list { display: flex; flex-direction: column; gap: 2px; }

.cat {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cat:hover { background: var(--bg-soft); color: var(--ink); }
.cat[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cat__count { font-size: 12px; color: var(--ink-3); }
.cat[aria-pressed="true"] .cat__count { color: var(--brand); }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.toolbar__right { display: flex; align-items: center; gap: 10px; }
.toolbar .select { width: auto; height: 38px; padding-block: 0; }

.result-count { margin: 0; font-size: 13.5px; color: var(--ink-3); }

.empty {
  margin: 0;
  padding: 40px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- Detail views ---------- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px 10px 6px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.back:hover { background: var(--bg-soft); color: var(--ink); }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: #1B2220;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.player__play {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.player__duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  color: #FFFFFF;
  font-size: 12px;
}

.detail-title { margin: 0 0 14px; font-size: 22px; font-weight: 600; line-height: 1.35; }

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.creator { display: flex; align-items: center; gap: 10px; }
.creator__name { margin: 0; font-size: 14.5px; font-weight: 600; }
.creator__sub { margin: 0; font-size: 12.5px; color: var(--ink-3); }

.detail-desc {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 12.5px;
}

/* ---------- Comment / reply panels ---------- */

.panelbox {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.panelbox__title { margin: 0 0 16px; font-size: 17px; font-weight: 600; }

.comment-form { display: flex; gap: 12px; margin-bottom: 20px; }
.comment-form__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.comment-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.comment:first-child { border-top: 0; padding-top: 0; }
.comment__body { flex: 1; }

.comment__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.comment__author { font-size: 13.5px; font-weight: 600; }
.comment__time { font-size: 12px; color: var(--ink-3); }

.comment__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------- Community ---------- */

.composer {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.composer__body { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.composer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post {
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.post:hover { border-color: var(--line-strong); }

.post__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post__author { font-size: 13.5px; font-weight: 600; }
.post__time { font-size: 12px; color: var(--ink-3); }

.post__tag {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
}

.post__title { margin: 0 0 6px; font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.post__title a { color: inherit; text-decoration: none; }
.post__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.post__body {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.post__foot { display: flex; align-items: center; gap: 8px; }

.action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.action:hover { background: var(--bg-soft); color: var(--ink); }
.action.is-on { color: var(--brand); }
.action svg { width: 15px; height: 15px; }

.thread {
  padding: 22px;
  margin-bottom: 20px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Notifications ---------- */

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.notice {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.notice:first-child { border-top: 0; }
.notice.is-unread { background: #F6FBF9; }

.notice__icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
}

.notice__body { flex: 1; min-width: 0; }

.notice__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.notice__sender { font-size: 13.5px; font-weight: 600; }

.verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
}

.notice__time { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.notice__title { margin: 0 0 2px; font-size: 14.5px; font-weight: 600; }
.notice__text { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }

.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }

/* ---------- Profile ---------- */

.profile-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.profile-top__actions { display: flex; flex-direction: column; gap: 6px; }
.profile-top__buttons { display: flex; align-items: center; gap: 10px; }
.profile-top label.btn { cursor: pointer; }

.completeness { margin-bottom: 26px; }

.completeness__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.completeness__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.completeness__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
  transition: width 0.25s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; }
.field label, .field legend { padding: 0; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field--wide { grid-column: 1 / -1; }

.error { margin: 0; font-size: 12.5px; color: var(--danger); }
.field.is-invalid .input { border-color: var(--danger); }

.form-grid__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.saved { font-size: 13px; font-weight: 500; color: var(--brand); }

/* ---------- Site footer ---------- */

.sitefoot { margin-top: 56px; background: var(--ink); color: rgba(255, 255, 255, 0.72); }

.sitefoot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 32px;
}

.sitefoot__brand { display: block; margin-bottom: 10px; font-size: 17px; font-weight: 600; color: #FFFFFF; }

.sitefoot__tagline {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
}

.sitefoot p { margin: 0; font-size: 13.5px; line-height: 1.75; }
.sitefoot h3 { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: #FFFFFF; }

.sitefoot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
}

.sitefoot a { color: inherit; text-decoration: none; }
.sitefoot a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }

.sitefoot__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  flex-wrap: wrap;
}

.sitefoot__links { display: flex; gap: 16px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 50;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13.5px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 26, 24, 0.52);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 26px 24px 22px;
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(19, 26, 24, 0.24);
  animation: modal-in 0.18s ease both;
}

.modal__panel--narrow { max-width: 388px; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.modal__close:hover { background: var(--bg-soft); color: var(--ink); }

.modal__title {
  margin: 0 0 6px;
  padding-right: 30px;
  font-size: 19px;
  font-weight: 600;
}

.modal__sub {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.modal__sub b { font-weight: 600; color: var(--ink-2); }

.modal__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.modal .field { margin-bottom: 14px; }
.modal .btn--primary { width: 100%; margin-top: 6px; }

.ref {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-3);
}

.ref b { font-weight: 600; color: var(--ink); }

.modal__foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

.link-inline {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.link-inline:hover { color: var(--brand-dark); }

.qr {
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.qr img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 6px;
}

.qr--missing img { display: none; }

.qr--missing::after {
  content: "QR code not added yet";
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--ink-3);
  font-size: 12.5px;
  text-align: center;
}

.support-form { margin-top: 20px; text-align: left; }
.support-form .field { margin-bottom: 12px; }
.support-form .btn--primary { width: 100%; margin-top: 4px; }

/* ---------- Help widget ---------- */

.help-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(19, 26, 24, 0.22);
  transition: background-color 0.15s ease;
}

.help-fab:hover { background: var(--brand-dark); }
.help-fab[aria-expanded="true"] { background: var(--ink); }

.help-panel {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 41;
  width: min(340px, calc(100vw - 32px));
  max-height: min(72vh, 520px);
  overflow-y: auto;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(19, 26, 24, 0.2);
  animation: modal-in 0.16s ease both;
}

.help-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.help-panel__title { margin: 0; font-size: 17px; font-weight: 600; }
.help-panel__close { position: static; }

.help-list { list-style: none; margin: 0; padding: 0; }
.help-item { border-top: 1px solid var(--line); }
.help-item:first-child { border-top: 0; }

.help-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.help-q:hover { color: var(--brand); }

.help-q .icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ink-3);
  transition: transform 0.15s ease;
}

.help-q[aria-expanded="true"] .icon { transform: rotate(180deg); }

.help-a {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.help-panel__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */

@media (min-width: 721px) and (max-width: 1023px) {
  .topbar__brand-tagline { display: none; }
}

@media (max-width: 900px) {
  .products-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .cat-rail__list {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .cat {
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    white-space: nowrap;
  }

  .cat__count { display: none; }

  .form-grid { grid-template-columns: 1fr; }
  .sitefoot__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 720px) {
  .topbar__inner {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-inline: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .topbar__brand { margin-left: auto; }

  .wrap { padding: 20px 16px 44px; }
  .page-head h1 { font-size: 22px; }
  .detail-title { font-size: 19px; }

  .grid--products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .grid--videos { grid-template-columns: 1fr; }

  .panelbox { padding: 16px; }
  .profile-top { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   Liquid Glass theme — iOS inspired
   Overrides the visual layer only. Layout rules stay as they are.
   ========================================================= */

:root {
  --ink: #101614;
  --ink-2: #4A5652;
  --ink-3: #7C8783;
  --line: rgba(16, 24, 20, 0.08);
  --line-strong: rgba(16, 24, 20, 0.14);
  --bg-page: #F2F4F3;
  --bg-soft: rgba(255, 255, 255, 0.5);
  --brand: #12836A;
  --brand-dark: #0C6A55;
  --brand-soft: rgba(18, 131, 106, 0.12);
  --accent: #E4A33C;
  --danger: #C0392B;
  --radius: 14px;
  --radius-lg: 22px;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-line: rgba(255, 255, 255, 0.7);
  --glass-blur: saturate(180%) blur(22px);
  --shadow-1: 0 1px 2px rgba(16, 24, 20, 0.06);
  --shadow-2: 0 10px 30px rgba(16, 24, 20, 0.1);
  --shadow-3: 0 22px 60px rgba(16, 24, 20, 0.18);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: linear-gradient(165deg, #EDF3F0 0%, #F5F3EE 40%, #ECF1F6 74%, #F3F4F2 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif;
}

/* ---------- Glass surfaces ---------- */

.topbar,
.card,
.panelbox,
.post,
.thread,
.notice-list,
.composer,
.help-panel,
.modal__panel,
.media-box--photo,
.thumb--photo {
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* ---------- Navigation bar ---------- */

.topbar {
  background: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(16, 24, 20, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.topbar__inner { height: 64px; }

.me {
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s var(--spring), background-color 0.2s ease;
}

.me:hover { background: rgba(255, 255, 255, 0.88); }
.me:active { transform: scale(0.97); }

.nav {
  padding: 4px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-1);
}

.nav__item {
  padding: 8px 15px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--spring), box-shadow 0.2s ease;
}

.nav__item:hover { background: rgba(255, 255, 255, 0.72); }
.nav__item:active { transform: scale(0.96); }

.nav__item[aria-current="page"] {
  background: #FFFFFF;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(16, 24, 20, 0.12);
}

.nav__badge {
  background: linear-gradient(180deg, #FFA94D, #E4A33C);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(228, 163, 60, 0.45);
}

.topbar__brand-name { color: var(--ink); }
.topbar__brand-tagline { color: var(--ink-3); }

/* ---------- Avatars ---------- */

.avatar {
  background-color: rgba(18, 131, 106, 0.14);
  color: var(--brand-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(16, 24, 20, 0.08);
}

/* ---------- Buttons ---------- */

.btn {
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.2s var(--spring), background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--glass-strong); }
.btn:active { transform: scale(0.96); }

.btn--primary {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(30, 150, 122, 0.98), rgba(15, 120, 96, 0.98));
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(15, 123, 98, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--primary:hover {
  background: linear-gradient(180deg, rgba(34, 164, 133, 0.98), rgba(15, 123, 98, 0.98));
}

.btn--link {
  border: 0;
  background: none;
  box-shadow: none;
}

/* ---------- Inputs ---------- */

.input,
.textarea,
.select {
  border: 1px solid rgba(16, 24, 20, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(16, 24, 20, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
  background: #FFFFFF;
  border-color: rgba(18, 131, 106, 0.55);
  box-shadow: 0 0 0 4px rgba(18, 131, 106, 0.16);
}

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.28s var(--spring), box-shadow 0.28s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.thumb--photo {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(255, 255, 255, 0.85);
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-1);
}

/* ---------- Chips and categories ---------- */

.chip,
.cat {
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.2s var(--spring), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover,
.cat:hover { background: var(--glass-strong); }

.chip:active,
.cat:active { transform: scale(0.96); }

.chip[aria-pressed="true"],
.cat[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(30, 150, 122, 0.98), rgba(15, 120, 96, 0.98));
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(15, 123, 98, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cat[aria-pressed="true"] .cat__count { color: rgba(255, 255, 255, 0.8); }

/* ---------- Product detail ---------- */

.media-box { border-radius: var(--radius-lg); }

.media-box--photo {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.player { border-radius: var(--radius-lg); }

.tag {
  border: 1px solid rgba(16, 24, 20, 0.06);
  background: rgba(255, 255, 255, 0.7);
}

/* ---------- Panels and lists ---------- */

.panelbox,
.thread,
.notice-list,
.composer,
.post {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.notice:first-child { border-top: 0; }
.notice.is-unread { background: rgba(18, 131, 106, 0.07); }

.notice__icon {
  border-radius: 12px;
  background: rgba(18, 131, 106, 0.12);
}

/* ---------- Modals ---------- */

.modal__backdrop {
  background: rgba(12, 18, 16, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal__panel {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: lg-sheet 0.36s var(--spring) both;
}

.modal__close {
  border-radius: 999px;
  background: rgba(16, 24, 20, 0.06);
}

.modal__close:hover { background: rgba(16, 24, 20, 0.12); }

/* ---------- Help widget ---------- */

.help-fab {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(30, 150, 122, 0.98), rgba(15, 120, 96, 0.98));
  box-shadow: 0 10px 30px rgba(15, 123, 98, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.24s var(--spring), background-color 0.2s ease;
}

.help-fab:hover { transform: scale(1.05); }
.help-fab:active { transform: scale(0.94); }
.help-fab[aria-expanded="true"] {
  background: linear-gradient(180deg, #2A3431, #101614);
  box-shadow: 0 10px 30px rgba(16, 24, 20, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.help-panel {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform-origin: bottom right;
  animation: lg-pop 0.3s var(--spring) both;
}

/* ---------- Footer ---------- */

.sitefoot {
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #16201D, #0E1513);
}

/* ---------- Toast ---------- */

.toast {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(16, 22, 20, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--shadow-2);
  transition: opacity 0.28s ease, transform 0.34s var(--spring);
}

/* ---------- Motion ---------- */

.view.is-active { animation: lg-view 0.34s var(--spring) both; }

@keyframes lg-view {
  from { opacity: 0; transform: translateY(10px) scale(0.995); }
  to { opacity: 1; transform: none; }
}

@keyframes lg-sheet {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes lg-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- Scroll-aware navigation bar ---------- */

.topbar {
  border-bottom-color: transparent;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.topbar.is-scrolled {
  border-bottom-color: rgba(16, 24, 20, 0.07);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(16, 24, 20, 0.06);
}

/* ---------- Specular sheen on primary buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.38) 45%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}

.btn--primary:hover::after {
  opacity: 1;
  animation: lg-sheen 1.1s ease;
}

@keyframes lg-sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

/* =========================================================
   Midnight Purple — the app palette
   Same system as the auth page: deep indigo-violet, champagne gold accent.
   ========================================================= */

:root {
  --ink: #F3F0FB;
  --ink-2: #CCC5E3;
  --ink-3: #968EB6;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --bg-page: #0E0A1A;
  --bg-soft: rgba(255, 255, 255, 0.06);
  --brand: #8A6BFF;
  --brand-dark: #6E4EE8;
  --brand-soft: rgba(138, 107, 255, 0.18);
  --accent: #E8C46A;
  --danger: #FF7A7A;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.13);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-3: 0 28px 70px rgba(0, 0, 0, 0.6);
}

body {
  background: linear-gradient(165deg, #0E0A1A 0%, #1B1130 42%, #0B0817 100%);
  background-attachment: fixed;
  color: var(--ink);
}

/* ---------- Navigation bar ---------- */

.topbar {
  border-bottom-color: transparent;
  background: rgba(20, 14, 36, 0.6);
  box-shadow: none;
}

.topbar.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(20, 14, 36, 0.86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.me {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.me:hover { background: rgba(255, 255, 255, 0.12); }

.nav {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.nav__item { color: var(--ink-2); }
.nav__item:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }

.nav__item[aria-current="page"] {
  background: rgba(255, 255, 255, 0.13);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nav__badge {
  background: linear-gradient(180deg, #F2D585, #E8C46A);
  color: #241A3C;
  box-shadow: 0 2px 8px rgba(232, 196, 106, 0.4);
}

.topbar__brand-name { color: var(--ink); }
.topbar__brand-tagline { color: var(--ink-3); }

/* ---------- Avatars ---------- */

.avatar {
  background-color: rgba(138, 107, 255, 0.18);
  color: #CFC4FF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ---------- Buttons ---------- */

.btn {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn:hover { background: rgba(255, 255, 255, 0.12); }

.btn--primary {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #8A6BFF, #5F3FD9);
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(95, 63, 217, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover { background: linear-gradient(180deg, #9779FF, #6A48E8); }

.btn--link { color: var(--ink-3); }
.btn--link:hover { color: var(--ink); }

/* ---------- Inputs ---------- */

.input,
.textarea,
.select {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

.input::placeholder,
.textarea::placeholder { color: #6F6890; }

.input:focus,
.textarea:focus,
.select:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(138, 107, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(138, 107, 255, 0.22);
}

.input[readonly] { background: rgba(255, 255, 255, 0.03); color: var(--ink-3); }

/* ---------- Cards ---------- */

.card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card:hover {
  border-color: rgba(138, 107, 255, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Product photos stay on white so the cutouts read cleanly. */
.thumb--photo { background: #FFFFFF; }
.media-box--photo {
  border-color: rgba(255, 255, 255, 0.12);
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.badge {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(24, 18, 40, 0.86);
  color: var(--ink);
}

.card__brand { color: var(--ink-3); }
.card__meta { color: var(--ink-3); }
.price { color: var(--ink); }

/* ---------- Chips and categories ---------- */

.chip,
.cat {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.chip:hover,
.cat:hover { background: rgba(255, 255, 255, 0.12); color: var(--ink); }

.chip[aria-pressed="true"],
.cat[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, #8A6BFF, #5F3FD9);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(95, 63, 217, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cat[aria-pressed="true"] .cat__count { color: rgba(255, 255, 255, 0.75); }

/* ---------- Detail ---------- */

.player {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #171029;
}

.tag {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-2);
}

.spec-list { border-color: rgba(255, 255, 255, 0.08); }
.spec-list dt { color: var(--ink-3); }
.spec-list dd { color: var(--ink); }

/* ---------- Surfaces ---------- */

.panelbox,
.thread,
.notice-list,
.composer,
.post {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.post:hover { border-color: rgba(138, 107, 255, 0.4); }

.notice.is-unread { background: rgba(138, 107, 255, 0.1); }

.notice__icon {
  background: rgba(138, 107, 255, 0.16);
  color: #C9BCFF;
}

.verified {
  background: rgba(138, 107, 255, 0.18);
  color: #CFC4FF;
}

.post__tag {
  background: rgba(138, 107, 255, 0.18);
  color: #CFC4FF;
}

.action { color: var(--ink-3); }
.action:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.action.is-on { color: var(--brand); }

.comment__author { color: var(--ink); }
.comment__text { color: var(--ink-2); }

/* ---------- Profile ---------- */

.check__box {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.check input:checked + .check__box {
  border-color: rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, #8A6BFF, #5F3FD9);
  box-shadow: 0 4px 12px rgba(95, 63, 217, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.completeness__bar { background: rgba(255, 255, 255, 0.1); }
.completeness__bar span { background: linear-gradient(90deg, #8A6BFF, #B79BFF); }
.saved { color: var(--brand); }

/* ---------- Modals ---------- */

.modal__backdrop { background: rgba(8, 5, 16, 0.62); }

.modal__panel {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(28, 21, 46, 0.86);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.modal__close {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-3);
}

.modal__close:hover { background: rgba(255, 255, 255, 0.14); color: var(--ink); }

.modal__sub { color: var(--ink-3); }
.modal__sub b { color: var(--ink); }
.ref { color: var(--ink-3); }
.ref b { color: var(--ink); }

.qr {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.link-inline { color: var(--brand); }
.link-inline:hover { color: #B79BFF; }

.hint { color: var(--ink-3); }
.label-note { color: var(--ink-3); }

/* ---------- Help widget ---------- */

.help-fab {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #8A6BFF, #5F3FD9);
  box-shadow: 0 10px 30px rgba(95, 63, 217, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.help-fab[aria-expanded="true"] {
  background: linear-gradient(180deg, #2A2440, #14101F);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.help-panel {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(28, 21, 46, 0.86);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.help-panel__title { color: var(--ink); }
.help-item { border-top-color: rgba(255, 255, 255, 0.08); }
.help-q { color: var(--ink); }
.help-a { color: var(--ink-3); }
.help-panel__foot { border-top-color: rgba(255, 255, 255, 0.08); }
.help-panel__close { color: var(--ink-3); }
.help-panel__close:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }

/* ---------- Footer ---------- */

.sitefoot {
  background: linear-gradient(180deg, #17102B, #0B0817);
  color: rgba(255, 255, 255, 0.68);
}

.sitefoot a:hover { color: #FFFFFF; }

/* ---------- Toast ---------- */

.toast {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(24, 18, 40, 0.9);
  color: var(--ink);
}

/* ---------- Prerendered product pages ---------- */

.crumbs {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-3);
}

.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.crumbs span { opacity: 0.5; }

.static-note { margin-top: 24px; text-align: center; }
