@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050507;
  --bg-card: #0e0e12;
  --bg-card-hover: #141418;
  --bg-surface: #111116;
  --bg-input: #0a0a0e;
  --border: #1e1e26;
  --border-hover: #2a2a36;
  --text: #e8e8ed;
  --text-dim: #6b6b7b;
  --text-muted: #44445a;
  --accent: #00d4ff;
  --accent-hover: #00b8e6;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-glow-strong: rgba(0, 212, 255, 0.3);
  --red: #ff3b5c;
  --green: #00e676;
  --orange: #ff9100;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent-glow-strong); color: #fff; }

/* ═══════════════════════════════════════════ */
/* HEADER                                      */
/* ═══════════════════════════════════════════ */
.header {
  background: linear-gradient(180deg, #0a0a10 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 20px 24px;
  text-align: center;
  position: relative;
}
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.header h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 6px;
  text-transform: uppercase;
  line-height: 1;
}
.header h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, #0099cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header .tagline {
  color: var(--text-dim);
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.nav {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.nav a {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  background: transparent;
}
.nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}
.nav a.active {
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(0,212,255,0.05) 100%);
}

/* ═══════════════════════════════════════════ */
/* STATS BAR                                   */
/* ═══════════════════════════════════════════ */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.stat {
  text-align: center;
}
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════ */
/* GALLERY                                     */
/* ═══════════════════════════════════════════ */
.gallery {
  column-count: 3;
  column-gap: 20px;
  padding: 24px;
  max-width: 1500px;
  margin: 0 auto;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-item .caption {
  padding: 14px 16px;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.gallery-item .caption .title {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

@media (max-width: 1100px) { .gallery { column-count: 2; } }
@media (max-width: 600px) {
  .gallery { column-count: 1; padding: 12px; }
  .header h1 { font-size: 1.8rem; letter-spacing: 3px; }
  .stats-bar { gap: 20px; }
}

/* ═══════════════════════════════════════════ */
/* LOAD MORE                                   */
/* ═══════════════════════════════════════════ */
.load-more {
  text-align: center;
  padding: 40px 20px 60px;
}
.btn {
  background: linear-gradient(135deg, var(--accent) 0%, #0099cc 100%);
  color: #000;
  border: none;
  padding: 14px 36px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.btn:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}
.btn:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: default;
  box-shadow: none;
  transform: none;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 12px 28px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ═══════════════════════════════════════════ */
/* LIGHTBOX                                    */
/* ═══════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.96);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(20px);
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ═══════════════════════════════════════════ */
/* EMPTY STATE                                 */
/* ═══════════════════════════════════════════ */
.empty {
  text-align: center;
  padding: 120px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}
.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.3;
}
.empty p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════ */
/* UPLOAD PAGE                                 */
/* ═══════════════════════════════════════════ */
.upload-container {
  max-width: 640px;
  margin: 48px auto;
  padding: 0 20px;
}
.upload-container h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.upload-subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 32px;
}
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 72px 20px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 24px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.drop-zone:hover::before, .drop-zone.dragover::before {
  opacity: 1;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--accent);
  color: var(--accent);
}
.drop-zone .icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  position: relative;
}
.drop-zone .drop-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dim);
  position: relative;
}
.drop-zone .drop-hint {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  position: relative;
}
.drop-zone input { display: none; }

.preview-container {
  margin: 24px 0;
  text-align: center;
  display: none;
}
.preview-container img {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.upload-btn {
  width: 100%;
  padding: 16px;
  display: none;
  margin-top: 8px;
}

.upload-status {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.upload-status.success { color: var(--green); }
.upload-status.error { color: var(--red); }

.progress-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 16px;
  display: none;
  overflow: hidden;
}
.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #0099cc);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s;
}

/* ═══════════════════════════════════════════ */
/* ADMIN PAGE                                  */
/* ═══════════════════════════════════════════ */
.admin-login {
  max-width: 420px;
  margin: 120px auto;
  padding: 48px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.admin-login h2 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  font-weight: 700;
}
.admin-login .login-subtitle {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 28px;
}
.admin-login input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.admin-login input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.admin-login .error-msg {
  color: var(--red);
  margin-bottom: 12px;
  display: none;
  font-size: 0.85rem;
}

