@import url("/static/brand/tokens.css");
@import url("/static/brand/base.css");
@import url("/static/brand/components.css");

/* Экраны лояльности. Общие токены, фон, кнопки и таблицы — packages/brand. */

.tg-app .site-footer {
  display: none;
}

.tg-app main {
  padding-top: 1.5rem;
}

main {
  padding: 0 clamp(1rem, 4vw, 3rem) 3rem;
}

.hero {
  min-height: calc(100vh - 7rem);
  display: grid;
  align-items: center;
}

.hero-copy {
  animation: rise 0.7s ease both;
}

.cta-row .btn {
  animation: rise 0.85s ease both;
}

.cta-row .btn:nth-child(2) {
  animation-delay: 0.08s;
}

.site-footer {
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 2rem;
  opacity: 0.55;
  font-size: 0.85rem;
}

@media (max-width: 840px) {
  .hero {
    min-height: auto;
    padding-top: 1rem;
  }
}

.pos-lookup {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}

.pos-stats {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.4rem;
}

.admin-pos .panel-block {
  max-width: 40rem;
}

.stamp-block,
.panel-block {
  margin: 2rem 0;
  max-width: 34rem;
}

.stamp-track {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1rem 0;
}

.stamp {
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: rise 0.5s ease both;
}

.stamp.is-filled {
  background: var(--accent);
  border-color: var(--accent);
}

.reward-ready {
  color: var(--accent);
  font-weight: 700;
}

.star-rating {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.star-rating legend {
  padding: 0;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.star-rating-options {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
}

.star-rating-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.star-rating-options label {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  font-size: 1.85rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating-options label::before {
  content: "★";
}

.star-rating-options label:hover {
  transform: scale(1.08);
}

.star-rating-options input:checked ~ label,
.star-rating-options label:hover,
.star-rating-options label:hover ~ label {
  color: var(--accent);
}

.star-rating-options:hover input:checked ~ label {
  color: rgba(255, 255, 255, 0.28);
}

.star-rating-options:hover label:hover,
.star-rating-options:hover label:hover ~ label {
  color: var(--accent);
}

.star-rating-options input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.inline-form {
  margin-top: 0.75rem;
}

.admin-page {
  max-width: 48rem;
  padding: 2rem 0 3rem;
}

.admin-wide {
  max-width: 72rem;
}

.admin-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.admin-search input[type="search"] {
  flex: 1 1 18rem;
  min-width: 0;
}

.suggest {
  position: relative;
  flex: 1 1 18rem;
  min-width: 0;
  display: flex;
}

.suggest input[type="search"] {
  width: 100%;
}

.suggest-list {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 26rem;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.suggest-list a {
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.suggest-list [aria-selected="true"] a,
.suggest-list a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.suggest-name {
  font-weight: 700;
}

.suggest-meta {
  font-size: 0.85rem;
  color: var(--label);
  font-variant-numeric: tabular-nums;
}

.suggest-list mark {
  background: transparent;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.suggest-empty {
  padding: 0.6rem 0.9rem;
  color: var(--label);
}

.suggest-more {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.suggest-more button {
  width: 100%;
  padding: 0.6rem 0.9rem;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.suggest-more button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin: 1rem 0;
}

.admin-bulk label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-pager {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.admin-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.panel-block .lead {
  margin-top: 0;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.big-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 18vw, 7rem);
  letter-spacing: 0.2em;
  line-height: 1;
  margin: 1rem 0;
  color: var(--accent);
}

.steps {
  padding-left: 1.25rem;
  line-height: 1.7;
}

.rollout-updated {
  font-size: 1.25rem !important;
}

.rollout-stage {
  margin: 2rem 0;
  padding: 1.25rem 0 0 1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  scroll-margin-top: 1rem;
}

.rollout-stage.is-current {
  border-left-color: var(--accent);
}

.rollout-stage.is-done {
  opacity: 0.7;
}

.rollout-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.rollout-status {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}

.rollout-stage.is-current .rollout-status {
  color: var(--accent);
}

.rollout-dates {
  color: var(--label);
  margin: 0;
}

.rollout-steps {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.rollout-steps .checkbox-row {
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.rollout-steps input:checked + span {
  color: var(--label);
  text-decoration: line-through;
}

.rollout-result {
  color: var(--label);
}
