.ft-auth-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.ft-auth-grid h2,
.ft-screen h2,
.ft-panel h2 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.ft-auth-grid form,
.ft-settings form {
  display: grid;
  gap: 15px;
}

.ft-panel--warm {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 61, 0.24), transparent 37%),
    #fffaf3;
}

.ft-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ft-muted);
  font-size: 13px;
}

.ft-check input {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--ft-coral);
}

.ft-check a {
  text-decoration: underline;
}

.ft-app-heading,
.ft-album-hero,
.ft-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ft-app-heading {
  margin-bottom: 25px;
}

.ft-app-heading h2,
.ft-album-hero h2 {
  margin: 0;
}

.ft-app-heading p,
.ft-album-hero p {
  margin: 7px 0 0;
  color: var(--ft-muted);
}

.ft-entitlement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
  padding: 14px 18px;
  border: 1px solid rgba(61, 155, 122, 0.18);
  border-radius: 16px;
  background: #eefaf4;
  font-size: 14px;
}

.ft-entitlement span {
  color: #4d7465;
}

.ft-card-arrow {
  position: absolute;
  right: 25px;
  bottom: 23px;
  color: var(--ft-coral);
  font-size: 13px;
  font-weight: 850;
}

.ft-empty {
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 45px;
  border: 1px dashed rgba(28, 24, 48, 0.2);
  border-radius: 27px;
  text-align: center;
  background: #fffaf3;
}

.ft-empty > span,
.ft-knock > span:first-child {
  display: grid;
  width: 65px;
  height: 65px;
  place-items: center;
  border-radius: 21px;
  color: var(--ft-coral);
  background: #ffe9de;
  font-size: 28px;
}

.ft-empty h3 {
  margin: 12px 0 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.ft-empty p {
  margin: 0;
  color: var(--ft-muted);
}

.ft-back {
  display: inline-block;
  margin-bottom: 25px;
  color: var(--ft-muted);
  font-size: 14px;
  font-weight: 800;
}

.ft-album-hero {
  margin-bottom: 27px;
}

.ft-album-actions,
.ft-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ft-inline-actions form {
  margin: 0;
}

.ft-counter-strip {
  display: grid;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--ft-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--ft-soft-shadow);
  grid-template-columns: repeat(4, 1fr);
}

.ft-counter-strip > div {
  padding: 21px;
  border-right: 1px solid var(--ft-line);
}

.ft-counter-strip > div:last-child {
  border: 0;
}

.ft-counter-strip strong,
.ft-counter-strip span {
  display: block;
}

.ft-counter-strip strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.ft-counter-strip span {
  color: var(--ft-muted);
  font-size: 12px;
  font-weight: 700;
}

.ft-counter-strip .is-pending strong {
  color: var(--ft-coral);
}

.ft-counter-strip .is-complete strong {
  color: var(--ft-green);
}

.ft-viral-success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 23px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 138, 61, 0.6), transparent 34%),
    var(--ft-plum);
  box-shadow: var(--ft-soft-shadow);
}

.ft-viral-success span,
.ft-viral-success strong {
  display: block;
}

.ft-viral-success strong {
  margin-top: 5px;
  font-size: 22px;
}

.ft-viral-success p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.ft-request-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.ft-request {
  display: grid;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border-radius: 15px;
  background: var(--ft-cream);
  grid-template-columns: auto 1fr auto;
}

.ft-avatar {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--ft-plum);
  font-weight: 900;
}

.ft-request strong,
.ft-request span {
  display: block;
}

.ft-request span {
  color: var(--ft-muted);
  font-size: 12px;
}

.ft-request form {
  display: flex;
  gap: 7px;
}

.ft-mini {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: var(--ft-muted);
  background: #fff;
  box-shadow: none;
  font-size: 12px;
}

.ft-mini--yes {
  color: #fff;
  background: var(--ft-green);
}

.ft-invite-card {
  display: grid;
  align-items: center;
  gap: 35px;
  margin: 20px 0;
  padding: 30px;
  overflow: hidden;
  border-radius: 27px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 61, 0.75), transparent 36%),
    var(--ft-ink);
  grid-template-columns: 1fr auto;
}

.ft-invite-card h3,
.ft-challenge h3,
.ft-panel-title h3 {
  margin: 4px 0;
  font-size: 27px;
  letter-spacing: -0.045em;
}

.ft-invite-card p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.68);
}

