:root {
  --bg-primary: #313338;       /* Discord chat area */
  --bg-secondary: #2b2d31;     /* Discord sidebar */
  --bg-tertiary: #1e1f22;      /* Discord dark inputs/panels */
  --bg-floating: #232428;      /* Discord popovers/modals */
  --border-subtle: #3f4147;
  --text-normal: #dbdee1;
  --text-muted: #949ba4;
  --text-header: #f2f3f5;
  --blurple: #5865f2;
  --blurple-hover: #4752c4;
  --green: #23a55a;
  --green-hover: #1f9450;
  --kofi-red: #ff5e5b;
  --kofi-hover: #e04a47;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  background: var(--bg-primary);
  color: var(--text-normal);
  min-height: 100vh;
  overflow-x: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Nav */
.top-nav {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.5rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  color: var(--blurple);
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-header);
}

.nav-tabs {
  display: flex;
  gap: 0.4rem;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s;
}

.tab-icon {
  width: 15px;
  height: 15px;
}

.nav-tab:hover {
  color: var(--text-header);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  color: #fff;
  background: var(--blurple);
}

.tag-experimental {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
  color: #cbd5e1;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.tag-experimental-inline {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  text-transform: uppercase;
  display: inline-block;
}

/* Buttons & Code styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  user-select: none;
}

.btn:active { transform: scale(0.98); }
.btn-icon { width: 15px; height: 15px; }

.btn-primary { background: var(--blurple); color: #fff; }
.btn-primary:hover { background: var(--blurple-hover); }
.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: var(--green-hover); }
.btn-secondary { background: var(--bg-tertiary); color: var(--text-normal); border: 1px solid var(--border-subtle); }
.btn-secondary:hover { background: #26272b; color: var(--text-header); }
.btn-github { background: #24292e; color: #fff; }
.btn-github:hover { background: #1b1f23; }
.btn-kofi { background: var(--kofi-red); color: #fff; }
.btn-kofi:hover { background: var(--kofi-hover); }
.btn-outline-light { background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); }
.btn-lg { padding: 0.75rem 1.4rem; font-size: 0.95rem; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.78rem; height: 32px; }

/* Large Action Buttons on Landing Guide */
.btn-hero-action {
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

code {
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  color: #a5b4fc;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Sticky Download Bar */
.download-bar {
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--green);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.download-info { min-width: 290px; }
.dl-title { font-weight: 600; font-size: 0.85rem; color: var(--text-header); display: block; }
.dl-detail { font-size: 0.75rem; color: var(--text-muted); }
.dl-progress-track { flex: 1; height: 8px; background: var(--bg-tertiary); border-radius: 999px; overflow: hidden; }
.dl-progress-fill { height: 100%; background: var(--green); transition: width 0.2s; }

/* Screens View Switcher */
.screen-view { display: none; flex: 1; padding: 1.25rem 1.5rem; }
.screen-view.active { display: flex; flex-direction: column; }

/* Privacy Callout */
.privacy-callout {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--blurple);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.callout-icon svg { width: 22px; height: 22px; color: var(--blurple); }
.callout-content { flex: 1; font-size: 0.85rem; }
.callout-content strong { color: var(--text-header); display: block; margin-bottom: 0.15rem; }
.callout-content span { color: var(--text-muted); }
.callout-content a { color: #a5b4fc; text-decoration: underline; }

/* Extractor Landing Screen & Action Cards */
.extractor-hero {
  max-width: 900px;
  margin: 1.5rem auto 2.5rem;
  text-align: center;
}

.extractor-hero h1 { font-size: 2.2rem; font-weight: 800; color: var(--text-header); margin-bottom: 0.6rem; }
.section-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; }

.dual-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.action-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.primary-card { border-color: rgba(88, 101, 242, 0.4); }
.secondary-card { border-color: rgba(35, 165, 90, 0.4); }

.card-tag {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.15);
  color: #a5b4fc;
  margin-bottom: 0.75rem;
}

.card-tag.secondary {
  background: rgba(35, 165, 90, 0.15);
  color: #86efac;
}

.action-card h2 { font-size: 1.25rem; color: var(--text-header); margin-bottom: 0.4rem; }
.action-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; flex: 1; }

