/* MurusArt — Editorial Obsidian Gallery Design System */
:root {
  --bg: #07070a;
  --bg-elev: #0f0f15;
  --bg-card: #13131b;
  --bg-glass: rgba(13, 13, 19, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f7;
  --text-muted: #9898a8;
  --text-dim: #666678;
  --gold: #e6b96c;
  --gold-bright: #f7dca0;
  --gold-soft: rgba(230, 185, 108, 0.14);
  --gold-glow: rgba(230, 185, 108, 0.28);
  --emerald: #34d399;
  --cyan: #38bdf8;
  --rose: #fb7185;
  --amber: #fbbf24;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-display: 'Syne', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(230, 185, 108, 0.09), transparent 65%),
    radial-gradient(ellipse 40% 35% at 90% 10%, rgba(56, 189, 248, 0.05), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; color: inherit; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.26); }

/* ================= HEADER ================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1720px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(230, 185, 108, 0.2);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, #fff 20%, var(--gold-bright) 70%, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Device Switcher (Alle / PC / Handy) */
.device-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 999px;
  gap: 3px;
}

.device-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.device-btn.active {
  background: linear-gradient(135deg, rgba(230, 185, 108, 0.22), rgba(230, 185, 108, 0.09));
  color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(230, 185, 108, 0.42), 0 4px 18px rgba(0, 0, 0, 0.35);
}

.device-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.device-btn.active .device-count {
  background: rgba(230, 185, 108, 0.22);
  color: var(--gold-bright);
}

/* Search */
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 390px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 44px 9px 40px;
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.search-input::placeholder { color: var(--text-dim); }
.search-input:focus {
  border-color: rgba(230, 185, 108, 0.5);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(230, 185, 108, 0.12);
}

.search-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #f0c980, #d49d46);
  color: #110e08;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(230, 185, 108, 0.26);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f8d99a, #dfa951);
  color: #090704;
  box-shadow: 0 8px 30px rgba(230, 185, 108, 0.38);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fda4af;
}
.btn-danger:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: rgba(244, 63, 94, 0.6);
}

/* ================= HERO / FILTER DECK ================= */
.shell {
  max-width: 1720px;
  margin: 0 auto;
  padding: 20px 24px 64px;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.hero-copy h1 span {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 640px;
}

.hero-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.metric-chip {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  min-width: 96px;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.metric-lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

/* Category Rail */
.filter-deck {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.cat-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
}
.cat-rail::-webkit-scrollbar { display: none; }

.cat-pill {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.cat-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.cat-pill.active {
  background: var(--gold-soft);
  border-color: rgba(230, 185, 108, 0.52);
  color: var(--gold-bright);
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  flex-shrink: 0;
}

.cat-cnt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.cat-pill.active .cat-cnt { color: var(--gold); }

/* Secondary Controls Row: Colors + AMOLED + Sort */
.subfilter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.color-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-label {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 2px;
}

.color-orb {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.16);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  padding: 0;
  position: relative;
}

.color-orb:hover { transform: scale(1.16); }
.color-orb.active {
  border-color: #fff;
  transform: scale(1.18);
  box-shadow: 0 0 0 3px rgba(230, 185, 108, 0.45);
}

.toggle-chip {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s;
}
.toggle-chip.active {
  background: #000;
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(230, 185, 108, 0.16);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.select-pill {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.select-pill:focus { border-color: var(--gold); }

/* ================= MASONRY GALLERY ================= */
.gallery-grid {
  columns: 4 310px;
  column-gap: 16px;
}

.gallery-grid.mode-handy {
  columns: 5 220px;
}

.gallery-grid.mode-pc {
  columns: 3 410px;
}

.wp-card {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, box-shadow 0.28s;
}

.wp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 185, 108, 0.38);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

.wp-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.wp-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.wp-card:hover .wp-img {
  transform: scale(1.035);
}

.wp-badges-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 2;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.score-tier-elite {
  background: linear-gradient(135deg, rgba(230, 185, 108, 0.92), rgba(184, 124, 47, 0.9));
  color: #0e0a04;
  border-color: rgba(255, 240, 195, 0.65);
  box-shadow: 0 4px 18px rgba(230, 185, 108, 0.4);
}
.score-tier-great {
  background: rgba(16, 185, 129, 0.85);
  color: #031910;
}
.score-tier-good {
  background: rgba(56, 189, 248, 0.82);
  color: #041520;
}
.score-tier-mid {
  background: rgba(245, 158, 11, 0.82);
  color: #1c1002;
}
.score-tier-low {
  background: rgba(244, 63, 94, 0.82);
  color: #fff;
}

.device-pill-mini {
  background: rgba(9, 9, 14, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e4e4ec;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.wp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,10,0.02) 38%, rgba(7,7,10,0.92) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.wp-card:hover .wp-overlay { opacity: 1; }

.wp-title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.28;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wp-cat-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.11);
  color: #f4f4f8;
  backdrop-filter: blur(8px);
}

.wp-quick-dl {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: var(--gold);
  color: #110d05;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.18s, background 0.18s;
}
.wp-quick-dl:hover {
  transform: scale(1.1);
  background: var(--gold-bright);
}

.mini-palette {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.mini-swatch {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.25);
}

/* Load more & empty state */
.gallery-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state {
  text-align: center;
  padding: 72px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* ================= LIGHTBOX MODAL ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 4, 7, 0.88);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.lightbox-shell {
  width: min(1440px, 100%);
  height: min(92vh, 920px);
  max-height: 92vh;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.85fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.lightbox-stage {
  background: #050508;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.preview-mode-bar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  background: rgba(12, 12, 18, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.preview-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.preview-tab.active {
  background: var(--gold);
  color: #110d05;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(92vh - 90px);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

/* Interactive Phone Lockscreen Mockup */
.phone-mockup {
  width: 290px;
  height: 600px;
  max-height: calc(90vh - 90px);
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  border: 6px solid #262630;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12), 0 30px 80px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.phone-notch {
  width: 84px;
  height: 22px;
  background: #050507;
  border-radius: 99px;
  margin: 12px auto 0;
}

.phone-clock {
  text-align: center;
  margin-top: 30px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.55);
}
.phone-date { font-size: 0.82rem; font-weight: 600; opacity: 0.9; }
.phone-time { font-family: var(--font-display); font-size: 3.4rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.phone-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,0.75);
}

/* Interactive Desktop Monitor Mockup */
.desktop-mockup {
  width: min(92%, 820px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 6px solid #23232e;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 30px 80px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.desktop-topbar {
  height: 24px;
  background: rgba(8, 8, 12, 0.55);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-mono);
}

.desktop-dock {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 16, 24, 0.62);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  padding: 6px 10px;
  display: flex;
  gap: 8px;
}
.dock-dot {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08));
}

