/* Premium public experience overrides */
:root {
  --sendy-bg: #07070d;
  --sendy-bg-soft: #0d0d16;
  --sendy-panel: rgba(255, 255, 255, 0.052);
  --sendy-panel-strong: rgba(255, 255, 255, 0.078);
  --sendy-border: rgba(255, 255, 255, 0.105);
  --sendy-border-strong: rgba(210, 196, 255, 0.22);
  --sendy-text: #f7f3ff;
  --sendy-muted: rgba(247, 243, 255, 0.7);
  --sendy-muted-soft: rgba(247, 243, 255, 0.52);
  --sendy-violet: #8c63ff;
  --sendy-violet-soft: rgba(140, 99, 255, 0.16);
  --sendy-gold: #e8c26a;
  --sendy-radius: 18px;
  --sendy-radius-sm: 12px;
  --sendy-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --sendy-shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.28);
}

body.page--home-redesign,
body.gallery-page,
body.page--profile,
body.page--auth {
  background:
    radial-gradient(900px 520px at 78% 4%, rgba(140, 99, 255, 0.12), transparent 62%),
    radial-gradient(740px 460px at 8% 18%, rgba(232, 194, 106, 0.055), transparent 60%),
    linear-gradient(180deg, #08070f 0%, var(--sendy-bg) 42%, #090911 100%);
  color: var(--sendy-text);
}

html:has(body.page--home-redesign),
html:has(body.gallery-page),
html:has(body.page--profile),
html:has(body.page--auth),
body.page--home-redesign,
body.gallery-page,
body.page--profile,
body.page--auth {
  max-width: 100%;
  overflow-x: clip;
}

body.gallery-page .gallery-shell,
body.page--profile .profile-page {
  width: min(1180px, calc(100% - clamp(1rem, 4vw, 3rem)));
  margin-inline: auto;
}

body.gallery-page .gallery-hero {
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 3vw, 2.7rem);
}

