﻿:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f5;
  color: #17201a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

body.auth-pending .shell {
  visibility: hidden;
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(760px, 100%);
  border: 1px solid #d9e2dc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(24, 40, 30, 0.12);
  padding: clamp(20px, 4vw, 36px);
}

.brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #2d7d46;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.language-icon {
  position: absolute;
  left: 13px;
  z-index: 1;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ui-lang {
  width: auto;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 34px 0 42px;
  font-size: 0.86rem;
  font-weight: 800;
}

.status {
  flex: 0 0 auto;
  border: 1px solid #d9e2dc;
  border-radius: 999px;
  padding: 7px 11px;
  color: #617069;
  font-size: 0.82rem;
  font-weight: 700;
}

.status.connected {
  border-color: #a6ddb5;
  background: #edf9f0;
  color: #1f7a37;
}

.form {
  display: grid;
  gap: 16px;
}

.verification-field {
  display: none;
  gap: 7px;
}

.verification-field.is-active {
  display: grid;
}

.verification-field > span {
  color: #4b5a51;
  font-size: 0.92rem;
  font-weight: 700;
}

.cf-turnstile {
  min-height: 0;
}

.verification-field.is-active .cf-turnstile {
  min-height: 65px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: #4b5a51;
  font-size: 0.92rem;
  font-weight: 700;
}

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

.field-info-button {
  width: 25px;
  min-height: 25px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid #b9cec0;
  border-radius: 50%;
  background: #f5fbf7;
  color: #176f38;
  cursor: pointer;
}

.field-info-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.field-info-button:hover,
.field-info-button:focus-visible {
  border-color: #23844a;
  background: #e9f7ed;
}

.friend-id-help-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid #cbd9cf;
  border-radius: 8px;
  background: #fff;
  color: #17201a;
  box-shadow: 0 24px 70px rgba(12, 39, 24, 0.28);
}

.friend-id-help-dialog::backdrop {
  background: rgba(7, 22, 13, 0.7);
}

.friend-id-help-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 34px;
  padding: clamp(28px, 5vw, 50px);
  overflow: auto;
}

.friend-id-help-close {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #cbd9cf;
  border-radius: 50%;
  background: #fff;
  color: #173522;
  font-weight: 900;
  cursor: pointer;
}

.friend-id-help-copy h2 {
  margin: 8px 0 22px;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.friend-id-help-copy ol {
  margin: 0;
  padding-left: 22px;
  color: #4f5f55;
  line-height: 1.7;
}

.friend-id-help-copy li + li { margin-top: 10px; }

.friend-id-help-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-left: 3px solid #23844a;
  background: #eff8f2;
  color: #31513d;
  line-height: 1.55;
}

.friend-id-help-figure { margin: 0; }

.friend-id-help-figure img {
  display: block;
  width: 100%;
  max-height: min(68dvh, 620px);
  object-fit: contain;
  border: 1px solid #d8e2db;
  background: #eef5f0;
}

.friend-id-help-figure figcaption {
  margin-top: 10px;
  color: #66736b;
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .friend-id-help-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 20px 24px;
  }

  .friend-id-help-figure img { max-height: 56dvh; }
}

input,
select,
button {
  min-height: 46px;
  border-radius: 8px;
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid #cfdad3;
  background: #fbfdfc;
  color: #17201a;
  padding: 0 13px;
  outline: none;
}

input:focus,
select:focus {
  border-color: #2d9a4f;
  box-shadow: 0 0 0 3px rgba(45, 154, 79, 0.14);
}

button {
  border: 0;
  background: #247a3d;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  transition:
    background 0.16s ease,
    transform 0.16s ease;
}

button:hover {
  background: #1f6d36;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.results {
  display: block;
  max-height: 360px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #d9e2dc;
  border-radius: 8px;
}

.page-home-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: #247a3d;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.page-home-link:hover {
  color: #1d6633;
}

.results:empty {
  display: none;
}

.clearable-input {
  position: relative;
  display: grid;
}

.clearable-input input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
}

.clearable-input input::-ms-clear,
.clearable-input input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.clearable-input input::-webkit-search-cancel-button,
.clearable-input input::-webkit-search-decoration,
.clearable-input input::-webkit-search-results-button,
.clearable-input input::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.field-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #cfdad3;
  border-radius: 999px;
  background: #ffffff;
  color: #245b36;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 900;
}

.field-clear:hover {
  background: #edf9f0;
}

.field-clear[hidden] {
  display: none;
}

.card-option {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid #edf1ee;
  border-radius: 0;
  background: #ffffff;
  color: #17201a;
  padding: 10px 14px;
  text-align: left;
}

.card-option:last-child {
  border-bottom: 0;
}

.card-option:hover,
.card-option.selected {
  background: #edf9f0;
}

.popular-cards {
  min-width: 0;
  border: 1px solid #d4e2d8;
  border-radius: 8px;
  background: #f8fbf9;
}

.popular-cards[hidden] {
  display: none;
}

.popular-cards-summary {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 44px 12px 14px;
  color: #173521;
  cursor: pointer;
  list-style: none;
}

.popular-cards-summary::-webkit-details-marker {
  display: none;
}

.popular-cards-summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #31513b;
  border-bottom: 2px solid #31513b;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease;
}

.popular-cards[open] .popular-cards-summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.popular-cards-summary > span {
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.3;
}

.popular-cards-summary > small {
  color: #66746d;
  font-size: 0.78rem;
  line-height: 1.3;
}

.popular-card-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(104px, 116px);
  align-items: stretch;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid #e1e9e3;
  padding: 12px 12px 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.popular-card-option {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(2.5em, auto);
  align-content: start;
  gap: 6px;
  min-width: 0;
  border: 1px solid #d4e2d8;
  border-radius: 8px;
  background: #ffffff;
  color: #17201a;
  padding: 8px;
  text-align: left;
  scroll-snap-align: start;
}

.popular-card-option:hover,
.popular-card-option:focus-visible,
.popular-card-option.selected {
  border-color: #2b8a4a;
  background: #f0faf3;
}

.popular-card-option.selected {
  box-shadow: inset 0 0 0 1px #2b8a4a;
}

.popular-card-rank {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  border-radius: 999px;
  background: rgba(15, 50, 29, 0.92);
  color: #ffffff;
  padding: 3px 6px;
  font-size: 0.68rem;
  font-weight: 900;
}

.popular-card-image {
  width: 100%;
  aspect-ratio: 367 / 512;
  border-radius: 6px;
  background: #eef5f0;
  object-fit: cover;
}

.popular-card-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-thumb {
  width: 44px;
  aspect-ratio: 367 / 512;
  border: 1px solid #d9e2dc;
  border-radius: 6px;
  background: #f0f5f2;
  object-fit: cover;
}

