/* Yamkage Powerups: Trending Tags, Mystery Chest, Emoji Reactions, Coin Lock Preview, Multi-Image Badge & Search Autocomplete */

/* 1. Explore Trending Tags & Mystery Chest Hub */
.yfpw-explore-hub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 29, 51, 0.88), rgba(15, 22, 40, 0.94));
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow: 0 8px 24px rgba(8, 12, 24, 0.26);
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-explore-hub {
  background: linear-gradient(135deg, #ffffff, #f7f5ff) !important;
  border: 1px solid rgba(139, 92, 246, 0.24) !important;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.08) !important;
}

:is(html[data-mode="dark"], html[data-theme="dark"], body.dark, body.dark-mode) .yfpw-explore-hub {
  background: linear-gradient(135deg, rgba(20, 29, 51, 0.88), rgba(15, 22, 40, 0.94)) !important;
  border: 1px solid rgba(139, 92, 246, 0.28) !important;
  box-shadow: 0 8px 24px rgba(8, 12, 24, 0.26) !important;
}

.yfpw-trending-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 520px;
  min-width: 0;
  flex-wrap: wrap;
}

.yfpw-trending-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c4b5fd;
  white-space: nowrap;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-trending-title {
  color: #4338ca !important;
}

:is(html[data-mode="dark"], html[data-theme="dark"], body.dark, body.dark-mode) .yfpw-trending-title {
  color: #c4b5fd !important;
}

.yfpw-trending-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.yfpw-trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.yfpw-trend-chip:hover {
  background: rgba(124, 58, 237, 0.28);
  border-color: rgba(167, 139, 250, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

.yfpw-trend-hash {
  color: #a78bfa;
  font-weight: 800;
}

.yfpw-trend-chip small {
  font-size: 10.5px;
  opacity: 0.7;
  margin-left: 2px;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-trend-chip {
  background: #f1f5f9 !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  color: #1e293b !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-trend-chip:hover {
  background: #ede9fe !important;
  border-color: #8b5cf6 !important;
  color: #4338ca !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-trend-hash {
  color: #7c3aed !important;
}

:is(html[data-mode="dark"], html[data-theme="dark"], body.dark, body.dark-mode) .yfpw-trend-chip {
  background: rgba(30, 41, 59, 0.72) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  color: #e2e8f0 !important;
}

/* 2. Daily Mystery Chest Card */
.yfpw-chest-card {
  flex: 0 0 auto;
}

.yfpw-chest-form {
  margin: 0;
}

.yfpw-chest-btn {
  appearance: none;
  border: 1.5px solid rgba(250, 204, 21, 0.55);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.75), rgba(49, 16, 66, 0.75));
  color: #fef08a !important;
  border-radius: 14px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.yfpw-chest-btn:hover:not(.is-claimed) {
  transform: translateY(-1.5px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(234, 179, 8, 0.28);
}

.yfpw-chest-btn.is-claimed {
  border-color: rgba(74, 222, 128, 0.45);
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.4), rgba(15, 23, 42, 0.7));
  color: #bbf7d0 !important;
  cursor: default;
  box-shadow: none;
}

/* Light mode for chest button */
:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-chest-btn {
  background: linear-gradient(135deg, #fffbeb, #faf5ff) !important;
  border: 1.5px solid rgba(217, 119, 6, 0.45) !important;
  color: #713f12 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.1) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-chest-btn.is-claimed {
  background: linear-gradient(135deg, #f0fdf4, #ffffff) !important;
  border-color: rgba(34, 197, 94, 0.45) !important;
  color: #14532d !important;
  box-shadow: 0 3px 12px rgba(34, 197, 94, 0.08) !important;
}

/* Icon Badge */
.yfpw-chest-icon-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  flex: none !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35) !important;
  transition: transform 0.2s ease !important;
}

.yfpw-chest-icon-badge svg {
  stroke: #ffffff !important;
}

.yfpw-chest-icon-badge.is-opened {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35) !important;
}

.yfpw-chest-btn:hover:not(.is-claimed) .yfpw-chest-icon-badge {
  transform: rotate(-8deg) scale(1.08) !important;
}

/* Chest Body and Heading */
.yfpw-chest-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.yfpw-chest-heading {
  display: block !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: #fef08a !important;
  letter-spacing: -0.01em !important;
}

.yfpw-chest-btn.is-claimed .yfpw-chest-heading {
  color: #86efac !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-chest-heading {
  color: #78350f !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-chest-btn.is-claimed .yfpw-chest-heading {
  color: #14532d !important;
}

/* Mini Reward Badges (Chenare) */
.yfpw-reward-badges {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.yfpw-mini-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2.5px 7.5px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
  transition: transform 0.15s ease !important;
}

.yfpw-mini-chip svg {
  flex: none !important;
}

.yfpw-mini-chip .yfpw-mini-coin-glyph {
  font-size: 11px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 1px !important;
}

/* Coin Mini-Chenar */
.yfpw-mini-chip.is-coin {
  background: rgba(234, 179, 8, 0.18) !important;
  border: 1px solid rgba(250, 204, 21, 0.45) !important;
  color: #fde047 !important;
}

.yfpw-mini-chip.is-coin svg {
  stroke: #facc15 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-mini-chip.is-coin {
  background: #fef9c3 !important;
  border: 1px solid rgba(202, 138, 4, 0.45) !important;
  color: #854d0e !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-mini-chip.is-coin svg {
  stroke: #a16207 !important;
}

/* XP Mini-Chenar */
.yfpw-mini-chip.is-xp {
  background: rgba(139, 92, 246, 0.22) !important;
  border: 1px solid rgba(167, 139, 250, 0.45) !important;
  color: #c4b5fd !important;
}

.yfpw-mini-chip.is-xp svg {
  stroke: #a78bfa !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-mini-chip.is-xp {
  background: #ede9fe !important;
  border: 1px solid rgba(147, 51, 234, 0.35) !important;
  color: #6b21a8 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-mini-chip.is-xp svg {
  stroke: #7e22ce !important;
}

/* 3. Multi-Image Set Badge on Gallery Cards (1/N) */
.artwork-thumbnail {
  position: relative;
}

.yfpw-multi-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(167, 139, 250, 0.45);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

/* 4. Quick Emoji Reactions Bar on Artwork Page */
.yfpw-reactions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 6px;
  padding: 10px 14px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-reactions-row {
  background: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

:is(html[data-mode="dark"], html[data-theme="dark"], body.dark, body.dark-mode) .yfpw-reactions-row {
  background: rgba(15, 23, 42, 0.45) !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

.yfpw-reactions-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin-right: 4px;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-reactions-label {
  color: #475569 !important;
}

.yfpw-reactions-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}

.yfpw-react-form {
  margin: 0;
  display: inline-flex;
}

.yfpw-react-btn {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(30, 41, 59, 0.75);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 5px 12px;
  font: 600 12px/1.2 inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, background 0.15s ease, border-color 0.15s ease;
}

.yfpw-react-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 139, 250, 0.6);
  background: rgba(51, 65, 85, 0.9);
}

.yfpw-react-btn.is-active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.36), rgba(168, 85, 247, 0.36));
  border-color: #a78bfa;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.28);
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-react-btn {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-react-btn:hover {
  background: #f1f5f9 !important;
  border-color: #8b5cf6 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-react-btn.is-active {
  background: #ede9fe !important;
  border-color: #7c3aed !important;
  color: #4338ca !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15) !important;
}

.yfpw-react-emoji {
  font-size: 14px;
  line-height: 1;
}

.yfpw-react-count {
  font-weight: 800;
  color: #c4b5fd;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-react-count {
  color: #6366f1 !important;
}

:is(html[data-mode="dark"], html[data-theme="dark"], body.dark, body.dark-mode) .yfpw-react-count {
  color: #c4b5fd !important;
}

.yfpw-manage-set-link {
  font-size: 12px;
  font-weight: 700;
  color: #a78bfa;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px dashed rgba(167, 139, 250, 0.45);
  white-space: nowrap;
}

.yfpw-manage-set-link:hover {
  background: rgba(139, 92, 246, 0.16);
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-manage-set-link {
  color: #6d28d9 !important;
  border-color: rgba(109, 40, 217, 0.4) !important;
  background: rgba(109, 40, 217, 0.06) !important;
}

/* 5. Kage Coin Protected Stage & Grid Thumbnail Blur */
.art-image-wrap.yf-stage-coin-locked {
  overflow: hidden !important;
  position: relative !important;
}

.art-image-wrap.yf-stage-coin-locked #artwork-image,
html body .art-image-wrap.yf-stage-coin-locked img#artwork-image {
  filter: blur(8px) brightness(0.86) !important;
  transform: scale(1.02) !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  pointer-events: none !important;
  transition: filter 0.25s ease !important;
}

/* Grid Card Blur for Locked Coin Artworks */
.artwork-thumbnail.yf-thumb-coin-locked {
  position: relative !important;
  overflow: hidden !important;
}

html body .artwork-thumbnail.yf-thumb-coin-locked img,
html body .card .artwork-thumbnail.yf-thumb-coin-locked > img,
html body .yf-explore-stable-grid.grid > .card .artwork-thumbnail.yf-thumb-coin-locked > img,
html body .yf-explore-stable-grid.grid > .card.yf-image-ready .artwork-thumbnail.yf-thumb-coin-locked > img {
  filter: blur(7px) brightness(0.88) !important;
  transform: scale(1.04) !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  pointer-events: none !important;
  transition: filter 0.25s ease, transform 0.25s ease !important;
}

html body .card:hover .artwork-thumbnail.yf-thumb-coin-locked img,
html body .card:hover .artwork-thumbnail.yf-thumb-coin-locked > img,
html body .yf-explore-stable-grid.grid > .card:hover .artwork-thumbnail.yf-thumb-coin-locked > img {
  filter: blur(5px) brightness(0.92) !important;
  transform: scale(1.06) !important;
}

/* "Continue where you left off" thumbnail wrap & blur */
.ex-resume-thumb-wrap {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 7px !important;
  width: 100% !important;
  height: 150px !important;
  display: block !important;
}

.ex-resume-thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 7px !important;
}

