/* ==========================================================================
   AIRISH COMPONENT DESIGN SYSTEM
   Cards, Chips, Modals, Forms, A11y Widgets & ESG Badges
   ========================================================================== */

/* Search Input Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: transparent;
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar:focus-within {
  border-color: var(--accent-sage);
}

.search-bar svg,
.search-bar i {
  font-size: 18px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Remix Icon Helper */
i[class^="ri-"],
i[class*=" ri-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
}

/* Sticky Category Filter Bar (Sticks under App Header on Scroll) */
.discover-filter-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 50px;
  z-index: 35;
  margin-top: -15px;
  margin-bottom: 0px;
  margin-left: -20px;
  margin-right: -20px;
  width: calc(100% + 40px);
  box-sizing: border-box;
  background: transparent;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, border-color 0.25s ease;
}

.discover-filter-wrapper.is-stuck {
  background: transparent;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
}

.discover-filter-wrapper.is-stuck .chip-btn:not(.active) {
  color: var(--text-primary);
}

.filter-scroll,
.discover-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 20px 4px 20px;
  scroll-padding: 0 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-sizing: border-box;
}

.filter-scroll::-webkit-scrollbar,
.discover-filter-chips::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: var(--glass-bg-subtle);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
}

.chip-btn:hover {
  background: var(--glass-bg-active);
  color: var(--text-primary);
  border-color: var(--glass-border-light);
}

.chip-btn.active {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

/* Artist Highlights Avatar Row */
.artist-scroll {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-x: auto;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -5px;
  padding: 0 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.artist-scroll::-webkit-scrollbar {
  display: none;
}

.artist-avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 68px;
  flex-shrink: 0;
  text-align: center;
  transition: transform var(--transition-fast);
}

.artist-avatar-item:hover {
  transform: translateY(-2px);
}

.artist-avatar-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: transparent;
  position: relative;
  border: 1px solid rgb(255 255 255 / 20%);
}

.artist-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-primary);
}

.artist-avatar-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* NEW ARTWORK & FOUND HAVEN Horizontal Sliders */
.new-artwork-section,
.found-haven-section,
.literasi-section {
  position: relative;
  width: 100%;
}

.new-artwork-scroll {
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  margin-left: -20px;
  margin-right: -20px;
  padding: 4px 20px 5px 20px;
  scroll-padding: 0 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.new-artwork-scroll::-webkit-scrollbar {
  display: none;
}

.new-art-card {
  flex: 0 0 calc((100% - 8px) / 2.2);
  width: calc((100% - 8px) / 2.2);
  max-width: calc((100% - 8px) / 2.2);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  transition: transform var(--transition-fast);
  position: relative;
}

.new-art-card:hover {
  transform: translateY(-3px);
}

.new-art-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-card);
  border: 0px solid var(--glass-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.new-art-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Found Haven Custom Portrait Aspect Ratio (1:1.25 / 4:5) */
.found-haven-section .new-art-media,
.found-haven-section .new-art-img {
  aspect-ratio: 1 / 1.25;
}

/* Literasi Custom Landscape Aspect Ratio (Tinggi Image = 60% dari Width / 1:0.6) */
.literasi-section .new-art-media,
.literasi-section .new-art-img {
  aspect-ratio: 1 / 0.6;
}

/* Found Haven: Tampilkan 1.7 konten kartu per viewport */
#foundHavenScrollContainer .new-art-card,
.found-haven-section .new-art-card {
  flex: 0 0 calc((100% - 14px) / 1.7);
  width: calc((100% - 14px) / 1.7);
  max-width: calc((100% - 14px) / 1.7);
}

/* Literasi: Tampilkan 1.6 konten kartu per viewport */
#literasiScrollContainer .new-art-card,
.literasi-section .new-art-card {
  flex: 0 0 calc((100% - 14px) / 1.6);
  width: calc((100% - 14px) / 1.6);
  max-width: calc((100% - 14px) / 1.6);
}

.new-art-card:hover .new-art-img {
  transform: scale(1.05);
}

.new-art-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.new-art-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

.new-art-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(11, 15, 23, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.new-art-badge.available {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.new-art-badge.article-tag {
  color: var(--accent-sage);
  border-color: rgba(148, 210, 189, 0.35);
  background: rgba(11, 15, 23, 0.65);
}

/* Accessibility Audio Narration Badge (Section Literasi untuk Teman ABK) */
.literasi-audio-badge,
.new-art-badge.audio-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(11, 15, 23, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 210, 189, 0.35);
  color: var(--accent-sage);
  cursor: pointer;
  pointer-events: auto;
  line-height: 1.2;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.literasi-audio-badge i,
.new-art-badge.audio-badge i {
  font-size: 13px;
  line-height: 1;
}

.literasi-audio-badge:hover,
.new-art-badge.audio-badge:hover {
  background: rgba(148, 210, 189, 0.22);
  border-color: var(--accent-sage);
  color: #fff;
  transform: scale(1.05);
}

.literasi-audio-badge.playing,
.new-art-badge.audio-badge.playing {
  background: var(--accent-sage);
  border-color: var(--accent-sage);
  color: #0d131f;
  animation: audioPulseSage 1.4s infinite ease-in-out;
}

@keyframes audioPulseSage {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(148, 210, 189, 0.7);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(148, 210, 189, 0);
  }
}

.literasi-read-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(11, 15, 23, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--transition-fast);
}

.new-art-card:hover .literasi-read-btn {
  transform: scale(1.1);
  color: var(--accent-sage);
  border-color: var(--accent-sage);
}

.new-art-like-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(11, 15, 23, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.new-art-like-btn:hover {
  transform: scale(1.1);
  color: #f43f5e;
}

.new-art-like-btn.liked {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
}

.new-art-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 2px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.new-art-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Khusus Section Literasi: Judul artikel maksimal 2 baris */
.literasi-section .new-art-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  min-height: 2.7em;
}

.new-art-artist,
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  width: 100%;
  min-width: 0;
}

