:root {
  --navy: #21134f;
  --pink: #ed1681;
  --pink-dark: #c90b67;
  --bg: #f5f5f9;
  --white: #fff;
  --text: #292638;
  --muted: #747083;
  --line: #e7e5ee;
  --soft: #fff0f7;
  --radius: 18px;
  --shadow: 0 8px 28px #20124b06;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}
button {
  border: 0;
}
button,
select,
input {
  min-height: 44px;
}
input[type='checkbox'] {
  min-height: 0;
}
button[hidden],
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  background: var(--navy);
  color: white;
  padding: 10px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1360px;
  margin: auto;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 102px;
}
.brand img {
  width: 214px;
  height: 74px;
  object-fit: contain;
  max-height: 56px;
}
.brand-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}
.market-link {
  font-weight: 650;
  font-size: 18px;
  color: var(--navy);
}
.header-spacer {
  flex: 1;
}
.header-cart {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg);
  border-radius: 13px;
  padding: 10px 17px;
  font-weight: 600;
  color: var(--navy);
  min-height: 48px;
}
.cart-count {
  background: var(--pink);
  color: white;
  font-size: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.bag-icon {
  position: relative;
  width: 19px;
  height: 19px;
  border: 1.7px solid currentColor;
  border-radius: 3px;
  margin-top: 4px;
  display: inline-block;
  flex-shrink: 0;
}
.bag-icon:before {
  content: '';
  position: absolute;
  top: -7px;
  left: 4px;
  width: 7px;
  height: 8px;
  border: 1.7px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}
.page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 48px 70px;
  min-height: calc(100vh - 183px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.11em;
  font-weight: 650;
  margin-bottom: 9px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--navy);
  font-weight: 750;
}
.heading-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--pink);
  border-radius: 50%;
  margin-left: 8px;
}
.page-heading p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}
.heading-note {
  font-size: 14px;
  color: var(--muted);
  padding-left: 22px;
  border-left: 3px solid var(--pink);
  line-height: 1.6;
}
.catalog-tools {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.search {
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 14px;
  background: white;
  padding: 0 19px;
  width: 100%;
  min-height: 56px;
  color: var(--muted);
}
.search:focus-within {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px #ed168115;
}
.search input {
  border: 0;
  background: transparent;
  outline: none;
  flex: 1;
  min-width: 0;
  height: 54px;
  font-size: 16px;
  color: var(--text);
}
.search input:focus-visible {
  outline: none;
}
.search input::placeholder {
  color: var(--muted);
}
.filter-toggle {
  display: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 16px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 32px;
}
.filters {
  align-self: start;
}
.filter-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--navy);
  display: block;
  margin-bottom: 13px;
}
.category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 3px;
  text-align: left;
  background: transparent;
  font-size: 14px;
  border-radius: 10px;
  gap: 10px;
  min-height: 45px;
}
.category:hover {
  background: #efedf5;
}
.category.active {
  background: var(--navy);
  color: white;
  font-weight: 600;
}
.category .count {
  font-size: 12px;
  color: var(--muted);
}
.category.active .count {
  color: #d4ccea;
}
.filter-separator {
  height: 1px;
  background: var(--line);
  margin: 23px 0;
}
.filters select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 9px 10px;
  font-size: 14px;
  color: var(--text);
  height: 46px;
}
.check-row {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0;
  min-height: 44px;
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
  flex-shrink: 0;
}
.reset-button {
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0 4px;
}
.reset-button:hover {
  color: var(--pink);
}
.sidebar-note {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding: 26px 12px;
  font-size: 13px;
  color: var(--muted);
}
.mini-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink);
  color: white;
  font-weight: 750;
  font-size: 12px;
  margin-bottom: 14px;
}
.catalog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 19px;
}
h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--navy);
  font-weight: 700;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.catalog-top .muted {
  display: block;
  margin-top: 5px;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}
