/* ── Normalized giveaway entry flow ── */
.page-entry {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(252, 122, 34, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(20, 184, 166, 0.08), transparent 50%),
    var(--color-white);
}

.page-entry .nav {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

.page-entry .nav__inner {
  justify-content: space-between;
}

.entry__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-500);
  text-decoration: none;
  transition: color 0.15s ease;
}

.entry__back:hover {
  color: var(--color-orange);
}

.entry {
  padding: 1.15rem 1.15rem 3.5rem;
}

.entry__shell {
  max-width: 440px;
  margin: 0 auto;
}

.entry__intro {
  margin-bottom: 1.75rem;
}

.entry__requirements {
  margin-bottom: 2rem;
  padding: 1.25rem 1.15rem;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 14px;
}

.entry__header {
  margin-bottom: 1.5rem;
}

.entry__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  margin-bottom: 0.5rem;
}

.entry__title {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.entry__lede {
  color: var(--color-gray-500);
  font-size: 1rem;
  line-height: 1.6;
}

.entry__intro p {
  color: var(--color-gray-500);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.entry__intro p:last-child {
  margin-bottom: 0;
}

.entry__requirements-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-gray-100);
}

.entry__requirements-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.entry__form-start {
  margin-bottom: 0;
}

.entry__form-heading {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.entry__form-lede {
  color: var(--color-gray-500);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.entry__perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.entry__perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-black);
}

.entry__perks li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2314B8A6'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0l-3.5-3.5a1 1 0 1 1 1.4-1.4l2.8 2.8 6.8-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") no-repeat center / 11px;
}

/* Progress */
.entry__progress {
  margin-bottom: 2rem;
}

.entry__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.entry__steps--4 {
  grid-template-columns: repeat(4, 1fr);
}

.entry__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.entry__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--color-gray-100);
}

.entry__step.is-complete:not(:last-child)::after,
.entry__step.is-active:not(:last-child)::after {
  background: rgba(20, 184, 166, 0.35);
}

.entry__step-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--color-gray-100);
  color: var(--color-gray-500);
  position: relative;
  z-index: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.entry__step.is-active .entry__step-num {
  background: var(--color-teal);
  color: var(--color-white);
}

.entry__step.is-complete .entry__step-num {
  background: rgba(20, 184, 166, 0.15);
  color: var(--color-teal);
  font-size: 0;
}

.entry__step.is-complete .entry__step-num::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0l-3.5-3.5a1 1 0 1 1 1.4-1.4l2.8 2.8 6.8-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='black' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0l-3.5-3.5a1 1 0 1 1 1.4-1.4l2.8 2.8 6.8-6.8a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.entry__step-label {
  display: none;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-gray-500);
  text-align: center;
  line-height: 1.2;
}

.entry__step.is-active .entry__step-label {
  color: var(--color-black);
}

.entry__progress-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-gray-500);
}

/* Panels */
.entry__form {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: 16px;
  padding: 1.35rem 1.15rem;
  box-shadow: var(--shadow-card);
}

.entry__panel[hidden] {
  display: none;
}

.entry__panel.is-active {
  animation: entry-panel-in 0.28s ease;
}

@keyframes entry-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.entry__panel-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.entry__panel-hint {
  font-size: 0.95rem;
  color: var(--color-gray-500);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.entry__panel-intro {
  margin-bottom: 1.25rem;
}

.entry__panel-intro p {
  color: var(--color-gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.entry__panel-intro p:last-child {
  margin-bottom: 0;
}

.entry__panel-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.entry__perks--last {
  margin-bottom: 1.25rem;
}

.entry__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.entry__field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-black);
}

.entry__field input {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  font-family: var(--font-family);
  font-size: 16px; /* prevents iOS zoom on focus */
  color: var(--color-black);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.entry__field input::placeholder {
  color: #a1a1aa;
}

.entry__field input:focus {
  outline: none;
  background: var(--color-white);
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.entry__field input.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.entry__error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1rem;
}

.entry__actions {
  display: flex;
  margin-top: 0.5rem;
}

.entry__actions--split {
  flex-direction: column-reverse;
  justify-content: stretch;
  gap: 0.65rem;
}

.entry__actions .btn {
  flex: 1;
}

.entry__actions:not(.entry__actions--split) .btn {
  width: 100%;
}

.entry__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Review */
.entry__review {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.entry__review-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.entry__review-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.entry__review-row:first-child {
  padding-top: 0;
}

.entry__review-row dt {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gray-500);
}

.entry__review-row dd {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-black);
  text-align: left;
  word-break: break-word;
}

.entry__edit {
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-orange);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry__edit:hover {
  color: var(--color-teal);
}

.entry__telegram {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem;
  margin-bottom: 1.5rem;
  background: rgba(34, 158, 217, 0.08);
  border: 1px solid rgba(34, 158, 217, 0.28);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.entry__telegram:hover {
  background: rgba(34, 158, 217, 0.12);
  border-color: rgba(34, 158, 217, 0.45);
  transform: translateY(-1px);
}

.entry__telegram-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #229ed9;
  color: var(--color-white);
}

.entry__telegram-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.entry__telegram-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: -0.01em;
}

.entry__telegram-copy span {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-gray-500);
}

.entry__privacy {
  font-size: 0.78rem;
  color: var(--color-gray-500);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* Done state */
.entry__done {
  text-align: center;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: 16px;
  padding: 2rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.entry__done-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.12);
  color: var(--color-teal);
}

.entry__done-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.entry__done-text {
  color: var(--color-gray-500);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.entry__alert {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.entry__alert--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.entry__alert[hidden],
.entry__perks[hidden] {
  display: none;
}

@media (min-width: 480px) {
  .entry {
    padding: 1.5rem 1.5rem 4rem;
  }

  .entry__form,
  .entry__done {
    border-radius: 20px;
    padding: 2.25rem;
  }

  .entry__step-label {
    display: block;
  }

  .entry__actions--split {
    flex-direction: row;
    justify-content: space-between;
  }

  .entry__review-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
  }

  .entry__review-row dd {
    align-items: flex-end;
    text-align: right;
  }
}