.new-art-name,
.article-author,
.article-author-name {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.new-art-dot,
.article-dot {
  margin-left: auto;
  font-size: 14px;
  color: var(--accent-sage);
  flex-shrink: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.new-art-age,
.article-read-time,
.article-reading-time,
.article-date,
.article-publish-date {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Fallback jika new-art-dot / article-dot tidak ada, tetap dorong ke pojok kanan */
.new-art-artist>.new-art-age:only-of-type,
.new-art-artist> :not(.new-art-dot)+.new-art-age,
.new-art-artist>.article-read-time:only-of-type,
.new-art-artist> :not(.article-dot)+.article-read-time,
.new-art-artist>.article-date:only-of-type,
.new-art-artist> :not(.article-dot)+.article-date,
.article-meta>.article-read-time:only-of-type,
.article-meta> :not(.article-dot)+.article-read-time,
.article-meta>.article-date:only-of-type,
.article-meta> :not(.article-dot)+.article-date {
  margin-left: auto;
}

.new-art-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: var(--bg-secondary);
}

.new-art-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-sage);
  margin-top: 1px;
}

/* Bento Art Card - Aligned with new-art-card style & placement (Masonry Ready) */
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast);
  background: transparent;
  border: none;
  overflow: visible;
  width: 100%;
}

.bento-card:hover {
  transform: translateY(-3px);
}

.bento-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* bento-tall: Ratio persis dengan new-art-card di Found Haven (1:1.25 / 4:5) */
.bento-card.bento-tall .bento-img-wrap,
.bento-tall .bento-img-wrap {
  aspect-ratio: 1 / 1.25;
}

/* bento-wide: Rasio landscape 16:9 jika ada kartu melebar */
.bento-card.bento-wide .bento-img-wrap,
.bento-wide .bento-img-wrap {
  aspect-ratio: 16 / 9;
}

.bento-card-img {
  width: 100%;
  height: 100%;
  aspect-ratio: inherit;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-card-img {
  transform: scale(1.05);
}

/* Bento Card Overlays */
.bento-top-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.badge-tag {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgb(255 255 255 / 20%);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.badge-tag.available {
  color: #74d8af;
  background: transparent;
  border-color: rgb(255 255 255 / 20%);
}

.badge-tag.available::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #52b788;
  box-shadow: 0 0 6px #52b788;
}

.badge-tag.rented {
  color: #f6c86a;
  background: transparent;
  border-color: rgb(255 255 255 / 20%);
}

.badge-tag.rented::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e9c46a;
  box-shadow: 0 0 6px #e9c46a;
}

