@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500&display=swap');

/* ── Reset & Variables ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --bg-card: #181818;
  --bg-card-hover: #222;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f0;
  --text-muted: #888;
  --accent: #fff;
  --danger: #e05252;
  --success: #52c07a;
  --radius: 6px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Site Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--text);
}
.site-nav { display: flex; gap: 24px; align-items: center; }
.lang-switcher { display: flex; gap: 2px; align-items: center; }
.lang-btn { font-size: 1.15rem; padding: 2px 4px; border-radius: 3px; opacity: 0.3; transition: opacity 0.2s; line-height: 1; }
.lang-btn.active { opacity: 1; }
.lang-btn:hover { opacity: 0.7; }
.nav-link {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }

/* ── Burger menu ──────────────────────────────────────────────────────────── */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  flex-shrink: 0;
}
.burger-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #111;
  border-right: 1px solid var(--border);
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}
.nav-drawer.open { pointer-events: all; }
.nav-drawer.open .nav-drawer-backdrop { opacity: 1; }
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}
.nav-drawer-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
  border-left: 3px solid transparent;
}
.nav-drawer-links a:hover {
  background: var(--bg-card);
  border-left-color: var(--accent);
  color: var(--accent);
}
.nav-drawer-links .drawer-icon {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition), opacity var(--transition);
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e0e0e0; }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.85; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* ── Main page hero ───────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 48px;
  text-align: center;
}
.hero h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero p { color: var(--text-muted); font-size: 1rem; }

/* ── Galleries Grid ───────────────────────────────────────────────────────── */
.galleries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding-bottom: 80px;
}
@media (max-width: 900px) { .galleries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .galleries-grid { grid-template-columns: 1fr; } }

.gallery-card {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.8);
}
.gallery-card:hover img {
  transform: scale(1.04);
  filter: brightness(0.55);
}
.gallery-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2.5rem;
}
.gallery-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  background: linear-gradient(rgba(0,0,0,0.6) 0%, transparent 45%);
}
.gallery-card-name { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.02em; }
.gallery-card-count { font-size: 0.78rem; color: rgba(255,255,255,0.65); letter-spacing: 0.05em; margin-top: 3px; }

/* ── Gallery page ─────────────────────────────────────────────────────────── */
.gallery-header {
  padding: 48px 0 32px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--text); }
.gallery-header h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gallery-header p { color: var(--text-muted); }

.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding-bottom: 80px;
}
@media (max-width: 900px) { .photos-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .photos-grid { grid-template-columns: repeat(2, 1fr); } }

.photo-thumb {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
}
.photo-thumb.landscape { grid-column: span 2; aspect-ratio: 4/3; }
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.photo-thumb:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  display: flex;
  flex-direction: row;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }

/* Image area */
.lightbox-left {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox-img-wrap {
  max-width: calc(100% - 120px);
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  transition: opacity 0.2s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-img.fading { opacity: 0; }

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 1001;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 344px; /* 320px panel + 24px */
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 1002;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-footer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.lightbox-counter {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ── Comments panel ───────────────────────────────────────────────────────── */
.lightbox-comments {
  width: 320px;
  flex-shrink: 0;
  background: #111;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
}
.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.comments-header h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.comments-count { font-size: 0.8rem; color: var(--text-muted); }

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.comments-list::-webkit-scrollbar { width: 3px; }
.comments-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.comment-item { display: flex; flex-direction: column; gap: 6px; }
.comment-item-header { display: flex; align-items: center; gap: 8px; }
.comment-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0; text-transform: uppercase;
}
.comment-name { font-size: 0.82rem; font-weight: 600; }
.comment-date { font-size: 0.72rem; color: var(--text-muted); margin-left: auto; }
.comment-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  padding-left: 36px;
  word-break: break-word;
}
.comments-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.comments-toggle-icon {
  display: none;
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  line-height: 1;
}
.comment-form input,
.comment-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  outline: none;
  resize: none;
  transition: border-color var(--transition);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: rgba(255,255,255,0.3); }

/* Mobile: stack image above comments */
@media (max-width: 768px) {
  .lightbox { flex-direction: column; }
  .lightbox-left { flex: 1; width: 100%; min-height: 0; }
  .lightbox-img-wrap { max-width: 100%; max-height: 100%; }
  .lightbox-img { max-height: 100%; }
  .lightbox-comments { width: 100%; border-left: none; border-top: 1px solid var(--border); flex: 0 0 auto; }
  .lightbox-close { right: 16px; }
  .comments-toggle-icon { display: block; }
  .comments-header { cursor: pointer; user-select: none; }
  .comments-body { display: none; }
  .lightbox-comments.open { flex: 0 0 55%; overflow: hidden; display: flex; flex-direction: column; }
  .lightbox-comments.open .comments-body { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; }
  .lightbox-comments.open .comments-toggle-icon { transform: rotate(180deg); }
}