body.gallery-page .gallery-title {
  margin: 0;
  color: var(--sendy-text);
  font-size: clamp(2.05rem, 4.2vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

body.gallery-page .gallery-subtitle {
  margin: 0.8rem 0 0;
  max-width: 58ch;
  color: var(--sendy-muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

body.gallery-page .gallery-controls {
  width: 100%;
  max-width: none;
}

body.gallery-page .gallery-search {
  min-height: 46px;
  border-color: var(--sendy-border);
  border-radius: var(--sendy-radius-sm);
  background: rgba(255, 255, 255, 0.055);
  color: var(--sendy-text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

body.gallery-page .gallery-search::placeholder {
  color: var(--sendy-muted-soft);
}

body.gallery-page .gallery-meta,
body.gallery-page .gallery-empty,
body.gallery-page .gallery-load-more__status {
  color: var(--sendy-muted-soft);
}

body.gallery-page .gallery-section-label {
  color: var(--sendy-gold);
  letter-spacing: 0.08em;
}

body.gallery-page .creator-card,
.page--home-redesign .preview-card {
  position: relative;
  min-height: 244px;
  height: auto;
  border: 1px solid var(--sendy-border);
  border-radius: var(--sendy-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.025);
  box-shadow: var(--sendy-shadow-soft);
  overflow: hidden;
}

body.gallery-page .creator-card::before,
.page--home-redesign .preview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 38%);
  pointer-events: none;
  opacity: 0.52;
}

body.gallery-page .creator-card:hover,
.page--home-redesign .preview-card:hover {
  transform: translateY(-3px);
  border-color: var(--sendy-border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.086), rgba(255, 255, 255, 0.043)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--sendy-shadow);
}

body.gallery-page .creator-card__img,
.page--home-redesign .preview-card__avatar {
  border: 1px solid rgba(232, 194, 106, 0.36);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

body.gallery-page .creator-card__name,
.page--home-redesign .preview-card__name {
  color: var(--sendy-text);
  letter-spacing: 0;
}

body.gallery-page .creator-card__bio,
.page--home-redesign .preview-card__bio {
  color: var(--sendy-muted);
}

body.gallery-page .creator-card__cta,
.page--home-redesign .preview-card__cta {
  color: rgba(232, 194, 106, 0.94);
}

body.gallery-page .creator-card__badge {
  color: #211802;
  background: linear-gradient(180deg, #f2d684, #dcb75d);
  border-color: rgba(255, 232, 166, 0.55);
}

body.page--profile .profile-hero {
  margin: clamp(1.4rem, 4vw, 3rem) auto clamp(1.5rem, 3.4vw, 2.4rem);
}

body.page--profile .profile-hero__info {
  border: 1px solid var(--sendy-border);
  border-radius: clamp(20px, 3vw, 28px);
  background:
    radial-gradient(620px 320px at 50% 0%, rgba(140, 99, 255, 0.13), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.035));
  box-shadow: var(--sendy-shadow);
  backdrop-filter: blur(12px) saturate(112%);
}

body.page--profile .profile-hero__avatar {
  border: 2px solid rgba(232, 194, 106, 0.52);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.35),
    0 0 0 7px rgba(255, 255, 255, 0.045);
}

body.page--profile .profile-hero__name {
  color: var(--sendy-text);
  letter-spacing: 0;
}

body.page--profile .profile-hero__bio,
body.page--profile .profile-hero__meta,
body.page--profile .profile-wishes__cta,
body.page--profile .profile-wishes__empty {
  color: var(--sendy-muted);
}

body.page--profile .profile-wishes__cta {
  max-width: 620px;
  margin-inline: auto;
  border: 1px solid var(--sendy-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.72rem 1rem;
}

body.page--profile .profile-trust-strip {
  width: min(820px, 100%);
  margin: 0 auto clamp(1rem, 2vw, 1.35rem);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

body.page--profile .profile-trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.042);
  color: var(--sendy-muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
}

body.page--profile .profile-trust-strip span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.42rem;
  border-radius: 999px;
  background: var(--sendy-gold);
  box-shadow: 0 0 16px rgba(232, 194, 106, 0.28);
}

body.page--profile .wcard,
#wishGrid .wish-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sendy-border);
  border-radius: var(--sendy-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.022);
  box-shadow: var(--sendy-shadow-soft);
  overflow: hidden;
}

body.page--profile .wcard:hover,
#wishGrid .wish-card:hover {
  transform: translateY(-3px);
  border-color: var(--sendy-border-strong);
  box-shadow: var(--sendy-shadow);
}

body.page--profile .wcard__img-wrap,
#wishGrid .wish-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 35%, rgba(140, 99, 255, 0.13), transparent 54%),
    rgba(255, 255, 255, 0.035);
}

body.page--profile .wcard__img,
#wishGrid .wish-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.96) contrast(1.02);
}

body.page--profile .wcard__body {
  padding: 0.95rem 1rem 0.5rem;
}

body.page--profile .wcard__name,
#wishGrid .wish-card__title {
  color: var(--sendy-text);
  letter-spacing: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.page--profile .wcard__price,
#wishGrid .wish-card__price {
  color: rgba(232, 194, 106, 0.94);
  font-weight: 750;
}

body.page--profile .wcard__description,
body.page--profile .wcard__badge,
#wishGrid .wish-card__status {
  color: var(--sendy-muted);
}

body.page--profile .wcard__description {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

body.page--profile .wcard__footer {
  margin-top: auto;
}

#wishGrid .wish-card {
  padding: 0;
  text-align: left;
}

#wishGrid .wish-card__img {
  height: auto;
  margin: 0;
  border-radius: 0;
  display: block;
}

#wishGrid .wish-card__title,
#wishGrid .wish-card__price,
#wishGrid .wish-card__status,
#wishGrid .wish-card > .btn,
#wishGrid .wish-card > .badge,
#wishGrid .wish-card > div {
  margin-left: 1rem;
  margin-right: 1rem;
}