.ex-resume-thumb-wrap.yf-thumb-coin-locked img,
.ex-resume-grid > a.yf-thumb-coin-locked img {
  filter: blur(7px) brightness(0.88) !important;
  transform: scale(1.04) !important;
  user-select: none !important;
  pointer-events: none !important;
  transition: filter 0.25s ease, transform 0.25s ease !important;
}

.ex-resume-grid > a:hover .ex-resume-thumb-wrap.yf-thumb-coin-locked img,
.ex-resume-grid > a.yf-thumb-coin-locked:hover img {
  filter: blur(5px) brightness(0.92) !important;
  transform: scale(1.06) !important;
}

/* Centered lock badge on blurred grid cards */
.yfpw-card-coin-overlay {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: none !important;
  z-index: 4 !important;
  padding: 12px !important;
}

.yfpw-card-coin-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 9px 16px !important;
  border-radius: 9999px !important;
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(250, 204, 21, 0.8) !important;
  color: #fef08a !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  line-height: 1 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 16px rgba(234, 179, 8, 0.35) !important;
  transition: transform 0.2s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.2s ease !important;
}

.yfpw-card-coin-chip svg {
  flex: none !important;
  stroke: #facc15 !important;
  stroke-width: 2.4 !important;
}

.card:hover .yfpw-card-coin-chip {
  transform: scale(1.08) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(234, 179, 8, 0.5) !important;
}

/* Corner Coin Badge on .artwork-thumbnail */
.yfpw-coin-corner-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35) !important;
  pointer-events: none !important;
}

.yfpw-coin-corner-badge.is-locked {
  background: rgba(18, 16, 42, 0.88) !important;
  border: 1px solid rgba(250, 204, 21, 0.75) !important;
  color: #fde047 !important;
}

.yfpw-coin-corner-badge.is-unlocked {
  background: rgba(16, 185, 129, 0.25) !important;
  border: 1px solid rgba(52, 211, 153, 0.8) !important;
  color: #a7f3d0 !important;
}

/* Caption Badge below card (next to WithAI / NoAI) */
.yfpw-coin-caption-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 3px 9px !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em !important;
  vertical-align: middle !important;
  margin-right: 6px !important;
}

.yfpw-coin-caption-badge.is-locked {
  background: rgba(234, 179, 8, 0.16) !important;
  border: 1px solid rgba(250, 204, 21, 0.45) !important;
  color: #facc15 !important;
}

.yfpw-coin-caption-badge.is-unlocked {
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1px solid rgba(52, 211, 153, 0.5) !important;
  color: #34d399 !important;
}

.yfpw-coin-cap-icon {
  font-size: 11px !important;
  line-height: 1 !important;
}

/* Light Mode Overrides for Coin Overlays & Badges */
:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-card-coin-chip {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid rgba(147, 51, 234, 0.6) !important;
  color: #581c87 !important;
  box-shadow: 0 6px 20px rgba(107, 33, 168, 0.22), 0 0 12px rgba(234, 179, 8, 0.25) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-card-coin-chip svg {
  stroke: #7e22ce !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-coin-corner-badge.is-locked {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(202, 138, 4, 0.65) !important;
  color: #854d0e !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-coin-corner-badge.is-unlocked {
  background: rgba(240, 253, 244, 0.94) !important;
  border: 1px solid rgba(22, 163, 74, 0.5) !important;
  color: #15803d !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-coin-caption-badge.is-locked {
  background: #fef9c3 !important;
  border: 1px solid rgba(202, 138, 4, 0.5) !important;
  color: #854d0e !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-coin-caption-badge.is-unlocked {
  background: #dcfce7 !important;
  border: 1px solid rgba(22, 163, 74, 0.5) !important;
  color: #166534 !important;
}

.yfpw-coin-stage-banner {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.92), rgba(49, 16, 66, 0.92));
  border: 1px solid rgba(250, 204, 21, 0.48);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #f8fafc;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-coin-stage-banner {
  background: linear-gradient(135deg, #fdf4ff, #faf5ff) !important;
  border: 1px solid rgba(168, 85, 247, 0.45) !important;
  color: #1e1b4b !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.1) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-coin-stage-info strong {
  color: #7e22ce !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-coin-stage-info small {
  color: #475569 !important;
}

.yfpw-coin-stage-info {
  display: flex;
  align-items: center;
  gap: 11px;
}

.yfpw-coin-lock-badge {
  font-size: 22px;
  line-height: 1;
}

.yfpw-coin-stage-info strong {
  display: block;
  font-size: 13.5px;
  color: #fef08a;
}

.yfpw-coin-stage-info small {
  display: block;
  font-size: 12px;
  color: #e2e8f0;
  opacity: 0.9;
}

.yfpw-coin-stage-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.yfpw-coin-stage-cta form {
  margin: 0 !important;
  display: inline-flex !important;
}

.yfpw-unlock-stage-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: 0 !important;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease !important;
}

/* Primary Unlock button */
button.yfpw-unlock-stage-btn,
a.yfpw-unlock-stage-btn:not(.yfpw-stage-manage-btn) {
  background: linear-gradient(135deg, #d97706, #b45309) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.4) !important;
}

button.yfpw-unlock-stage-btn:hover,
a.yfpw-unlock-stage-btn:not(.yfpw-stage-manage-btn):hover {
  filter: brightness(1.12) !important;
  transform: translateY(-1px) !important;
}

/* Secondary Manage button */
.yfpw-stage-manage-btn {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  backdrop-filter: blur(6px) !important;
}

.yfpw-stage-manage-btn:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Light mode overrides for stage banner buttons */
:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) button.yfpw-unlock-stage-btn,
:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) a.yfpw-unlock-stage-btn:not(.yfpw-stage-manage-btn) {
  background: linear-gradient(135deg, #9333ea, #7e22ce) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.3) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-stage-manage-btn {
  background: #ffffff !important;
  border: 1.5px solid rgba(147, 51, 234, 0.45) !important;
  color: #6b21a8 !important;
  box-shadow: 0 2px 8px rgba(107, 33, 168, 0.08) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-stage-manage-btn:hover {
  background: #faf5ff !important;
  border-color: #7e22ce !important;
  color: #581c87 !important;
}

/* 6. Live Search Autocomplete Dropdown */
header form.search {
  position: relative;
}

.yfpw-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 999;
  background: #111827;
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 340px;
  overflow-y: auto;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-search-dropdown {
  background: #ffffff !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15) !important;
}

.yfpw-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  color: #f1f5f9;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
}

.yfpw-search-item:hover {
  background: rgba(124, 58, 237, 0.25);
  color: #ffffff;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-search-item {
  color: #1e293b !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme, html:not([data-mode="dark"]):not([data-theme="dark"])) .yfpw-search-item:hover {
  background: #ede9fe !important;
  color: #4338ca !important;
}

.yfpw-search-item small {
  color: #94a3b8;
  font-size: 11px;
}

/* 7. Right-Click Protection Toast */
.yfpw-guard-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(167, 139, 250, 0.55);
  color: #f8fafc;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 640px) {
  .yfpw-explore-hub {
    padding: 10px 12px;
  }
  .yfpw-chest-card,
  .yfpw-chest-btn {
    width: 100%;
    justify-content: center;
  }
  .yfpw-react-name {
    display: none;
  }
}

/* 8. YamGames Exact Match: Theme Lightbulb + Square Purple Clear Cache + Big Surprise Me Pill */
html body > header details#appearance > summary {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 14px !important;
  border: 1px solid #f1dca8 !important;
  color: #c9701d !important;
  background: radial-gradient(100% 100% at 30% 20%, #fffbea, #fff3d6) !important;
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(201, 112, 29, 0.16) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

html body > header details#appearance > summary:hover {
  transform: translateY(-2px) rotate(-8deg) !important;
  box-shadow: inset 0 1px 0 #fff, 0 10px 22px rgba(201, 112, 29, 0.28) !important;
}

:is(html[data-mode="dark"], html[data-theme="dark"], body.dark, body.dark-mode) > header details#appearance > summary {
  border-color: #43386b !important;
  color: #ffd36e !important;
  background: radial-gradient(100% 100% at 30% 20%, #2f2850, #211c3a) !important;
  box-shadow: 0 0 18px rgba(255, 211, 110, 0.18) !important;
}

