/* Referral cabinet - чёткая типографика, без серой каши */
.ln-referral {
  color: #111;
  -webkit-font-smoothing: antialiased;
}

.ln-referral .ln-cabinet__welcome {
  color: #111;
  letter-spacing: -0.02em;
}

.ln-referral .ln-cabinet__welcome small {
  color: #333;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 1;
}

.ln-referral .easystore-card-header {
  color: #111;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.ln-referral .easystore-card-body {
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ln-referral .ln-referral-balance-row {
  margin-bottom: 1.1rem;
}

.ln-referral-balance-card .easystore-card-body {
  padding: 1.15rem 1.25rem;
}

.ln-referral-balance__label {
  font-size: 0.95rem;
  color: #111;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
}

.ln-referral-balance__value {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0.35rem 0 0.45rem;
  color: #111;
  letter-spacing: -0.03em;
}

.ln-referral-balance__min {
  font-size: 0.92rem;
  font-weight: 700;
  color: #222;
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.ln-referral-balance__meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.ln-referral-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
}

.ln-referral-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border: 2px solid #111;
  border-radius: 999px;
  color: #111;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  background: #fff;
  line-height: 1.2;
}

.ln-referral-tabs a:hover {
  background: #fff8d6;
  color: #111;
}

.ln-referral-tabs a.is-active {
  background: #ffd400;
  color: #111;
}

.ln-referral-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border: 2px solid #111;
  border-radius: 12px;
  background: #ffd400;
  color: #111;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.2;
}

.ln-referral-btn:hover {
  color: #111;
  filter: brightness(0.97);
}

.ln-referral-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ln-referral-btn--ghost {
  background: #fff;
}

.ln-referral-hint {
  font-size: 0.94rem;
  color: #222;
  line-height: 1.5;
  font-weight: 500;
}

.ln-referral-hint a {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ln-referral-empty {
  color: #333;
  margin: 0;
  font-weight: 600;
  font-size: 0.94rem;
}

.ln-referral-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: #111;
}

.ln-referral-levels strong {
  font-weight: 800;
}

.ln-referral-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ln-referral-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border: 2px solid #111;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #111;
  background: #fff;
}

.ln-referral-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.ln-referral-qr-wrap code {
  font-weight: 800;
  color: #111;
  font-size: 0.95rem;
}

#ln-ref-qr canvas,
#ln-ref-qr img {
  border: 2px solid #111;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.ln-referral-table-wrap {
  overflow-x: auto;
}

.ln-referral-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: #111;
}

.ln-referral-table th,
.ln-referral-table td {
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.ln-referral-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #111;
  font-weight: 800;
  opacity: 1;
}

.ln-referral-table td {
  font-weight: 600;
  color: #1a1a1a;
}

.ln-referral-table .text-end {
  text-align: right;
}

.ln-referral-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.ln-referral-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.94rem;
  color: #111;
}

.ln-referral-field span {
  font-weight: 800;
}

.ln-referral-field input,
.ln-referral-field select,
.ln-referral-field textarea {
  border: 2px solid #111;
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-weight: 600;
  color: #111;
  background: #fff;
}

.ln-referral-receipt.is-hidden {
  display: none;
}

.ln-referral-agree-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ln-referral-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.94rem;
  line-height: 1.45;
  font-weight: 600;
  color: #111;
}

.ln-referral-check input {
  margin-top: 0.2rem;
}

.ln-referral-offer-preview {
  max-height: 280px;
  overflow: auto;
  border: 2px solid #111;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  font-size: 0.92rem;
  margin: 1rem 0;
  color: #1a1a1a;
  line-height: 1.5;
}

.ln-referral-offer-preview h2,
.ln-referral-offer-full h2 {
  font-size: 1.25rem;
  color: #111;
  font-weight: 800;
}

.ln-referral-offer-preview h3,
.ln-referral-offer-full h3 {
  font-size: 1.05rem;
  margin-top: 1rem;
  color: #111;
  font-weight: 800;
}

.ln-referral-alert--error {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fff0f0;
  border: 2px solid #c44;
  color: #7a1212;
  font-weight: 700;
}

.ln-referral-offer-page {
  background: #f5f6f8;
  min-height: 50vh;
}

.ln-referral-offer-full {
  background: #fff;
  border: 2px solid #111;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 8px 8px 0 #111;
  line-height: 1.55;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.ln-ref-terms {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.1rem;
}

.ln-ref-terms li {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.ln-ref-terms-box {
  margin: 0.75rem 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #fff8d6;
  border: 2px solid #111;
}

.ln-ref-terms-box__title {
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.ln-ref-offer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1.25rem;
}

.ln-ref-offer-register {
  color: #111;
  font-weight: 700;
}

/* Программа лояльности */
.ln-loyalty-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.ln-loyalty-hero__label {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111;
}

.ln-loyalty-hero__value {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0.3rem 0 0.45rem;
  color: #111;
  letter-spacing: -0.03em;
}

.ln-loyalty-hero__meta {
  font-size: 0.92rem;
  font-weight: 600;
  color: #222;
  line-height: 1.45;
  max-width: 340px;
}

.ln-loyalty-hero__spent {
  text-align: right;
}

.ln-loyalty-hero__spent-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #333;
}

.ln-loyalty-hero__spent-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
  margin-top: 0.2rem;
}

.ln-loyalty-progress-wrap {
  padding-top: 0;
}

.ln-loyalty-progress__head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
}

.ln-loyalty-progress {
  height: 14px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.ln-loyalty-progress__bar {
  height: 100%;
  background: #ffd400;
  border-right: 2px solid #111;
  border-radius: 999px 0 0 999px;
  transition: width 0.4s ease;
}

.ln-loyalty-tiers tr.is-current td {
  background: #fff8d6;
  font-weight: 800;
}

.ln-loyalty-tiers__you {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.5rem;
  border: 2px solid #111;
  border-radius: 999px;
  background: #ffd400;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.3;
  vertical-align: middle;
}

.ln-loyalty-refcard .easystore-card-body {
  background: #fff8d6;
  font-weight: 600;
}

@media (max-width: 576px) {
  .ln-referral-balance__value {
    font-size: 1.75rem;
  }

  .ln-referral-tabs a {
    font-size: 0.84rem;
    padding: 0.5rem 0.8rem;
  }

  .ln-loyalty-hero__spent {
    text-align: left;
  }

  .ln-loyalty-hero__value {
    font-size: 1.9rem;
  }
}
