:root {
  color-scheme: light;
  --green: #173b24;
  --green-soft: #e8efe7;
  --ink: #172119;
  --muted: #667166;
  --line: #e4e8e1;
  --soft: #f7f6f2;
  --white: #ffffff;
  --shadow: 0 12px 28px rgba(23, 59, 36, 0.08);
  --radius: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Arial, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, "Segoe UI", sans-serif;
}

body.is-telegram {
  background: var(--tg-theme-bg-color, var(--white));
  color: var(--tg-theme-text-color, var(--ink));
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  padding: 14px 14px calc(92px + var(--safe-bottom));
  background: var(--white);
}

main,
.app-page,
.section-head,
.section-head > div,
.home-card,
.home-block,
.profile-section,
.product-card,
.cart-item {
  min-width: 0;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 0 12px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.app-eyebrow {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.app-header h1,
.profile-hero h2,
.content-section h2,
.info-card h3 {
  margin: 0;
  color: var(--green);
  line-height: 1.08;
  text-transform: uppercase;
}

.app-header h1 {
  margin-top: 6px;
  font-size: 23px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  background: var(--white);
  font-size: 22px;
}

.profile-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.app-page {
  display: none;
  margin-top: 14px;
}

.app-page.is-active {
  display: block;
}

.section-head h2,
.profile-section h2,
.profile-hero__copy h2 {
  margin: 6px 0 0;
  color: var(--green);
  font-size: 22px;
  line-height: 1.08;
  text-transform: uppercase;
}

.home-card,
.home-block {
  margin-top: 12px;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--white);
}

.auth-card strong {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
}

.auth-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.auth-card button {
  min-height: 36px;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--soft);
}

.home-card:first-child,
.app-page > .home-card:first-child {
  margin-top: 0;
}

.home-card > span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-card strong {
  color: var(--green);
  font-size: 24px;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.home-card p,
.compact-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.home-card button,
.text-button {
  width: max-content;
  min-height: 38px;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--green);
  background: var(--white);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-card--bonus {
  color: var(--white);
  background: var(--green);
}

.home-card--bonus > span,
.home-card--bonus strong,
.home-card--bonus p {
  color: var(--white);
}

.home-card--bonus p {
  opacity: .76;
}

.home-card--bonus button {
  border-color: var(--white);
}

.text-button {
  flex: 0 0 auto;
  min-height: 34px;
  max-width: 118px;
  padding-inline: 10px;
  background: var(--green-soft);
  white-space: normal;
}

.bonus-shop {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(154px, 46%);
  gap: 10px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.bonus-shop::-webkit-scrollbar {
  display: none;
}

.reward-card {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: var(--soft);
}

.reward-card img {
  width: 100%;
  aspect-ratio: 1 / .86;
  object-fit: cover;
  border-radius: 6px;
  background: var(--white);
}

.reward-card span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.reward-card strong {
  color: var(--green);
  font-size: 13px;
}

.reward-card button,
.promo-spotlight button {
  width: max-content;
  min-height: 34px;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 0 11px;
  color: var(--white);
  background: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-spotlight {
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  background: var(--soft);
}

.promo-spotlight img {
  width: 104px;
  height: 116px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--white);
}

.promo-spotlight div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.promo-spotlight span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.promo-spotlight strong {
  color: var(--green);
  font-size: 21px;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.promo-spotlight p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mini-product-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 42%);
  gap: 10px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.mini-product-row::-webkit-scrollbar {
  display: none;
}

.mini-product {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  color: var(--ink);
  background: var(--soft);
  text-align: left;
}

.mini-product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--white);
}

.mini-product span {
  display: -webkit-box;
  overflow: hidden;
  min-height: 32px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-product b {
  color: var(--green);
  font-size: 12px;
}

.category-grid {
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.category-grid button {
  min-width: 0;
  overflow: hidden;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  color: var(--green);
  background: var(--white);
  text-align: left;
}

.category-grid img {
  width: 100%;
  aspect-ratio: 1 / .86;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft);
}

.category-grid span {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.category-grid b {
  width: max-content;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}

.profile-hero {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.profile-hero__copy,
.bonus-card,
.quick-card,
.content-section,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.profile-hero__copy {
  min-height: 190px;
  display: grid;
  align-content: end;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,255,255,.76)),
    url("../images/moonroos/real/lunatic-work.jpeg") right center / auto 100% no-repeat,
    var(--soft);
}

.profile-hero__copy > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.profile-hero h2 {
  max-width: 250px;
  margin-top: 8px;
  font-size: 25px;
}

.profile-hero p,
.content-section p,
.info-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.profile-hero__copy p {
  max-width: 260px;
}

.profile-summary {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.profile-summary article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--soft);
}

.profile-summary span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
}

.profile-summary p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.hero-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--green);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-actions a:first-child {
  color: var(--white);
  background: var(--green);
}

.bonus-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  color: var(--white);
  background: var(--green);
}