/* Square Purple Clear Cache Button (Icon Only, like YamGames) */
html body > header .yf-admin-refresh-button {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #7552e8 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 5px 14px rgba(100, 62, 211, 0.24) !important;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

:is(html[data-mode="dark"], html[data-theme="dark"], body.dark, body.dark-mode) > header .yf-admin-refresh-button {
  background: linear-gradient(135deg, #805af0, #5c37c9) !important;
  color: #ffffff !important;
}

html body > header .yf-admin-refresh-button:hover {
  filter: brightness(1.08) !important;
  box-shadow: 0 7px 18px rgba(100, 62, 211, 0.34) !important;
  transform: translateY(-2px) !important;
}

html body > header .yf-admin-refresh-button:active {
  transform: scale(0.95) !important;
}

html body > header .yf-admin-refresh-button .yf-admin-refresh-label {
  display: none !important;
}

html body > header .yf-admin-refresh-button svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  stroke: #ffffff !important;
}

/* Surprise Me Button (Matches YamGames Random Game Pill) */
@media (min-width: 701px) {
  html body > header nav > a.header-surprise {
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 6px 16px 6px 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.22), transparent 55%), linear-gradient(135deg, #9a6dff, #6a3fd6 55%, #5229b8) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 22px rgba(98, 58, 214, 0.34) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
    text-decoration: none !important;
  }

  html body > header nav > a.header-surprise::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 62%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
  }

  html body > header nav > a.header-surprise:hover {
    transform: translateY(-2px) !important;
    background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.26), transparent 55%), linear-gradient(135deg, #a77cff, #7348e3 55%, #5a30c4) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 28px rgba(98, 58, 214, 0.42) !important;
    color: #ffffff !important;
  }

  html body > header nav > a.header-surprise:hover::after {
    transform: translateX(120%);
  }

  html body > header nav > a.header-surprise .surprise-icon,
  html body > header nav > a.header-surprise .dice-icon {
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    height: 34px !important;
    flex: none !important;
    border-radius: 11px !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26) !important;
    transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1) !important;
  }

  html body > header nav > a.header-surprise .surprise-icon svg,
  html body > header nav > a.header-surprise .dice-icon svg {
    width: 21px !important;
    height: 21px !important;
  }

  html body > header nav > a.header-surprise:hover .surprise-icon,
  html body > header nav > a.header-surprise:hover .dice-icon {
    transform: rotate(-10deg) scale(1.08) !important;
  }
}

@media (max-width: 700px) {
  html body > header details#appearance > summary,
  html body > header .yf-admin-refresh-button {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: 12px !important;
  }
}

/* Streak Badge on Daily Chest */
.yfpw-mini-chip.is-streak {
  background: rgba(239, 68, 68, 0.2) !important;
  border: 1px solid rgba(248, 113, 113, 0.5) !important;
  color: #fca5a5 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-mini-chip.is-streak {
  background: #fee2e2 !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #991b1b !important;
}

.yfpw-mini-streak-glyph {
  font-size: 11px !important;
  line-height: 1 !important;
  margin-right: 1px !important;
}

/* Creator Tipping on Artwork View */
.yfpw-tip-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  margin-left: 4px;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-tip-control {
  background: #fefce8;
  border-color: rgba(202, 138, 4, 0.35);
}

.yfpw-tip-txt {
  font-size: 11px;
  font-weight: 700;
  color: #fde047;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-tip-txt {
  color: #854d0e;
}

.yfpw-tip-opts {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.yfpw-tip-form {
  margin: 0;
  display: inline-flex;
}

.yfpw-tip-btn {
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fef08a;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.12s ease, background 0.12s ease;
}

.yfpw-tip-btn:hover {
  transform: translateY(-1px);
  background: rgba(250, 204, 21, 0.32);
}

.yfpw-tip-btn:active {
  transform: scale(0.95);
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-tip-btn {
  background: #fef08a;
  border-color: #ca8a04;
  color: #713f12;
}

.yfpw-tip-stat {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  padding-left: 2px;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-tip-stat {
  color: #b45309;
}

.yfpw-tip-guest-btn {
  font-size: 11px;
  font-weight: 700;
  color: #fef08a;
  text-decoration: none;
  padding: 2px 6px;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-tip-guest-btn {
  color: #854d0e;
}

/* Live Floating Toast Notifications */
.yf-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999999;
  pointer-events: none;
  max-width: min(92vw, 400px);
}

.yf-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(24, 24, 38, 0.94), rgba(15, 23, 42, 0.94));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(167, 139, 250, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.yf-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.yf-toast.is-success {
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.18);
}

.yf-toast.is-error {
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.18);
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-toast {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
  color: #0f172a;
}

.yf-toast-icon {
  font-size: 16px;
  flex: none;
  line-height: 1;
}

.yf-toast-text {
  flex: 1 1 auto;
  word-break: break-word;
}

/* Weekly Missions Loading Bar & Bottom Alignment */
html body .nx-missions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

@media (max-width: 1050px) {
  html body .nx-missions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  html body .nx-missions {
    grid-template-columns: 1fr !important;
  }
}

html body .nx-missions .nx-card,
html body .nx-missions .nx-mission-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

html body .nx-missions .nx-card .nx-large-icon {
  margin-bottom: 16px !important;
  flex: none !important;
}

html body .nx-missions .nx-card h2,
html body .nx-missions .nx-mission-title {
  min-height: 48px !important;
  max-height: 48px !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  margin: 0 0 8px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  flex: none !important;
}

html body .nx-missions .nx-card p.nx-mission-desc,
html body .nx-missions .nx-card>p:not(.nx-mission-count) {
  min-height: 52px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  margin: 0 0 16px 0 !important;
  color: var(--muted, #94a3b8) !important;
  flex: 1 1 auto !important;
}

html body .nx-missions .nx-mission-footer {
  margin-top: auto !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: none !important;
}

html body .nx-missions .yx-reward-pills {
  margin: 0 0 12px 0 !important;
  flex: none !important;
}

html body .nx-missions progress {
  width: 100% !important;
  height: 10px !important;
  margin: 0 0 8px 0 !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  flex: none !important;
}

html body .nx-missions p.nx-mission-count {
  margin: 0 0 14px 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--muted, #94a3b8) !important;
  flex: none !important;
}

html body .nx-missions form {
  width: 100% !important;
  margin: 0 !important;
  flex: none !important;
}

html body .nx-missions form button {
  width: 100% !important;
  min-height: 42px !important;
  height: 42px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
}

/* ========================================================
   1. Advanced Stage Toolbar & Cinema Mode
   ======================================================== */
.yf-stage-tool-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 32px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #f1f5f9 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.yf-stage-tool-btn:hover {
  background: rgba(167, 139, 250, 0.25) !important;
  border-color: rgba(167, 139, 250, 0.6) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.yf-stage-tool-btn:active {
  transform: scale(0.96) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-stage-tool-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-stage-tool-btn:hover {
  background: #e2e8f0 !important;
  border-color: #8b5cf6 !important;
  color: #6d28d9 !important;
}

/* Cinema Mode: 100% Immersive Full-Viewport Theater */
html.yf-cinema-active,
html.yf-cinema-active body,
body.yf-cinema-active {
  background: #030712 !important;
  color: #f8fafc !important;
  overflow: hidden !important;
}

/* Completely hide distracting page chrome in Cinema Mode with high specificity */
html body.yf-cinema-active header,
html body.yf-cinema-active footer,
html body.yf-cinema-active .site-header,
html body.yf-cinema-active .art-breadcrumb,
html body.yf-cinema-active .art-sidebar,
html body.yf-cinema-active aside.art-sidebar,
html body.yf-cinema-active .art-info-card,
html body.yf-cinema-active .ct-art-info,
html body.yf-cinema-active .art-conversation,
html body.yf-cinema-active .yf-art-suggestions,
html body.yf-cinema-active .yf-ad-wrap,
html body.yf-cinema-active .yf-local-source,
html body.yf-cinema-active .yf-pat-source,
html body.yf-cinema-active .yf-pix-source,
html body.yf-cinema-active .yf-da-premium-source,
html body.yf-cinema-active .yfpw-reactions-row,
html body.yf-cinema-active .stage-footer,
html body.yf-cinema-active .artwork-page .art-stage > .stage-footer,
html body.yf-cinema-active .art-stage .stage-footer,
html body.yf-cinema-active .artwork-page .stage-footer,
html body.yf-cinema-active .cm-mobile-nav,
html body.yf-cinema-active .quick-nav,
html body.yf-cinema-active .yf-home-intro,
html body.yf-cinema-active .cm-variant-strip,
html body.yf-cinema-active .yfpw-palette-bar,
html body.yf-cinema-active .artwork-page .yfpw-palette-bar,
html body.yf-cinema-active .art-main > .yfpw-palette-bar,
html body.yf-cinema-active .yfpw-compare-wrap,
html body.yf-cinema-active .ex-art-progress,
html body.yf-cinema-active .ct-engagement-row {
  display: none !important;
}

/* Transform layout and stage into full-screen centered theater */
html body.yf-cinema-active main,
body.yf-cinema-active main {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #030712 !important;
  z-index: 999998 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

html body.yf-cinema-active .art-layout,
html body.yf-cinema-active .art-main,
body.yf-cinema-active .art-layout,
body.yf-cinema-active .art-main {
  position: static !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

html body.yf-cinema-active .art-stage,
html body.yf-cinema-active .artwork-page .art-main .art-stage,
html body.yf-cinema-active .artwork-page .art-stage,
body.yf-cinema-active .art-stage {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  z-index: 999999 !important;
}

html body.yf-cinema-active .artwork-page .art-main .art-stage .art-image-wrap,
html body.yf-cinema-active .artwork-page .art-stage .art-image-wrap,
html body.yf-cinema-active .artwork-page .art-stage > .art-image-wrap,
html body.yf-cinema-active .art-stage .art-image-wrap,
body.yf-cinema-active .art-image-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.12) 0%, transparent 70%), #030712 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body.yf-cinema-active .artwork-page .art-main .art-stage .art-image-wrap img#artwork-image,
html body.yf-cinema-active .artwork-page .art-stage > .art-image-wrap > img#artwork-image,
html body.yf-cinema-active .art-stage .art-image-wrap img#artwork-image,
body.yf-cinema-active .art-image-wrap img#artwork-image,
body.yf-cinema-active #artwork-image {
  max-height: 85vh !important;
  max-width: 85vw !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  margin: auto !important;
  display: block !important;
  position: relative !important;
  z-index: 10 !important;
  border-radius: 12px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85) !important;
  transform: none !important;
}

/* Floating control bar in Cinema Mode */
html body.yf-cinema-active .stage-toolbar,
html body.yf-cinema-active .art-stage .stage-toolbar,
html body.yf-cinema-active .artwork-page .stage-toolbar,
body.yf-cinema-active .stage-toolbar {
  position: fixed !important;
  bottom: 22px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10000000 !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
}

/* In Cinema mode, hide title label and size options from the floating pill */
html body.yf-cinema-active .stage-toolbar > span:first-child,
html body.yf-cinema-active .stage-toolbar .view-size-options,
html body.yf-cinema-active .stage-toolbar .yf-stage-replace {
  display: none !important;
}

/* Floating cinematic navigation arrows */
html body.yf-cinema-active .yf-art-navigation,
body.yf-cinema-active .yf-art-navigation {
  position: static !important;
}

html body.yf-cinema-active .yf-art-nav,
body.yf-cinema-active .yf-art-nav {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10000000 !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.2s ease !important;
}

html body.yf-cinema-active .yf-art-nav:hover,
body.yf-cinema-active .yf-art-nav:hover {
  background: #a855f7 !important;
  border-color: #c084fc !important;
  transform: translateY(-50%) scale(1.1) !important;
}

html body.yf-cinema-active .yf-art-prev,
body.yf-cinema-active .yf-art-prev {
  left: 28px !important;
  right: auto !important;
}

html body.yf-cinema-active .yf-art-next,
body.yf-cinema-active .yf-art-next {
  right: 28px !important;
  left: auto !important;
}

.yf-cinema-exit-btn {
  position: fixed !important;
  top: 24px !important;
  right: 28px !important;
  z-index: 10000001 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.94) !important;
  border: 1px solid rgba(167, 139, 250, 0.75) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  transition: all 0.2s ease !important;
}

.yf-cinema-exit-btn:hover {
  background: #a855f7 !important;
  border-color: #c084fc !important;
  color: #fff !important;
  transform: scale(1.06) !important;
}

/* Global rule: ensure hidden modals are never displayed */
[hidden],
.yfpw-compare-modal[hidden],
.yfpw-share-modal[hidden],
.yfpw-room-modal[hidden],
.yfpw-shortcuts-modal[hidden],
.yfpw-slideshow-modal[hidden],
.yfpw-palette-bar[hidden] {
  display: none !important;
}

/* ========================================================
   2. Interactive Before / After Comparison Slider
   ======================================================== */
.yfpw-compare-modal:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  box-sizing: border-box !important;
}

