/* ==========================================================================
   Vis Plastica — Social Stream / Instagram Art Feed Stylesheet
   Modern, Dark Matte Aesthetic, High Polish, 60fps Responsive UI
   ========================================================================== */

:root {
  /* Color System */
  --bg-canvas: #090b10;
  --bg-surface: #12151e;
  --bg-card: #161a25;
  --bg-card-hover: #1c2230;
  --bg-glass: rgba(18, 21, 30, 0.85);
  --bg-glass-heavy: rgba(14, 17, 24, 0.94);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.22);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8490a6;
  --text-dim: #546076;
  
  /* Instagram & Creative Gradients */
  --gradient-insta: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --gradient-story: linear-gradient(135deg, #ff8a00 0%, #e52e71 50%, #9b51e0 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-cyber: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  
  /* Accents */
  --accent-insta-pink: #e1306c;
  --accent-blue: #0095f6;
  --accent-purple: #8b5cf6;
  --accent-live: #10b981;
  --accent-danger: #ef4444;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Layout Dimensions */
  --max-width: 980px;
  --nav-height: 48px;
  --bottom-bar-height: 60px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Shadow Elevation */
  --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 12px 36px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 24px rgba(220, 39, 67, 0.25);
  
  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: calc(var(--bottom-bar-height) + 20px);
}

@media (min-width: 768px) {
  body {
    padding-bottom: 40px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  outline: none;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Screen reader only utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ==========================================================================
   Clean Site Header with Intro Statement
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 14px;
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.header-intro {
  flex: 1;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
  line-height: 1.2;
}

.site-intro-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.site-intro-text a {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Nav Status Pill */
.nav-status-pill {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .nav-status-pill {
    display: inline-flex;
  }
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-live);
  box-shadow: 0 0 10px var(--accent-live);
  animation: pulse-green 2s infinite ease-in-out;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: transparent;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

/* Dropdown Menu for Format Switcher */
.dropdown-wrapper {
  position: relative;
}

.nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.nav-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
}

.format-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-insta-pink);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 120;
  animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show {
  display: flex;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-header {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  padding: 8px 10px 4px;
  letter-spacing: 0.05em;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.menu-item:hover {
  background: var(--bg-card-hover);
  color: #fff;
}

.menu-item.active {
  background: rgba(225, 48, 108, 0.12);
  color: #fff;
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.menu-item-icon {
  font-size: 1.25rem;
}

.menu-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.menu-item-info strong {
  font-size: 0.85rem;
  line-height: 1.2;
}

.menu-item-info small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.active-indicator {
  color: var(--accent-insta-pink);
  font-weight: 700;
}

/* ==========================================================================
   Main Container & Profile Header
   ========================================================================== */

.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 14px 60px;
}

@media (max-width: 639px) {
  .main-container {
    padding: 8px 10px 50px;
  }
}

.profile-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-top-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

@media (min-width: 640px) {
  .profile-top-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 36px;
  }
}

/* Story Ring Avatar */
.avatar-story-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  outline: none;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .avatar-story-wrapper {
    width: 140px;
    height: 140px;
    margin: 0;
  }
}

.story-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  padding: 3.5px;
  background: var(--gradient-insta);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ring-pulse 3s infinite ease-in-out;
}

@keyframes ring-pulse {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.02); filter: brightness(1.2) drop-shadow(0 0 10px rgba(225, 48, 108, 0.6)); }
  100% { transform: scale(1); filter: brightness(1); }
}