.card-name {
  line-height: 1.25;
  font-weight: 800;
}

.card-meta {
  margin-top: 3px;
  color: #66746d;
  font-size: 0.86rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.card-rarity {
  border-radius: 999px;
  background: #eaf1ed;
  color: #31513b;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.selected-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #bfdfc8;
  border-radius: 8px;
  background: #f4fbf6;
  padding: 12px;
}

.selected-card[hidden] {
  display: none;
}

.selected-card img {
  width: 72px;
  aspect-ratio: 367 / 512;
  border: 1px solid #cfe2d5;
  border-radius: 7px;
  background: #ffffff;
  object-fit: cover;
}

.selected-title {
  font-size: 1rem;
  font-weight: 900;
}

.selected-meta {
  margin-top: 4px;
  color: #607067;
  font-size: 0.9rem;
  line-height: 1.35;
}


.clear-card {
  align-self: start;
  display: grid;
  width: 32px;
  min-height: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #cfded5;
  border-radius: 999px;
  background: #ffffff;
  color: #31513b;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.clear-card:hover {
  background: #edf9f0;
}
.message {
  margin-top: 16px;
  min-height: 22px;
  color: #4d5c53;
  font-weight: 700;
}

.message.error {
  color: #b42318;
}

.message.success {
  color: #167337;
}

@media (max-width: 620px) {
  .shell {
    align-items: start;
    padding: 12px;
  }

  .panel {
    padding: 20px;
  }

  .brand,
  .row,
  .search-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.ui-lang {
  width: auto;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 34px 0 42px;
  font-size: 0.86rem;
  font-weight: 800;
}

.status {
    width: fit-content;
  }

  .card-option {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .card-thumb {
    width: 38px;
  }

  .selected-card {
    grid-template-columns: 58px 1fr auto;
  }

  .selected-card img {
    width: 58px;
  }
}




.auth-panel,
.history-panel {
  border-top: 1px solid #edf1ee;
  margin-top: 20px;
  padding-top: 18px;
}

.user-panel {
  margin: 20px 0 2px;
  padding: 12px 14px;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #f7fbf8;
}

.auth-panel h2,
.history-panel h2 {
  margin: 0;
  color: #24352a;
  font-size: 1rem;
}

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

.auth-actions,
.user-panel,
.history-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-panel,
.history-header {
  justify-content: space-between;
}

.user-summary {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}


#userLabel {
  color: #234231;
  font-weight: 900;
  line-height: 1.25;
}

button.secondary {
  border: 1px solid #cfdad3;
  background: #ffffff;
  color: #245b36;
}

button.secondary:hover {
  background: #edf9f0;
}

button.danger {
  border: 1px solid #f1b7b0;
  background: #fff7f6;
  color: #b42318;
}

button.danger:hover {
  background: #ffeceb;
}

button.small {
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.86rem;
}

.form.locked {
  opacity: 0.58;
}

.orders-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfe8d6;
  border-radius: 999px;
  background: #f4fbf6;
  color: #245b36;
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.order-item {
  overflow: hidden;
  border: 1px solid #d9e2dc;
  border-radius: 8px;
  background: #ffffff;
}

.account-badges,
.user-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.points-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #e3c75d;
  border-radius: 999px;
  background: #fff7ce;
  color: #604d00;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

button.check-in-button {
  border: 1px solid #16813c;
  background: #218442;
  color: #ffffff;
}

button.check-in-button:hover:not(:disabled) {
  background: #176e35;
}

button.check-in-button.is-complete,
button.check-in-button.is-complete:disabled {
  border-color: #cdd8d1;
  background: #edf2ef;
  color: #607168;
  opacity: 1;
}

.order-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.order-artwork {
  align-self: start;
}

.order-card-image {
  display: block;
  width: 112px;
  aspect-ratio: 367 / 512;
  object-fit: contain;
  border-radius: 7px;
  background: #eef3f0;
  box-shadow: 0 8px 18px rgba(19, 42, 29, 0.12);
}

.order-content {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.order-number,
.order-card-code {
  color: #68776f;
  font-size: 0.76rem;
  font-weight: 800;
}

.order-title {
  margin: 0;
  color: #14251b;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.order-status {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eaf1ed;
  color: #31513b;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.order-item.created .order-status {
  background: #edf9f0;
  color: #167337;
}

.order-item.processing .order-status {
  background: #eef6ff;
  color: #1d4f8f;
}

.order-item.completed .order-status {
  background: #edf9f0;
  color: #167337;
}

.order-item.failed .order-status {
  background: #fff1f0;
  color: #b42318;
}

.order-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfe8d6;
  border-radius: 8px;
  background: #f4fbf6;
  padding: 8px 10px;
}

.order-sender span,
.order-detail span {
  color: #617069;
  font-size: 0.78rem;
  font-weight: 800;
}

.order-sender strong {
  color: #123720;
  font-size: 0.98rem;
}

.order-sender.muted {
  background: #fafcfb;
  border-color: #e1e9e4;
}

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

.order-detail {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.order-detail strong {
  color: #31413a;
  font-size: 0.88rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.order-error,
.empty-orders {
  color: #617069;
  font-size: 0.86rem;
  line-height: 1.35;
}

.order-error {
  border-radius: 8px;
  background: #fff7f6;
  padding: 8px 10px;
  color: #b42318;
  font-weight: 700;
}

.order-progress-message {
  margin: 0;
  border-top: 1px solid #e2e9e4;
  padding-top: 10px;
  color: #617069;
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 620px) {
  .order-body {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
  }

  .order-card-image {
    width: 76px;
    border-radius: 5px;
  }

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

  .order-title {
    font-size: 1rem;
  }

  .order-status {
    width: fit-content;
    max-width: 100%;
    justify-self: start;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

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

  .order-detail:last-child {
    grid-column: 1 / -1;
  }

  .order-sender {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* Points shop */
.member-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.member-nav a {
  color: #4f5f55;
  font-weight: 800;
  text-decoration: none;
  padding: 9px 12px;
  border-bottom: 2px solid transparent;
}

.member-nav a:hover,
.member-nav a.active {
  color: #147a3c;
  border-bottom-color: #147a3c;
}

button.header-check-in {
  display: inline-flex;
  width: auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #16813c;
  border-radius: 999px;
  padding: 0 14px;
  background: #218442;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

button.header-check-in svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button.header-check-in:hover:not(:disabled) { background: #176e35; }

button.header-check-in.is-complete:disabled {
  border-color: #cdd8d1;
  background: #edf2ef;
  color: #607168;
  opacity: 1;
}

.shop-page {
  background: #edf3ef;
  color: #15231a;
}

.shop-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto 80px;
}

.shop-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding: 38px 40px;
  background: #102c1e;
  color: #fff;
  border-radius: 8px 8px 0 0;
}

.shop-intro .eyebrow {
  color: #65dc91;
  margin: 0 0 10px;
}

.shop-intro h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.shop-lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: #d7e6dc;
  font-size: 1.05rem;
  line-height: 1.65;
}

.shop-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
  border: 1px solid #cddbd2;
  border-top: 0;
}

.shop-closed-notice {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border: 1px solid #d8c56e;
  border-top: 4px solid #d4ad20;
  padding: 26px 30px;
  background: #fffbee;
}

.shop-closed-notice[hidden] { display: none; }
.shop-closed-notice h2 { margin: 2px 0 7px; font-size: 1.35rem; }
.shop-closed-notice p:last-child { margin: 0; color: #657168; line-height: 1.55; }
.shop-closed-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #f2d36b;
  color: #17251c;
  font-size: 1.35rem;
  font-weight: 950;
}

button.shop-product {
  min-height: 190px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 0;
  border-right: 1px solid #dbe4de;
  border-radius: 0;
  background: #fff;
  color: #15231a;
  text-align: left;
}

button.shop-product:last-child { border-right: 0; }
button.shop-product:hover,
button.shop-product.selected { background: #f2faf5; }

.shop-product-art {
  width: 108px;
  aspect-ratio: 5 / 7;
  display: grid;
  place-content: center;
  border-radius: 7px;
  box-shadow: 0 12px 22px rgba(11, 42, 26, 0.16);
  transform: rotate(-4deg);
}

.trainer-art { transform: rotate(4deg); }
.pokemon-art { background: #f0d274; color: #102c1e; }
.trainer-art { background: #ef8d78; color: #102c1e; }
.shop-product-art img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: auto;
}

.rarity-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.rarity-pair img + img { margin-left: -5px; }

.shop-product-copy { display: grid; gap: 7px; }
.shop-product-copy small { color: #168044; font-weight: 900; }
.shop-product-copy strong { font-size: 1.45rem; }
.shop-product-copy > span { color: #617067; line-height: 1.5; }
.shop-product-action { display: grid; justify-items: end; align-self: stretch; align-content: end; gap: 14px; }
.shop-price { color: #617067; white-space: nowrap; }
.shop-price b { color: #15231a; font-size: 2rem; }
.shop-redeem-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 6px;
  background: #23844a;
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}
button.shop-product:hover .shop-redeem-link,
button.shop-product:focus-visible .shop-redeem-link { background: #176c3a; }

.header-logout {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #cfd9d2;
  border-radius: 6px;
  background: #fff;
  color: #1c5f36;
  font-weight: 900;
  text-decoration: none;
}
.header-logout:hover { border-color: #23844a; background: #f2faf5; }

.header-profile {
  position: relative;
}

.header-profile summary {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfd9d2;
  border-radius: 999px;
  padding: 0 38px 0 14px;
  background: #f7fbf8;
  color: #193c28;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.header-profile summary::-webkit-details-marker { display: none; }
.header-profile summary::after {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease;
}
.header-profile[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.header-profile[open] summary { border-color: #23844a; background: #edf8f1; }
.profile-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.header-profile-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 290px;
  gap: 14px;
  border: 1px solid #d4e0d8;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(19, 43, 28, 0.16);
}

.header-profile-menu .account-badges { flex-wrap: wrap; }
.header-profile-menu .check-in-button { width: 100%; }
.header-profile-menu .header-logout { width: 100%; }

.redeem-panel,
.redemption-history {
  margin-top: 30px;
  padding: 30px;
  background: #fff;
  border: 1px solid #cddbd2;
  border-radius: 8px;
}

.shop-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.shop-workspace.has-redeem {
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
}

.redeem-panel {
  scroll-margin-top: 125px;
  border-top: 4px solid #23844a;
  padding: 26px;
  box-shadow: 0 18px 48px rgba(25, 46, 32, 0.08);
}

.redemption-history { border-top: 4px solid #f0d274; }

.redeem-heading,
.redemption-history .history-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.redeem-heading h2,
.redemption-history h2 { margin: 4px 0 0; font-size: 1.55rem; }

.redeem-layout {
  display: block;
  margin-top: 24px;
}

.shop-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 16px;
  align-items: end;
  align-content: start;
}

.shop-card-grid {
  grid-column: 1 / -1;
  max-height: 560px;
  overflow-y: auto;
  border: 1px solid #d7e2db;
  border-radius: 7px;
}

button.shop-card-option {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border: 0;
  border-bottom: 1px solid #e3eae5;
  border-radius: 0;
  background: #fff;
  color: #15231a;
  text-align: left;
}

button.shop-card-option:last-child { border-bottom: 0; }
button.shop-card-option:hover,
button.shop-card-option.selected { background: #edf8f1; }
button.shop-card-option.selected { box-shadow: inset 4px 0 #198448; }
.shop-card-option img { width: 58px; aspect-ratio: 5 / 7; object-fit: contain; }
.shop-card-option > span { min-width: 0; display: grid; gap: 4px; }
.shop-card-option strong { overflow-wrap: anywhere; }
.shop-card-option small { color: #6a776f; overflow-wrap: anywhere; }
.shop-card-option em { color: #176f3c; font-style: normal; font-weight: 850; }

.redeem-form {
  display: grid;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
}

.chosen-reward {
  min-height: 110px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #f4fbf6;
  border: 1px solid #bfdfc8;
  border-radius: 8px;
}

.chosen-reward.empty { justify-content: center; padding: 12px; color: #718078; border-style: dashed; }
.chosen-reward[hidden] { display: none; }
.chosen-reward img { width: 72px; aspect-ratio: 367 / 512; border: 1px solid #cfe2d5; border-radius: 7px; background: #fff; object-fit: cover; }
.chosen-reward > span { display: grid; gap: 5px; }
.chosen-reward strong { font-size: 1.08rem; }
.chosen-reward small { color: #68766d; overflow-wrap: anywhere; }
.clear-reward {
  align-self: start;
  display: grid;
  width: 32px;
  min-height: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid #cfded5;
  border-radius: 999px;
  background: #fff;
  color: #31513b;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}
.clear-reward:hover { background: #edf9f0; }
.shop-verification { display: none; gap: 8px; font-weight: 800; }
.shop-verification.is-active { display: grid; }
.shop-verification.is-active .cf-turnstile { min-height: 65px; }
.redeem-form input,
.redeem-form select { min-height: 50px; background: #fff; }
.redeem-form #redeemBtn { min-height: 52px; margin-top: 2px; }
.trade-notice { margin: 0; color: #5f6e65; font-size: 0.9rem; line-height: 1.5; }
.shop-empty { padding: 28px; color: #68766d; text-align: center; }

.redemption-list {
  max-height: 680px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.order-error { margin: 0; }
.refund-note { margin: 0; padding: 9px 11px; border-radius: 6px; color: #116e38; background: #eaf8ef; }

.shop-workspace .redemption-history h2 { font-size: 1.2rem; }
.shop-workspace .redemption-list { max-height: 690px; margin-top: 18px; }
.shop-workspace .order-item { border-color: #dce5df; box-shadow: 0 8px 24px rgba(25, 46, 32, 0.05); }
.shop-workspace .order-body { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 14px; }
.shop-workspace .order-card-image { width: 92px; }
.shop-workspace .order-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .shop-products { grid-template-columns: 1fr; }
  button.shop-product { border-right: 0; border-bottom: 1px solid #dbe4de; }
  button.shop-product:last-child { border-bottom: 0; }
  .shop-workspace.has-redeem { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .member-nav { order: 3; width: 100%; justify-content: center; border-top: 1px solid #e2e9e4; }
  .member-nav a,
  .member-nav .header-check-in { flex: 1; text-align: center; padding: 10px 6px; }
  .member-nav .header-check-in { min-height: 38px; margin: 4px 0; }
  .shop-page .product-header { flex-wrap: wrap; min-height: auto; padding-top: 8px; }
  .shop-page .product-header-actions { margin-left: auto; }
  .shop-shell { width: 100%; margin: 0 0 50px; }
  .shop-intro { align-items: start; flex-direction: column; gap: 24px; padding: 30px 18px; border-radius: 0; }
  .shop-intro h1 { font-size: 2.55rem; }
  .shop-products { border-left: 0; border-right: 0; }
  button.shop-product { min-height: 155px; grid-template-columns: 78px minmax(0, 1fr); gap: 15px; padding: 18px 14px; }
  .shop-product-art { width: 78px; }
  .shop-product-art img { width: 30px; height: 30px; }
  .shop-product-copy strong { font-size: 1.18rem; }
  .shop-product-copy > span { font-size: 0.88rem; }
  .shop-product-action { grid-column: 2; grid-template-columns: 1fr auto; align-items: center; justify-items: start; gap: 10px; }
  .shop-price b { font-size: 1.4rem; }
  .shop-redeem-link { min-height: 36px; padding: 0 12px; font-size: 0.86rem; }
  .redeem-panel,
  .redemption-history { margin: 18px 10px 0; padding: 20px 12px; }
  .shop-picker { grid-template-columns: 1fr; }
  .shop-card-grid { grid-column: 1; max-height: 430px; }
  button.shop-card-option { grid-template-columns: 50px minmax(0, 1fr); padding: 8px 10px; }
  .shop-card-option img { width: 50px; }
  .shop-card-option em { grid-column: 2; font-size: 0.82rem; }
  .redeem-form { padding: 16px 12px; }
  .chosen-reward { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .chosen-reward img { width: 58px; }
  .shop-workspace .order-body { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .shop-workspace .order-card-image { width: 70px; }
}

@media (max-width: 390px) {
  .order-body {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .order-card-image {
    width: 64px;
  }
}


.login-panel {
  width: min(560px, 100%);
}

.login-brand {
  display: grid;
  grid-template-columns: 1fr;
}

.standalone-auth {
  border-top: 1px solid #edf1ee;
}

body[data-page="login"] .auth-actions button {
  min-width: 96px;
}


.orders-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.password-control {
  position: relative;
  display: grid;
}

.password-control input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  display: grid;
  width: 34px;
  min-height: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #cfdad3;
  border-radius: 999px;
  background: #ffffff;
  color: #31513b;
  padding: 0;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: #edf9f0;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle.is-visible {
  background: #edf9f0;
  color: #1f7a37;
}

.login-brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.login-brand .top-actions {
  margin-left: auto;
}

@media (max-width: 620px) {
  .login-brand {
    display: grid;
    grid-template-columns: 1fr;
  }

  .login-brand .top-actions {
    margin-left: 0;
  }

  .orders-list {
    max-height: 320px;
  }
}



@media (max-width: 620px) {
  .user-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .user-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-badges {
    flex-wrap: wrap;
  }

  .user-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .user-panel .small {
    width: 100%;
  }
}



.search-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  grid-template-areas:
    "card expansion"
    "popular popular";
  gap: 16px;
  align-items: end;
}

.search-tools .field {
  min-width: 0;
}

.card-search-field {
  grid-area: card;
}

.expansion-filter-field {
  grid-area: expansion;
}

.search-tools .popular-cards {
  grid-area: popular;
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.card-expansion,
.card-rarity {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 800;
}

.card-expansion {
  border: 1px solid #d9e8dd;
  background: #f7fbf8;
  color: #31513b;
}


@media (max-width: 620px) {
  .search-tools {
    grid-template-columns: 1fr;
    grid-template-areas:
      "card"
      "popular"
      "expansion";
    gap: 14px;
  }

  .card-chips {
    justify-content: flex-start;
  }

  .popular-cards-summary {
    padding: 11px 42px 11px 13px;
  }

  .popular-card-list {
    grid-auto-columns: 108px;
    gap: 9px;
    padding: 10px 12px 12px;
    scrollbar-width: none;
  }

  .popular-card-list::-webkit-scrollbar {
    display: none;
  }
}

.admin-shell {
  place-items: start center;
}

.admin-panel {
  width: min(1120px, 100%);
}

.admin-brand {
  align-items: center;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.admin-stat {
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #f7fbf8;
  padding: 12px;
}

.admin-stat span {
  display: block;
  color: #66746d;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-stat strong {
  display: block;
  margin-top: 4px;
  color: #17201a;
  font-size: 1.35rem;
}

.admin-section {
  border-top: 1px solid #edf1ee;
  padding-top: 18px;
  margin-top: 20px;
}

.admin-create-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 140px auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.admin-friend-points-form {
  grid-template-columns: minmax(0, 1fr) 180px auto;
}

.admin-create-form button[type="submit"] {
  min-height: 52px;
  padding: 0 18px;
  white-space: nowrap;
}

.admin-table-wrap {
  margin-top: 12px;
  overflow: auto;
  border: 1px solid #d9e2dc;
  border-radius: 8px;
  max-height: 360px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf1ee;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f7fbf8;
  color: #4b5a51;
  font-size: 0.76rem;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-status {
  display: inline-flex;
  border-radius: 999px;
  background: #eaf1ed;
  color: #31513b;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.admin-status.failed {
  background: #fff1f0;
  color: #b42318;
}

.admin-status.completed {
  background: #edf9f0;
  color: #167337;
}

.admin-status.processing,
.admin-status.submitting {
  background: #eef6ff;
  color: #1d4f8f;
}

.admin-error {
  margin-top: 5px;
  color: #b42318;
  font-size: 0.78rem;
  line-height: 1.35;
}

.inline-message {
  min-height: 22px;
  margin-top: 8px;
  color: #5f6f67;
  font-size: 0.9rem;
  font-weight: 800;
}

.inline-message.error {
  color: #b42318;
}

.inline-message.success {
  color: #167337;
}

.admin-announcement-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.admin-announcement-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #f7fbf8;
}

.admin-announcement-form legend {
  padding: 0 6px;
  color: #176f38;
  font-weight: 900;
}

.admin-announcement-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 130px;
}

.admin-announcement-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #31513b;
  font-weight: 800;
}

.admin-check input {
  width: 18px;
  height: 18px;
  accent-color: #238442;
}

.announcement-admin-table td p {
  max-width: 310px;
  margin: 5px 0 0;
  color: #66746d;
  white-space: pre-line;
}

.announcement-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}

.admin-switch {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.admin-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.admin-switch-track {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border: 1px solid #aabbb0;
  border-radius: 999px;
  background: #dfe8e2;
  transition: background 160ms ease, border-color 160ms ease;
}

.admin-switch-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgb(13 46 28 / 24%);
  transition: transform 160ms ease;
}

.admin-switch input:checked + .admin-switch-track {
  border-color: #218141;
  background: #218141;
}

.admin-switch input:checked + .admin-switch-track span { transform: translateX(20px); }
.admin-switch input:focus-visible + .admin-switch-track { outline: 3px solid rgb(33 129 65 / 24%); outline-offset: 2px; }
.admin-switch input:disabled + .admin-switch-track { opacity: 0.55; cursor: not-allowed; }
.admin-switch strong,
.admin-switch small { display: block; }
.admin-switch small { margin-top: 4px; color: #68786e; }

@media (max-width: 680px) {
  .admin-setting-row { align-items: stretch; flex-direction: column; }
  .admin-setting-row > button { width: 100%; }
  .admin-announcement-form { grid-template-columns: 1fr; }
}

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

.credit-input,
.point-input {
  width: 76px;
  min-height: 36px;
  padding: 6px 8px;
  font-size: 0.9rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.section-caption {
  margin: 3px 0 0;
  color: #66746d;
  font-size: 0.82rem;
}

.activity-filters {
  display: grid;
  grid-template-columns: 170px 150px minmax(220px, 1fr) 100px auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.compact-field {
  gap: 5px;
}

.compact-field span {
  font-size: 0.78rem;
}

.compact-field input,
.compact-field select {
  min-height: 42px;
  padding: 8px 10px;
  font-size: 0.88rem;
}

.activity-apply-btn {
  min-height: 42px;
  padding: 0 16px;
  white-space: nowrap;
}

.activity-table-wrap {
  max-height: 430px;
}

.activity-table {
  min-width: 980px;
}

.activity-time {
  min-width: 150px;
  white-space: nowrap;
}

.activity-category {
  margin-top: 3px;
  color: #718078;
  font-size: 0.7rem;
  font-weight: 800;
}

.activity-outcome {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eef2ef;
  color: #425249;
  font-size: 0.7rem;
  font-weight: 900;
}

.activity-outcome.success {
  background: #edf9f0;
  color: #167337;
}

.activity-outcome.failure {
  background: #fff1f0;
  color: #b42318;
}

.activity-outcome.blocked {
  background: #fff7e6;
  color: #8a4b08;
}

.activity-outcome.info {
  background: #eef6ff;
  color: #1d4f8f;
}

.activity-summary {
  min-width: 210px;
  color: #24342b;
  line-height: 1.35;
}

.activity-metadata,
.activity-ip {
  margin-top: 4px;
  color: #718078;
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.activity-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  color: #5c6b63;
  font-size: 0.82rem;
  font-weight: 800;
}

.activity-pagination button {
  min-width: 82px;
}

.secondary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfdad3;
  border-radius: 8px;
  padding: 0 16px;
  color: #245b36;
  font-weight: 900;
  text-decoration: none;
}

.secondary-link:hover {
  background: #edf9f0;
}

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

  .admin-create-form {
    grid-template-columns: 1fr;
  }

  .admin-friend-points-form {
    grid-template-columns: 1fr;
  }

  .activity-filters {
    grid-template-columns: 1fr 1fr;
  }

  .activity-search-field {
    grid-column: 1 / -1;
  }

  .activity-apply-btn {
    width: 100%;
  }

  .activity-pagination {
    justify-content: space-between;
  }

  .admin-brand {
    align-items: stretch;
  }
}

/* Public product shell */
member-header { display: contents; }

.product-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #dce4de;
  background: rgba(255, 255, 255, 0.96);
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(12px);
}

.product-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #17251c;
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.product-mark b { color: #287b43; }

.product-mark-logo {
  display: block;
  width: 58px;
  height: 28px;
  object-fit: contain;
}

.product-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-nav-link {
  color: #536158;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.home-nav-link:hover { color: #23733d; }

.product-header .ui-lang {
  min-height: 42px;
  appearance: none;
  border-color: #cfd9d2;
  background: #ffffff;
  padding-right: 38px;
}

.product-header .language-control::after {
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #1a271f;
  border-bottom: 2px solid #1a271f;
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

/* Login */
body[data-page="login"] { background: #e7efe9; }

body[data-page="login"] .login-shell {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 48px 0;
  place-items: stretch;
}

.login-visual {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
  background: #10271b;
  color: #ffffff;
  padding: clamp(38px, 5vw, 70px);
}

.login-visual::before {
  position: absolute;
  z-index: 0;
  right: -10%;
  bottom: 8%;
  width: 66%;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #f7f8ef 0 6%, #122219 6.5% 12%, transparent 12.5%),
    linear-gradient(to bottom, #ef5b4d 0 46%, #122219 46% 54%, #f2f4eb 54% 100%);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.28);
  content: "";
  opacity: 0.52;
  transform: rotate(-11deg);
  transform-origin: center;
}

.login-visual-copy {
  position: relative;
  z-index: 3;
  max-width: 460px;
}

.login-visual-label,
.workspace-label {
  margin: 0 0 12px;
  color: #8dd3a1;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-visual h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 4.1rem);
  line-height: 0.98;
  text-shadow: 0 2px 20px rgba(5, 19, 11, 0.88);
}

.login-visual-copy > p:last-child {
  max-width: 420px;
  margin: 24px 0 0;
  color: #e3ece6;
  font-size: 1rem;
  line-height: 1.7;
  text-shadow: 0 2px 14px #10271b, 0 0 24px #10271b;
}

.login-card-stack {
  position: absolute;
  right: 5%;
  bottom: -5%;
  left: 8%;
  z-index: 2;
  height: 48%;
}

.login-card-stack img {
  position: absolute;
  bottom: 0;
  width: min(31%, 175px);
  aspect-ratio: 367 / 512;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.36);
}

.login-card-stack img:first-child { left: 3%; transform: translateY(13%) rotate(-9deg); }
.login-card-stack img:nth-child(2) { z-index: 2; left: 34%; transform: translateY(-10%) rotate(2deg); }
.login-card-stack img:nth-child(3) { left: 65%; transform: translateY(10%) rotate(10deg); }

body[data-page="login"] .login-panel {
  display: flex;
  width: 100%;
  min-height: 650px;
  flex-direction: column;
  justify-content: center;
  border-radius: 0 8px 8px 0;
  padding: clamp(38px, 5vw, 72px);
  box-shadow: 22px 30px 70px rgba(24, 40, 30, 0.14);
}

body[data-page="login"] .login-brand { margin-bottom: 34px; }

body[data-page="login"] .login-brand h1 {
  max-width: 410px;
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  line-height: 0.98;
}

body[data-page="login"] .standalone-auth { margin-top: 0; padding-top: 28px; }
body[data-page="login"] .auth-form { gap: 18px; margin-top: 0; }
body[data-page="login"] input { min-height: 54px; background: #ffffff; }

body[data-page="login"] .auth-actions button {
  min-width: 132px;
  min-height: 50px;
  margin-top: 4px;
}

.auth-links,
.auth-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 4px;
}

.auth-links a,
.auth-back-link {
  color: #247a3d;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-links a:hover,
.auth-back-link:hover { text-decoration: underline; }

body[data-auth-page] { background: #e7efe9; }
body[data-auth-page] form[hidden] { display: none !important; }

.auth-flow-shell {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 48px 20px;
}

.auth-flow-card {
  position: relative;
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid #d4e0d7;
  border-radius: 8px;
  background: #ffffff;
  padding: clamp(30px, 6vw, 58px);
  box-shadow: 0 24px 70px rgba(24, 40, 30, 0.14);
}

.auth-flow-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: #247a3d;
  content: "";
}

.auth-flow-card h1 {
  max-width: 520px;
  margin: 0;
  color: #17251c;
  font-size: clamp(2.25rem, 6vw, 3.7rem);
  line-height: 0.98;
}

.auth-flow-lead {
  max-width: 520px;
  margin: 18px 0 30px;
  color: #5b6b61;
  line-height: 1.65;
}

.auth-flow-card .auth-form { gap: 18px; }
.auth-flow-card input { min-height: 54px; background: #ffffff; }
.auth-flow-card small { color: #6d7971; font-size: 0.78rem; font-weight: 600; }
.auth-flow-card #authFlowSubmit { min-height: 52px; }
.auth-flow-card > .message { margin-top: 20px; }
.auth-flow-card > .auth-back-link,
.auth-flow-card > .auth-link-row { margin-top: 22px; }

.otp-fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.otp-fieldset legend {
  margin-bottom: 9px;
  color: #3e5045;
  font-size: 0.92rem;
  font-weight: 800;
}

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.auth-flow-card .otp-inputs input {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 8px 2px;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
}

.auth-text-button {
  width: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: #247a3d;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-text-button:disabled {
  color: #78857d;
  cursor: default;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #3e5045;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.terms-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: #247a3d;
}

/* Authenticated workspace */
body[data-page="app"] { background: #eef3ef; }

body[data-page="app"] .shell {
  min-height: calc(100vh - 72px);
  align-items: start;
  padding: 46px 24px 72px;
  row-gap: 24px;
}

.share-intro {
  box-sizing: border-box;
  width: min(1260px, 100%);
  border-radius: 8px;
  padding: 38px 40px;
  background: #102c1e;
  color: #ffffff;
}

.share-intro .eyebrow { margin: 0 0 10px; color: #65dc91; }
.share-intro h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.96;
}
.share-lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: #d7e6dc;
  font-size: 1.05rem;
  line-height: 1.65;
}

.app-panel {
  width: min(1260px, 100%);
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.app-brand { align-items: end; margin-bottom: 24px; }

.app-brand h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  line-height: 0.98;
}

.app-panel > .user-panel {
  margin: 0 0 18px;
  border-color: #cddfd2;
  background: #dfece3;
  padding: 13px 15px;
}

.app-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  align-items: start;
  gap: 20px;
}

.request-card,
.app-workspace .history-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #d5e0d8;
  border-radius: 8px;
  background: #ffffff;
  padding: 26px;
  box-shadow: 0 18px 48px rgba(25, 46, 32, 0.08);
}

.request-card::before,
.app-workspace .history-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: #247a3d;
  content: "";
}

.app-workspace .history-panel::before { background: #f0d274; }
.request-card > .workspace-label,
.history-header .workspace-label { color: #247a3d; }
.history-header .workspace-label { margin-bottom: 5px; }

.app-workspace .history-panel {
  margin-top: 0;
  padding-top: 26px;
}

.app-workspace .history-panel h2 { font-size: 1.2rem; }
.app-workspace .orders-list { max-height: 690px; margin-top: 18px; }

.app-workspace .order-item {
  border-color: #dce5df;
  box-shadow: 0 8px 24px rgba(25, 46, 32, 0.05);
}

.app-workspace .order-body {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.app-workspace .order-card-image { width: 92px; }
.app-workspace .order-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-workspace .form { gap: 18px; }

.app-workspace input,
.app-workspace select {
  min-height: 50px;
  background: #ffffff;
}

.app-workspace #submitBtn { min-height: 52px; margin-top: 2px; }

@media (max-width: 980px) {
  body[data-page="login"] .login-shell {
    grid-template-columns: 1fr;
    width: min(720px, calc(100% - 32px));
    padding: 30px 0 48px;
  }

  .login-visual { min-height: 350px; border-radius: 8px 8px 0 0; }
  .login-visual h2 { max-width: 470px; font-size: 3rem; }

  .login-visual::before {
    right: -36px;
    bottom: -34px;
    width: 320px;
    transform: rotate(-9deg);
  }

  .login-card-stack {
    right: 2%;
    bottom: -35%;
    left: 53%;
    height: 100%;
  }

  .login-card-stack img { width: 42%; }

  body[data-page="login"] .login-panel {
    min-height: 520px;
    border-radius: 0 0 8px 8px;
  }

  .app-workspace { grid-template-columns: 1fr; }
  .app-workspace .orders-list { max-height: 580px; }
}

@media (max-width: 620px) {
  .product-header { min-height: 64px; gap: 8px; padding: 0 10px; }
  .product-mark > span:last-child { display: none; }
  .product-header-actions { gap: 6px; }
  .header-profile summary { width: 56px; padding: 0 28px 0 10px; justify-content: flex-start; }
  .header-profile summary::after { right: 11px; }
  .header-profile-label { display: none; }
  .header-profile-menu { right: -152px; width: min(290px, calc(100vw - 20px)); }
  .header-logout { min-height: 38px; padding: 0 10px; }

  .home-nav-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    border: 1px solid #d2ddd5;
    border-radius: 999px;
    padding: 0 10px;
    background: #ffffff;
    color: #314238;
    white-space: nowrap;
  }

  .product-header .language-control,
  .product-header .ui-lang { width: 120px; }

  .product-header .ui-lang { color: #17251c; padding: 0 32px 0 40px; }
  .product-header .language-icon { left: 13px; }
  .product-header .language-control::after { right: 13px; }

  body[data-page="login"] .login-shell { width: 100%; padding: 0; }

  .login-visual {
    min-height: 500px;
    border-radius: 0;
    padding: 32px 18px;
  }

  .login-visual h2 { max-width: 340px; font-size: 2.35rem; }

  .login-visual-copy > p:last-child {
    display: block;
    max-width: 300px;
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .login-visual::before {
    right: -72px;
    bottom: 54px;
    width: 300px;
    transform: rotate(-10deg);
  }

  .login-card-stack {
    right: 12px;
    bottom: -8px;
    left: 12px;
    height: 220px;
  }

  .login-card-stack img { width: 31%; }
  .login-card-stack img:first-child { left: 1%; transform: translateY(14%) rotate(-8deg); }
  .login-card-stack img:nth-child(2) { left: 34.5%; transform: translateY(-5%) rotate(1deg); }
  .login-card-stack img:nth-child(3) { left: 68%; transform: translateY(13%) rotate(8deg); }

  body[data-page="login"] .login-panel {
    min-height: auto;
    border: 0;
    border-radius: 0;
    padding: 36px 20px 52px;
    box-shadow: none;
  }

  body[data-page="login"] .login-brand h1 { font-size: 2.35rem; }
  body[data-page="login"] .auth-actions button { width: 100%; }
  .auth-flow-shell { min-height: calc(100vh - 64px); padding: 0; }
  .auth-flow-card { min-height: calc(100vh - 64px); border: 0; border-radius: 0; padding: 38px 20px 48px; box-shadow: none; }
  .auth-flow-card #authFlowSubmit { width: 100%; }
  .otp-inputs { gap: 6px; }
  .auth-flow-card .otp-inputs input { min-height: 56px; font-size: 1.35rem; }
  body[data-page="app"] .shell { padding: 28px 12px 48px; }
  .share-intro { padding: 30px 20px; }
  .share-intro h1 { font-size: 2.75rem; }
  .share-lead { margin-top: 15px; font-size: 0.94rem; }
  .app-brand { margin-bottom: 18px; }
  .app-brand h1 { font-size: 2.35rem; }

  .request-card,
  .app-workspace .history-panel { padding: 20px 14px; }

  .app-workspace .order-body {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  .app-workspace .order-card-image { width: 70px; }
}

@media (max-width: 620px) {
  .product-header {
    flex-wrap: wrap;
    min-height: auto;
    gap: 6px 10px;
    padding-top: 8px;
  }

  .member-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }
}

/* Unified member navigation */
member-header .product-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  justify-content: initial;
  gap: 0;
  backdrop-filter: none;
}

.member-nav {
  margin-left: 0;
  align-self: stretch;
  justify-content: center;
  gap: 2px;
  color: #536158;
  font-size: 0.88rem;
  font-weight: 750;
}

.member-nav a {
  position: relative;
  display: inline-flex;
  min-height: 72px;
  align-items: center;
  border-bottom: 0;
  padding: 0 18px;
  color: inherit;
  font-weight: inherit;
  transition: color 160ms ease, background-color 160ms ease;
}

.member-nav a::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #23844a;
  content: "";
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 160ms ease, transform 160ms ease;
}

.member-nav a:hover {
  border-bottom-color: transparent;
  background: #f5faf7;
}

.member-nav a.active {
  border-bottom-color: transparent;
  background: transparent;
}

.member-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

member-header .product-header-actions {
  justify-self: end;
  gap: 10px;
}

.mobile-menu-toggle,
.mobile-nav-backdrop {
  display: none;
}

.product-header .language-control,
.header-profile summary,
button.header-check-in {
  min-height: 42px;
}

.product-header .ui-lang {
  padding: 0 36px 0 40px;
  font-size: 0.84rem;
}

.product-header .language-icon {
  width: 20px;
  height: 20px;
}

button.header-check-in {
  border-color: #c8ddcf;
  background: #edf8f1;
  color: #176f38;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

button.header-check-in:hover:not(:disabled) {
  border-color: #23844a;
  background: #ddf2e5;
  transform: translateY(-1px);
}

button.header-check-in.is-complete:disabled {
  border-color: #d8e1da;
  background: #f3f6f4;
  color: #6b786f;
}

.header-profile summary,
.product-header .ui-lang {
  background: #ffffff;
}

.header-profile summary:hover,
.product-header .language-control:hover .ui-lang {
  border-color: #9fc4aa;
  background: #f8fbf9;
}

.header-profile-menu {
  top: calc(100% + 12px);
  overflow: hidden;
  gap: 12px;
  border-color: #cad9ce;
  padding: 14px;
  box-shadow: 0 22px 55px rgba(13, 47, 26, 0.18);
}

.header-profile-menu::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #23844a;
  content: "";
}

.header-profile-link,
.header-profile-menu .header-logout {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d3dfd7;
  border-radius: 6px;
  background: #fff;
  color: #175f34;
  font-weight: 800;
  text-decoration: none;
}

.header-profile-link:hover,
.header-profile-link.active {
  border-color: #8fc3a0;
  background: #edf8f1;
}

/* Profile and linked Friend IDs */
.profile-page { background: #edf4ef; }
.profile-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 90px; }
.profile-intro {
  padding: 44px 48px;
  border-radius: 8px 8px 0 0;
  background: #0d3120;
  color: #fff;
}
.profile-intro .eyebrow { color: #69dc91; }
.profile-intro h1 { margin: 8px 0 12px; color: #fff; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 0.96; }
.profile-intro > p:last-child { max-width: 650px; margin: 0; color: #d4e5da; font-size: 1.05rem; line-height: 1.6; }
.profile-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid #ccdad0; border-top: 0; background: #fff; }
.profile-account-card { padding: 38px; border-right: 1px solid #dbe5de; background: #f5faf7; }
.profile-avatar { position: relative; width: 78px; height: 78px; margin: 34px 0 22px; border-radius: 50%; background: #23844a; }
.profile-avatar::before { position: absolute; top: 17px; left: 28px; width: 22px; height: 22px; border-radius: 50%; background: #fff; content: ""; }
.profile-avatar::after { position: absolute; right: 17px; bottom: 14px; left: 17px; height: 27px; border-radius: 28px 28px 14px 14px; background: #fff; content: ""; }
.profile-account-card h2 { margin: 0 0 10px; font-size: 1.7rem; overflow-wrap: anywhere; }
.profile-account-card > p:not(.workspace-label) { color: #66736b; line-height: 1.6; }
.profile-account-card .profile-email { margin: 0; overflow-wrap: anywhere; }
.profile-account-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.friend-id-panel { min-width: 0; padding: 38px 42px 44px; }
.profile-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.profile-section-heading h2 { margin: 5px 0 0; font-size: 2rem; }
.friend-id-count { border: 1px solid #c9dbcf; border-radius: 999px; padding: 8px 13px; background: #f3faf5; color: #176f38; font-weight: 900; }
.friend-id-list { display: grid; gap: 14px; margin: 26px 0; }
.friend-id-item { border: 1px solid #d4dfd7; border-left: 4px solid #aab9af; padding: 20px; background: #fff; }
.friend-id-item.is-default { border-left-color: #23844a; background: #f7fcf8; }
.friend-id-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.friend-id-item-head strong { font-size: 1.08rem; }
.default-badge { border-radius: 999px; padding: 5px 10px; background: #def3e5; color: #176f38; font-size: 0.78rem; font-weight: 900; }
.profile-form-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(170px, 0.75fr); gap: 14px; }
.profile-form-row input { min-height: 50px; }
.friend-id-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.friend-id-actions button { width: auto; min-height: 40px; padding: 8px 14px; }
.friend-id-actions button.danger { border: 1px solid #efb8b3; background: #fff5f4; color: #b52a1d; }
.add-friend-id-form { border-top: 1px solid #dce5df; padding-top: 26px; }
.add-friend-id-form[hidden] { display: none; }
.profile-default-check { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: #3f5045; font-weight: 700; }
.profile-default-check input { width: 18px; height: 18px; accent-color: #23844a; }
.add-friend-id-form > button { width: auto; min-width: 180px; }
.profile-empty { border: 1px dashed #bfd1c4; padding: 28px; background: #f7faf8; color: #68756d; text-align: center; }
.saved-friend-select { margin-bottom: 8px; border-color: #a9cdb5; background: #f2faf5; color: #173f28; font-weight: 750; }
.saved-friend-select[hidden] { display: none; }
.saved-friend-label-field { margin-top: -4px; }
.saved-friend-label-field span { color: #617168; font-size: 0.82rem; }

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

.track-form .field { margin: 0; }
.track-form button { width: auto; min-width: 112px; min-height: 50px; }

.friend-point-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #b9d9c3;
  padding: 12px 16px;
  background: #f0faf3;
  color: #31533e;
  font-weight: 800;
}

.friend-point-balance[hidden] { display: none; }
.friend-point-balance strong { color: #16783a; font-size: 1.45rem; }

.shop-friend-lookup {
  border: 1px solid #cedbd2;
  border-top: 4px solid #23844a;
  padding: 18px 28px 8px;
  background: #fff;
}

@media (max-width: 760px) {
  .profile-shell { width: 100%; padding: 0 0 54px; }
  .profile-intro { border-radius: 0; padding: 36px 20px; }
  .profile-layout { grid-template-columns: 1fr; border-right: 0; border-left: 0; }
  .profile-account-card { padding: 26px 20px; border-right: 0; border-bottom: 1px solid #dbe5de; }
  .profile-avatar { width: 58px; height: 58px; margin: 22px 0 16px; }
  .profile-avatar::before { top: 12px; left: 21px; width: 16px; height: 16px; }
  .profile-avatar::after { right: 12px; bottom: 10px; left: 12px; height: 21px; }
  .friend-id-panel { padding: 28px 16px 36px; }
  .profile-form-row { grid-template-columns: 1fr; }
  .friend-id-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .friend-id-actions button { width: 100%; }
  .add-friend-id-form > button { width: 100%; }
}

@media (max-width: 680px) {
  member-header .product-header {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 64px;
    width: 100vw;
    max-width: 100vw;
    min-height: 64px;
    gap: 0;
    padding: 0 14px;
  }

  member-header .product-mark {
    grid-column: 1;
    grid-row: 1;
  }

  member-header .product-header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    gap: 7px;
  }

  .member-nav {
    position: absolute;
    z-index: 3;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    height: auto;
    padding: 8px 14px 14px;
    border-top: 1px solid #e5ebe7;
    background: #fff;
    box-shadow: 0 18px 38px rgba(13, 47, 26, 0.16);
    font-size: 0.88rem;
  }

  .member-nav a {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    border-radius: 6px;
    padding: 0 14px;
  }

  .member-nav a::after { top: 10px; right: auto; bottom: 10px; left: 0; width: 3px; height: auto; transform: scaleY(0.55); }
  .member-nav a.active::after { transform: scaleY(1); }
  member-header .product-header.menu-open .member-nav { display: flex; flex-direction: column; align-items: stretch; }

  .mobile-menu-toggle {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid #cfd9d2;
    border-radius: 50%;
    background: #fff;
    color: #1a271f;
  }

  .mobile-menu-toggle:hover {
    border-color: #9fc4aa;
    background: #f8fbf9;
  }

  .mobile-menu-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .mobile-menu-close-icon { display: none; }
  .menu-open .mobile-menu-open-icon { display: none; }
  .menu-open .mobile-menu-close-icon { display: block; }

  .mobile-nav-backdrop {
    position: fixed;
    z-index: 2;
    inset: 64px 0 0;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(8, 20, 13, 0.34);
  }

  .menu-open .mobile-nav-backdrop { display: block; }
  member-header .product-mark,
  member-header .product-header-actions { position: relative; z-index: 4; }

  .product-header .language-control {
    width: 118px;
    flex: 0 0 118px;
  }

  .product-header .ui-lang {
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    padding: 0 28px 0 38px;
    font-size: 0.78rem;
  }

  .product-header .language-icon {
    left: 12px;
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 620px) {
  button.header-check-in {
    min-width: 0;
    padding: 0 9px;
    font-size: 0.76rem;
  }

  button.header-check-in svg { width: 15px; height: 15px; }

  .header-profile summary {
    width: 48px;
    min-height: 44px;
    padding: 0 23px 0 8px;
  }

  .header-profile-menu {
    right: 0;
    width: min(290px, calc(100vw - 20px));
  }

  .track-form { grid-template-columns: 1fr; }
  .track-form button { width: 100%; }
  .shop-friend-lookup { padding: 16px 14px 6px; }
}

@media (max-width: 390px) {
  button.header-check-in { gap: 5px; padding: 0 7px; }
}