.yfpw-compare-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(3, 7, 18, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.yfpw-compare-dialog {
  position: relative !important;
  z-index: 2 !important;
  max-width: 960px !important;
  width: 100% !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: #0f172a !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8) !important;
  overflow: hidden !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-compare-dialog {
  background: #ffffff !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 25px 60px rgba(99, 102, 241, 0.2) !important;
}

.yfpw-compare-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-compare-header {
  border-bottom-color: #e2e8f0 !important;
}

.yfpw-compare-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-compare-title {
  color: #0f172a !important;
}

.yfpw-compare-close {
  background: transparent !important;
  border: none !important;
  color: var(--muted, #94a3b8) !important;
  font-size: 18px !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
}

.yfpw-compare-close:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.yfpw-compare-stage {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  max-height: 68vh !important;
  background: #000000 !important;
  overflow: hidden !important;
  user-select: none !important;
  cursor: ew-resize !important;
}

.yfpw-compare-layer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.yfpw-compare-layer img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  pointer-events: none !important;
}

.yfpw-compare-layer.is-after {
  clip-path: inset(0 0 0 calc(var(--split-pos, 50%))) !important;
}

.yfpw-compare-badge {
  position: absolute !important;
  top: 14px !important;
  padding: 5px 11px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

.yfpw-compare-badge.is-before-badge {
  left: 14px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #f1f5f9 !important;
}

.yfpw-compare-badge.is-after-badge {
  right: 14px !important;
  background: rgba(168, 85, 247, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

.yfpw-compare-divider {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: calc(var(--split-pos, 50%)) !important;
  width: 2px !important;
  background: #ffffff !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.9) !important;
  transform: translateX(-50%) !important;
  pointer-events: none !important;
  z-index: 4 !important;
}

.yfpw-compare-handle {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #a855f7 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 14px !important;
}

.yfpw-compare-range {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: ew-resize !important;
  z-index: 5 !important;
  margin: 0 !important;
}

.yfpw-compare-caption {
  padding: 12px 20px !important;
  background: rgba(0, 0, 0, 0.25) !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--muted, #94a3b8) !important;
}

/* ========================================================
   3. Pinned Comment by Artist
   ======================================================== */
.yx-comment.yx-comment-pinned {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.09), rgba(168, 85, 247, 0.08)) !important;
  border: 1.5px solid rgba(251, 191, 36, 0.55) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.12) !important;
  position: relative !important;
  margin-bottom: 16px !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yx-comment.yx-comment-pinned {
  background: #fffdf5 !important;
  border-color: #f59e0b !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.14) !important;
}

.yf-comment-pinned-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: rgba(245, 158, 11, 0.2) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  color: #fbbf24 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-comment-pinned-badge {
  background: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
}

.yf-comment-actions-bar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 8px !important;
}

.yf-comment-pin-form {
  margin: 0 !important;
  display: inline-flex !important;
}

.yf-comment-pin-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--muted, #94a3b8) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.yf-comment-pin-btn:hover {
  background: rgba(251, 191, 36, 0.18) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
  color: #fbbf24 !important;
}

.yf-comment-pin-btn.is-pinned {
  background: rgba(251, 191, 36, 0.22) !important;
  border-color: #fbbf24 !important;
  color: #fbbf24 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-comment-pin-btn {
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

/* ========================================================
   4. Level & Animated XP Progress Bar on Profile
   ======================================================== */
.yfpw-profile-xp-card {
  margin: 20px 0 28px 0 !important;
  padding: 18px 22px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(24, 24, 38, 0.96), rgba(15, 23, 42, 0.96)) !important;
  border: 1px solid rgba(167, 139, 250, 0.28) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-profile-xp-card {
  background: #ffffff !important;
  border-color: rgba(139, 92, 246, 0.22) !important;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.08) !important;
}

.yfpw-xp-header {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}

.yfpw-xp-badge {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #a855f7, #6366f1) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4) !important;
  flex: none !important;
}

.yfpw-badge-num {
  font-size: 21px !important;
  line-height: 1 !important;
}

.yfpw-badge-lbl {
  font-size: 9px !important;
  letter-spacing: 0.5px !important;
  opacity: 0.85 !important;
}

.yfpw-xp-info {
  flex: 1 1 260px !important;
  min-width: 240px !important;
}

.yfpw-xp-title-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}