.like-btn {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 15, 23, 0.65);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.like-btn:hover {
  background: rgba(231, 111, 81, 0.2);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

.like-btn.liked svg {
  fill: #f87171;
  stroke: #f87171;
}

/* Bento Card Media Link */
.bento-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* Bento Info Overlay (Matching Found Haven info style) */
.bento-info-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  padding: 8px 10px;
  background: rgba(11, 15, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.bento-card:hover .bento-info-overlay {
  background: rgba(11, 15, 23, 0.9);
  border-color: rgba(255, 255, 255, 0.22);
}

.bento-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  transition: color var(--transition-fast);
}

.bento-card:hover .bento-title {
  color: var(--accent-sage);
}

.bento-artist,
.bento-artist-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  width: 100%;
  min-width: 0;
}

.bento-avatar,
.bento-artist-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: var(--bg-secondary);
}

.bento-name,
.bento-artist-name {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.bento-dot {
  font-size: 14px;
  color: var(--accent-sage);
  flex-shrink: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.bento-age,
.bento-artist-age {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bento-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.bento-card:hover .bento-arrow {
  transform: translate(2px, -2px);
  color: var(--accent-sage);
}

.verified-icon {
  width: 13px;
  height: 13px;
  color: var(--accent-cyan);
  margin-left: 5px;
}

.bento-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bento-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-sage);
}

.bento-period {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
}

.bento-ar-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Strategic Feature Card: Corporate & ESG Banner */
.banner-bento-card {
  grid-column: span 2;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 20px;
  background: linear-gradient(135deg, rgba(24, 33, 51, 0.95), rgba(17, 23, 36, 0.92));
  border: 1px solid rgba(148, 210, 189, 0.3);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 25px rgba(148, 210, 189, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.banner-bento-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-sage-soft), transparent 70%);
  pointer-events: none;
}

.banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.banner-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-sage);
  background: var(--accent-sage-soft);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.banner-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.banner-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.banner-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.metric-mini-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: center;
}

.metric-mini-num {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--accent-gold);
}

.metric-mini-label {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.banner-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: all var(--transition-fast);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-sage), #52b788);
  color: #04100c;
  box-shadow: 0 4px 18px rgba(148, 210, 189, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(148, 210, 189, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--glass-bg-active);
  border-color: var(--glass-border-light);
}

.btn-accent-gold {
  background: linear-gradient(135deg, var(--accent-gold), #e0a96d);
  color: #141004;
}

.btn-dark {
  background: rgba(11, 15, 23, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.btn-dark:hover {
  background: rgba(18, 24, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 14px;
  font-size: var(--text-xs);
}

.btn-block {
  width: 100%;
}

/* Audio Kurator Widget (A11y Text-to-Speech) */
.audio-kurator-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  background: transparent;
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: var(--radius-md);
  margin: 0;
  margin-top: -10px;
}

.audio-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3b3d3f;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.audio-play-btn i {
  font-size: 20px;
  line-height: 1;
  margin-left: 3px;
}

.audio-play-btn:hover {
  transform: scale(1.08);
  background: var(--accent-lavender);
  color: #140d24;
}

.audio-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.audio-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-caption {
  font-size: 12px;
  color: var(--text-muted);
}

.audio-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.audio-bar {
  width: 3px;
  height: 4px;
  background: var(--accent-lavender);
  border-radius: 2px;
  transition: height 0.15s ease;
}

.audio-wave.playing .audio-bar:nth-child(1) {
  animation: wave 0.8s infinite ease-in-out;
}

.audio-wave.playing .audio-bar:nth-child(2) {
  animation: wave 0.6s infinite ease-in-out 0.1s;
}

.audio-wave.playing .audio-bar:nth-child(3) {
  animation: wave 1.0s infinite ease-in-out 0.2s;
}

.audio-wave.playing .audio-bar:nth-child(4) {
  animation: wave 0.7s infinite ease-in-out 0.3s;
}

@keyframes wave {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 18px;
  }
}

/* Bottom Sheet Modal for Rental Checkout */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.sheet-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border-light);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 100000;
  padding: 16px 20px 32px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-spring), visibility var(--transition-spring);
}

.bottom-sheet.open {
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.sheet-drag-handle {
  width: 40px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sheet-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-bg-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-sage);
}

/* Radio Pill Selector for Duration */
.duration-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.duration-pill {
  border: 1px solid var(--glass-border);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.duration-pill.active {
  border-color: var(--accent-sage);
  background: var(--accent-sage-soft);
  color: var(--accent-sage);
}

.duration-num {
  font-size: var(--text-base);
  font-weight: 800;
  display: block;
}

.duration-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Price Calculation Box */
.price-breakdown-card {
  background: var(--bg-darkest);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 12px 0 16px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 6px;
}

.breakdown-total {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* A11y Quick Drawer (Mobile-Optimized Bottom Sheet) */
.a11y-drawer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-sage);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 105;
  padding: 16px 20px max(24px, calc(16px + env(safe-area-inset-bottom, 0px)));
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.85);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.38s;
  will-change: transform;
}

