/* === Glo$$ify — sky blue + galaxy/violet theme === */
:root {
  --sky-1: #cfeeff;
  --sky-2: #8ad3ff;
  --violet-1: #b18cff;
  --violet-2: #7a4ef2;
  --galaxy-1: #1a0a3a;
  --galaxy-2: #2b1660;
  --ink: #1d1240;
  --soft: #ffffffd9;
  --pink: #ffb6e1;
  --gold: #ffd28a;
  --shadow: 0 14px 38px rgba(63, 32, 145, 0.18);
  --shadow-strong: 0 18px 48px rgba(63, 32, 145, 0.32);
  --radius: 22px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(177, 140, 255, 0.55), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(138, 211, 255, 0.55), transparent 60%),
    radial-gradient(1100px 700px at 50% 120%, rgba(122, 78, 242, 0.35), transparent 60%),
    linear-gradient(180deg, #eaf6ff 0%, #ead8ff 55%, #d8c2ff 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* twinkly stars background */
.stars-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.stars-bg span {
  position: absolute;
  width: 4px; height: 4px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px #fff, 0 0 20px 4px #b18cff;
  opacity: 0.85;
  animation: twinkle 3s infinite ease-in-out;
}
.stars-bg span:nth-child(1) { top: 6%;  left: 12%; animation-delay: .2s; }
.stars-bg span:nth-child(2) { top: 18%; left: 82%; animation-delay: .9s; }
.stars-bg span:nth-child(3) { top: 32%; left: 4%;  animation-delay: 1.6s; }
.stars-bg span:nth-child(4) { top: 44%; left: 92%; animation-delay: .4s; width: 3px; height: 3px; }
.stars-bg span:nth-child(5) { top: 56%; left: 22%; animation-delay: 2.1s; }
.stars-bg span:nth-child(6) { top: 64%; left: 68%; animation-delay: 1.1s; width: 5px; height: 5px; }
.stars-bg span:nth-child(7) { top: 76%; left: 14%; animation-delay: .6s; }
.stars-bg span:nth-child(8) { top: 88%; left: 78%; animation-delay: 1.8s; }
.stars-bg span:nth-child(9) { top: 12%; left: 50%; animation-delay: 2.4s; }
.stars-bg span:nth-child(10){ top: 26%; left: 36%; animation-delay: .3s; width: 3px; height: 3px; }
.stars-bg span:nth-child(11){ top: 40%; left: 60%; animation-delay: 1.4s; }
.stars-bg span:nth-child(12){ top: 52%; left: 8%;  animation-delay: 2.7s; }
.stars-bg span:nth-child(13){ top: 70%; left: 50%; animation-delay: .8s; }
.stars-bg span:nth-child(14){ top: 82%; left: 32%; animation-delay: 1.9s; width: 3px; height: 3px; }
.stars-bg span:nth-child(15){ top: 94%; left: 60%; animation-delay: 1.0s; }

@keyframes twinkle {
  0%,100% { opacity: 0.3; transform: scale(0.7); }
  50%     { opacity: 1;   transform: scale(1.2); }
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 26px;
  background: linear-gradient(90deg, rgba(255,255,255,0.75), rgba(255,255,255,0.6));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(177, 140, 255, 0.35);
  box-shadow: 0 6px 22px rgba(63, 32, 145, 0.10);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Pacifico', cursive;
  font-size: 30px;
  color: var(--violet-2);
  line-height: 1;
}
.logo-text {
  background: linear-gradient(90deg, var(--sky-2), var(--violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
}
.dollar {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
  text-shadow: 0 2px 6px rgba(255, 210, 138, .6);
  font-family: 'Pacifico', cursive;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-dropdown-wrap {
  position: relative;
}
.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  transition: all .2s ease;
}
.nav-link:hover {
  background: rgba(177, 140, 255, .18);
  color: var(--violet-2);
}
.nav-link.active {
  background: linear-gradient(90deg, var(--sky-2), var(--violet-1));
  color: white;
  box-shadow: 0 6px 16px rgba(122, 78, 242, .35);
}

.trending-nav-panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%) translateY(6px);
  width: min(440px, calc(100vw - 28px));
  padding: 14px 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(177, 140, 255, 0.45);
  box-shadow: 0 18px 44px rgba(63, 32, 145, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 100;
}
.nav-trending-wrap:hover .trending-nav-panel,
.nav-trending-wrap:focus-within .trending-nav-panel,
.nav-trending-wrap.is-open .trending-nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.trending-nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 2px;
}
.trending-nav-panel-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet-2);
}
.trending-nav-see-all {
  font-size: 13px;
  font-weight: 700;
  color: #7a4ef2;
  text-decoration: none;
  white-space: nowrap;
}
.trending-nav-see-all:hover {
  text-decoration: underline;
}
.trending-nav-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 520px) {
  .trending-nav-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.trending-nav-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--violet-2);
  border-radius: 14px;
  padding: 4px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.trending-nav-thumb:hover {
  background: rgba(177, 140, 255, 0.16);
  transform: translateY(-2px);
}
.trending-nav-thumb-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(63, 32, 145, 0.15);
  border: 2px solid rgba(177, 140, 255, 0.35);
}
.trending-nav-thumb-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trending-nav-thumb-fire {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  font-size: 14px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.trending-nav-thumb-title {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-pin {
  background: linear-gradient(90deg, #ff8fcf, var(--violet-1));
  color: white;
  box-shadow: 0 6px 16px rgba(255, 143, 207, .45);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-pin:hover { color: white; transform: translateY(-1px); }
.pin-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8fcf, var(--violet-1));
  color: white;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  margin-left: 4px;
}
#pinsBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#pinsBtn svg { color: var(--violet-2); }

.nav-right {
  display: flex;
  gap: 8px;
}
.icon-btn {
  background: white;
  border: 1px solid rgba(177, 140, 255, .35);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--violet-2);
  box-shadow: 0 4px 12px rgba(122, 78, 242, .15);
  transition: transform .2s ease;
}
.icon-btn:hover { transform: scale(1.08); }

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  color: white;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #ff8fcf, var(--violet-1), var(--violet-2));
  box-shadow: 0 6px 16px rgba(122, 78, 242, .35);
  transition: transform .15s ease;
}
.upload-btn:hover { transform: translateY(-1px) scale(1.03); }
@media (max-width: 640px) {
  .upload-btn span { display: none; }
  .upload-btn { padding: 9px; width: 40px; height: 40px; justify-content: center; }
}