.admin-panel { display: none; }
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  max-width: 1500px;
  margin: 0 auto;
}
.admin-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
}
.badge {
  background: var(--accent);
  color: #000;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 0 24px 40px;
  max-width: 1500px;
  margin: 0 auto;
}
.pending-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.pending-card:hover { border-color: var(--border-hover); }
.pending-card img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
.pending-card .info {
  padding: 16px;
}
.pending-card .info .pending-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.pending-card .info .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.6;
}
.pending-card .actions {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}
.btn-approve {
  flex: 1;
  background: var(--green);
  color: #000;
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.btn-approve:hover { box-shadow: 0 0 20px rgba(0,230,118,0.3); }
.btn-reject {
  flex: 1;
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}
.btn-reject:hover { background: rgba(255,59,92,0.1); }
.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-logout:hover { border-color: var(--red); color: var(--red); }

/* Admin tabs */
.admin-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  max-width: 1500px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.admin-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.2s;
}
.admin-tab:hover { border-color: var(--accent); color: var(--text-dim); }
.admin-tab.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
}
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }
.badge-dim {
  background: var(--border);
  color: var(--text-dim);
}

/* Admin search */
.admin-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  max-width: 1500px;
  margin: 0 auto;
}
.admin-search-bar input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
}
.admin-search-bar input:focus {
  outline: none;
  border-color: var(--accent);
}
.admin-result-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Admin post badges */
.admin-post-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-right: 4px;
}
.admin-post-badge.id { background: var(--orange); color: #000; }
.admin-post-badge.video { background: var(--accent); color: #000; }
.admin-post-badge.multi { background: var(--border); color: var(--text-dim); }

/* Approved cards */
.approved-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px;
  max-width: 1500px;
  margin: 0 auto;
}
.approved-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.approved-card:hover { border-color: var(--border-hover); }
.approved-card-top {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.approved-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.approved-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.approved-card-header {
  flex: 1;
  min-width: 0;
}
.approved-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.approved-stats {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.approved-stats span:first-child { color: var(--accent); font-weight: 600; }
.approved-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.approved-card-body {
  padding: 0 16px 8px;
}
.approved-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.approved-section:last-child { border-bottom: none; }
.approved-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.approved-card .meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.8;
}
.approved-card .meta a { color: var(--accent); }
.approved-card .meta strong { color: var(--text-dim); }
.approved-card .actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .approved-card-top { flex-direction: column; }
  .approved-thumb { width: 100%; height: 180px; }
  .admin-tabs { flex-wrap: wrap; }
}

/* EXIF data in admin cards */
.exif-data {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 10px 16px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.gps-flag {
  display: inline-block;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 8px 16px 0;
}

/* ═══════════════════════════════════════════ */
/* FOOTER                                      */
/* ═══════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--accent); }
.footer .footer-links {
  margin-top: 8px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* ═══════════════════════════════════════════ */
/* ANIMATIONS                                  */
/* ═══════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.gallery-item {
  animation: fadeInUp 0.4s ease forwards;
}
.gallery-item:nth-child(3n+1) { animation-delay: 0.05s; }
.gallery-item:nth-child(3n+2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3n+3) { animation-delay: 0.15s; }

/* ═══════════════════════════════════════════ */
/* TOOLBAR (sort + filter)                     */
/* ═══════════════════════════════════════════ */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  max-width: 1500px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
.sort-options {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}
.sort-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.sort-btn:hover { color: var(--text-dim); }
.sort-btn.active {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}
.tag-filter select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b6b7b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.tag-filter select:focus { outline: none; border-color: var(--accent); }

/* ═══════════════════════════════════════════ */
/* GALLERY CAPTION META                        */
/* ═══════════════════════════════════════════ */
.gallery-link { text-decoration: none; color: inherit; }
.gallery-img-wrap { position: relative; overflow: hidden; }
.caption-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.caption-votes { color: var(--accent); font-weight: 600; }

/* ═══════════════════════════════════════════ */
/* TAG CHIPS (upload page)                     */
/* ═══════════════════════════════════════════ */
.tag-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.tag-chip:hover { border-color: var(--accent); color: var(--accent); }
.tag-chip.selected {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════════ */
/* TAG BADGES (photo page)                     */
/* ═══════════════════════════════════════════ */
.tag-badge {
  display: inline-block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════ */
/* PHOTO PAGE                                  */
/* ═══════════════════════════════════════════ */
.photo-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  min-height: 60vh;
}
.photo-main {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-main img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  cursor: pointer;
}
.photo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.photo-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.photo-info h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.photo-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.photo-tags { margin-bottom: 16px; }

/* Vote */
.vote-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.vote-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s;
}
.vote-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.vote-btn.voted {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}
.vote-btn svg { width: 16px; height: 16px; }
.view-count {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ═══════════════════════════════════════════ */
/* COMMENTS                                    */
/* ═══════════════════════════════════════════ */
.comments-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  flex: 1;
}
.comments-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.comment-form input,
.comment-form textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.comment-form .btn {
  align-self: flex-end;
  padding: 10px 24px;
  font-size: 0.8rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; padding-bottom: 0; }
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.comment-author {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
}
.comment-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.comment-body {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
  word-wrap: break-word;
}
.no-comments {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px 0;
}

@media (max-width: 900px) {
  .photo-page {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .sort-options { justify-content: center; }
  .tag-filter { text-align: center; }
  .tag-filter select { width: 100%; }
}

/* ═══════════════════════════════════════════ */
/* GALLERY BADGES (ID This, Multi, Video)      */
/* ═══════════════════════════════════════════ */
.id-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--orange);
  color: #000;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  z-index: 2;
  text-transform: uppercase;
}
.multi-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
}
.multi-badge::before {
  content: '';
  display: inline-block;
  width: 10px; height: 10px;
  border: 1.5px solid #fff;
  border-radius: 2px;
  margin-right: 4px;
  vertical-align: -1px;
}
.video-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* ═══════════════════════════════════════════ */
/* ID BANNER (photo page)                      */
/* ═══════════════════════════════════════════ */
.id-banner {
  background: var(--orange);
  color: #000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-align: center;
}