.avatar-image-box {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  position: relative;
  border: 3px solid var(--bg-canvas);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.avatar-story-wrapper:hover .profile-avatar-img {
  transform: scale(1.08);
}

.avatar-live-badge {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Profile Meta */
.profile-meta {
  flex: 1;
  width: 100%;
}

.profile-handle-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-handle {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.verified-badge {
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
}

.profile-actions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 639px) {
  .profile-actions-bar {
    width: 100%;
    margin-top: 8px;
    justify-content: flex-start;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover {
  background: #1877f2;
}

.btn-follow {
  background: var(--gradient-insta);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  min-width: 88px;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3);
}

.btn-follow.following {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  box-shadow: none;
}

.btn-follow:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--border-hover);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

/* Stats Row */
.profile-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

@media (max-width: 639px) {
  .profile-stats-row {
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
  }
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

@media (max-width: 639px) {
  .stat-item {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}

.stat-number {
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Profile Bio */
.profile-bio {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bio-display-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.bio-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 620px;
}

.bio-link {
  color: #38bdf8;
  font-weight: 500;
  text-decoration: none;
}

.bio-link:hover {
  text-decoration: underline;
}

.bio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.tag-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  color: #a78bfa;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.bio-website {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.bio-website a {
  color: var(--text-primary);
  font-weight: 600;
}

.bio-website a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
}

.dot-separator {
  color: var(--text-dim);
}

/* Story Highlights Carousel */
.story-highlights {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 4px 6px;
  margin-top: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.story-highlights::-webkit-scrollbar {
  display: none;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  outline: none;
  transition: transform var(--transition-fast);
}

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

.highlight-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 2px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-fast);
}

.highlight-item:hover .highlight-ring {
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.12);
}

.highlight-ring.ring-live {
  background: var(--gradient-insta);
  padding: 2.5px;
}

.highlight-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.highlight-name {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 72px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Hero Highlight: "Latest Generation / Live Drop"
   ========================================================================== */

.hero-live-drop {
  margin-bottom: 20px;
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  transition: border-color var(--transition-smooth);
  max-width: 580px;
  margin: 0 auto;
}

.hero-card:hover {
  border-color: rgba(225, 48, 108, 0.35);
}

/* Featured Artwork Presentation - Pure Clean Image, No Overlays */
.hero-artwork-stage {
  position: relative;
  width: 100%;
  background: #000;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(65vh, 520px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

@media (max-width: 639px) {
  .hero-image-wrapper {
    aspect-ratio: 1 / 1;
    max-height: calc(100vh - 200px);
  }
}

.hero-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Artwork Caption Bar Below Image */
.hero-card-footer {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.hero-meta-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 180px;
}

.hero-prompt-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.hero-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-engine-label {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.dot-sep {
  color: var(--border-hover);
}

.hero-actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-surface);
  flex-wrap: wrap;
}

.hero-actions-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.action-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.action-like {
  color: var(--text-secondary);
}

.action-like.liked {
  color: #f43f5e;
}

.action-like.liked svg {
  fill: #f43f5e;
  animation: heartPop 0.4s var(--transition-bounce);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   Gallery Controls, Tabs & Filter Pills (Sticky)
   ========================================================================== */

.gallery-controls-section {
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  background: var(--bg-canvas);
  margin-bottom: 24px;
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

.controls-sticky-bar {
  background: var(--bg-canvas);
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Instagram View Switcher Tabs */
.view-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 4px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-secondary);
}

.tab-btn.active {
  color: #fff;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Search & Sort Row */
.search-sort-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input[type="search"] {
  width: 100%;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 42px 0 38px;
  color: #fff;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.search-box input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

.search-box input[type="search"]:focus {
  border-color: var(--accent-blue);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(0, 149, 246, 0.2);
}

.search-clear-btn {
  position: absolute;
  right: 32px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.search-clear-btn:hover {
  color: #fff;
}

.search-kbd {
  position: absolute;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  pointer-events: none;
}

.sort-selector {
  flex-shrink: 0;
}

.sort-select {
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 12px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
}

.sort-select:hover {
  border-color: var(--border-hover);
}

/* Category Filter Carousel Track */
.filter-pills-container {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

.filter-pills-container::-webkit-scrollbar {
  display: none;
}

.filter-pills-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-pill:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-hover);
}

.filter-pill.active {
  background: #fff;
  color: #090b10;
  border-color: #fff;
  font-weight: 700;
}

.pill-count {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.filter-pill.active .pill-count {
  background: rgba(0, 0, 0, 0.15);
  color: #090b10;
}

/* Dynamic Counter Status Row */
.status-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0 4px;
}

.counter-text strong {
  color: #fff;
}

.filter-active-indicator {
  color: #f59e0b;
}

.reset-filter-btn {
  text-decoration: underline;
  color: #f59e0b;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   Gallery Stream: Grid View (Instagram 3x3 Profile Grid)
   ========================================================================== */

.gallery-stream {
  min-height: 400px;
}

/* Grid Layout */
.gallery-stream.view-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

@media (min-width: 640px) {
  .gallery-stream.view-grid {
    gap: 12px;
  }
}

.grid-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 640px) {
  .grid-cell {
    border-radius: var(--radius-sm);
  }
}

.grid-cell-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-card);
}

.grid-cell:hover .grid-cell-img {
  transform: scale(1.06);
}

/* Hover Overlay for Grid Cells */
.grid-cell-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 16, 0.82);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
}

.grid-cell:hover .grid-cell-overlay,
.grid-cell:focus-visible .grid-cell-overlay {
  opacity: 1;
}

.overlay-top-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.overlay-cat {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.overlay-like-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.overlay-prompt {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.overlay-date {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Gallery Stream: Feed View (Instagram Social Card Stream)
   ========================================================================== */

.gallery-stream.view-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: border-color var(--transition-fast);
}

.feed-card:hover {
  border-color: var(--border-hover);
}

/* Card Header */
.feed-card-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feed-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-insta);
  padding: 2px;
}

.author-mini-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
}

