.loyalty-panel-link {
  display: block;
}

.rules-card,
.history-card {
  padding: 22px;
  border-radius: 32px;
}

.rules-card h3,
.history-head h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.rules-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.76);
}

.rules-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  line-height: 1.45;
}

.rules-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.14);
}

.rules-list li:last-child {
  margin-bottom: 0;
}

.history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.history-item > div {
  flex: 1;
}

.history-item h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: #fff;
}

.history-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.4;
}

.history-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 211, 143, 0.9), rgba(255, 255, 255, 0.24));
  color: #07111f;
  font-weight: 800;
}

.history-etched-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.34) 52%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 24px rgba(255, 255, 255, 0.06);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.08));
}

.history-badge-salon {
  background: linear-gradient(135deg, rgba(255, 141, 184, 0.9), rgba(255, 255, 255, 0.24));
}

.history-badge-lavender {
  background: linear-gradient(135deg, rgba(179, 147, 255, 0.9), rgba(255, 255, 255, 0.24));
}