.step-inputs { display: flex; flex-direction: column; gap: 0.75rem; }
.sub-caption { font-size: 0.75rem; color: var(--text-muted); text-align: center; }
.file-confirm-text { font-size: 0.82rem; color: #86efac; word-break: break-all; }

/* Visual How-To Guide */
.guide-container {
  max-width: 800px;
  margin: 0 auto 3rem;
  width: 100%;
}

.guide-action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.guide-divider {
  text-align: center;
  position: relative;
  margin: 2.5rem 0 2rem;
}

.guide-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle);
}

.guide-divider span {
  position: relative;
  background: var(--bg-primary);
  padding: 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.guide-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.guide-card-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.step-number {
  background: var(--blurple);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.guide-card-header h2 { font-size: 1.15rem; color: var(--text-header); margin-bottom: 0.35rem; }
.guide-card-header p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

.guide-media-box {
  background: #1e1f22;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.guide-media-box img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.code-block-wrapper {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.code-header { background: rgba(0, 0, 0, 0.2); padding: 0.4rem 0.75rem; font-size: 0.72rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.code-block-wrapper pre { padding: 0.85rem; font-size: 0.8rem; line-height: 1.4; color: #e2e8f0; overflow-x: auto; font-family: "JetBrains Mono", monospace; }

/* Connected Dual Timeline Slider Card */
.timeline-filter-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 620px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.timeline-title {
  font-size: 0.85rem;
  color: var(--text-normal);
}

.timeline-title strong { color: #a5b4fc; font-family: "JetBrains Mono", monospace; font-size: 0.82rem; }

/* Connected Dual Track Slider */
.connected-slider-box {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.slider-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.slider-track-highlight {
  position: absolute;
  height: 6px;
  background: var(--blurple);
  border-radius: 999px;
  left: 0%;
  width: 100%;
  pointer-events: none;
}

.dual-range-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
  -webkit-appearance: none;
  background: transparent;
  z-index: 2;
}

.dual-range-input::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blurple);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transition: transform 0.1s;
}

.dual-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.timeline-calendar-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.timeline-calendar-row label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.timeline-calendar-row input[type="date"] {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-normal);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  outline: none;
  font-family: "JetBrains Mono", monospace;
}

.timeline-calendar-row input[type="date"]:focus {
  border-color: var(--blurple);
}

/* Page Jump Input */
.page-jump-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.page-input {
  width: 50px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-header);
  padding: 0.2rem 0.35rem;
  border-radius: 3px;
  font-size: 0.82rem;
  text-align: center;
  outline: none;
  font-family: "JetBrains Mono", monospace;
}

.page-input:focus { border-color: var(--blurple); }

/* Cloud Demo & Local Host Cards */
.cloud-demo-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--green);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.card-header-flex { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.card-tag-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.2rem; }
.card-header-flex h3 { font-size: 1rem; color: var(--text-header); }
.card-header-flex p { font-size: 0.82rem; color: var(--text-muted); }
.demo-cta-actions { display: flex; gap: 0.65rem; align-items: center; }