.profile-icon { overflow: hidden; padding: 0; }
.profile-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: 'Pacifico', cursive;
  font-size: 20px;
  color: white;
  background: linear-gradient(135deg, var(--sky-2), var(--violet-2));
}

/* === NOTIFICATIONS === */
.notif-wrap {
  position: relative;
}
#notifBtn { position: relative; overflow: visible; }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5fa2, #ff8fcf);
  color: white;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(255, 95, 162, .55);
  border: 2px solid white;
  line-height: 1;
  animation: badgePop .35s ease;
}
@keyframes badgePop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, 88vw);
  max-height: 420px;
  overflow-y: auto;
  background: white;
  border-radius: 18px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 20px 50px rgba(26, 10, 58, .25);
  padding: 14px 14px 10px;
  z-index: 60;
  animation: popIn .2s ease;
}
.notif-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, var(--sky-2), var(--violet-1), var(--violet-2), var(--pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid rgba(177, 140, 255, .25);
  margin-bottom: 6px;
}
.notif-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--violet-2);
}
.ghost-btn.small {
  font-size: 12px;
  padding: 5px 10px;
}
.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif-list .muted.small { color: #6b5aa0; font-size: 13px; margin: 4px; }
.notif-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 12px;
  transition: background .15s ease;
}
.notif-item.unread {
  background: linear-gradient(90deg, rgba(138, 211, 255, .18), rgba(177, 140, 255, .18));
}
.notif-item:hover { background: rgba(177, 140, 255, .15); }
.notif-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(177, 140, 255, .4);
}
.notif-body {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
}
.notif-body strong { color: var(--violet-2); }
.notif-time {
  display: block;
  font-size: 11px;
  color: #8a7bb5;
  margin-top: 2px;
}
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5fa2, #b18cff);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 95, 162, .65);
}