.ft-share-link {
  display: flex;
  gap: 8px;
  max-width: 650px;
  margin: 18px 0 12px;
}

.ft-share-link input {
  min-width: 0;
  flex: 1;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.ft-qr-wrap {
  display: grid;
  width: 190px;
  place-items: center;
  padding: 17px;
  border-radius: 20px;
  color: var(--ft-ink);
  background: #fff;
}

.ft-qr-wrap canvas,
.ft-qr-wrap img {
  width: 145px !important;
  height: 145px !important;
}

.ft-qr-wrap strong {
  margin-top: 7px;
  letter-spacing: 0.15em;
}

.ft-qr-wrap span {
  color: var(--ft-muted);
  font-size: 10px;
}

.ft-challenge {
  display: grid;
  align-items: center;
  gap: 30px;
  margin: 20px 0;
  padding: 28px;
  border: 1px solid rgba(255, 90, 79, 0.16);
  border-radius: 25px;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 90, 79, 0.12), transparent 36%),
    #fff;
  grid-template-columns: 1fr 250px;
}

.ft-challenge p {
  margin-bottom: 0;
  color: var(--ft-muted);
}

.ft-winner {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border-radius: 18px;
}

.ft-winner img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ft-winner span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 8px;
  border-radius: 10px;
  color: #fff;
  background: rgba(28, 24, 48, 0.8);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.ft-no-candidate {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 20px;
  border: 1px dashed rgba(255, 90, 79, 0.3);
  border-radius: 18px;
  color: var(--ft-muted);
  text-align: center;
  background: #fff8ef;
}

.ft-upload-panel {
  margin-top: 20px;
}

.ft-panel-title {
  margin-bottom: 20px;
}

.ft-panel-title > span {
  color: var(--ft-muted);
  font-size: 12px;
}

.ft-dropzone {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 24px;
  border: 2px dashed rgba(255, 90, 79, 0.26);
  border-radius: 21px;
  cursor: pointer;
  text-align: center;
  background: #fffaf5;
}

.ft-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ft-drop-icon {
  display: grid;
  width: 51px;
  height: 51px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--ft-coral), var(--ft-orange));
  font-size: 26px;
}

.ft-dropzone strong,
.ft-dropzone small {
  display: block;
}

.ft-dropzone small,
.ft-field small {
  color: var(--ft-muted);
  font-size: 11px;
}

.ft-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 13px 0;
}

.ft-file-preview img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.ft-gallery-section {
  margin-top: 35px;
}

.ft-gallery {
  columns: 4 210px;
  column-gap: 13px;
}

.ft-photo {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 13px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ft-soft-shadow);
  break-inside: avoid;
}

.ft-photo > img {
  display: block;
  width: 100%;
  min-height: 170px;
  cursor: zoom-in;
  object-fit: cover;
}

.ft-photo.is-candidate {
  outline: 3px solid rgba(255, 90, 79, 0.45);
  outline-offset: -3px;
}

.ft-candidate-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--ft-coral);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ft-photo-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 11px 12px;
}

.ft-photo-meta strong,
.ft-photo-meta span {
  display: block;
}