.a11y-drawer.open {
  transform: translate(-50%, 0);
  visibility: visible;
  pointer-events: auto;
}

.a11y-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.a11y-toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
}

.a11y-toggle-switch.active {
  background: var(--accent-sage, #4ade80) !important;
  border-color: var(--accent-sage, #4ade80) !important;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.45);
}

.a11y-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none;
}

.a11y-toggle-switch.active .a11y-toggle-knob {
  transform: translateX(22px) !important;
}

/* Accessibility Settings Popup Modal */
.a11y-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 16px 40px;
  z-index: 100005;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.a11y-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.a11y-modal-card {
  background: rgba(16, 20, 29, 0.985);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  max-width: 440px;
  width: 100%;
  margin: auto 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  position: relative;
  transform: scale(0.92);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

.a11y-modal-backdrop.open .a11y-modal-card {
  transform: scale(1);
}

.a11y-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.a11y-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.a11y-modal-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(23, 232, 223, 0.1));
  border: 1px solid rgba(74, 222, 128, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-sage, #4ade80);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.a11y-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.a11y-modal-subtitle {
  font-size: 13px;
  color: var(--text-secondary, #94a3b8);
  margin: 0;
  display: block;
}

.a11y-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.a11y-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.05);
}

.a11y-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-sage, #4ade80);
  margin: 14px 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.a11y-card-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.a11y-card-item.clickable-row {
  cursor: pointer;
  user-select: none;
}

.a11y-card-item.clickable-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(74, 222, 128, 0.3);
}

.a11y-card-item.clickable-row:active {
  transform: scale(0.985);
}

.a11y-card-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.a11y-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.a11y-item-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff;
}

.a11y-item-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.35;
}