.sort-control select {
  border: 0;
  background: transparent;
  max-width: 210px;
  color: var(--navy);
  font-size: 13px;
  min-height: 44px;
}
.availability-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eeeaf7;
  border-radius: 11px;
  color: #51456e;
  font-size: 13px;
  padding: 12px 14px;
  margin-bottom: 23px;
}
.info-icon {
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  line-height: 16px;
  text-align: center;
  font-family: Georgia, serif;
  flex-shrink: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.card {
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #20124b0e;
}
.card-image-link {
  display: block;
  background: #efedf2;
  position: relative;
}
.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  height: auto;
}
.status-badge {
  position: absolute;
  bottom: 9px;
  left: 9px;
  font-size: 12px;
  background: #fffc;
  color: var(--navy);
  border-radius: 7px;
  padding: 3px 8px;
  backdrop-filter: blur(8px);
}
.status-badge.expired {
  background: #3c334ee6;
  color: white;
}
.card-body {
  padding: 17px 17px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.partner {
  font-size: 12px;
  letter-spacing: 0.045em;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 7px;
}
.card-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 650;
  color: var(--navy);
  letter-spacing: -0.02em;
  min-height: 46px;
}
.card-title a:hover {
  color: var(--pink);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.card-meta svg {
  flex-shrink: 0;
}
.card-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 17px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.price strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 650;
}
.add-button {
  background: var(--soft);
  color: var(--pink-dark);
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 650;
  min-height: 42px;
  white-space: nowrap;
}
.add-button:hover {
  background: #ffdce9;
}
.add-button.added {
  background: #eeeaf7;
  color: var(--navy);
}
.add-button:disabled {
  background: #f0eff3;
  color: var(--muted);
}
.loading {
  padding: 60px 20px;
  text-align: center;
  grid-column: 1/-1;
  color: var(--muted);
}
.empty-state {
  text-align: center;
  padding: 80px 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.empty-symbol {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--pink);
  font-size: 26px;
  margin: 0 auto 20px;
}
.empty-state h3 {
  font-size: 22px;
  color: var(--navy);
}
.empty-state p {
  color: var(--muted);
  margin: 10px 0 24px;
}
.primary-button {
  background: var(--pink);
  color: white;
  font-size: 15px;
  font-weight: 650;
  border-radius: 11px;
  padding: 12px 22px;
  min-height: 48px;
}
.primary-button:hover {
  background: var(--pink-dark);
}
.primary-button:disabled {
  background: #e9e6ef;
  color: #736b84;
}
.footer {
  border-top: 1px solid var(--line);
  background: white;
}
.footer-inner {
  max-width: 1360px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  padding: 25px 48px;
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  border-radius: 12px;
  box-shadow: 0 12px 28px #21134f22;
  max-width: calc(100vw - 32px);
  width: max-content;
  padding: 14px 21px;
  font-size: 14px;
  z-index: 20;
}
.back-link {
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 27px;
  min-height: 44px;
}
.back-link:hover {
  color: var(--pink);
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.9fr);
  gap: 40px;
  align-items: start;
}
.detail-image {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: white;
}
.detail-summary .partner {
  margin-bottom: 12px;
}
.detail-summary h1 {
  font-size: 32px;
  line-height: 1.25;
}
.detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.pill {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 7px 10px;
}
.exchange-panel {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: var(--radius);
  margin-top: 24px;
}
.exchange-panel .price {
  font-size: 14px;
}
.exchange-panel .price strong {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 7px;
}
.exchange-panel button {
  width: 100%;
  margin-top: 17px;
}
.exchange-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}
.detail-body {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 32px;
  max-width: 770px;
}
.detail-body h2 {
  font-size: 22px;
  margin-bottom: 18px;
}
.description {
  white-space: pre-line;
  line-height: 1.75;
  font-size: 16px;
  color: #504b5c;
  overflow-wrap: anywhere;
}
.conditions {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.conditions dl {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 12px;
  margin: 0;
  font-size: 14px;
}
.conditions dt {
  color: var(--muted);
}
.conditions dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.partner-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 18px;
  font-size: 14px;
  margin-top: 24px;
  color: var(--navy);
  min-height: 44px;
}
.partner-link:hover {
  border-color: var(--pink);
}
.cart-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.cart-heading h1 {
  font-size: 36px;
}
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 28px;
  align-items: start;
}
.cart-items {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px;
}
.cart-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child {
  border-bottom: 0;
}
.cart-item img {
  width: 156px;
  aspect-ratio: 16/9;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item h2 {
  font-size: 18px;
}
.cart-item .price {
  margin-top: 9px;
}
.remove-button {
  background: transparent;
  color: var(--muted);
  padding: 8px;
  min-width: 44px;
  font-size: 22px;
}
.remove-button:hover {
  color: var(--pink);
}
.cart-total {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  position: sticky;
  top: 24px;
}
.cart-total h2 {
  font-size: 22px;
}
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  margin-top: 20px;
}
.total-main {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  font-weight: 650;
}
.cart-total button {
  width: 100%;
  margin-top: 24px;
}
.cart-total p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}
.related {
  margin-top: 45px;
}
.related h2 {
  margin-bottom: 22px;
}
.related .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
}
.error-note {
  background: var(--soft);
  color: var(--pink-dark);
  padding: 12px 15px;
  margin-top: 20px;
  border-radius: 10px;
  font-size: 14px;
}
.cart-empty {
  max-width: 680px;
  margin: 15px auto 60px;
}
.error-surface {
  padding: 60px;
  text-align: center;
}
.error-surface p {
  margin: 16px 0;
}
.footer-inner span:first-child {
  font-weight: 600;
  color: var(--navy);
}
@media (min-width: 1500px) {
  .page {
    padding-top: 45px;
  }
  .grid {
    gap: 24px;
  }
  .card-body {
    padding: 20px;
  }
}
@media (max-width: 1120px) {
  .header-inner,
  .page,
  .footer-inner {
    padding-left: 30px;
    padding-right: 30px;
  }
  .catalog-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-title {
    font-size: 18px;
  }
  .detail-layout {
    gap: 28px;
  }
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  .cart-item img {
    width: 120px;
  }
  .cart-item {
    gap: 14px;
  }
  .sort-control {
    font-size: 12px;
  }
  .sort-control select {
    max-width: 185px;
  }
}
@media (max-width: 760px) {
  .header-inner {
    padding: 16px 20px;
    min-height: 82px;
    gap: 16px;
  }
  .brand img {
    width: 169px;
    height: auto;
    max-height: 56px;
  }
  .brand-divider {
    height: 28px;
  }
  .market-link {
    font-size: 15px;
  }
  .header-cart {
    padding: 9px 11px;
    gap: 9px;
  }
  .cart-label {
    display: none;
  }
  .header-spacer {
    min-width: 0;
  }
  .page {
    padding: 29px 20px 50px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.07em;
  }
  h1 {
    font-size: 34px;
  }
  .heading-note {
    display: none;
  }
  .page-heading p {
    font-size: 14px;
  }
  .catalog-tools {
    display: block;
    margin-bottom: 23px;
  }
  .search {
    min-height: 52px;
    padding: 0 14px;
  }
  .search input {
    height: 50px;
    font-size: 15px;
  }
  .filter-toggle {
    display: block;
    width: 100%;
    margin-top: 12px;
    font-size: 14px;
    min-height: 46px;
    color: var(--navy);
    font-weight: 600;
  }
  .catalog-layout {
    display: block;
  }
  .filters {
    display: none;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 26px;
  }
  .filters.open {
    display: block;
  }
  .sidebar-note {
    display: none;
  }
  .category {
    font-size: 15px;
  }
  .filter-title,
  .check-row {
    font-size: 15px;
  }
  .catalog-top {
    align-items: start;
  }
  .catalog-top h2 {
    font-size: 22px;
  }
  .sort-control {
    font-size: 0;
    display: block;
    max-width: 46%;
  }
  .sort-control select {
    font-size: 12px;
    width: 100%;
    padding: 0;
    max-width: 100%;
  }
  .availability-note {
    font-size: 12px;
    line-height: 1.6;
    align-items: start;
    padding: 11px 13px;
  }
  .info-icon {
    margin-top: 2px;
  }
  .grid {
    gap: 14px;
  }
  .card {
    border-radius: 13px;
  }
  .card-body {
    padding: 13px;
  }
  .partner {
    font-size: 12px;
    letter-spacing: 0;
    line-height: 1.4;
  }
  .card-title {
    font-size: 15px;
    min-height: 41px;
  }
  .card-meta {
    font-size: 12px;
    gap: 4px;
    margin-top: 11px;
  }
  .card-foot {
    flex-direction: column;
    align-items: stretch;
    padding-top: 13px;
    margin-top: 14px;
    gap: 10px;
  }
  .price {
    font-size: 12px;
  }
  .price strong {
    font-size: 13px;
  }
  .add-button {
    width: 100%;
    font-size: 13px;
    min-height: 42px;
  }
  .status-badge {
    font-size: 12px;
    left: 5px;
    bottom: 5px;
    padding: 2px 6px;
  }
  .footer-inner {
    padding: 23px 20px;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
  }
  .detail-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .detail-image {
    width: 100%;
  }
  .detail-summary {
    width: 100%;
  }
  .detail-summary h1 {
    font-size: 28px;
  }
  .detail-body {
    margin-top: 24px;
    padding: 22px;
  }
  .detail-body h2 {
    font-size: 21px;
  }
  .description {
    font-size: 16px;
    line-height: 1.7;
  }
  .conditions dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .conditions dd {
    margin-bottom: 14px;
  }
  .cart-layout {
    display: block;
  }
  .cart-total {
    margin-top: 20px;
    position: static;
  }
  .cart-heading h1 {
    font-size: 32px;
  }
  .cart-items {
    padding: 0 16px;
  }
  .cart-item {
    flex-wrap: wrap;
    gap: 13px;
    padding: 20px 0;
  }
  .cart-item img {
    width: 106px;
  }
  .cart-item h2 {
    font-size: 16px;
  }
  .cart-item .price {
    font-size: 12px;
  }
  .remove-button {
    align-self: flex-start;
  }
  .related .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .related .card:last-child {
    display: none;
  }
  .back-link {
    margin-bottom: 17px;
  }
  .empty-state {
    padding: 45px 20px;
  }
}
@media (max-width: 390px) {
  .header-inner {
    padding: 14px 16px;
    gap: 12px;
  }
  .brand img {
    width: 147px;
  }
  .brand-divider {
    display: none;
  }
  .market-link {
    font-size: 14px;
  }
  .header-cart {
    padding: 8px;
  }
  .page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .grid {
    gap: 10px;
  }
  .card-body {
    padding: 11px;
  }
  .card-title {
    font-size: 14px;
  }
  .cart-count {
    width: 20px;
    height: 20px;
  }
  .sort-control select {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@font-face {
  font-family: Montserrat;
  src: url('assets/montserrat.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.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;
}
.cart-empty .primary-button,
.empty-state > a.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  padding: 5px 10px;
  min-height: 52px;
  color: var(--navy);
}
.header-profile:hover,
.header-profile[aria-current='page'] {
  background: #f1edf8;
}
.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fce3ef;
  color: var(--pink-dark);
  font-weight: 700;
  flex-shrink: 0;
}
.profile-avatar.small {
  width: 40px;
  height: 40px;
  font-size: 13px;
}
.header-profile-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}
.header-profile-copy strong {
  font-weight: 650;
  font-size: 14px;
  color: var(--navy);
  white-space: nowrap;
}
.compact-profile {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px;
  margin-bottom: 26px;
  transition: border-color 0.2s;
}
.compact-profile:hover {
  border-color: var(--pink);
}
.compact-profile-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  gap: 6px;
}
.demo-tag {
  font-size: 12px;
  background: var(--soft);
  color: var(--pink-dark);
  border-radius: 5px;
  padding: 2px 6px;
}
.compact-profile > strong {
  display: block;
  color: var(--navy);
  font-size: 32px;
  letter-spacing: -0.04em;
  margin: 8px 0 10px;
  line-height: 1.3;
}
.compact-profile > strong span {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  margin-left: 7px;
}
.compact-profile-bottom {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 12px;
  color: var(--navy);
}
.profile-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.demo-label {
  color: #605275;
  background: #eeebf5;
  border-radius: 8px;
  font-size: 12px;
  padding: 7px 11px;
}
.profile-demo-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  background: #eeebf5;
  color: #605275;
  padding: 13px 16px;
  border-radius: 12px;
  margin-bottom: 26px;
}
.profile-top {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
}
.identity-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.profile-avatar.large {
  width: 92px;
  height: 92px;
  font-size: 28px;
}
.identity-copy {
  min-width: 0;
}
.identity-copy h2 {
  font-size: 25px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.identity-copy p {
  margin-top: 9px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}
.identity-caption {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 22px;
}
.balance-card {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 30px 34px;
  position: relative;
  overflow: hidden;
}
.balance-card:after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border: 35px solid #ffffff07;
  border-radius: 50%;
  right: -35px;
  top: -40px;
  pointer-events: none;
}
.balance-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #ded7ec;
  position: relative;
  z-index: 1;
}
.balance-demo {
  font-size: 12px;
  border: 1px solid #ffffff28;
  color: #ded7ec;
  border-radius: 5px;
  padding: 2px 7px;
}
.balance-number {
  font-size: 56px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.04em;
  margin: 11px 0 7px;
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere;
}
.balance-number > span {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 12px;
  white-space: nowrap;
}
.balance-card > p {
  color: #cbc2df;
  font-size: 13px;
  margin-bottom: 25px;
}
.balance-card > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  min-height: 45px;
}
.points-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 32px;
}
.points-stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px 25px;
}
.points-stat > span {
  font-size: 14px;
  color: var(--muted);
}
.points-stat > strong {
  display: block;
  font-size: 28px;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-top: 8px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.points-stat small {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 8px;
}
.points-stat > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.history-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 27px 30px;
}
.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 23px 0 8px;
}
.history-filter {
  background: #f5f3f8;
  color: var(--muted);
  font-size: 14px;
  border-radius: 9px;
  padding: 8px 16px;
  min-height: 42px;
}
.history-filter.active {
  background: var(--navy);
  color: white;
}
.history-filter:hover {
  background: #e9e3f2;
}
.history-filter.active:hover {
  background: var(--navy);
}
.points-history {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history-item {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.transaction-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--pink-dark);
  font-size: 25px;
  font-weight: 500;
  flex-shrink: 0;
}
.transaction-icon.pending {
  background: #f0edf5;
  color: #796990;
  font-size: 25px;
}
.transaction-icon.debit {
  background: #efedf7;
  color: var(--navy);
}
.transaction-content {
  flex: 1;
  min-width: 0;
}
.transaction-content h3 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 650;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.transaction-content p {
  font-size: 13px;
  color: var(--muted);
  margin: 3px 0 6px;
}
.transaction-content time {
  font-size: 12px;
  color: var(--muted);
}
.transaction-amount {
  text-align: right;
  min-width: 108px;
  color: var(--pink-dark);
}
.transaction-amount strong {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 650;
  display: block;
}
.transaction-amount strong > span {
  font-size: 12px;
  font-weight: 500;
  margin-left: 6px;
}
.transaction-amount.pending {
  color: #81758f;
}
.transaction-status {
  font-size: 12px;
  color: var(--muted);
}
.history-footnote {
  font-size: 12px;
  color: var(--muted);
  padding-top: 22px;
}
.history-empty {
  padding: 55px 20px;
  text-align: center;
}
.history-empty h3 {
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 10px;
}
.history-empty p {
  color: var(--muted);
  font-size: 14px;
}
.market-link[aria-current='page'] {
  color: var(--pink-dark);
}
@media (max-width: 1120px) {
  .header-inner {
    gap: 16px;
  }
  .identity-card {
    padding: 26px;
    gap: 18px;
  }
  .profile-avatar.large {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }
  .identity-copy h2 {
    font-size: 22px;
  }
  .balance-card {
    padding: 26px;
  }
  .balance-number {
    font-size: 49px;
  }
  .points-stats {
    gap: 18px;
  }
  .points-stat {
    padding: 20px;
  }
}
@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 14px;
  }
  .header-spacer {
    display: none;
  }
  .header-cart {
    margin-left: auto;
    order: 3;
  }
  .header-profile {
    order: 4;
    width: 100%;
    border-top: 1px solid var(--line);
    padding: 13px 0 0;
    gap: 10px;
    border-radius: 0;
    min-height: 51px;
  }
  .header-profile:hover,
  .header-profile[aria-current='page'] {
    background: transparent;
  }
  .header-profile-copy {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }
  .header-profile-copy > span {
    font-size: 14px;
    color: var(--navy);
  }
  .header-profile-copy strong {
    font-size: 14px;
  }
  .profile-avatar.small {
    width: 31px;
    height: 31px;
    font-size: 12px;
  }
  .profile-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }
  .profile-demo-note {
    font-size: 12px;
    align-items: start;
    margin-bottom: 22px;
  }
  .profile-demo-note .info-icon {
    margin-top: 3px;
  }
  .profile-top {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .identity-card {
    padding: 24px;
    gap: 18px;
  }
  .profile-avatar.large {
    width: 64px;
    height: 64px;
    font-size: 21px;
  }
  .identity-copy h2 {
    font-size: 22px;
  }
  .identity-copy p {
    font-size: 13px;
  }
  .identity-caption {
    margin-top: 10px;
  }
  .balance-card {
    padding: 25px;
  }
  .balance-number {
    font-size: 48px;
  }
  .balance-number > span {
    font-size: 15px;
  }
  .balance-card > p {
    font-size: 13px;
  }
  .points-stats {
    gap: 10px;
    margin: 16px 0 24px;
    grid-template-columns: 1fr;
  }
  .points-stat {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px 16px;
  }
  .points-stat > span {
    font-size: 14px;
  }
  .points-stat > strong {
    font-size: 24px;
    margin: 0;
    text-align: right;
  }
  .points-stat > p {
    grid-column: 1/-1;
    margin: 0;
    font-size: 12px;
  }
  .points-stat small {
    font-size: 12px;
  }
  .history-panel {
    padding: 22px 18px;
  }
  .history-heading h2 {
    font-size: 21px;
  }
  .history-filters {
    gap: 6px;
    margin: 20px 0 4px;
  }
  .history-filter {
    font-size: 13px;
    padding: 8px 11px;
    min-height: 42px;
  }
  .history-item {
    gap: 12px;
    flex-wrap: wrap;
    padding: 19px 0;
  }
  .transaction-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 21px;
    align-self: start;
    margin-top: 2px;
  }
  .transaction-content {
    flex-basis: calc(100% - 46px);
  }
  .transaction-content h3 {
    font-size: 15px;
  }
  .transaction-content p {
    font-size: 12px;
  }
  .transaction-amount {
    padding-left: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    margin-top: 0;
    min-width: 0;
  }
  .transaction-amount strong {
    font-size: 20px;
  }
  .transaction-status {
    font-size: 12px;
  }
  .history-empty {
    padding: 37px 8px;
  }
  .compact-profile {
    margin-bottom: 23px;
  }
}
@media (max-width: 390px) {
  .header-inner {
    column-gap: 11px;
  }
  .header-profile-copy {
    gap: 7px;
  }
  .header-profile-copy > span,
  .header-profile-copy strong {
    font-size: 13px;
  }
  .profile-heading h1 {
    font-size: 31px;
  }
  .balance-number {
    font-size: 43px;
  }
  .balance-number > span {
    font-size: 14px;
    margin-left: 8px;
  }
  .balance-caption {
    font-size: 13px;
  }
  .history-heading {
    align-items: start;
    gap: 8px;
    flex-wrap: wrap;
  }
  .history-filter {
    font-size: 12px;
    padding: 8px 9px;
  }
  .identity-card {
    padding: 20px;
  }
  .identity-copy h2 {
    font-size: 20px;
  }
}
.program-nav {
  background: white;
  border-bottom: 1px solid var(--line);
}
.program-nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  gap: 30px;
}
.program-nav a {
  display: flex;
  align-items: center;
  min-height: 55px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  white-space: nowrap;
}
.program-nav a[aria-current='page'] {
  color: var(--navy);
}
.program-nav a[aria-current='page']:after {
  content: '';
  height: 3px;
  border-radius: 2px;
  background: var(--pink);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.profile-email {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 10px;
}
.profile-signout {
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 13px;
  min-height: 44px;
  padding: 5px 0;
  margin-top: 10px;
}
.profile-signout:hover {
  color: var(--pink);
}
.profile-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.profile-quick-links a {
  background: #eeebf5;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--navy);
}
.profile-quick-links a:hover {
  border-color: var(--pink);
}
.profile-quick-links a > span {
  font-size: 16px;
  font-weight: 600;
}
.profile-quick-links strong {
  font-size: 24px;
}
.profile-quick-links small {
  margin-left: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 80px;
  padding: 20px 65px 35px;
  align-items: start;
}
.auth-intro {
  padding-top: 24px;
}
.auth-intro h1 {
  font-size: 38px;
  line-height: 1.25;
  max-width: 420px;
}
.auth-intro > p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 18px;
  line-height: 1.8;
  max-width: 400px;
}
.auth-start-balance {
  margin-top: 32px;
  padding: 25px;
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  max-width: 360px;
}
.auth-start-balance > span {
  font-size: 14px;
  color: #d3cbe0;
}
.auth-start-balance strong {
  display: block;
  font-size: 50px;
  line-height: 1.3;
  margin: 8px 0;
  letter-spacing: -0.03em;
}
.auth-start-balance small {
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 500;
}
.auth-start-balance p {
  font-size: 13px;
  color: #d3cbe0;
  line-height: 1.65;
}
.auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.auth-tabs {
  display: flex;
  padding: 4px;
  background: var(--bg);
  border-radius: 11px;
  margin-bottom: 26px;
}
.auth-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  flex: 1;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.auth-tabs a.active {
  background: var(--navy);
  color: white;
}
.auth-card h2 {
  font-size: 24px;
  margin-bottom: 25px;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 20px;
}
.auth-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #faf9fc;
  border-radius: 10px;
  min-height: 49px;
  padding: 11px 13px;
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
}
.auth-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.auth-card .primary-button {
  width: 100%;
  font-size: 14px;
  margin-top: 5px;
}
.auth-error {
  color: var(--pink-dark);
  background: var(--soft);
  padding: 12px;
  border-radius: 9px;
  font-size: 13px;
  margin: 0 0 17px;
}
.auth-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 22px;
}
.auth-bottom a {
  color: var(--pink-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.join-program > strong {
  font-size: 21px;
}
.program-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.program-filters button > span {
  margin-left: 9px;
  font-size: 12px;
  opacity: 0.7;
}
.program-empty {
  padding: 65px 30px;
}
.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.goal-card,
.achievement-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
  display: flex;
  flex-direction: column;
}
.goal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.goal-card-top > strong {
  font-size: 14px;
  color: var(--pink-dark);
}
.goal-card h2,
.achievement-card h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-top: 24px;
}
.goal-card > p,
.achievement-card > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 13px;
}
.goal-card-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.achievement-card {
  align-items: center;
  text-align: center;
}
.achievement-symbol {
  font-size: 38px;
  width: 70px;
  height: 70px;
  background: #f2eff7;
  color: #968da4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 8px 0 18px;
}
.achievement-card.earned .achievement-symbol {
  color: var(--pink-dark);
  background: var(--soft);
}
.achievement-card h2 {
  margin-top: 18px;
}
.achievement-card > p {
  margin-bottom: 12px;
}
@media (max-width: 1120px) {
  .program-nav-inner {
    padding: 0 30px;
  }
  .auth-layout {
    padding: 10px 20px 30px;
    grid-template-columns: 1fr 410px;
    gap: 35px;
  }
  .header-inner > .market-link {
    font-size: 15px;
  }
  .goal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .program-nav-inner {
    padding: 0 20px;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .program-nav-inner::-webkit-scrollbar {
    display: none;
  }
  .program-nav a {
    font-size: 13px;
    min-height: 51px;
  }
  .header-inner > .market-link {
    font-size: 12px;
    max-width: 82px;
    line-height: 1.5;
  }
  .header-inner > .brand-divider {
    display: none;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 26px;
  }
  .auth-intro {
    padding-top: 0;
  }
  .auth-intro h1 {
    font-size: 32px;
  }
  .auth-intro > p {
    font-size: 15px;
    margin-top: 13px;
  }
  .auth-start-balance {
    max-width: none;
    margin-top: 20px;
    padding: 22px;
  }
  .auth-start-balance strong {
    font-size: 43px;
  }
  .auth-intro > .partner-link {
    margin-top: 17px;
  }
  .auth-card {
    padding: 24px;
  }
  .profile-quick-links {
    gap: 12px;
    margin-top: 16px;
    grid-template-columns: 1fr;
  }
  .profile-quick-links a {
    padding: 17px 20px;
  }
  .profile-quick-links a > span {
    font-size: 15px;
  }
  .profile-quick-links small {
    font-size: 12px;
  }
  .goal-grid {
    grid-template-columns: 1fr;
  }
  .program-empty {
    padding: 45px 20px;
  }
  .program-empty h2 {
    font-size: 22px;
  }
  .profile-top .identity-card {
    align-items: start;
  }
}
@media (max-width: 390px) {
  .header-inner > .market-link {
    display: none;
  }
  .program-nav-inner {
    padding: 0 16px;
    gap: 22px;
  }
  .auth-card {
    padding: 21px;
  }
  .auth-card h2 {
    font-size: 22px;
  }
  .auth-card .primary-button {
    font-size: 13px;
  }
  .auth-intro h1 {
    font-size: 30px;
  }
}

/* Reward fulfilment uses the existing programme colours and button styles. */
.reward-purchase-panel {
  margin-top: 14px;
}
.reward-purchase-panel .primary-button {
  width: 100%;
  white-space: normal;
}
.reward-purchase-panel .exchange-hint {
  margin: 12px 0 0;
}
.cart-item-info .reward-purchase-panel {
  max-width: 440px;
}
.reward-orders-panel {
  border: 1px solid var(--line, #e7e3ee);
  border-radius: 24px;
  padding: 28px;
  margin: 28px 0;
}
.reward-orders-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.reward-order {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line, #e7e3ee);
}
.reward-order > div {
  min-width: 0;
}
.reward-order h3 {
  margin: 5px 0 10px;
}
.reward-order h3 a {
  color: inherit;
  text-decoration: none;
}
.reward-order p {
  line-height: 1.5;
}
.reward-order time,
.reward-order small {
  color: var(--muted, #83808f);
  font-size: 13px;
}
.reward-order > strong {
  color: var(--pink, #ed008e);
  white-space: nowrap;
}
.reward-order > strong small {
  display: block;
  font-weight: 400;
  text-align: right;
}
.reward-order p span {
  overflow-wrap: anywhere;
}
.reward-email-retry {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.reward-orders-empty {
  padding: 12px 0;
}
.purchase-dialog {
  border: 0;
  border-radius: 24px;
  padding: 28px;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  box-sizing: border-box;
  color: var(--navy, #21134f);
  box-shadow: 0 20px 90px #22144f44;
}
.purchase-dialog::backdrop {
  background: #22144f88;
}
.purchase-dialog-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.purchase-dialog-heading h2 {
  margin: 0;
  font-size: 26px;
}
.purchase-dialog-heading .remove-button {
  position: static;
  flex-shrink: 0;
}
.purchase-dialog h3 {
  font-size: 22px;
  line-height: 1.35;
  margin: 10px 0 18px;
}
.purchase-price {
  font-size: 26px;
  font-weight: 800;
  color: var(--pink, #ed008e);
}
.purchase-dialog p {
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.purchase-dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.purchase-dialog .primary-button:disabled {
  cursor: wait;
}
.reward-purchase-panel button:disabled {
  cursor: default;
}
@media (max-width: 600px) {
  .reward-orders-panel {
    padding: 20px;
  }
  .reward-orders-panel .hub-section-heading {
    align-items: flex-start;
    gap: 16px;
  }
  .reward-orders-panel h2 {
    font-size: 23px;
  }
  .purchase-dialog {
    padding: 22px;
  }
  .purchase-dialog-actions {
    gap: 12px;
  }
  .purchase-dialog-actions .primary-button {
    padding: 14px 18px;
  }
  .reward-order {
    gap: 12px;
  }
  .cart-item-info .reward-purchase-panel {
    max-width: 100%;
  }
}
.purchased-promo {
  border-radius: 14px;
  background: var(--bg, #f5f5f9);
  padding: 14px 16px;
  margin: 16px 0;
}
.purchased-promo > span {
  font-size: 12px;
  color: var(--muted, #83808f);
}
.purchased-promo > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
}
.purchased-promo code {
  font-size: 20px;
  font-weight: 700;
  word-break: break-all;
  user-select: all;
}
.purchased-promo button {
  border: 0;
  background: none;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

/* Keep forms usable between the phone and desktop breakpoints. */
@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    gap: 26px;
  }
  .auth-card,
  .auth-intro {
    min-width: 0;
  }
}
@media (max-width: 760px) {
  .primary-button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .search input,
  .hub-news-search input,
  .activation-field input,
  .goals-search input,
  .goals-selects select,
  .sort-control select,
  #region {
    font-size: 16px;
  }
  .purchase-dialog-actions {
    flex-wrap: wrap;
  }
  .purchase-dialog-actions .primary-button {
    min-width: 0;
  }
  .card-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 360px) {
  .purchase-dialog-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .purchase-dialog-actions button {
    width: 100%;
  }
}