/* === HERO === */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 56px 22px 30px;
}
.hero-title {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--violet-2), var(--sky-2), var(--violet-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shimmer {
  background: linear-gradient(90deg, var(--gold), var(--pink), var(--violet-1), var(--sky-2));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.hero-sub {
  margin: 12px auto 28px;
  color: #4b3b78;
  font-weight: 500;
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 520px;
}

/* === SEARCH === */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  margin: 0 auto;
  background: white;
  padding: 6px 6px 6px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(177, 140, 255, .45);
  box-shadow: var(--shadow);
}
.search-icon {
  color: var(--violet-2);
  flex-shrink: 0;
}
#searchInput {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 8px;
  font-family: inherit;
  font-size: 15px;
  background: transparent;
  color: var(--ink);
}
#searchInput::placeholder { color: #8a7bb5; }
.search-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--sky-2), var(--violet-2));
  color: white;
  box-shadow: 0 6px 16px rgba(122, 78, 242, .35);
  transition: transform .15s ease;
}
.search-btn:hover { transform: translateY(-1px) scale(1.02); }

/* === CHIPS / FILTERS === */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px auto 6px;
  max-width: 920px;
}
.chip {
  border: 1.5px solid rgba(177, 140, 255, .5);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  color: var(--violet-2);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover {
  transform: translateY(-1px);
  background: white;
}
.chip.active {
  background: linear-gradient(90deg, var(--violet-1), var(--sky-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(122, 78, 242, .35);
}

/* === MASONRY GRID === */
.masonry {
  position: relative;
  z-index: 1;
  column-count: 4;
  column-gap: 22px;
  padding: 28px clamp(16px, 4vw, 44px) 40px;
  max-width: 1500px;
  margin: 0 auto;
}
@media (max-width: 1100px) { .masonry { column-count: 3; } }
@media (max-width: 760px)  { .masonry { column-count: 2; column-gap: 14px; } }
@media (max-width: 460px)  { .masonry { column-count: 1; } }

/* === TRENDING (weekly rail above Explore) === */
.trending-section {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 44px) 12px;
}
.trending-inner {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(177, 140, 255, 0.35);
  box-shadow: 0 10px 32px rgba(63, 32, 145, 0.1);
  padding: 22px 22px 28px;
}
.trending-head {
  margin-bottom: 18px;
  text-align: center;
}
.trending-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--violet-2);
  letter-spacing: -0.02em;
}
.trending-sub {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: #6b5aa0;
}
.trending-grid {
  column-count: 4;
  column-gap: 22px;
}
@media (max-width: 1100px) { .trending-grid { column-count: 3; } }
@media (max-width: 760px)  { .trending-grid { column-count: 2; column-gap: 14px; } }
@media (max-width: 460px)  { .trending-grid { column-count: 1; } }

.trending-pin .trending-fire {
  position: absolute;
  top: 18px;
  right: 16px;
  z-index: 5;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 10px rgba(255, 140, 66, 0.55));
  animation: firePulse 2.2s ease-in-out infinite;
}
@keyframes firePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.92; }
}
.trending-pin .save-btn {
  right: 52px;
}

.pin {
  break-inside: avoid;
  margin: 0 0 22px;
  display: inline-block;
  width: 100%;
  animation: fadeUp .6s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === FRAMED PHOTO === */
.frame {
  position: relative;
  border-radius: var(--radius);
  padding: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.6)),
    linear-gradient(135deg, var(--sky-2), var(--violet-1), var(--violet-2));
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: linear-gradient(135deg, var(--sky-2), var(--violet-1), var(--violet-2), var(--pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.frame::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,.35) 30deg, transparent 60deg, transparent 360deg);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  animation: spin 6s linear infinite;
}
.pin:hover .frame {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-strong);
}
.pin:hover .frame::after { opacity: 0.7; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 8px);
  position: relative;
  z-index: 1;
}