.yfpw-xp-rank {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-xp-rank {
  color: #0f172a !important;
}

.yfpw-xp-ratio {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--muted, #94a3b8) !important;
}

.yfpw-xp-track {
  width: 100% !important;
  height: 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  position: relative !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-xp-track {
  background: #e2e8f0 !important;
}

.yfpw-xp-fill {
  height: 100% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #a855f7, #ec4899, #fbbf24) !important;
  position: relative !important;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.yfpw-xp-shimmer {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent) !important;
  animation: yfpwShimmer 2.2s infinite linear !important;
}

@keyframes yfpwShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.yfpw-xp-stats {
  display: flex !important;
  gap: 12px !important;
  margin-left: auto !important;
}

.yfpw-xp-stat-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #e2e8f0 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-xp-stat-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* ========================================================
   5. Top Supporters (Hall of Fame) on Profile
   ======================================================== */
.yfpw-supporters-card {
  margin: 0 0 28px 0 !important;
  padding: 20px 22px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(24, 24, 38, 0.96), rgba(15, 23, 42, 0.96)) !important;
  border: 1px solid rgba(251, 191, 36, 0.28) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-supporters-card {
  background: #ffffff !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.08) !important;
}

.yfpw-supporters-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.yfpw-supporters-crown {
  font-size: 26px !important;
  line-height: 1 !important;
}

.yfpw-supporters-title-wrap h3 {
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-supporters-title-wrap h3 {
  color: #0f172a !important;
}

.yfpw-supporters-title-wrap p {
  margin: 3px 0 0 0 !important;
  font-size: 12.5px !important;
  color: var(--muted, #94a3b8) !important;
}

.yfpw-supporters-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: 10px !important;
}

.yfpw-supporter-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.18s ease !important;
}

.yfpw-supporter-item:hover {
  transform: translateY(-2px) !important;
  background: rgba(251, 191, 36, 0.1) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-supporter-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.yfpw-supporter-medal {
  font-size: 19px !important;
  line-height: 1 !important;
  flex: none !important;
}

.yfpw-supporter-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #a855f7, #6366f1) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  flex: none !important;
}

.yfpw-supporter-meta {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.yfpw-supporter-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #f8fafc !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-supporter-name {
  color: #0f172a !important;
}

.yfpw-supporter-tips {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #fbbf24 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-supporter-tips {
  color: #b45309 !important;
}

.yfpw-supporters-empty {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px dashed rgba(255, 255, 255, 0.14) !important;
  font-size: 13px !important;
  color: var(--muted, #94a3b8) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-supporters-empty {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

/* ========================================================
   6. Live Color Palette Extractor
   ======================================================== */
.yfpw-palette-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 10px 18px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  margin: 12px 0 16px 0 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.yfpw-palette-bar[hidden] {
  display: none !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-palette-bar {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
}

body.yf-cinema-active .yfpw-palette-bar,
body.yf-cinema-active [data-yfpw-palette-bar],
html.yf-cinema-active .yfpw-palette-bar {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.yfpw-palette-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  color: var(--muted, #94a3b8) !important;
  flex-shrink: 0 !important;
}

.yfpw-palette-swatches {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}

.yfpw-palette-swatch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f1f5f9 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
  transition: all 0.16s ease !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
  user-select: none !important;
  line-height: 1 !important;
}

.yfpw-swatch-dot {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4) !important;
  display: inline-block !important;
}

.yfpw-swatch-hex {
  line-height: 1 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: 0.4px !important;
}

.yfpw-palette-swatch:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

.yfpw-palette-swatch:active {
  transform: scale(0.96) !important;
}

.yfpw-palette-swatch.is-active {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 2px #38bdf8, 0 4px 14px rgba(56, 189, 248, 0.4) !important;
  color: #ffffff !important;
}

.yfpw-palette-swatch.is-copied {
  background: rgba(34, 197, 94, 0.3) !important;
  border-color: #4ade80 !important;
  color: #86efac !important;
}

.yfpw-eyedropper-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 26px !important;
  padding: 0 9px !important;
  border-radius: 9999px !important;
  background: rgba(99, 102, 241, 0.15) !important;
  border: 1px solid rgba(129, 140, 248, 0.35) !important;
  color: #c7d2fe !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.yfpw-eyedropper-btn:hover {
  background: rgba(99, 102, 241, 0.3) !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-palette-swatch {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-palette-swatch:hover {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Color Palette: Full-Frame ("tot chenaru") Background & Frame Changer */
.art-stage,
.artwork-page .art-main > .art-stage,
.art-image-wrap,
.artwork-page .art-stage > .art-image-wrap {
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
}

/* When palette color is active, entire stage box ("chenaru") updates */
.art-stage.has-ambient-palette,
.artwork-page .art-main > .art-stage.has-ambient-palette,
.art-stage[style*="--art-ambient-color"] {
  background: var(--art-ambient-color) !important;
  border: 2px solid var(--art-ambient-color) !important;
  box-shadow: 0 0 0 3px var(--art-ambient-color), 0 25px 65px -10px rgba(0, 0, 0, 0.65) !important;
}

.art-stage.has-ambient-palette > .art-image-wrap,
.artwork-page .art-stage.has-ambient-palette > .art-image-wrap,
.art-image-wrap.has-ambient-palette,
.art-image-wrap[style*="--art-ambient-color"],
.art-stage[style*="--art-ambient-color"] > .art-image-wrap {
  background: var(--art-ambient-color) !important;
}

/* In Cinema Mode: whole screen inherits the chosen palette color */
body.yf-cinema-active.has-ambient-palette,
body.yf-cinema-active[style*="--art-ambient-color"],
html.yf-cinema-active.has-ambient-palette {
  background: var(--art-ambient-color) !important;
}

body.yf-cinema-active.has-ambient-palette main,
body.yf-cinema-active.has-ambient-palette .art-image-wrap {
  background: var(--art-ambient-color) !important;
}

/* Clean, crisp drop shadow on artwork image - NO colorful halo around the photo */
.art-image-wrap img#artwork-image,
.artwork-page .art-stage > .art-image-wrap > img#artwork-image,
body.yf-cinema-active .art-image-wrap img#artwork-image {
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7) !important;
  transition: box-shadow 0.3s ease !important;
}

.yfpw-swatch-hex {
  position: absolute !important;
  bottom: calc(100% + 6px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  color: #f8fafc !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  transition: opacity 0.15s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.yfpw-palette-swatch:hover .yfpw-swatch-hex {
  opacity: 1 !important;
}

/* ========================================================
   7. Complete Social Share Hub & Multi-format Modal
   ======================================================== */
.yfpw-share-modal:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.yfpw-share-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(3, 7, 18, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.yfpw-share-dialog.yf-share-hub-dialog {
  position: relative !important;
  z-index: 2 !important;
  max-width: 580px !important;
  width: 100% !important;
  max-height: 92vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: #0d121f !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  border-radius: 22px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(168, 85, 247, 0.12) !important;
  overflow: hidden !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-share-dialog.yf-share-hub-dialog {
  background: #ffffff !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2) !important;
}

.yfpw-share-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 22px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-share-header {
  border-bottom-color: #e2e8f0 !important;
}

.yfpw-share-title {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
}

.yfpw-share-title svg {
  color: #a855f7 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-share-title {
  color: #0f172a !important;
}

.yfpw-share-close {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--muted, #94a3b8) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all .16s ease !important;
}

.yfpw-share-close:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

.yfpw-share-hub-body {
  padding: 20px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  overflow-y: auto !important;
}

/* 1. Social Sharing Grid */
.yf-share-social-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 8px !important;
}

.yf-share-social-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 4px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all .18s ease !important;
}

.yf-share-social-btn:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.15) !important;
}

.yf-share-social-btn.yf-share-x:hover { background: #18181b !important; border-color: #3f3f46 !important; }
.yf-share-social-btn.yf-share-reddit:hover { background: #ff4500 !important; border-color: #ff5722 !important; color: #fff !important; }
.yf-share-social-btn.yf-share-pinterest:hover { background: #e60023 !important; border-color: #f43f5e !important; color: #fff !important; }
.yf-share-social-btn.yf-share-telegram:hover { background: #229ed9 !important; border-color: #38bdf8 !important; color: #fff !important; }
.yf-share-social-btn.yf-share-whatsapp:hover { background: #25d366 !important; border-color: #4ade80 !important; color: #fff !important; }

/* 2. Copy Link Row & Formats */
.yf-share-link-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding: 12px !important;
  border-radius: 14px !important;
}

.yf-share-input-row {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.yf-share-input {
  flex: 1 !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
  font-size: 13px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  outline: none !important;
}

.yf-share-input:focus {
  border-color: #a855f7 !important;
}

.yf-share-copy-main-btn {
  height: 38px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #a855f7, #6366f1) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all .16s ease !important;
}

.yf-share-copy-main-btn:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
}

.yf-share-format-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.yf-share-format-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  color: #94a3b8 !important;
  margin-right: 4px !important;
}

.yf-share-format-pill {
  padding: 4px 10px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .14s ease !important;
}

.yf-share-format-pill:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.yf-share-format-pill.is-active {
  background: rgba(168, 85, 247, 0.22) !important;
  border-color: #a855f7 !important;
  color: #e9d5ff !important;
  font-weight: 700 !important;
}

/* 3. Story Card + QR Code Grid */
.yf-share-cards-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

.yf-share-card-box,
.yf-share-qr-box {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.yf-share-box-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #e2e8f0 !important;
}

.yf-share-dl-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background: rgba(168, 85, 247, 0.18) !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  color: #d8b4fe !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.yf-share-dl-link:hover {
  background: rgba(168, 85, 247, 0.32) !important;
  color: #ffffff !important;
}

.yfpw-share-preview-wrap {
  width: 100% !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  aspect-ratio: 1080 / 1350 !important;
}

.yfpw-share-canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.yf-qr-display-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  height: 100% !important;
  padding: 8px 4px !important;
}

.yf-qr-image {
  background: #ffffff !important;
  padding: 6px !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.yf-qr-display-wrap p {
  margin: 0 !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  line-height: 1.4 !important;
}

@media (max-width: 580px) {
  .yf-share-social-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .yf-share-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================================
   7b. "View in a Room" (Wall Art Mockup) Modal
   ======================================================== */
.yfpw-room-modal:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.yfpw-room-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(3, 7, 18, 0.92) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.yfpw-room-container {
  position: relative !important;
  z-index: 2 !important;
  width: 96% !important;
  max-width: 1180px !important;
  height: 88vh !important;
  max-height: 780px !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.yfpw-room-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 10 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-size: 16px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all .16s ease !important;
  backdrop-filter: blur(8px) !important;
}

.yfpw-room-close:hover {
  background: rgba(239, 68, 68, 0.7) !important;
  transform: scale(1.05) !important;
}

/* Room Scene Walls */
.yf-room-scene {
  flex: 1 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  transition: background .4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.yf-room-scene.room-style-loft {
  background: radial-gradient(ellipse at 50% 28%, #372f2a 0%, #1e1814 60%, #0d0a08 100%) !important;
}

.yf-room-scene.room-style-gallery {
  background: radial-gradient(ellipse at 50% 25%, #2a3447 0%, #161c27 60%, #080b12 100%) !important;
}

.yf-room-scene.room-style-studio {
  background: radial-gradient(ellipse at 50% 30%, #505c70 0%, #2a3446 60%, #121721 100%) !important;
}

.yf-room-wall {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-bottom: 70px !important;
}

/* Ceiling Spotlight */
.yf-room-spotlight {
  position: absolute !important;
  top: -80px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 650px !important;
  height: 600px !important;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 248, 220, 0.16) 0%, rgba(255, 248, 220, 0.04) 45%, transparent 75%) !important;
  pointer-events: none !important;
}

/* Artwork Frame on the Wall */
.yf-room-artwork-frame {
  position: relative !important;
  z-index: 3 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all .32s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7), 0 12px 25px rgba(0, 0, 0, 0.5) !important;
}

.yf-room-artwork-frame.size-medium {
  max-width: 440px !important;
  max-height: 400px !important;
}

.yf-room-artwork-frame.size-large {
  max-width: 580px !important;
  max-height: 520px !important;
}

/* Frame Styles */
.yf-room-artwork-frame.frame-style-black {
  background: #111827 !important;
  border: 14px solid #0f172a !important;
  border-radius: 4px !important;
}

.yf-room-artwork-frame.frame-style-oak {
  background: #8b5e34 !important;
  border: 16px solid #a27244 !important;
  border-radius: 4px !important;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.4), 0 35px 70px rgba(0,0,0,0.7) !important;
}

.yf-room-artwork-frame.frame-style-white {
  background: #f8fafc !important;
  border: 14px solid #ffffff !important;
  border-radius: 4px !important;
}

.yf-room-artwork-frame.frame-style-canvas {
  background: #1e293b !important;
  border: 4px solid #334155 !important;
  border-radius: 2px !important;
  box-shadow: 10px 20px 45px rgba(0,0,0,0.8) !important;
}

/* White Art Mat & Glass */
.yf-room-mat {
  background: #fdfdfd !important;
  padding: 16px !important;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.15) !important;
}

.frame-style-canvas .yf-room-mat {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.yf-room-art-wrap {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
}

.yf-room-art-wrap img {
  display: block !important;
  max-height: 340px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: all .3s ease !important;
}

.size-large .yf-room-art-wrap img {
  max-height: 450px !important;
}

.yf-room-glass-sheen {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 38%, transparent 55%, rgba(255, 255, 255, 0.02) 100%) !important;
}

/* Minimalist furniture credenza */
.yf-room-furniture-credenza {
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 760px !important;
  max-width: 90% !important;
  height: 52px !important;
  background: linear-gradient(to top, #0b0f19, #1a2234) !important;
  border-top: 3px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 4px 4px 0 0 !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6) !important;
}

.room-style-loft .yf-room-furniture-credenza {
  background: linear-gradient(to top, #140f0c, #2b211a) !important;
  border-top-color: #634d3f !important;
}

/* Floating Dock Controls */
.yf-room-dock {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 12px 20px !important;
  background: rgba(13, 18, 31, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  flex-wrap: wrap !important;
}

.yf-room-dock-group {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.yf-room-dock-label {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  color: #94a3b8 !important;
  margin-right: 4px !important;
}

.yf-room-dock-divider {
  width: 1px !important;
  height: 20px !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.yf-room-pill {
  padding: 5px 12px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .16s ease !important;
}

.yf-room-pill:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.yf-room-pill.is-active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(99, 102, 241, 0.3)) !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.25) !important;
}

/* ========================================================
   7c. Quick Artist Tag Filter (Sidebar & Profile)
   ======================================================== */
.yf-more-tag-filter {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-bottom: 12px !important;
}

.yf-more-tag-pill {
  padding: 3px 9px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all .14s ease !important;
}

.yf-more-tag-pill:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

.yf-more-tag-pill.is-active {
  background: rgba(168, 85, 247, 0.22) !important;
  border-color: #a855f7 !important;
  color: #d8b4fe !important;
  font-weight: 700 !important;
}

/* Profile Popular Tags Filter Bar */
.yf-profile-tags-filter {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 18px 0 !important;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
}

.yf-profile-tags-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  color: #94a3b8 !important;
}

.yf-profile-tags-list {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.yf-profile-tag-pill {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all .16s ease !important;
}

.yf-profile-tag-pill:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.yf-profile-tag-pill.is-active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(99, 102, 241, 0.35)) !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* ========================================================
   8. Keyboard Shortcuts Modal
   ======================================================== */
.yfpw-shortcuts-modal:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.yfpw-shortcuts-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(3, 7, 18, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.yfpw-shortcuts-dialog {
  position: relative !important;
  z-index: 2 !important;
  max-width: 440px !important;
  width: 100% !important;
  background: #0f172a !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
  border-radius: 18px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
  overflow: hidden !important;
  padding: 22px !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-shortcuts-dialog {
  background: #ffffff !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
}

.yfpw-shortcuts-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  margin-bottom: 18px !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-shortcuts-header {
  color: #0f172a !important;
}

.yfpw-shortcuts-close {
  background: transparent !important;
  border: none !important;
  color: var(--muted, #94a3b8) !important;
  font-size: 18px !important;
  cursor: pointer !important;
}

.yfpw-shortcuts-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.yfpw-shortcut-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--muted, #94a3b8) !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-shortcut-row {
  border-bottom-color: #f1f5f9 !important;
  color: #475569 !important;
}

.yfpw-keys {
  display: flex !important;
  gap: 4px !important;
}

kbd {
  display: inline-block !important;
  padding: 3px 8px !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) kbd {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1) !important;
}

/* ========================================================
   9. Gallery Slideshow Full-Screen Mode
   ======================================================== */
.yfpw-slideshow-modal:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000000 !important;
  background: #030712 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  user-select: none !important;
}

.yfpw-slideshow-progress {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  z-index: 20 !important;
}

.yfpw-slideshow-progress-bar {
  height: 100% !important;
  width: 0% !important;
  background: linear-gradient(90deg, #a855f7, #fbbf24) !important;
}

.yfpw-slideshow-stage {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 30px !important;
  box-sizing: border-box !important;
}

.yfpw-slideshow-img {
  max-height: 85vh !important;
  max-width: 90vw !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85) !important;
  transition: opacity 0.3s ease !important;
}

.yfpw-slideshow-caption {
  margin-top: 16px !important;
  text-align: center !important;
  color: #f8fafc !important;
}

.yfpw-slideshow-caption strong {
  display: block !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.yfpw-slideshow-caption span {
  font-size: 13px !important;
  color: #fbbf24 !important;
}

.yfpw-slideshow-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-size: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.2s ease !important;
  z-index: 15 !important;
}

.yfpw-slideshow-nav:hover {
  background: #a855f7 !important;
  border-color: #c084fc !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.yfpw-slideshow-nav.is-prev { left: 30px !important; }
.yfpw-slideshow-nav.is-next { right: 30px !important; }

.yfpw-slideshow-controls {
  position: absolute !important;
  bottom: 24px !important;
  display: flex !important;
  gap: 12px !important;
  z-index: 15 !important;
}

.yfpw-slideshow-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  backdrop-filter: blur(12px) !important;
  transition: all 0.18s ease !important;
}

.yfpw-slideshow-btn:hover {
  background: #a855f7 !important;
  border-color: #c084fc !important;
  transform: scale(1.05) !important;
}

.yfpw-slideshow-btn.is-close:hover {
  background: #ef4444 !important;
  border-color: #f87171 !important;
}

/* ========================================================
   10. Achievements & Badges on User Profile
   ======================================================== */
.yfpw-badges-card {
  margin: 0 0 28px 0 !important;
  padding: 20px 22px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(24, 24, 38, 0.96), rgba(15, 23, 42, 0.96)) !important;
  border: 1px solid rgba(167, 139, 250, 0.25) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-badges-card {
  background: #ffffff !important;
  border-color: rgba(139, 92, 246, 0.2) !important;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.08) !important;
}

.yfpw-badges-head {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}

.yfpw-badges-icon {
  font-size: 26px !important;
  line-height: 1 !important;
}

.yfpw-badges-title-wrap h3 {
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-badges-title-wrap h3 {
  color: #0f172a !important;
}

.yfpw-badges-title-wrap p {
  margin: 3px 0 0 0 !important;
  font-size: 12.5px !important;
  color: var(--muted, #94a3b8) !important;
}

.yfpw-badges-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 10px !important;
}

.yfpw-badge-pill {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  transition: all 0.2s ease !important;
}

.yfpw-badge-pill.is-unlocked {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(251, 191, 36, 0.08)) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.15) !important;
}

.yfpw-badge-pill.is-unlocked:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.28) !important;
  border-color: #c084fc !important;
}

.yfpw-badge-pill.is-locked {
  opacity: 0.45 !important;
  filter: grayscale(0.85) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-badge-pill {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-badge-pill.is-unlocked {
  background: linear-gradient(135deg, #faf5ff, #fffbeb) !important;
  border-color: #c084fc !important;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.1) !important;
}

.yfpw-badge-glyph {
  font-size: 22px !important;
  line-height: 1 !important;
  flex: none !important;
}

.yfpw-badge-text {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.yfpw-badge-text strong {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-badge-text strong {
  color: #0f172a !important;
}

.yfpw-badge-text small {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--muted, #94a3b8) !important;
}

.yfpw-badge-pill.is-unlocked .yfpw-badge-text small {
  color: #a855f7 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-badge-pill.is-unlocked .yfpw-badge-text small {
  color: #7c3aed !important;
}

/* ========================================================
   13. Detail Lens / Deep Zoom Magnifier (Z)
   ======================================================== */
.yf-detail-lens {
  position: absolute !important;
  width: 190px !important;
  height: 190px !important;
  border-radius: 50% !important;
  border: 3px solid rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), inset 0 0 25px rgba(255, 255, 255, 0.2) !important;
  pointer-events: none !important;
  z-index: 1000 !important;
  background-repeat: no-repeat !important;
  background-color: #0b111b !important;
  overflow: hidden !important;
  transform: translateZ(0) !important;
}

.yf-lens-crosshair {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 14px !important;
  height: 14px !important;
  pointer-events: none !important;
}

.yf-lens-crosshair::before,
.yf-lens-crosshair::after {
  content: '' !important;
  position: absolute !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

.yf-lens-crosshair::before {
  top: 0 !important;
  left: 6px !important;
  width: 2px !important;
  height: 14px !important;
}

.yf-lens-crosshair::after {
  top: 6px !important;
  left: 0 !important;
  width: 14px !important;
  height: 2px !important;
}

.yf-lens-zoom-badge {
  position: absolute !important;
  bottom: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(15, 23, 42, 0.88) !important;
  color: #f8fafc !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

/* ========================================================
   14. Studio Ambience Button & Playing State
   ======================================================== */
.yf-ambience-btn.is-playing {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  border-color: #c084fc !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.55) !important;
  animation: yf-pulse-glow 2s infinite ease-in-out !important;
}

@keyframes yf-pulse-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 0 22px rgba(168, 85, 247, 0.85); }
}

/* ========================================================
   16. Technical Specs Card
   ======================================================== */
.yfpw-tech-specs-card {
  margin: 18px 0 !important;
  padding: 16px 20px !important;
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-tech-specs-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.yfpw-tech-specs-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}

.yfpw-tech-title-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.yfpw-tech-title-wrap strong {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--ink, #f8fafc) !important;
}

.yfpw-tech-title-wrap small {
  font-size: 11px !important;
  color: var(--muted, #94a3b8) !important;
}

.yfpw-embed-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background: rgba(168, 85, 247, 0.15) !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
  color: #c084fc !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.yfpw-embed-btn:hover {
  background: #a855f7 !important;
  color: #ffffff !important;
  border-color: #a855f7 !important;
  transform: translateY(-1px) !important;
}

.yfpw-tech-specs-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 768px) {
  .yfpw-tech-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.yfpw-spec-cell {
  padding: 10px 12px !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-spec-cell {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.yfpw-spec-label {
  display: block !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  color: var(--muted, #94a3b8) !important;
  margin-bottom: 4px !important;
}

.yfpw-spec-val {
  display: block !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--ink, #f8fafc) !important;
}

/* ========================================================
   17. Modals (Embed & Quick Collections)
   ======================================================== */
.yfpw-embed-modal:not([hidden]),
.yfpw-collection-modal:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  background: rgba(3, 7, 18, 0.8) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: none !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
}

.yfpw-embed-modal[hidden],
.yfpw-collection-modal[hidden] {
  display: none !important;
}

.yfpw-embed-box,
.yfpw-collection-box {
  width: min(540px, 94vw) !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8) !important;
  color: #f8fafc !important;
  box-sizing: border-box !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-embed-box,
:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-collection-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2) !important;
}

.yfpw-embed-head,
.yfpw-collection-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}

.yfpw-embed-title-wrap,
.yfpw-collection-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.yfpw-embed-title-wrap h3,
.yfpw-collection-title-wrap h3 {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.yfpw-collection-hint {
  margin: 0 0 16px 0 !important;
  font-size: 13px !important;
  color: var(--muted, #94a3b8) !important;
}

.yfpw-embed-fields {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.yfpw-embed-field label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  margin-bottom: 6px !important;
  color: var(--muted, #94a3b8) !important;
}

.yfpw-copy-input-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.yfpw-copy-input-row input {
  flex: 1 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9px !important;
  padding: 9px 12px !important;
  color: inherit !important;
  font-size: 12px !important;
  font-family: monospace !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-copy-input-row input {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.yfpw-copy-btn {
  padding: 9px 16px !important;
  border-radius: 9px !important;
  background: #7c3aed !important;
  border: 1px solid #9333ea !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.yfpw-copy-btn:hover {
  background: #9333ea !important;
  transform: translateY(-1px) !important;
}

/* Collections Checklist */
.yfpw-collection-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  max-height: 240px !important;
  overflow-y: auto !important;
  margin-bottom: 18px !important;
  padding-right: 4px !important;
}

.yfpw-collection-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-collection-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.yfpw-collection-item:hover {
  background: rgba(168, 85, 247, 0.1) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
}

.yfpw-collection-item.is-checked {
  background: rgba(168, 85, 247, 0.15) !important;
  border-color: #a855f7 !important;
}

.yfpw-collection-name {
  flex: 1 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
}

.yfpw-collection-count {
  font-size: 11px !important;
  color: var(--muted, #94a3b8) !important;
}

.yfpw-new-coll-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-top: 16px !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-new-coll-form {
  border-top-color: #e2e8f0 !important;
}

.yfpw-new-coll-input {
  flex: 1 !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: inherit !important;
  font-size: 13px !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-new-coll-input {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

.yfpw-new-coll-btn {
  padding: 10px 16px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}

.yfpw-new-coll-btn:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
}

/* ========================================================
   18. Daily Creative Challenge / Prompt Banner
   ======================================================== */
.yfpw-challenge-card {
  margin: 18px 0 24px 0 !important;
  padding: 20px 24px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(49, 46, 129, 0.95)) !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
  box-shadow: 0 12px 35px rgba(30, 27, 75, 0.4) !important;
  color: #f8fafc !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-challenge-card {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe) !important;
  border-color: #c4b5fd !important;
  color: #1e1b4b !important;
}

.yfpw-challenge-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.yfpw-challenge-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: rgba(168, 85, 247, 0.25) !important;
  border: 1px solid rgba(168, 85, 247, 0.5) !important;
  color: #e9d5ff !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-challenge-badge {
  background: #ddd6fe !important;
  color: #6d28d9 !important;
  border-color: #a78bfa !important;
}

.yfpw-challenge-timer {
  font-size: 12px !important;
  font-weight: 750 !important;
  color: #c4b5fd !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-challenge-timer {
  color: #6d28d9 !important;
}

.yfpw-challenge-body {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

.yfpw-challenge-glyph {
  font-size: 34px !important;
  line-height: 1 !important;
}

.yfpw-challenge-info h4 {
  margin: 0 0 4px 0 !important;
  font-size: 18px !important;
  font-weight: 850 !important;
}

.yfpw-challenge-info p {
  margin: 0 !important;
  font-size: 13px !important;
  color: rgba(248, 250, 252, 0.8) !important;
  line-height: 1.4 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-challenge-info p {
  color: #4b5563 !important;
}

.yfpw-challenge-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.yfpw-challenge-rewards {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.yfpw-challenge-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border-radius: 10px !important;
  background: #a855f7 !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4) !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}

.yfpw-challenge-cta:hover {
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
}

/* Quick Collection button in action row */
.yf-collection-quick-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

/* ========================================================
   20. Confetti, Eyedropper, Webtoon, Emoji & Glow Additions
   ======================================================== */
.yf-confetti-canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 99999999 !important;
}

.yf-stage-tool-btn.is-active {
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.4), rgba(79, 70, 229, 0.4)) !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.45) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-stage-tool-btn.is-active {
  background: #ede9fe !important;
  border-color: #8b5cf6 !important;
  color: #6d28d9 !important;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.25) !important;
}

.yfpw-palette-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.yfpw-eyedropper-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #f1f5f9 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
}

.yfpw-eyedropper-btn:hover {
  background: rgba(168, 85, 247, 0.22) !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
  color: #e9d5ff !important;
  transform: translateY(-1px) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-eyedropper-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yfpw-eyedropper-btn:hover {
  background: #e2e8f0 !important;
  border-color: #8b5cf6 !important;
  color: #6d28d9 !important;
}

/* Ambient Glow Theater Backdrop Layer */
.yf-ambient-backdrop-layer {
  position: absolute !important;
  inset: -45px !important;
  background-size: cover !important;
  background-position: center !important;
  filter: blur(60px) saturate(200%) brightness(0.7) !important;
  opacity: 0.7 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  transform: scale(1.15) !important;
  transition: opacity 0.35s ease !important;
}

.yf-ambient-backdrop-layer[hidden] {
  display: none !important;
}

.art-image-wrap {
  position: relative !important;
  overflow: hidden !important;
}

.art-image-wrap img#artwork-image {
  position: relative !important;
  z-index: 2 !important;
}

/* Continuous Webtoon Vertical Mode */
.art-stage.is-webtoon-active .art-image-wrap {
  overflow-y: auto !important;
  max-height: 85vh !important;
  display: block !important;
  padding: 20px 10px !important;
  scrollbar-width: thin !important;
}

.art-stage.is-webtoon-active .art-image-wrap > img#artwork-image,
.art-stage.is-webtoon-active .yf-art-navigation {
  display: none !important;
}

.yf-webtoon-strip {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 20px !important;
  width: 100% !important;
}

.yf-webtoon-strip[hidden] {
  display: none !important;
}

.yf-webtoon-item {
  position: relative !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.yf-webtoon-item img {
  max-width: min(100%, 860px) !important;
  height: auto !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6) !important;
  display: block !important;
}

.yf-webtoon-page-num {
  align-self: flex-start !important;
  margin-bottom: 6px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: rgba(168, 85, 247, 0.25) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
}

/* Comment Emoji Picker */
.yf-comment-submit-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
}

.yf-emoji-picker-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  cursor: pointer !important;
  font-size: 17px !important;
  transition: all 0.18s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.yf-emoji-picker-btn:hover {
  background: rgba(168, 85, 247, 0.22) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  transform: scale(1.08) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-emoji-picker-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.yf-emoji-popover {
  position: absolute !important;
  bottom: calc(100% + 10px) !important;
  right: 0 !important;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 14px !important;
  padding: 12px !important;
  z-index: 1000 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65) !important;
  width: 240px !important;
  animation: yf-popover-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.yf-emoji-popover[hidden] {
  display: none !important;
}

@keyframes yf-popover-in {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.yf-emoji-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 6px !important;
}

.yf-emoji-choice {
  background: none !important;
  border: none !important;
  font-size: 20px !important;
  cursor: pointer !important;
  padding: 6px !important;
  border-radius: 8px !important;
  line-height: 1 !important;
  transition: transform 0.12s ease, background 0.12s ease !important;
}

.yf-emoji-choice:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  transform: scale(1.25) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-emoji-popover {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-emoji-choice:hover {
  background: #f1f5f9 !important;
}

/* ==========================================================================
   Powerups Batch: Copy Tags, In-Place Compare, Fluid Pan & Zoom, Zen Mode
   ========================================================================== */

/* 1. Copy All Tags Button */
.yf-copy-tags-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #93c5fd !important;
  background: rgba(37, 99, 235, 0.12) !important;
  border: 1px solid rgba(96, 165, 250, 0.3) !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
  user-select: none !important;
}

.yf-copy-tags-btn:hover {
  background: rgba(37, 99, 235, 0.25) !important;
  border-color: rgba(96, 165, 250, 0.6) !important;
  color: #bfdbfe !important;
  transform: translateY(-1px) !important;
}

.yf-copy-tags-btn:active {
  transform: scale(0.96) !important;
}

.yf-copy-tags-btn.is-copied {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: rgba(74, 222, 128, 0.5) !important;
  color: #86efac !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-copy-tags-btn {
  color: #1d4ed8 !important;
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-copy-tags-btn:hover {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .yf-copy-tags-btn.is-copied {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  color: #15803d !important;
}

/* 2. In-Place Stage Compare Slider */
.yf-stage-compare-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 20 !important;
  user-select: none !important;
  overflow: hidden !important;
}

.yf-stage-compare-wrap[hidden] {
  display: none !important;
}

.yf-stage-compare-after {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transition: clip-path 0.04s ease-out;
}

.yf-stage-compare-after img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  pointer-events: none !important;
}

.yf-stage-compare-divider {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 3px !important;
  background: #38bdf8 !important;
  transform: translateX(-50%) !important;
  pointer-events: auto !important;
  cursor: ew-resize !important;
  z-index: 25 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9) !important;
}

.yf-stage-compare-handle {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 0 2.5px #ffffff !important;
  cursor: ew-resize !important;
  transition: transform 0.1s ease, background 0.1s ease !important;
}

.yf-stage-compare-divider:hover .yf-stage-compare-handle,
.yf-stage-compare-divider:active .yf-stage-compare-handle {
  transform: translate(-50%, -50%) scale(1.15) !important;
  background: #0ea5e9 !important;
}

.yf-compare-badge {
  position: absolute !important;
  bottom: 12px !important;
  padding: 3px 8px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: 6px !important;
  background: rgba(15, 23, 42, 0.8) !important;
  color: #f1f5f9 !important;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  pointer-events: none !important;
  z-index: 22 !important;
}

.yf-compare-badge.is-orig-badge {
  right: 12px !important;
}

.yf-compare-badge.is-var-badge {
  left: 12px !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

/* 3. Fluid Pan & Zoom */
.art-image-wrap.is-zoomed {
  overflow: hidden !important;
  cursor: grab !important;
}

.art-image-wrap.is-zoomed.is-panning {
  cursor: grabbing !important;
}

.art-image-wrap.is-zoomed #artwork-image {
  transition: transform 0.06s ease-out;
  will-change: transform;
}

.yf-zoom-indicator {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 30 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  user-select: none !important;
  animation: yf-popover-in 0.15s ease-out !important;
}

.yf-zoom-indicator[hidden] {
  display: none !important;
}

.yf-zoom-indicator button {
  background: rgba(255, 255, 255, 0.15) !important;
  border: none !important;
  color: #ffffff !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  cursor: pointer !important;
  line-height: 1 !important;
  transition: background 0.12s ease !important;
}

.yf-zoom-indicator button:hover {
  background: rgba(239, 68, 68, 0.8) !important;
}

/* ==========================================================================
   Aesthetic Stage Toolbar Redesign (Single Sleek Row, Perfectly Aligned)
   ========================================================================== */
.artwork-page .art-stage > .stage-toolbar,
.art-stage .stage-toolbar,
.stage-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  padding: 8px 14px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  background: #0b1322 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.stage-toolbar::-webkit-scrollbar {
  display: none !important;
}

.stage-toolbar .yf-stage-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}

.stage-toolbar .yf-stage-badge {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  padding-right: 4px !important;
}

.stage-toolbar .yf-stage-badge i {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #eab308 !important;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.75) !important;
  display: inline-block !important;
}

.stage-toolbar .view-size-options {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2px !important;
  border-radius: 8px !important;
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin: 0 !important;
}

.stage-toolbar .view-size-options label {
  margin: 0 !important;
}

.stage-toolbar .view-size-options label > span {
  padding: 4px 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  color: #94a3b8 !important;
  line-height: 1.2 !important;
  transition: all 0.12s ease !important;
}

.stage-toolbar .view-size-options input:checked + span {
  background: #6366f1 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35) !important;
}

.stage-toolbar .yf-stage-tools {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
}

.stage-toolbar .yf-stage-tool-btn,
.stage-toolbar button.expand-art,
.art-stage .stage-toolbar button.expand-art {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 29px !important;
  min-height: 29px !important;
  padding: 0 9px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.12s ease !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.stage-toolbar .yf-stage-tool-btn svg {
  width: 13px !important;
  height: 13px !important;
  display: block !important;
  flex-shrink: 0 !important;
  stroke: currentColor !important;
}

.stage-toolbar .yf-stage-tool-btn:hover,
.stage-toolbar button.expand-art:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(167, 139, 250, 0.45) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.stage-toolbar .yf-stage-tool-btn:active,
.stage-toolbar button.expand-art:active {
  transform: scale(0.96) !important;
}

.stage-toolbar .yf-stage-tool-btn.is-active,
.stage-toolbar .yf-stage-tool-btn[aria-pressed="true"] {
  background: rgba(99, 102, 241, 0.22) !important;
  border-color: #818cf8 !important;
  color: #c7d2fe !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3) !important;
}

/* Owner Replace Button */
.stage-toolbar .yf-stage-replace,
.art-stage .stage-toolbar .yf-stage-replace,
.artwork-page .art-stage .stage-toolbar .yf-stage-replace {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 29px !important;
  min-height: 29px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
  border: 1px solid rgba(147, 197, 253, 0.35) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.12s ease !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25) !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
}

.stage-toolbar .yf-stage-replace svg {
  width: 12px !important;
  height: 12px !important;
  stroke: #ffffff !important;
  display: block !important;
}

.stage-toolbar .yf-stage-replace:hover {
  filter: brightness(1.12) !important;
  transform: translateY(-1px) !important;
}

/* Share button distinct accent */
.stage-toolbar .yf-share-btn {
  background: rgba(99, 102, 241, 0.14) !important;
  border-color: rgba(129, 140, 248, 0.35) !important;
  color: #a5b4fc !important;
}

.stage-toolbar .yf-share-btn:hover {
  background: rgba(99, 102, 241, 0.28) !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
}

/* Light mode support */
:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .artwork-page .art-stage > .stage-toolbar,
:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .art-stage .stage-toolbar,
:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .stage-toolbar {
  background: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .stage-toolbar .yf-stage-badge {
  color: #475569 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .stage-toolbar .view-size-options {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .stage-toolbar .view-size-options label > span {
  color: #475569 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .stage-toolbar .view-size-options input:checked + span {
  background: #6366f1 !important;
  color: #ffffff !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .stage-toolbar .yf-stage-tool-btn,
:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .stage-toolbar button.expand-art {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .stage-toolbar .yf-stage-tool-btn:hover,
:is(html[data-mode="light"], html[data-theme="light"], body.light, body.light-theme) .stage-toolbar button.expand-art:hover {
  background: #f1f5f9 !important;
  border-color: #818cf8 !important;
  color: #4338ca !important;
}