.lightbox-sidebar {
  padding: 24px 20px 36px 24px;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 185, 108, 0.4) transparent;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lightbox-sidebar > * {
  flex-shrink: 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 12, 18, 0.85);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.modal-close:hover { background: rgba(255,255,255,0.14); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.info-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}
.info-tile-lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
}
.info-tile-val {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 3px;
}

.dl-preset-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dl-preset-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.18s;
}
.dl-preset-btn:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-bright);
}
.dl-preset-btn.primary {
  background: linear-gradient(135deg, #f0c980, #d49d46);
  color: #110d05;
  border-color: transparent;
  font-weight: 700;
}
.dl-preset-btn.primary:hover {
  filter: brightness(1.06);
}

.palette-row {
  display: flex;
  gap: 8px;
}
.swatch-btn {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  position: relative;
  transition: transform 0.16s;
}
.swatch-btn:hover { transform: translateY(-2px); }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-chip {
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tag-chip:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.related-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.related-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}
.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.related-thumb:hover img { transform: scale(1.08); }

/* Vibrant Social Share Row */
.share-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--share-accent, #e6b96c) 22%, rgba(255, 255, 255, 0.05));
  border: 1px solid color-mix(in srgb, var(--share-accent, #e6b96c) 55%, transparent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  text-decoration: none;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--share-accent, #e6b96c) 18%, transparent);
}

.share-btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

.share-btn:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  border-color: var(--share-accent, var(--gold-bright));
  background: color-mix(in srgb, var(--share-accent, #e6b96c) 82%, #000);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--share-accent, #e6b96c) 45%, transparent);
}

.share-btn.share-icon-only {
  width: 42px;
  padding: 0;
}

/* ================= UPLOAD MODAL ================= */
.upload-box {
  width: min(580px, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
}

.dropzone {
  border: 2px dashed rgba(230, 185, 108, 0.36);
  background: rgba(230, 185, 108, 0.04);
  border-radius: var(--radius-md);
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.dropzone.dragover, .dropzone:hover {
  border-color: var(--gold);
  background: rgba(230, 185, 108, 0.09);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.form-field label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.form-input {
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
}
.form-input:focus { border-color: var(--gold); }

/* ================= TOAST ================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 28, 0.95);
  border: 1px solid rgba(230, 185, 108, 0.45);
  color: var(--text);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.24s ease;
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================= FOOTER ================= */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 22px 24px 34px;
  color: var(--text-dim);
  font-size: 0.82rem;
}
.site-footer-inner {
  max-width: 1720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer-links a {
  color: var(--text-muted);
  transition: color 0.18s;
}
.footer-links a:hover {
  color: var(--gold-bright);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1020px) {
  .topbar-inner { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .search-wrap { order: 4; max-width: none; flex-basis: 100%; }
  .lightbox-shell { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; max-height: 94vh; overflow-y: auto; }
  .lightbox-stage { height: auto; min-height: 300px; }
  .lightbox-sidebar { height: auto; overflow-y: visible; border-left: none; border-top: 1px solid var(--border); }
  .gallery-grid { columns: 2 180px; }
  .gallery-grid.mode-pc { columns: 1 300px; }
}