/* ── Thumbnail action bar (like + comments) ──────────────────────────────── */
.photo-thumb-actions {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

/* ── Like button (thumbnail) ──────────────────────────────────────────────── */
.photo-like-btn {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 20px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1;
  transition: background 0.15s;
}
.photo-like-btn:hover { background: rgba(0,0,0,0.75); }
.photo-like-btn .heart-icon { color: rgba(255,255,255,0.6); transition: transform 0.15s, color 0.15s; font-size: 0.85rem; }
.photo-like-btn.liked .heart-icon { color: #e05252; }
.photo-like-btn.pop .heart-icon { transform: scale(1.6); }

/* ── Comment count (thumbnail) ───────────────────────────────────────────── */
.photo-comment-count {
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 7px;
  border-radius: 12px;
  pointer-events: none;
}

/* ── Like button (lightbox) ───────────────────────────────────────────────── */
.lb-like-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.lb-like-btn:hover { background: rgba(255,255,255,0.2); }
.lb-like-btn .heart-icon { color: rgba(255,255,255,0.6); transition: transform 0.15s, color 0.15s; }
.lb-like-btn.liked .heart-icon { color: #e05252; }
.lb-like-btn.pop .heart-icon { transform: scale(1.5); }

/* ── Admin login ──────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.login-card h2 { font-size: 1.5rem; font-weight: 400; margin-bottom: 8px; letter-spacing: 0.05em; }
.login-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 0.8rem; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(255,255,255,0.35); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-full { display: block; width: 100%; }

/* ── Admin layout ─────────────────────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 64px);
}
@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-sidebar.open { display: block; }
}

.admin-sidebar {
  border-right: 1px solid var(--border);
  padding: 24px 0;
  background: #111;
  overflow-y: auto;
}
.admin-sidebar-title {
  padding: 0 20px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sidebar-gallery-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-gallery-item:hover { background: var(--bg-card); }
.sidebar-gallery-item.active { background: var(--bg-card); border-left-color: #fff; }
.sidebar-gallery-name { font-size: 0.9rem; flex: 1; }
.sidebar-gallery-count { font-size: 0.75rem; color: var(--text-muted); }

.admin-main { padding: 32px; overflow-y: auto; }

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-section-header h3 { font-size: 1.2rem; font-weight: 500; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 24px; }
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ── Upload zone ──────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 24px;
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.03);
}
.upload-zone-icon { font-size: 2rem; margin-bottom: 12px; opacity: 0.5; }
.upload-zone p { color: var(--text-muted); font-size: 0.9rem; }
.upload-zone p span { color: var(--text); text-decoration: underline; }

/* ── Upload progress ──────────────────────────────────────────────────────── */
.upload-progress {
  margin-bottom: 24px;
  display: none;
}
.upload-progress.visible { display: block; }
.progress-bar-wrap {
  background: var(--bg-card);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-bar {
  height: 100%;
  background: #fff;
  border-radius: 999px;
  width: 0%;
  transition: width 0.2s ease;
}
.progress-label { font-size: 0.8rem; color: var(--text-muted); }

/* ── Admin photo grid ─────────────────────────────────────────────────────── */
.admin-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.admin-photo-card {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.admin-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-photo-card.is-cover { border-color: #fff; }
.cover-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #fff;
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
}
.admin-photo-actions {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--transition);
}
.admin-photo-card:hover .admin-photo-actions { opacity: 1; }
.admin-photo-stats {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
}
.admin-photo-stats span {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.admin-photo-actions button {
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.btn-set-cover { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); }
.btn-set-cover:hover { background: rgba(255,255,255,0.3); }
.btn-comments { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }
.btn-comments:hover { background: rgba(255,255,255,0.25); }
.btn-delete-photo { background: rgba(224,82,82,0.25); border: 1px solid rgba(224,82,82,0.4); color: #f88; }
.btn-delete-photo:hover { background: rgba(224,82,82,0.5); }

/* ── Admin comment list (inside modal) ───────────────────────────────────── */
.admin-comment-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.admin-comment-item:last-child { border-bottom: none; }
.admin-comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-comment-meta strong { font-size: 0.88rem; }
.admin-comment-meta span { font-size: 0.75rem; color: var(--text-muted); }
.admin-comment-text { font-size: 0.85rem; color: rgba(255,255,255,0.75); line-height: 1.5; }
.btn-delete-comment {
  align-self: flex-end;
  font-size: 0.75rem;
  color: #f88;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(224,82,82,0.4);
  background: rgba(224,82,82,0.15);
}
.btn-delete-comment:hover { background: rgba(224,82,82,0.4); }

/* Drag handle for reordering */
.admin-photo-card[draggable="true"] { cursor: grab; }
.admin-photo-card.dragging { opacity: 0.4; }
.admin-photo-card.drag-target { outline: 2px solid rgba(255,255,255,0.5); }

/* ── Toast notifications ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.875rem;
  max-width: 340px;
  animation: toastIn 0.25s ease;
  pointer-events: all;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px); } }
.toast.removing { animation: toastOut 0.25s ease forwards; }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state p { font-size: 0.95rem; }

/* ── Loading spinner ──────────────────────────────────────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: rgba(255,255,255,0.6);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 80px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ── Inline text link ─────────────────────────────────────────────────────── */
.text-link {
  color: #a0b4c8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.text-link:hover { color: #fff; }

/* ── Contact page ─────────────────────────────────────────────────────────── */
.contact-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 24px;
}
.contact-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contact-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.3);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-success {
  text-align: center;
  padding: 40px 0;
}
.contact-success-icon {
  font-size: 3rem;
  color: var(--success);
  margin-bottom: 16px;
}
.contact-success h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 8px; }
.contact-success p { color: var(--text-muted); }

/* ── Admin: contact messages ──────────────────────────────────────────────── */
.contact-message-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
}
.contact-message-card.unread { border-left: 3px solid var(--accent); }
.contact-message-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.contact-message-meta strong { font-size: 0.95rem; }
.contact-message-meta a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-message-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.contact-message-text { font-size: 0.9rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.contact-message-actions { margin-top: 12px; display: flex; gap: 8px; }

/* ── Comment replies ──────────────────────────────────────────────────────── */
.comment-replies { margin-top: 8px; padding-left: 16px; border-left: 2px solid var(--border); }
.comment-reply {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.comment-reply-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.comment-reply-author {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}
.comment-reply-date { font-size: 0.75rem; color: var(--text-muted); }
.comment-reply-text { line-height: 1.5; color: var(--text); }

/* Admin reply form inside comments modal */
.admin-reply-form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.admin-reply-form textarea {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  padding: 7px 10px;
  resize: none;
  min-height: 60px;
}
.admin-reply-form textarea:focus { outline: none; border-color: rgba(255,255,255,0.3); }
.admin-reply-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  font-size: 0.83rem;
}
.admin-reply-text { flex: 1; line-height: 1.5; }
.btn-delete-reply { flex-shrink: 0; font-size: 0.75rem; color: var(--danger); opacity: 0.7; }
.btn-delete-reply:hover { opacity: 1; }

/* ── Admin: logs ──────────────────────────────────────────────────────────── */
.log-entry {
  display: grid;
  grid-template-columns: 160px 180px 1fr;
  gap: 0 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  font-family: 'SF Mono', 'Fira Mono', 'Consolas', monospace;
}
.log-entry:last-child { border-bottom: none; }
.log-time { color: var(--text-muted); white-space: nowrap; }
.log-ip { color: var(--text-muted); font-size: 0.75rem; margin-top: 2px; }
.log-event { font-weight: 600; white-space: nowrap; }
.log-event.auth-success { color: var(--success); }
.log-event.auth-failure { color: var(--danger); }
.log-event.auth { color: #7eb8f7; }
.log-event.comment { color: #c9a6f5; }
.log-message { color: var(--text); word-break: break-word; }
@media (max-width: 700px) {
  .log-entry { grid-template-columns: 1fr; gap: 2px; }
}

/* ── Mailing list ─────────────────────────────────────────────────────────── */
.mailing-section {
  border-top: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}
.mailing-title {
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.mailing-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.mailing-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.mailing-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 16px;
  width: 280px;
  max-width: 100%;
  transition: border-color var(--transition);
}
.mailing-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.35);
}
.mailing-feedback {
  margin-top: 16px;
  font-size: 0.85rem;
}
.mailing-error { color: var(--danger); }
.mailing-success { color: #6fcf97; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