.ft-photo-meta strong {
  overflow: hidden;
  max-width: 135px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-photo-meta span {
  color: var(--ft-muted);
  font-size: 9px;
}

.ft-like {
  min-width: 48px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  color: var(--ft-muted);
  background: #fff2ee;
  box-shadow: none;
  font-size: 11px;
}

.ft-like.is-liked {
  color: #fff;
  background: var(--ft-coral);
}

.ft-delete-photo {
  position: absolute;
  top: 8px;
  right: 8px;
}

.ft-delete-photo button {
  display: grid;
  width: 29px;
  min-height: 29px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(28, 24, 48, 0.78);
  box-shadow: none;
}

.ft-empty--small {
  min-height: 240px;
}

.ft-settings {
  margin-top: 25px;
}

.ft-settings summary {
  cursor: pointer;
  font-weight: 850;
}

.ft-settings form {
  margin-top: 20px;
}

.ft-create-intro,
.ft-invite-preview {
  max-width: 780px;
  margin-bottom: 30px;
}

.ft-create-intro h2,
.ft-invite-preview h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 67px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.ft-create-intro p,
.ft-invite-preview p {
  color: var(--ft-muted);
  font-size: 19px;
}

.ft-create-form {
  max-width: 850px;
}

.ft-create-form .ft-field input,
.ft-create-form .ft-field select {
  min-height: 57px;
}

.ft-control-promise {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  padding: 15px;
  border-radius: 16px;
  background: #eefaf4;
}

.ft-control-promise > span {
  font-size: 27px;
}

.ft-control-promise strong,
.ft-control-promise p {
  display: block;
  margin: 0;
}

.ft-control-promise p {
  color: #4d7465;
  font-size: 12px;
}

.ft-paywall {
  max-width: 800px;
}

.ft-knock {
  display: grid;
  max-width: 720px;
  place-items: start;
  gap: 11px;
}

.ft-knock h2 {
  margin: 0;
}

.ft-knock > p {
  color: var(--ft-muted);
}

.ft-role-choice {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  grid-template-columns: repeat(2, 1fr);
}

.ft-role-choice label {
  display: block;
  cursor: pointer;
}

.ft-role-choice input {
  position: absolute;
  opacity: 0;
}

.ft-role-choice span {
  display: block;
  min-height: 115px;
  padding: 20px;
  border: 1px solid var(--ft-line);
  border-radius: 17px;
  background: #fff;
}

.ft-role-choice input:checked + span {
  border-color: var(--ft-coral);
  background: #fff3ed;
  box-shadow: 0 0 0 3px rgba(255, 90, 79, 0.08);
}

.ft-role-choice strong,
.ft-role-choice small {
  display: block;
}

.ft-role-choice small {
  margin-top: 6px;
  color: var(--ft-muted);
}

.ft-support-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 28px;
  padding: 27px;
  border: 1px solid var(--ft-line);
  border-radius: 22px;
  background: #fff8ef;
}

.ft-support-card h3,
.ft-support-card p {
  margin: 3px 0;
}

.ft-support-card p {
  color: var(--ft-muted);
}

.ft-bizum-box {
  margin: 10px 0;
  padding: 15px;
  border-radius: 13px;
  background: #fff3ed;
}

.ft-movie {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 55px;
  color: #fff;
  background: rgba(16, 13, 28, 0.97);
}

.ft-movie.is-open {
  display: flex;
}

.ft-movie-stage {
  position: relative;
  display: grid;
  width: min(1100px, 88vw);
  height: min(78vh, 760px);
  place-items: center;
}

.ft-movie-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  box-shadow: 0 30px 80px #000;
}

.ft-movie-stage div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 13px;
  border-radius: 12px;
  background: rgba(16, 13, 28, 0.74);
}

.ft-movie-stage strong,
.ft-movie-stage span {
  display: block;
}

.ft-movie-stage span {
  color: rgba(255, 255, 255, 0.63);
  font-size: 12px;
}

.ft-movie-close,
.ft-movie-prev,
.ft-movie-next {
  position: absolute;
  display: grid;
  width: 48px;
  min-height: 48px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  font-size: 29px;
}

.ft-movie-close {
  top: 18px;
  right: 18px;
}

.ft-movie-prev {
  left: 18px;
}

.ft-movie-next {
  right: 18px;
}

.ft-movie-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.ft-movie-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ft-coral);
  transition: width 0.4s ease;
}

@media (max-width: 760px) {
  .ft-auth-grid,
  .ft-invite-card,
  .ft-challenge {
    grid-template-columns: 1fr;
  }

  .ft-app-heading,
  .ft-album-hero,
  .ft-panel-title,
  .ft-viral-success,
  .ft-support-card {
    align-items: stretch;
    flex-direction: column;
  }

  .ft-app-heading .ft-button,
  .ft-viral-success .ft-button {
    width: 100%;
  }

  .ft-counter-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .ft-counter-strip > div:nth-child(2) {
    border-right: 0;
  }

  .ft-counter-strip > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--ft-line);
  }

  .ft-qr-wrap {
    width: 100%;
  }

  .ft-request {
    grid-template-columns: auto 1fr;
  }

  .ft-request form {
    grid-column: 1 / -1;
  }

  .ft-role-choice {
    grid-template-columns: 1fr;
  }

  .ft-gallery {
    columns: 2 145px;
    column-gap: 9px;
  }

  .ft-photo {
    margin-bottom: 9px;
  }

  .ft-movie {
    padding: 45px 10px;
  }

  .ft-movie-prev,
  .ft-movie-next {
    top: auto;
    bottom: 13px;
  }
}