.bonus-card span {
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.bonus-card strong {
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}

.bonus-card small {
  color: rgba(255,255,255,.74);
  font-size: 12px;
  line-height: 1.35;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.quick-card {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  padding: 14px;
  text-decoration: none;
}

.quick-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.quick-card strong {
  color: var(--green);
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
}

.content-section {
  scroll-margin-top: 74px;
  margin-top: 12px;
  overflow: hidden;
  padding: 16px;
  background: var(--white);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.content-section h2 {
  margin-top: 6px;
  font-size: 22px;
}

.section-meta {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px -16px 0;
  padding: 0 16px 2px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--green);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.chip.is-active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.product-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.product-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  background: var(--soft);
}

.product-card img {
  width: 92px;
  height: 98px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--white);
}

.product-card__body {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.product-card__group {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card b {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.22;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card small {
  color: var(--muted);
  font-size: 12px;
}

.product-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) 42px;
  gap: 8px;
}

.product-card__actions a,
.product-card__actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.product-card__actions a {
  color: var(--white);
  background: var(--green);
}

.product-card__actions button {
  color: var(--green);
  background: var(--white);
}

.product-card__actions button.is-in-cart {
  color: var(--white);
  background: var(--green);
}

.product-card__actions button:last-child {
  min-width: 42px;
}

.product-card__actions button.is-active {
  color: var(--white);
  background: var(--green);
}

.empty-state {
  margin: 0;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--soft);
  font-size: 14px;
}

.info-card {
  margin-top: 12px;
  padding: 16px;
}

.info-card h3 {
  font-size: 18px;
}

.rules-grid,
.promo-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mini-card,
.promo-card {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--soft);
}

.mini-card span,
.promo-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-card strong {
  display: block;
  margin-top: 10px;
  color: var(--green);
  font-size: 24px;
}

.mini-card p,
.promo-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.promo-card h3 {
  margin: 8px 0 0;
  color: var(--green);
  font-size: 17px;
  line-height: 1.1;
  text-transform: uppercase;
}

.cart-list,
.order-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  background: var(--soft);
}

.cart-item img {
  width: 76px;
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--white);
}

.cart-item b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.22;
}

.cart-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.qty-control {
  width: max-content;
  display: grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.qty-control button {
  height: 34px;
  border: 0;
  color: var(--green);
  background: var(--white);
  font-weight: 900;
}

.qty-control span {
  display: grid;
  place-items: center;
  height: 34px;
  border-inline: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.checkout-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--soft);
}

.checkout-card h3 {
  margin: 0;
  color: var(--green);
  font-size: 18px;
  line-height: 1.1;
  text-transform: uppercase;
}

.checkout-card label,
.profile-list label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.checkout-card input,
.checkout-card select,
.checkout-card textarea,
.profile-list input,
.profile-list textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

.checkout-card select {
  appearance: none;
}

.checkout-card textarea {
  min-height: 82px;
  padding-top: 10px;
  resize: vertical;
}

.payment-methods {
  display: grid;
  gap: 8px;
}

.payment-methods > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-method {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--white);
}

.payment-method input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--green);
}

.payment-method strong {
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
}

.payment-method small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.profile-list textarea {
  min-height: 82px;
  padding-top: 10px;
  resize: vertical;
}

.checkout-card dl,
.order-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.checkout-card dl div,
.order-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-card dd,
.checkout-card dt,
.order-card dd,
.order-card dt {
  margin: 0;
}

.checkout-card dd,
.order-card dd {
  color: var(--green);
  font-weight: 900;
}

.pay-button {
  min-height: 46px;
  border: 1px solid var(--green);
  border-radius: 7px;
  color: var(--white);
  background: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pay-button--light {
  width: 100%;
  margin-top: 12px;
  color: var(--green);
  background: var(--white);
}

.payment-status,
.ref-link {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--soft);
}

.order-card > span {
  color: var(--muted);
  font-size: 12px;
}

.order-card h3 {
  margin: 7px 0 0;
  color: var(--green);
  font-size: 18px;
  text-transform: uppercase;
}

.order-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.order-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.order-actions button {
  min-height: 38px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green);
  background: var(--white);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-list,
.document-list,
.notice-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-menu {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.profile-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--ink);
  background: var(--soft);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.profile-menu a::after {
  content: ">";
  color: var(--green);
}

.profile-section {
  scroll-margin-top: 76px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.toggle-line {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: var(--soft);
}

.toggle-line input {
  min-height: 0;
}

.document-list a,
.notice-list span {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--ink);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.lesson-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lesson-list a {
  min-height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--ink);
  background: var(--soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, 560px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 8px 8px calc(8px + var(--safe-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.tabbar a,
.tabbar button {
  min-width: 0;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 999px;
  padding: 0 5px;
  color: var(--white);
  background: var(--green);
  font-size: 10px;
  line-height: 1;
}

.tabbar a.is-active,
.tabbar button.is-active {
  color: var(--white);
  background: var(--green);
}

.tabbar a.is-active .nav-badge,
.tabbar button.is-active .nav-badge {
  color: var(--green);
  background: var(--white);
}

@media (min-width: 520px) {
  .profile-hero {
    grid-template-columns: 1fr 190px;
  }

  .quick-grid,
  .rules-grid,
  .promo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .app-shell {
    padding-inline: 10px;
  }

  .profile-hero h2,
  .content-section h2 {
    font-size: 21px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .product-card img {
    width: 78px;
    height: 88px;
  }
}

@media (max-width: 420px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-card button {
    width: max-content;
  }

  .promo-spotlight {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .promo-spotlight img {
    width: 92px;
    height: 104px;
  }

  .promo-spotlight strong {
    font-size: 17px;
  }

  .reward-card span {
    overflow-wrap: anywhere;
  }

  .product-card__actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .product-card__actions button:last-child {
    grid-column: 1 / -1;
  }
}