.author-meta {
  display: flex;
  flex-direction: column;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.author-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.feed-card-more-btn {
  color: var(--text-muted);
  padding: 4px;
}

.feed-card-more-btn:hover {
  color: #fff;
}

/* Card Artwork Image Container */
.feed-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.feed-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Double-Tap Heart Animation */
.floating-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: #f43f5e;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(244, 63, 94, 0.8));
}

.floating-heart.animate {
  animation: doubleTapHeart 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes doubleTapHeart {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  30% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Card Actions */
.feed-card-actions {
  padding: 12px 14px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.card-icon-btn {
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
}

.card-icon-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.card-icon-btn.liked {
  color: #f43f5e;
}

.card-icon-btn.liked svg {
  fill: #f43f5e;
}

.card-icon-btn.saved {
  color: #f59e0b;
}

.card-icon-btn.saved svg {
  fill: #f59e0b;
}

/* Card Caption & Meta */
.feed-card-caption-block {
  padding: 6px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.likes-count-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.feed-card-caption {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.caption-author {
  font-weight: 700;
  color: #fff;
  margin-right: 6px;
}

.feed-card-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.hires-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-live);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.feed-card-timestamp {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Skeleton Loading State & Infinite Scroll
   ========================================================================== */

.gallery-skeletons {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery-skeletons.active {
  display: grid;
}

.skeleton-card {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #161a25 0%, #1f2535 50%, #161a25 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.infinite-scroll-sentinel {
  height: 40px;
  width: 100%;
  margin-top: 20px;
}

.load-more-wrapper {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.btn-load-more {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.btn-load-more:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.all-caught-up-box,
.empty-state-box {
  text-align: center;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.caught-up-icon,
.empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-live);
  border: 1px solid var(--border-subtle);
}

.empty-icon {
  color: var(--text-muted);
}

/* ==========================================================================
   Immersive Lightbox Dialog (Native <dialog>)
   ========================================================================== */

.lightbox-dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  color: var(--text-primary);
  outline: none;
}

.lightbox-dialog::backdrop {
  background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.lightbox-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(9, 11, 16, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.lightbox-counter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lightbox-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.lb-close-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.lb-close-btn:hover {
  background: #e11d48;
}

/* Lightbox Stage */
.lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.lightbox-image-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8);
}

.lightbox-spinner {
  display: none;
  position: absolute;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.lightbox-spinner.active {
  display: block;
}

.lb-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(18, 21, 30, 0.7);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  z-index: 10;
}

.lb-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.08);
}

.lb-prev-btn { left: 20px; }
.lb-next-btn { right: 20px; }

@media (max-width: 639px) {
  .lb-nav-btn {
    width: 40px;
    height: 40px;
  }
  .lb-prev-btn { left: 8px; }
  .lb-next-btn { right: 8px; }
}

/* Lightbox Details Panel */
.lightbox-details-panel {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.lb-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.lb-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.date-chip, .resolution-chip {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.resolution-chip {
  color: var(--accent-live);
  background: rgba(16, 185, 129, 0.12);
}

.lb-prompt-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.lb-meta-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.lb-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Navigation Drawer Dialog (Slide-out)
   ========================================================================== */

.nav-drawer-dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0 0 0 auto;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  max-width: 380px;
  color: var(--text-primary);
  outline: none;
}

.nav-drawer-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.drawer-container {
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.6);
  animation: slideDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.drawer-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.brand-gradient-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-insta);
}

.drawer-close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.drawer-bio-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.drawer-bio-text a {
  color: #a5b4fc;
  text-decoration: underline;
}

.drawer-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.drawer-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-stat-num {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

.drawer-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.format-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-format-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.drawer-format-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateX(3px);
}

.drawer-format-card.active {
  border-color: var(--accent-insta-pink);
  background: rgba(225, 48, 108, 0.1);
}

.card-icon {
  font-size: 1.25rem;
}

.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-text strong {
  font-size: 0.85rem;
  color: #fff;
}

.card-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pill-active {
  font-size: 0.6rem;
  font-weight: 800;
  background: var(--accent-insta-pink);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.drawer-nav-link:hover {
  background: var(--bg-card);
  color: #fff;
}

.link-arrow {
  margin-left: auto;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

/* ==========================================================================
   About Hardware Modal Dialog
   ========================================================================== */

.about-dialog {
  border: none;
  background: transparent;
  padding: 16px;
  margin: auto;
  max-width: 640px;
  width: 100%;
  color: var(--text-primary);
  outline: none;
}

.about-dialog::backdrop {
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(12px);
}

.about-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.about-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.badge-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-live);
  padding: 2px 6px;
  border-radius: 4px;
}

.about-title-group h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2px;
}

.about-close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}
.about-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.about-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-image-stage {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.about-hw-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.hw-caption {
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.artist-quote {
  padding: 12px 16px;
  border-left: 3px solid var(--accent-insta-pink);
  background: rgba(225, 48, 108, 0.08);
  font-style: italic;
  color: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.spec-card {
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
}

.spec-val {
  font-size: 0.9rem;
  color: #fff;
  margin-top: 2px;
}

.about-footer {
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */

.mobile-bottom-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 95;
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 12px;
  transition: color var(--transition-fast);
}

.bottom-bar-item:hover,
.bottom-bar-item.active {
  color: #fff;
}

.bottom-live-badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-pulse {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.3);
  animation: pulse-red 1.5s infinite;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border-subtle);
  padding: 32px 16px;
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.footer-brand strong {
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #fff;
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.link-button {
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.link-button:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Floating Toast Notifications
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-bar-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}

@media (min-width: 768px) {
  .toast-container {
    bottom: 24px;
  }
}

.toast {
  pointer-events: auto;
  background: #1e2433;
  color: #fff;
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-elevated);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1), toastOut 0.25s 2.75s forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-8px) scale(0.95); }
}

