/* IVmissed compliments page */
.app-shell {
  padding-bottom: 148px;
}

.compliments-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
  justify-content: center;
}
.compliments-sticky-controls {
  position: sticky;
  top: 0;
  z-index: 8600;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 4px 0 2px;
  margin: 0 0 6px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  background: var(--page-bg);
}
.compliments-sticky-controls::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
  background: var(--page-bg);
}
.compliments-sticky-controls > * {
  position: relative;
  z-index: 1;
}
.compliments-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: #003660;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.compliments-action-btn--secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: none;
}
.compliment-form-container {
  display: none;
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(0, 54, 96, 0.52);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.compliment-form-container.show {
  display: block;
}
.profile-top-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 12px;
}
.profile-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-title-row .compliment-overlay__title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: clamp(1.7rem, 2.6vw + 0.9rem, 2.5rem);
  line-height: 1.1;
}
#openProfileComposeBtn {
  margin: 0 auto;
}
#profileLookupForm {
  margin-top: 0;
}
#profileComposeForm {
  margin-top: 0;
  margin-bottom: 14px;
}
.compliment-form-container h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 800;
}
.compliment-form-container label {
  display: block;
  margin: 10px 0 6px;
  color: var(--gold);
  font-weight: 700;
}
.compliment-form-container input,
.compliment-form-container textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 10px 12px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #003660;
}
.compliment-form-container textarea {
  min-height: 110px;
  resize: vertical;
}
.compliment-email-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.compliment-email-row input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.compliment-email-suffix {
  padding: 10px 12px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-left: none;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.85);
  color: #003660;
  font-weight: 600;
  white-space: nowrap;
}
.compliment-form-error {
  color: #ff6b6b;
  margin-top: 10px;
  display: none;
  font-weight: 700;
}
.compliment-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compliment-card {
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 22px;
  padding: 14px 16px;
  background: rgba(0, 54, 96, 0.52);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.compliment-card--clickable {
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.compliment-card--clickable:hover,
.compliment-card--clickable:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}
.compliment-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.compliment-card__to {
  color: var(--gold);
  font-weight: 400;
  margin: 0px 0 8px;
  font-size: 1.05rem;
}
#complimentsStreamView{
  margin-top:25px;
}

.compliment-card__to-name {
  font-weight: 800;
}
.compliment-card__text {
  margin: 0;
  color: #fff;
  line-height: 1.45;
  font-size: 1.02rem;
}
.compliment-card__meta {
  margin: 0 0 8px;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  color: rgba(255, 215, 0, 0.75);
  font-size: 0.9rem;
}
.compliment-status {
  padding: 18px;
  text-align: center;
  color: var(--gold);
  font-weight: 800;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 18px;
  background: rgba(0, 54, 96, 0.38);
}
.compliment-load-more {
  display: block;
  width: min(260px, 80vw);
  margin: 18px auto 8px;
}
.leaderboard-dock-btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 999px;
  background: rgba(0, 54, 96, 0.92);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}
.leaderboard-dock-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.profile-find-btn {
  flex: 1 1 0%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 14px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: #003660;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.04rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.profile-find-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.compliment-overlay {
  position: relative;
  margin-top: 8px;
  background: transparent;
}
.compliment-overlay[hidden] {
  display: none;
}
.compliment-overlay__back {
  position: sticky;
  top: 8px;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  background: rgba(0, 54, 96, 0.92);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9001;
}
.compliment-overlay__back svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  fill: none;
}
#profileBackBtn {
  position: static;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
}
#profileBackBtn svg path {
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.compliment-overlay__body {
  width: 100%;
  margin: 0;
  padding: 8px 0 8px;
}
.compliment-overlay__title {
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 900;
  text-align: center;
}
.leaderboard-overlay-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.leaderboard-overlay-header .compliment-overlay__title {
  flex: 1;
  margin: 0;
}
.leaderboard-overlay-header__spacer {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}
#leaderboardBackBtn {
  position: static;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #fff;
}
.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.leaderboard-list--overlay {
  gap: 10px;
}
.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
}
.leaderboard-item--button {
  width: 100%;
  border: 1px solid rgba(255, 215, 0, 0.2);
  cursor: pointer;
  text-align: left;
}
.leaderboard-item__count {
  color: var(--gold);
  font-weight: 900;
}

@media (max-width: 640px) {
  .compliments-sticky-controls {
    top: 0;
    padding: 3px 0 2px;
    margin-bottom: 5px;
  }
  .compliments-sticky-controls::before {
    top: -6px;
    height: 6px;
  }
  .leaderboard-dock-btn {
    padding: 9px 13px;
  }
  .profile-find-btn {
    font-size: 1rem;
  }
  .compliment-overlay__body {
    width: 100%;
    padding-top: 8px;
  }
  .compliment-overlay__back {
    top: 6px;
    left: 0;
  }
}

/* "Are you {name}?" claim-your-profile note at the bottom of a profile */
.profile-owner-note {
  margin-top: 16px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 16px;
  background: rgba(0, 54, 96, 0.5);
  text-align: center;
}
.profile-owner-note__title {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 900;
  font-size: 1.05rem;
}
.profile-owner-note__text {
  margin: 0 0 14px;
  color: #dfe8f2;
  font-size: 0.92rem;
  line-height: 1.5;
}
.profile-owner-note__btn {
  display: inline-block;
  background: var(--gold);
  color: #003660;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 999px;
}
.profile-owner-note__btn:hover {
  filter: brightness(1.05);
}