/* sparkle corner accent */
.frame > .save-btn { position: absolute; }
.save-btn {
  top: 14px;
  right: 14px;
  z-index: 3;
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, #ff5fa2, #ff8fcf);
  color: white;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 14px rgba(255, 95, 162, .45);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease;
}
.pin:hover .save-btn { opacity: 1; transform: translateY(0); }
.save-btn.saved {
  background: linear-gradient(90deg, #7a4ef2, #b18cff);
  box-shadow: 0 6px 14px rgba(122, 78, 242, .5);
}

.pin-meta {
  padding: 10px 6px 0;
}
.pin-meta h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--violet-2);
}
.tags {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: #6b5aa0;
}
.tags span {
  background: rgba(177, 140, 255, .15);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* === RESULTS BANNER === */
.results-banner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 8px auto 0;
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(177, 140, 255, 0.4);
  box-shadow: 0 6px 18px rgba(63, 32, 145, 0.12);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}
.results-banner strong { color: var(--violet-2); }
.results-banner em {
  font-style: normal;
  background: linear-gradient(90deg, var(--violet-2), var(--sky-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.results-banner .reco-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.results-banner .reco-tags button {
  border: 1.5px solid rgba(177, 140, 255, 0.5);
  background: white;
  color: var(--violet-2);
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}
.results-banner .reco-tags button:hover {
  background: linear-gradient(90deg, var(--violet-1), var(--sky-2));
  color: white;
  border-color: transparent;
}

/* === EMPTY === */
.empty-state {
  text-align: center;
  padding: 30px 22px 60px;
  color: var(--violet-2);
  font-weight: 600;
  max-width: 720px;
  margin: 0 auto;
}
.empty-state em {
  font-style: normal;
  color: var(--violet-2);
  background: rgba(177, 140, 255, 0.18);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  margin: 0 2px;
}

/* === FOOTER === */
.footer {
  text-align: center;
  padding: 28px 18px 40px;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.footer p { margin: 4px 0; }
.footer .muted { color: #6b5aa0; font-size: 13px; }
.heart { color: #ff6fb5; }

/* === ABOUT PAGE === */
.about-wrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 56px auto 60px;
  padding: 36px clamp(20px, 4vw, 44px);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  border: 1.5px solid rgba(177, 140, 255, .4);
  box-shadow: var(--shadow);
}
.about-wrap h1 {
  margin-top: 0;
  font-size: clamp(28px, 4vw, 40px);
  background: linear-gradient(90deg, var(--violet-2), var(--sky-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-wrap p { line-height: 1.65; color: #3b2a72; }
.about-wrap ul { line-height: 1.8; color: #3b2a72; }
.about-wrap a { color: var(--violet-2); font-weight: 700; }

/* === ARTIST ROW (added to each pin) === */
.artist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0 6px;
}
.artist-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(122, 78, 242, .25);
}
.artist-info {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.artist-handle {
  font-weight: 700;
  font-size: 13px;
  color: var(--violet-2);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.artist-followers {
  font-size: 11.5px;
  color: #6b5aa0;
}
.follow-btn,
.request-mini-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  transition: transform .15s ease, background .2s ease;
  white-space: nowrap;
}
.follow-btn {
  background: linear-gradient(90deg, var(--sky-2), var(--violet-2));
  color: white;
  box-shadow: 0 4px 10px rgba(122, 78, 242, .35);
}
.follow-btn.following {
  background: rgba(177, 140, 255, .2);
  color: var(--violet-2);
  box-shadow: none;
}
.follow-btn:hover { transform: translateY(-1px); }
.request-mini-btn {
  background: white;
  color: var(--violet-2);
  border: 1.5px solid rgba(177, 140, 255, .5);
  text-decoration: none;
  display: inline-block;
}
.request-mini-btn:hover {
  background: linear-gradient(90deg, #ffd5ea, #e3d4ff);
}

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 10, 58, .65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 200;
  animation: modalFade .2s ease;
}
.modal[hidden] { display: none; }
@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 26px;
  padding: 26px clamp(20px, 4vw, 32px);
  box-shadow: 0 30px 80px rgba(26, 10, 58, .35);
  border: 2px solid transparent;
  background-clip: padding-box;
  animation: modalPop .25s ease;
}
.modal-card.small { width: min(440px, 100%); }
.modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 2px;
  background: linear-gradient(135deg, var(--sky-2), var(--violet-1), var(--violet-2), var(--pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@keyframes modalPop {
  from { transform: translateY(10px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--sky-2), var(--violet-2));
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(122, 78, 242, .4);
  z-index: 2;
}
.modal-title {
  margin: 0 0 6px;
  font-size: 24px;
  background: linear-gradient(90deg, var(--violet-2), var(--sky-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.modal-sub {
  margin: 0 0 18px;
  color: #4b3b78;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.primary-btn,
.ghost-btn,
.request-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  transition: transform .15s ease;
}
.primary-btn {
  background: linear-gradient(90deg, var(--sky-2), var(--violet-2));
  color: white;
  box-shadow: 0 6px 14px rgba(122, 78, 242, .4);
}
.primary-btn:hover:not(:disabled) { transform: translateY(-1px); }
.primary-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}
.ghost-btn {
  background: rgba(177, 140, 255, .15);
  color: var(--violet-2);
}
.ghost-btn:hover { background: rgba(177, 140, 255, .28); }

.request-btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(90deg, #ff8fcf, var(--violet-1), var(--violet-2));
  color: white;
  box-shadow: 0 6px 16px rgba(255, 143, 207, .45);
}
.request-btn:hover { transform: translateY(-1px); }

/* === PROFILE === */
.profile-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 6px 0 18px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-2), var(--violet-1), var(--violet-2));
  display: grid;
  place-items: center;
  color: white;
  font-family: 'Pacifico', cursive;
  font-size: 32px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(122, 78, 242, .35);
}
.profile-info h2 {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}
.profile-handle {
  margin: 2px 0 8px;
  color: var(--violet-2);
  font-weight: 600;
}
.profile-stats {
  display: flex;
  gap: 18px;
}
.profile-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  color: #6b5aa0;
}
.profile-stats strong {
  font-size: 18px;
  color: var(--violet-2);
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.custom-request-card {
  background: linear-gradient(135deg, rgba(138, 211, 255, .18), rgba(177, 140, 255, .18));
  border: 1.5px solid rgba(177, 140, 255, .4);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.custom-request-card h3 {
  margin: 0 0 6px;
  color: var(--violet-2);
  font-size: 17px;
}
.custom-request-card p {
  margin: 0 0 12px;
  color: #4b3b78;
  font-size: 14px;
  line-height: 1.5;
}

.my-uploads h3 {
  margin: 0 0 10px;
  color: var(--violet-2);
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mini-grid .muted.small {
  grid-column: 1 / -1;
  color: #6b5aa0;
  font-size: 13px;
}
.mini-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(177, 140, 255, .4);
  background: #fff;
}
.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === MY PINS MODAL === */
.pins-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.pins-modal-grid .pins-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b5aa0;
  padding: 18px 8px;
  background: rgba(177, 140, 255, .12);
  border-radius: 14px;
}
.saved-pin {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 8px 18px rgba(63, 32, 145, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.saved-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, var(--sky-2), var(--violet-1), var(--violet-2), var(--pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.saved-pin:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(63, 32, 145, .22);
}
.saved-pin img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.saved-pin-title {
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--violet-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-pin-unsave {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.94);
  color: #ff5fa2;
  font-size: 16px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(26, 10, 58, 0.25);
  transition: transform .15s ease, background .15s ease;
}
.saved-pin-unsave:hover {
  background: linear-gradient(135deg, #ff5fa2, #ff8fcf);
  color: white;
  transform: scale(1.08);
}

/* === UPLOAD MODAL === */
.upload-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.mode-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid rgba(177, 140, 255, 0.45);
  background: rgba(255, 255, 255, 0.85);
  color: var(--violet-2);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}
.mode-btn:hover {
  transform: translateY(-1px);
  background: white;
}
.mode-btn.active {
  background: linear-gradient(90deg, var(--violet-1), var(--sky-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(122, 78, 242, 0.35);
}

.camera-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0a0420;
  margin-bottom: 14px;
  border: 2px solid rgba(177, 140, 255, 0.55);
}
.camera-stage video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  background: #0a0420;
}
.camera-frame-guide {
  position: absolute;
  inset: 12% 18%;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  pointer-events: none;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.camera-controls {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
.camera-controls .primary-btn,
.camera-controls .ghost-btn {
  padding: 9px 18px;
  font-size: 13px;
}
.camera-controls .ghost-btn {
  background: rgba(255, 255, 255, 0.9);
}

.upload-status {
  margin: -4px 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  animation: popIn 0.18s ease;
}
.upload-status.error {
  background: linear-gradient(90deg, rgba(255, 95, 162, 0.18), rgba(255, 143, 207, 0.18));
  border: 1.5px solid rgba(255, 95, 162, 0.5);
  color: #b6175f;
}
.upload-status.ok {
  background: linear-gradient(90deg, rgba(138, 211, 255, 0.22), rgba(177, 140, 255, 0.22));
  border: 1.5px solid rgba(122, 78, 242, 0.4);
  color: var(--violet-2);
}
.upload-status.info {
  background: rgba(177, 140, 255, 0.15);
  color: var(--violet-2);
}

.dropzone {
  display: block;
  border: 2px dashed rgba(177, 140, 255, .55);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(207, 238, 255, .35), rgba(234, 216, 255, .35));
  padding: 22px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 14px;
  transition: background .2s ease, border-color .2s ease;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--violet-2);
  background: linear-gradient(135deg, rgba(207, 238, 255, .55), rgba(234, 216, 255, .55));
}
.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--violet-2);
}
.dropzone-inner p { margin: 4px 0; }
.dropzone-inner .muted { color: #6b5aa0; }
.dropzone-inner .small { font-size: 12.5px; }
.dropzone img#previewImg {
  display: block;
  max-width: 100%;
  max-height: 280px;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--violet-2);
}
.form-row .muted {
  color: #8a7bb5;
  font-weight: 500;
  font-size: 12px;
}
.form-row input {
  border: 1.5px solid rgba(177, 140, 255, .4);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  outline: 0;
  background: white;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus {
  border-color: var(--violet-2);
  box-shadow: 0 0 0 3px rgba(122, 78, 242, .15);
}

@media (max-width: 540px) {
  .profile-header { flex-direction: column; text-align: center; }
  .profile-stats { justify-content: center; }
  .mini-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === LIKE BUTTON ON PINS (heart icon, turns red on like) === */
.like-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(63, 32, 145, .25);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  backdrop-filter: blur(6px);
  padding: 0;
}
.like-btn svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: #ff3b6b;
  fill: none;
  stroke-width: 2.2;
  transition: fill .2s ease, stroke .2s ease, transform .25s ease;
}
.pin:hover .like-btn,
.like-btn.liked {
  opacity: 1;
  transform: translateY(0);
}
.like-btn.liked {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 20px rgba(255, 59, 107, .45);
}
.like-btn.liked svg {
  fill: #ff1f48;
  stroke: #ff1f48;
  animation: heartPop .45s ease;
}
@keyframes heartPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.45); }
  70%  { transform: scale(.9); }
  100% { transform: scale(1); }
}

/* === PIN STATS (like + comment counts under the title) === */
.pin-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 0 2px;
  font-size: 12.5px;
  color: #6b5aa0;
  font-weight: 600;
}
.pin-stats .stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(177, 140, 255, .14);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.pin-stats .stat:hover {
  background: rgba(177, 140, 255, .28);
  transform: translateY(-1px);
}
.pin-stats .stat svg {
  width: 13px;
  height: 13px;
}
.pin-stats .stat.liked {
  background: rgba(255, 59, 107, .14);
  color: #d31a47;
}
.pin-stats .stat.liked svg { fill: #ff1f48; stroke: #ff1f48; }
.pin-stats .stat svg { stroke: currentColor; fill: none; stroke-width: 2; }

/* === LIGHTBOX (now a comment-rich modal) === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(26, 10, 58, .7);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  transition: opacity .25s ease;
  padding: 24px;
  overflow-y: auto;
}
.lightbox.open { opacity: 1; }
.lightbox-inner {
  position: relative;
  width: min(94vw, 880px);
  max-height: 92vh;
  background: white;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  border: 2px solid transparent;
  background-clip: padding-box;
}
.lightbox-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  padding: 3px;
  background: linear-gradient(135deg, #8ad3ff, #b18cff, #7a4ef2, #ffb6e1);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.lightbox-image-pane {
  background: linear-gradient(135deg, #f4edff, #e7f4ff);
  display: grid;
  place-items: center;
  padding: 20px;
}
.lightbox-image-pane img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(63, 32, 145, .25);
}
.lightbox-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 22px 18px;
  background: white;
}
.lightbox-title {
  margin: 0 0 4px;
  padding-right: 44px;
  font-weight: 800;
  font-size: 19px;
  color: var(--violet-2);
  text-align: left;
}
.lightbox-sub {
  margin: 0 0 14px;
  color: #6b5aa0;
  font-size: 13px;
}
.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(177, 140, 255, .25);
}
.lightbox-like-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 59, 107, .12);
  color: #d31a47;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.lightbox-like-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ff3b6b;
  fill: none;
  stroke-width: 2.2;
  transition: fill .2s ease, stroke .2s ease;
}
.lightbox-like-btn:hover { transform: translateY(-1px); }
.lightbox-like-btn.liked {
  background: rgba(255, 59, 107, .16);
  color: #d31a47;
  box-shadow: 0 8px 18px rgba(255, 59, 107, .35);
}
.lightbox-like-btn.liked svg { fill: #ff1f48; stroke: #ff1f48; animation: heartPop .45s ease; }
.lightbox-stats {
  font-size: 12.5px;
  color: #6b5aa0;
  font-weight: 600;
}
.lightbox-comments {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 12px;
}
.lightbox-comments-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  min-height: 120px;
  max-height: 38vh;
}
.lightbox-comments-list .empty-comments {
  color: #8a7bb5;
  font-size: 13px;
  font-style: italic;
  margin: 8px 0;
}
.comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body {
  flex: 1;
  background: linear-gradient(135deg, rgba(207, 238, 255, .55), rgba(234, 216, 255, .55));
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.4;
  word-wrap: break-word;
}
.comment-body .comment-handle {
  font-weight: 700;
  color: var(--violet-2);
  margin-right: 6px;
}
.comment-body .comment-time {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #8a7bb5;
  font-weight: 500;
}
.comment-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(177, 140, 255, .25);
}
.comment-input-row input {
  flex: 1;
  border: 1.5px solid rgba(177, 140, 255, .35);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13.5px;
  outline: 0;
  background: white;
  color: var(--ink);
}
.comment-input-row input:focus {
  border-color: var(--violet-2);
  box-shadow: 0 0 0 3px rgba(122, 78, 242, .15);
}
.comment-input-row button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8ad3ff, #7a4ef2);
  color: white;
  box-shadow: 0 6px 14px rgba(122, 78, 242, .4);
}
.comment-input-row button:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, #8ad3ff, #7a4ef2);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(122, 78, 242, .55);
  z-index: 5;
  transition: transform .15s ease, box-shadow .2s ease;
}
.lightbox-close:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(122, 78, 242, .65);
}

@media (max-width: 720px) {
  .lightbox-inner {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }
  .lightbox-image-pane { padding: 14px; }
  .lightbox-image-pane img { max-height: 40vh; }
  .lightbox-comments-list { max-height: 28vh; }
}

/* === AVATAR IMAGE (overrides initial when user uploads pfp) === */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#profileBtn .avatar-img {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.profile-avatar { position: relative; overflow: hidden; }
.profile-avatar .avatar-img { position: absolute; inset: 0; border-radius: 50%; }

/* === AVATAR EDIT ROW IN EDIT PROFILE MODAL === */
.avatar-edit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 0 18px;
  border-bottom: 1px solid rgba(177, 140, 255, .25);
  margin-bottom: 18px;
}
.avatar-edit-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sky-2), var(--violet-1), var(--violet-2));
  color: white;
  display: grid;
  place-items: center;
  font-family: 'Pacifico', cursive;
  font-size: 30px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(122, 78, 242, .35);
}
.avatar-edit-preview .avatar-img { position: absolute; inset: 0; border-radius: 50%; }
.avatar-edit-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.avatar-edit-label {
  margin: 0 0 4px;
  font-weight: 600;
  color: var(--violet-2);
}
.ghost-btn.small {
  font-size: 12.5px;
  padding: 6px 12px;
}