/* ==========================================================================
   Curatorial Provenance & Exhibition Notes Section
   ========================================================================== */

.intro-anchor-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.intro-anchor-link:hover {
  color: #fff;
}

.curatorial-notes-section {
  margin: 40px auto 20px;
  padding: 32px 16px 20px;
  border-top: 1px solid var(--border-subtle);
  max-width: var(--max-width);
  scroll-margin-top: 60px;
}

.curatorial-inner {
  width: 100%;
}

.curatorial-header {
  margin-bottom: 28px;
  text-align: left;
}

.curatorial-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-insta-pink);
  background: rgba(225, 48, 108, 0.1);
  border: 1px solid rgba(225, 48, 108, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  font-weight: 600;
}

.curatorial-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .curatorial-title {
    font-size: 1.85rem;
  }
}

.curatorial-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.curatorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .curatorial-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.curatorial-col {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .curatorial-col {
    padding: 28px;
  }
}

.curatorial-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}

.curatorial-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.curatorial-body {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.curatorial-body strong {
  color: #fff;
}

.curatorial-body em {
  color: #cbd5e1;
  font-style: italic;
}

.curatorial-figure {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
}

.curatorial-hw-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 220px;
}

.curatorial-caption {
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  line-height: 1.4;
  border-top: 1px solid var(--border-subtle);
}

/* Provenance Ledger */
.provenance-ledger {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ledger-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (min-width: 480px) {
  .ledger-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
  }
}

.ledger-key {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ledger-val {
  color: var(--text-secondary);
  text-align: left;
}

@media (min-width: 480px) {
  .ledger-val {
    text-align: right;
  }
}

.ledger-val strong {
  color: #fff;
}

.ledger-val a {
  color: var(--accent-blue);
  text-decoration: none;
}

.ledger-val a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Examples Spotlight Section (Top of page)
   ========================================================================== */

.examples-spotlight-section {
  max-width: var(--max-width);
  margin: 0 auto 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-subtle);
}

@media (min-width: 640px) {
  .examples-spotlight-section {
    padding: 24px 24px 20px;
  }
}

.spotlight-header {
  margin-bottom: 16px;
}

.spotlight-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.spotlight-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-insta-pink);
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid rgba(225, 48, 108, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.spotlight-hw-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-live);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.spotlight-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.spotlight-intro {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.spotlight-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 768px) {
  .spotlight-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

.spotlight-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-smooth);
  cursor: pointer;
}

@media (min-width: 768px) {
  .spotlight-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
}

.spotlight-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(225, 48, 108, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.spotlight-card-media {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}

@media (min-width: 768px) {
  .spotlight-card-media {
    width: 100%;
    height: 140px;
  }
}

.spotlight-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.spotlight-card:hover .spotlight-card-media img {
  transform: scale(1.08);
}

.spotlight-card-zoom-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 4px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.spotlight-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.spotlight-card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spotlight-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.spotlight-card-snippet {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}

.spotlight-footer {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.spotlight-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.spotlight-more-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* Links inside curatorial body */
.artwork-example-link {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.artwork-example-link:hover {
  color: #fff;
  background: rgba(0, 149, 246, 0.15);
  border-radius: 2px;
}