/* ═══════════════════════════════════════════ */
/* LOCATION DISPLAY                            */
/* ═══════════════════════════════════════════ */
.caption-location {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 2px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-location {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.photo-location a { color: var(--accent); }
.photo-location a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════ */
/* POST TYPE TOGGLE (upload)                   */
/* ═══════════════════════════════════════════ */
.post-type-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
  width: fit-content;
}
.post-type-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.post-type-btn:hover { color: var(--text-dim); }
.post-type-btn.active {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}
.post-type-btn[data-type="idthis"].active {
  background: var(--orange);
}

/* ═══════════════════════════════════════════ */
/* MULTI-FILE PREVIEW STRIP                    */
/* ═══════════════════════════════════════════ */
.preview-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}
.preview-item {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.preview-item img, .preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-remove-btn {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.preview-video-badge {
  position: absolute;
  bottom: 4px; left: 4px;
  background: var(--accent);
  color: #000;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.55rem;
  font-weight: 800;
}
.preview-add-more {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.preview-add-more:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.file-counter {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ═══════════════════════════════════════════ */
/* CAROUSEL (photo page multi-image)           */
/* ═══════════════════════════════════════════ */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.carousel-track {
  width: 100%;
  height: 100%;
}
.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.carousel-slide.active { display: flex; }
.carousel-slide img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  cursor: pointer;
}
.carousel-slide video {
  max-width: 100%;
  max-height: 80vh;
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 3;
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-prev:hover, .carousel-next:hover {
  background: rgba(0,212,255,0.3);
  border-color: var(--accent);
}
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
}
.carousel-dot.active { background: var(--accent); }
.carousel-counter {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  z-index: 3;
}

/* ═══════════════════════════════════════════ */
/* MAP PAGE                                    */
/* ═══════════════════════════════════════════ */
#map {
  height: calc(100vh - 220px);
  min-height: 400px;
  width: 100%;
}
.map-info-bar {
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

/* Leaflet dark theme overrides */
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
}
.leaflet-popup-tip { background: var(--bg-card) !important; }
.leaflet-popup-close-button { color: var(--text-muted) !important; }

.map-popup { width: 220px; }
.map-popup img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.map-popup-info { padding: 0 2px; }
.map-popup-title {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.map-popup-location {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.map-popup-camera {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 2px;
}
.map-popup-votes {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

/* Marker cluster dark theme */
.marker-cluster {
  background: rgba(0, 212, 255, 0.3) !important;
}
.marker-cluster div {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marker-cluster-small { background: rgba(0, 212, 255, 0.2) !important; }
.marker-cluster-medium { background: rgba(0, 212, 255, 0.3) !important; }
.marker-cluster-large { background: rgba(0, 212, 255, 0.4) !important; }

/* Location input row */
.location-row {
  display: flex;
  gap: 8px;
}
.location-input { flex: 1; }
.btn-location {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-location:hover { border-color: var(--accent); color: var(--accent); }
.btn-location:disabled { opacity: 0.5; cursor: default; }
.geo-label { font-size: 0.75rem; }

/* GPS manual entry */
.gps-manual { margin-top: 10px; }
.gps-toggle {
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s;
}
.gps-toggle:hover { color: var(--accent-hover); text-decoration: underline; }
.gps-fields { margin-top: 10px; }
.gps-row {
  display: flex;
  gap: 12px;
}
.gps-field {
  flex: 1;
}
.gps-field label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gps-field input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: 'JetBrains Mono', monospace;
}
.gps-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Preview remove button (single file legacy) */
.preview-remove {
  display: inline-block;
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
}
.preview-remove:hover { border-color: var(--red); color: var(--red); }

/* Smooth scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