.local-host-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--blurple);
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.banner-flex { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
.banner-flex strong { color: var(--text-header); }
.banner-flex code { background: var(--bg-tertiary); padding: 0.1rem 0.35rem; border-radius: 3px; color: #a5b4fc; font-family: "JetBrains Mono", monospace; }

/* Discord-Style Search Engine Bar */
.vault-search-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.discord-search-box {
  position: relative;
  flex: 1;
  max-width: 600px;
}

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

.discord-search-box input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  padding: 0.55rem 2rem 0.55rem 2.3rem;
  border-radius: 4px;
  color: var(--text-normal);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}

.discord-search-box input:focus { border-color: var(--blurple); }

.btn-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.vault-status-text { font-size: 0.82rem; color: var(--text-muted); }

/* Multi-Select Category Filters, Sort Select & Toolbar */
.filter-toolbar, .browser-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.toolbar-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sort-select-wrapper {
  display: inline-flex;
  align-items: center;
}

/* Height-Matched Sort Select */
.select-sort {
  background: var(--bg-tertiary);
  color: var(--text-normal);
  border: 1px solid var(--border-subtle);
  height: 32px;
  padding: 0 0.65rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s;
}

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

.filter-pills { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
}

.badge-count {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.7;
  font-family: "JetBrains Mono", monospace;
}

.pill:hover { color: var(--text-header); background: var(--bg-tertiary); }
.pill.active { background: var(--blurple); color: #fff; border-color: var(--blurple); }
.pill.active .badge-count { opacity: 0.95; font-weight: 700; }

/* Pagination Bars (Top & Bottom) */
.pagination-subbar, .pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.bottom-pagination {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.page-range { color: var(--text-muted); font-family: "JetBrains Mono", monospace; font-size: 0.78rem; }
.page-buttons, .pagination-controls { display: flex; align-items: center; gap: 0.4rem; }

/* High-Performance Media Grid (No Stretching on Few Items) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  gap: 0.85rem;
  flex: 1;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 5rem 1rem;
}

.empty-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.media-item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.1s ease;
  content-visibility: auto;
  contain-intrinsic-size: 210px 220px;
}

.media-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--blurple);
}

.media-thumb {
  width: 100%;
  height: 155px;
  background: #111214;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-thumb img, .media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generic-file-icon { font-size: 2.5rem; color: var(--text-muted); }

.card-info {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-title-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-header);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-date-text { font-size: 0.7rem; color: var(--text-muted); font-family: "JetBrains Mono", monospace; }

.card-tag-row { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.tag-badge {
  font-size: 0.65rem;
  background: var(--bg-tertiary);
  color: #93c5fd;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
}

/* Support & Experimental Modal */
.support-modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.support-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-row { display: flex; flex-direction: column; gap: 0.3rem; }
.modal-title-row h3 { font-size: 1.1rem; color: var(--text-header); }

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.btn-close-modal:hover { color: #fff; }

.support-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.support-callout-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: 6px;
}

.support-callout-box h4 { font-size: 0.9rem; color: var(--text-header); margin-bottom: 0.3rem; }
.support-callout-box p { font-size: 0.8rem; color: var(--text-muted); }

.subtle-note { font-size: 0.8rem; color: var(--text-muted); }
.support-action-row { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 0.5rem; }

/* Lightbox Modal with Hardware-Accelerated Pan & Zoom */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.lightbox-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  max-width: 1100px;
  width: 100%;
  height: 85vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.lightbox-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s, transform 0.1s;
}

.lightbox-nav-btn:hover {
  background: var(--blurple);
}

.prev-btn { left: 1rem; }
.next-btn { right: calc(33% + 1rem); }

@media (max-width: 850px) {
  .next-btn { right: 1rem; }
}

.lightbox-media-pane {
  flex: 2;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
  user-select: none;
  cursor: default;
}

.media-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.media-container img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
  transform-origin: center center;
  will-change: transform;
  cursor: grab;
}

.media-container img.is-panning {
  cursor: grabbing;
}

.media-container video {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-details-pane {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-left: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.lightbox-filename { font-size: 0.95rem; color: var(--text-header); word-break: break-all; }
.lightbox-time, .lightbox-subfolder { font-size: 0.8rem; color: var(--text-muted); font-family: "JetBrains Mono", monospace; }

.sidebar-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.tag-flex { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.tag-none { font-size: 0.8rem; color: var(--text-muted); }

.ocr-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
  color: var(--text-normal);
  font-family: "JetBrains Mono", monospace;
}

/* Universal Footer */
.app-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-brand {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-header);
  letter-spacing: 0.5px;
}

.footer-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-subtext a {
  color: #a5b4fc;
  text-decoration: none;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

.footer-link:hover { color: var(--text-header); }
.footer-icon { width: 16px; height: 16px; }
.footer-link.kofi-highlight { color: #fca5a5; }
.footer-link.kofi-highlight:hover { color: #ff5e5b; }

.hidden { display: none !important; }