.a11y-font-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.a11y-font-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 4px;
  border-radius: 12.5px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.a11y-font-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.a11y-font-chip.active {
  background: rgba(74, 222, 128, 0.1);
  border-color: var(--accent-sage, #4ade80);
}

.a11y-font-percent {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  pointer-events: none;
}

.a11y-font-chip.active .a11y-font-percent {
  color: var(--accent-sage, #4ade80);
}

.a11y-font-name {
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.15;
  pointer-events: none;
}

.a11y-font-chip.active .a11y-font-name {
  color: var(--accent-sage, #4ade80);
}

.a11y-voice-action-box {
  background: linear-gradient(135deg, rgba(23, 232, 223, 0.08), rgba(148, 210, 189, 0.04));
  border: 1px solid rgba(23, 232, 223, 0.25);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.a11y-voice-mic-btn {
  background: rgba(23, 232, 223, 0.15);
  border: 1px solid rgba(23, 232, 223, 0.4);
  color: #17e8df;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.a11y-voice-mic-btn:hover,
.a11y-voice-mic-btn.active {
  background: #17e8df;
  color: #0b0f17;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(23, 232, 223, 0.5);
}

.a11y-reset-btn {
  width: 100%;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.a11y-reset-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  max-width: 90%;
  width: max-content;
  background: rgb(0 0 0 / 55%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 10000020;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-spring), opacity var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.toast-notice.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Static Artwork Banner (Image Only, 250px Height, Border Radius 16px, Padding 20px)
   ========================================================================== */
.static-banner-wrapper {
  position: relative;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  padding: 0 20px 15px;
  box-sizing: border-box;
}

.static-artwork-banner {
  position: relative;
  width: 100%;
  height: 150px;
  min-height: 150px;
  max-height: 150px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: var(--surface-card);
}

.static-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.static-artwork-banner:hover .static-banner-img {
  transform: scale(1.03);
}

/* Footer Artwork Banner (Image Only, 200px Height, Border Radius 16px) */
footer.static-banner-wrapper {
  margin-top: -10px;
}

.footer-artwork-banner {
  position: relative;
  width: 100%;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: var(--surface-card);
}

.footer-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 16px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-artwork-banner:hover .footer-banner-img {
  transform: scale(1.03);
}

/* ==========================================================================
   Lazyload Progressive Image Enhancements & Deferred Rendering
   ========================================================================== */
.lazy-art-img {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.04);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.lazy-art-img.loaded {
  opacity: 1;
  filter: blur(0px);
  transform: scale(1);
}

/* Offscreen Deferred Section Rendering Performance */
.deferred-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* Level Bottom Alignment for Discover Bento Batches */
.discover-batch {
  align-items: stretch !important;
}

.discover-batch .bento-col {
  display: flex;
  flex-direction: column;
}

.discover-batch .bento-col>.bento-card:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.discover-batch .bento-col>.bento-card:last-child .bento-img-wrap {
  flex: 1;
  min-height: 0;
}

.discover-batch .bento-col>.bento-card:last-child .bento-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reset stretch when filtered so cards maintain their natural aspect-ratio */
.discover-section.is-filtered .discover-batch {
  align-items: flex-start !important;
}

.discover-section.is-filtered .discover-batch .bento-col>.bento-card:last-child {
  flex: initial !important;
}

.discover-section.is-filtered .discover-batch .bento-col>.bento-card:last-child .bento-img-wrap {
  flex: initial !important;
}

/* Discover Load More Indicator */
.discover-loadmore-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 20px 0 20px;
  width: 100%;
}

.loadmore-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-sage, #94d2bd);
  border-radius: 50%;
  animation: loadmoreSpin 0.85s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
  box-shadow: 0 0 18px -3px rgba(148, 210, 189, 0.3);
}

@keyframes loadmoreSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loadmore-text {
  font-family: var(--font-sans, 'Poppins', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #9aa0a8);
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: baseline;
}

.loadmore-dots {
  display: inline-flex;
  margin-left: 2px;
}

.loadmore-dots span {
  display: inline-block;
  opacity: 0.2;
  font-weight: 700;
  margin-left: 1.5px;
  animation: loadmoreDotBounce 1.4s infinite ease-in-out both;
}

.loadmore-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loadmore-dots span:nth-child(2) {
  animation-delay: 0.22s;
}

.loadmore-dots span:nth-child(3) {
  animation-delay: 0.44s;
}

@keyframes loadmoreDotBounce {

  0%,
  80%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
    color: var(--text-secondary, #9aa0a8);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--accent-sage, #94d2bd);
  }
}

/* ==========================================================================
   ARTWORK HERO MORPH EXPANSION TRANSITION
   ========================================================================== */

/* Universal Expanding Card Morph Overlay */
.artwork-morph-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 15, 23, 0);
  pointer-events: all;
  transition: background 0.30s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.artwork-morph-overlay.is-active {
  background: rgba(11, 15, 23, 1);
}

/* ==========================================================================
   RUBBER BAND ANIMATION LOGIC (Ref: https://codepen.io/chronisp/pen/WqGxdW)
   ========================================================================== */

@keyframes rubberBand {
  from {
    transform: scale3d(1, 1, 1);
  }

  22% {
    /* Responsive initial stretch - zero delay */
    transform: scale3d(1.18, 0.84, 1);
  }

  36% {
    /* Fluid elastic recoil */
    transform: scale3d(0.85, 1.15, 1);
  }

  50% {
    transform: scale3d(1.10, 0.90, 1);
  }

  65% {
    transform: scale3d(.97, 1.03, 1);
  }

  78% {
    transform: scale3d(1.02, .98, 1);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

.rubberBand {
  -webkit-animation-name: rubberBand;
  animation-name: rubberBand;
  animation-duration: 0.68s;
  animation-fill-mode: both;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
}

.artwork-morph-img-box {
  position: fixed;
  overflow: hidden;
  transform-origin: center center;
  contain: paint;
  will-change: top, left, width, height, border-radius, box-shadow;
  transition: top 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    left 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

#detailHeroSection {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(148, 210, 189, 0.16);
  transform-origin: center center;
  cursor: pointer;
}

.artwork-morph-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.artwork-morph-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

/* In-Page Native Detail View Overlay (Zero Reload / Zero Flicker) */
.artwork-detail-view-overlay {
  position: fixed;
  inset: 0;
  z-index: 99980;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  height: 100dvh;
}

.artwork-detail-view-overlay .detail-scroll-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

#detailBodyContent {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}


/* Ambient Artwork Stage inside Detail Overlays & Detail Page (Vibrant & bright colors) */
.detail-ambient-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(640px, 75vh, 820px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  border-bottom: none !important;
}

.detail-ambient-stage .ambient-stage-canvas {
  filter: blur(65px) saturate(1.65) brightness(0.58);
  -webkit-filter: blur(65px) saturate(1.65) brightness(0.58);
  transform: scale(1.18) translateZ(0);
}

.detail-ambient-stage .ambient-stage-vignette {
  background: linear-gradient(180deg,
      rgba(11, 15, 23, 0.40) 0%,
      rgba(11, 15, 23, 0.20) 20%,
      rgba(11, 15, 23, 0.38) 45%,
      rgba(11, 15, 23, 0.88) 68%,
      var(--bg-primary) 82%,
      var(--bg-primary) 100%);
}

@media (max-width: 640px) {
  .detail-ambient-stage .ambient-stage-canvas {
    filter: blur(40px) saturate(1.6) brightness(0.58);
    -webkit-filter: blur(40px) saturate(1.6) brightness(0.58);
  }
}

.artwork-detail-view-overlay .detail-scroll-container {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
  z-index: 1;
}

/* Detail View Header - Consistent with .app-header Design System */
.app-header.detail-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 20px;
  background: transparent !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border-bottom: 0px solid var(--glass-border);
  flex-shrink: 0;
  box-sizing: border-box;
}


.app-header.detail-header .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-header.detail-header .detail-nav-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
  display: inline-block;
  vertical-align: middle;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.app-header.detail-header .icon-btn {
  width: 35px;
  height: 35px;
  border-radius: var(--radius-full);
  background: var(--glass-bg-subtle);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.app-header.detail-header .icon-btn:hover {
  background: var(--glass-bg-active);
  border-color: var(--glass-border-light);
  color: var(--accent-sage);
}

.app-header.detail-header .icon-btn i {
  font-size: 18px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-header.detail-header .icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Staggered Waterfall Cascade Entrance for Detail Body Content */
.detail-cascade-item {
  opacity: 0;
  transform: translateY(26px);
  will-change: opacity, transform;
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-cascade-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#detailFloatingBar.detail-cascade-item {
  opacity: 0;
  transform: translate(-50%, 26px);
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

#detailFloatingBar.detail-cascade-item.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* In-Page Native Detail Overlay Content Styles - Styled canonically by css/artwork-detail.css */
.overlay-main-content {
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

/* Artwork Full Image Lightbox / Fullscreen Viewer */
.artwork-lightbox-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  z-index: 999999;
  background: rgba(5, 7, 12, 0.86);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.artwork-lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  max-width: 90vw;
  max-height: 65vh;
  transform-origin: center center;
}

.artwork-lightbox-content.rubberBand {
  -webkit-animation-name: rubberBand;
  animation-name: rubberBand;
  animation-duration: 0.65s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
}

.artwork-lightbox-img {
  max-width: 90vw;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 0, 0, 0.6);
  display: block;
  user-select: none;
  -webkit-user-select: none;
  cursor: zoom-out;
}

.artwork-lightbox-close {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--glass-bg-subtle);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.artwork-lightbox-close:hover {
  background: var(--glass-bg-active);
  border-color: var(--glass-border-light);
  color: var(--accent-sage);
  transform: translateX(-50%) scale(1.08);
}

.artwork-lightbox-close i {
  font-size: 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-lightbox-webar {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 30px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  border-radius: var(--radius-full);
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

/* Single-Beam White Rotating Borderspin (True Circle, No Distortion) */
.artwork-lightbox-webar::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(250%, 650px);
  height: max(250%, 650px);
  background: conic-gradient(from 0deg,
      transparent 0deg,
      transparent 300deg,
      rgba(255, 255, 255, 0.2) 330deg,
      rgba(255, 255, 255, 0.7) 350deg,
      #ffffff 360deg);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: webarBorderSpin 3.2s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* Inner Mask to reveal crisp 1.5px border stroke */
.artwork-lightbox-webar::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: rgba(12, 16, 24, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-full);
  z-index: 1;
  pointer-events: none;
}

.artwork-lightbox-webar>* {
  position: relative;
  z-index: 2;
}

.artwork-lightbox-webar:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateX(-50%) scale(1.04);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 255, 255, 0.2);
}

.artwork-lightbox-webar:hover::before {
  animation-duration: 1.8s;
}

.artwork-lightbox-webar:hover::after {
  background: rgba(18, 24, 38, 0.88);
}

.artwork-lightbox-webar i {
  font-size: 18px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes webarBorderSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#detailHeroSection,
#artworkHeroSection {
  cursor: zoom-in;
}

#artworkHeroImg {
  width: 100%;
  aspect-ratio: 1 / 1.3;
  object-fit: cover;
  display: block;
}

#artworkTitle {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: -5px;
}