#wishGrid .wish-card__title {
  margin-top: 0.95rem;
  margin-bottom: 0.34rem;
  font-size: 1rem;
  line-height: 1.3;
}

#wishGrid .wish-card__price {
  margin-top: 0;
  margin-bottom: 0.22rem;
}

#wishGrid .wish-card__status {
  margin-top: 0;
  margin-bottom: 0.76rem;
  text-transform: capitalize;
}

#wishGrid .wish-card > .btn,
#wishGrid .wish-card > .badge,
#wishGrid .wish-card > div {
  margin-bottom: 1rem;
}

#wishGrid .wish-card > .badge {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.36rem 0.68rem;
  color: var(--sendy-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

#wishGrid .wish-card > .badge-reserved {
  border-color: rgba(232, 194, 106, 0.32);
  background: rgba(232, 194, 106, 0.1);
  color: rgba(244, 218, 151, 0.95);
}

body.page--profile .wcard__btn,
#wishGrid .wish-card > .btn--primary {
  border: 1px solid rgba(232, 194, 106, 0.45);
  border-radius: 999px;
  color: #120f08;
  background: linear-gradient(180deg, #f0d78c, #d8b662);
  box-shadow: 0 13px 30px rgba(232, 194, 106, 0.18);
}

body.page--profile .wcard__btn:hover,
#wishGrid .wish-card > .btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(232, 194, 106, 0.24);
}

body.page--profile .wcard__tag,
body.page--profile .wcard__special-badge {
  background: rgba(140, 99, 255, 0.16);
  color: rgba(226, 216, 255, 0.94);
  border: 1px solid rgba(210, 196, 255, 0.22);
}

body.page--auth .auth-card {
  border: 1px solid var(--sendy-border);
  background:
    radial-gradient(620px 280px at 50% 0%, rgba(140, 99, 255, 0.14), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.035));
  box-shadow: var(--sendy-shadow);
}

body.page--auth .card-title {
  color: var(--sendy-text);
}

body.page--auth label,
body.page--auth .gift-check-row {
  color: var(--sendy-muted);
}

body.page--home-redesign .home-how__header p,
body.page--home-redesign .home-section-sub,
body.page--home-redesign .trust-item p,
body.page--home-redesign .step-card p {
  color: var(--sendy-muted);
}

body.page--home-redesign .trust-item,
body.page--home-redesign .step-card,
body.page--home-redesign .flow-item {
  border-radius: var(--sendy-radius);
  border-color: var(--sendy-border);
  background: rgba(255, 255, 255, 0.045);
}

body.page--home-redesign .home-flow {
  margin-top: clamp(3.2rem, 6.5vw, 4.8rem);
}

body.page--home-redesign .home-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

body.page--home-redesign .flow-item {
  padding: 1.15rem 1.1rem;
}

body.page--home-redesign .flow-item h3 {
  margin: 0;
  color: var(--sendy-text);
  font-size: 1rem;
  line-height: 1.25;
}

body.page--home-redesign .flow-item p {
  margin: 0.48rem 0 0;
  color: var(--sendy-muted);
  line-height: 1.55;
}

@media (max-width: 820px) {
  body.gallery-page .gallery-hero {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: start;
  }

  body.gallery-page .gallery-subtitle {
    margin-inline: auto;
  }

  body.gallery-page .gallery-meta {
    text-align: center;
  }

  body.page--profile .profile-wishes__cta {
    border-radius: var(--sendy-radius-sm);
  }

  body.page--profile .profile-trust-strip {
    justify-content: flex-start;
  }

  body.page--profile .profile-trust-strip span {
    border-radius: var(--sendy-radius-sm);
  }

  body.page--home-redesign .home-flow-grid {
    grid-template-columns: 1fr;
  }

  body.page--profile .wcard__img-wrap,
  #wishGrid .wish-card__img {
    aspect-ratio: 1 / 1;
  }
}
