:root {
  --bg: #f8f5ef;
  --card: #fffdf9;
  --ink: #423a32;
  --muted: #93887c;
  --gold: #a8895a;
  --gold-dark: #8d7147;
  --rose: #b76e5f;
  --line: #e6ddd0;
  --line-gold: #d8c8ad;
  --radius: 14px;
  --shadow: 0 3px 18px rgba(66, 58, 50, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', 'Segoe UI', sans-serif;
  font-weight: 300;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(183, 110, 95, 0.06), transparent 50%),
    radial-gradient(ellipse at 85% 8%, rgba(168, 137, 90, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* ---------- Hero: tam ekran karşılama ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line-gold);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(216, 200, 173, 0.45);
  pointer-events: none;
}
.hero-inner {
  text-align: center;
  max-width: 620px;
  animation: fadeUp 1s ease both;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
  color: var(--gold);
}
.ornament::before,
.ornament::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--line-gold);
}
.ornament i {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}
.divider {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 22px auto;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.9rem, 11vw, 4.6rem);
  letter-spacing: 0.04em;
  line-height: 1.12;
}
.c-name { display: block; line-height: 1; }
.c-amp {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.5em;
  color: var(--gold);
  line-height: 1;
  margin: 0.16em 0 -0.1em;
}
.hero-date {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 30px 0 22px;
}
.hero-note {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
  margin: 0 auto 30px;
  max-width: 360px;
  line-height: 1.45;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  text-decoration: none;
  opacity: 0;
  animation: hintIn 1.4s ease-out 1s forwards;   /* açılışta yumuşakça belirir */
}
.scroll-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.scroll-hint svg {
  width: 20px;
  height: 20px;
  opacity: 0.55;
  animation: breathe 4s ease-in-out 2.4s infinite;   /* sakin, yavaş nefes */
}
.scroll-hint:hover svg { opacity: 1; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hintIn {
  to { opacity: 1; }
}
@keyframes breathe {
  0%, 100% { transform: translateY(0);   opacity: 0.55; }
  50%      { transform: translateY(3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { opacity: 1; animation: none; }
  .scroll-hint svg { animation: none; opacity: 0.8; }
}

/* ---------- Hero: fotoğraflı arka plan ---------- */
html, body { overflow-x: clip; }
.hero { overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;            /* Safari: büyüyen fotoğraf sayfayı genişletmesin */
}
.hero-bg img {
  position: relative;
  width: 100%;
  height: 116%;                /* dikey ekranda üstten kırp: yüzler yukarı çıkar, metne değmez */
  top: -16%;
  object-fit: cover;
  object-position: 50% 0;
  filter: saturate(0.9) brightness(0.98);
  transform-origin: 50% 30%;
  animation: kenburns 26s ease-in-out infinite alternate;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(30, 22, 16, 0.20) 0%,
    rgba(30, 22, 16, 0.28) 32%,
    rgba(30, 22, 16, 0.70) 56%,
    rgba(30, 22, 16, 0.92) 100%);
}
/* Metin bloğu alta oturur; Safari'nin küçük görünür alanına (~660px) sığacak kadar sıkı */
.has-photo { align-items: flex-end; padding: 48px 24px 88px; }
.has-photo .hero-inner { position: relative; z-index: 2; }
.has-photo .scroll-hint { z-index: 2; }
.has-photo::before, .has-photo::after { display: none; }   /* fotoğrafta çerçeve yok */
.has-photo h1 { font-size: clamp(2.5rem, 10vw, 4.6rem); color: #fbf7f0; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.4); }
.has-photo .ornament { margin-bottom: 14px; }
.has-photo .hero-date { margin: 18px 0 14px; }
.has-photo .hero-note { margin-bottom: 20px; }
.has-photo .c-amp, .has-photo .ornament, .has-photo .scroll-hint { color: #e2c48f; }
.has-photo .ornament::before, .has-photo .ornament::after { background: rgba(226, 196, 143, 0.7); }
.has-photo .hero-date, .has-photo .scroll-label { color: #e6d3a8; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.has-photo .hero-note { color: rgba(251, 247, 240, 0.9); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.has-photo .btn-primary { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3); }
/* Kısa görünür alan (Safari çubukları açıkken ~660px): blok biraz daha sıkı */
@media (max-height: 700px) {
  .has-photo { padding-bottom: 76px; }
  .has-photo h1 { font-size: clamp(2.3rem, 9vw, 4.6rem); }
  .has-photo .ornament { margin-bottom: 10px; }
  .has-photo .hero-date { margin: 12px 0 10px; }
  .has-photo .hero-note { margin-bottom: 16px; font-size: 0.95rem; }
}

/* Geniş/yatay ekran: metin sol altta, çift sağ-ortada açıkta */
@media (min-width: 900px) and (orientation: landscape) {
  .hero-bg img { height: 100%; top: 0; object-position: 50% 22%; transform-origin: 50% 40%; }
  .hero-veil {
    background:
      radial-gradient(ellipse at 50% 55%, rgba(30, 22, 16, 0.18), rgba(30, 22, 16, 0.55) 90%),
      linear-gradient(to bottom, rgba(30, 22, 16, 0.28), rgba(30, 22, 16, 0.46) 55%, rgba(30, 22, 16, 0.80));
  }
  .has-photo { justify-content: flex-start; padding-left: clamp(48px, 7vw, 120px); padding-bottom: 96px; }
  .has-photo .hero-inner { text-align: left; padding-top: 30vh; max-width: 520px; }
  .has-photo .ornament { justify-content: flex-start; }
  .has-photo .hero-note { margin-left: 0; }
  .has-photo .hero-actions { justify-content: flex-start; }
}

/* Altın ışık huzmesi: fotoğrafın üzerinden ~8 sn'de bir yavaşça süzülen geniş, çapraz parıltı */
.hero-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-shine::before {
  content: '';
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 70%;
  background: linear-gradient(105deg,
    rgba(255, 226, 170, 0) 0%,
    rgba(255, 226, 170, 0.10) 35%,
    rgba(255, 236, 196, 0.22) 50%,
    rgba(255, 226, 170, 0.10) 65%,
    rgba(255, 226, 170, 0) 100%);
  mix-blend-mode: screen;
  filter: blur(6px);
  transform: translateX(-120%) skewX(-8deg);
  animation: shine 8s ease-in-out 0.4s infinite;   /* ~7 sn yavaş süpürme + ~1 sn ara */
  will-change: transform;
}
@keyframes shine {
  0%   { transform: translateX(-120%) skewX(-8deg); opacity: 0; }
  10%  { opacity: 1; }
  78%  { opacity: 1; }
  88%  { transform: translateX(200%) skewX(-8deg); opacity: 0; }
  100% { transform: translateX(200%) skewX(-8deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shine { display: none; }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 1px solid var(--line-gold);
  background: var(--card);
  color: var(--ink);
  padding: 11px 26px;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #fffdf9;
}
.btn-primary:hover { background: var(--gold-dark); }
.btn-lg { padding: 14px 38px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Gallery ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 56px 16px 72px; }
.gallery-head { text-align: center; margin-bottom: 28px; }
.gallery-head h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: 0.02em;
}
.gallery-head .divider { margin: 14px auto 12px; }
.muted { color: var(--muted); font-size: 0.88rem; }

/* Masonry (Pinterest tarzı): sütunlar, doğal en-boy oranı, yumuşak kartlar */
.gallery {
  column-count: 2;
  column-gap: 12px;
}
@media (min-width: 640px)  { .gallery { column-count: 3; column-gap: 14px; } }
@media (min-width: 960px)  { .gallery { column-count: 4; column-gap: 16px; } }

.tile {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: 16px;
  overflow: hidden;
  background: #efeae2;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(66, 58, 50, 0.06);
  animation: fadeUp 0.5s ease both;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
@media (min-width: 640px) { .tile { margin-bottom: 14px; } }
@media (min-width: 960px) { .tile { margin-bottom: 16px; } }
.tile:hover { box-shadow: 0 12px 32px rgba(66, 58, 50, 0.18); transform: translateY(-2px); }
.tile:nth-child(3n + 2) { animation-delay: 0.07s; }
.tile:nth-child(3n)     { animation-delay: 0.14s; }
.tile img, .tile video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}
/* Video için ölçü henüz bilinmez: dikey telefon oranı varsayılır */
.tile video { aspect-ratio: 4 / 5; object-fit: cover; }
/* Görsel yüklenene kadar kart çökmesin */
.tile img { min-height: 120px; }
.tile:hover img, .tile:hover video { transform: scale(1.03); }
/* Gösterilemeyen görsel (ör. HEIC): yer tutucu */
.tile.broken { background: #f1ebe1; min-height: 160px; aspect-ratio: 4 / 5; }
.tile.broken img { visibility: hidden; }
.tile.broken::before {
  content: 'Fotoğraf';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-dark);
}
/* Üzerine gelince isim (masaüstü) */
.tile-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fdfaf5;
  background: linear-gradient(transparent, rgba(20, 15, 10, 0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.tile:hover .tile-cap { opacity: 1; }

.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(20, 15, 10, 0.5);
  border: 1px solid rgba(253, 250, 245, 0.7);
  pointer-events: none;
}
.play-badge::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-36%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fdfaf5;
}

.tile-note {
  background: var(--card);
  border: 1px solid var(--line-gold);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 18px 22px;
  text-align: center;
}
.tile-note-inner { max-width: 100%; }
.note-mark {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--gold);
  font-size: 2rem;
  line-height: 0.5;
  margin-bottom: 10px;
}
.tile-note-inner p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-name {
  display: block;
  margin-top: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.empty { text-align: center; padding: 44px 16px; }
.empty-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.empty .muted { max-width: 420px; margin: 0 auto; }
.load-more-wrap { text-align: center; margin-top: 28px; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(45, 38, 31, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12px;
  overflow-y: auto;
  z-index: 50;
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  width: 100%;
  max-width: 470px;
  padding: 30px 24px 26px;
  position: relative;
  box-shadow: 0 16px 48px rgba(20, 15, 10, 0.3);
  animation: fadeUp 0.4s ease both;
}
.modal-close {
  position: absolute;
  top: 8px; right: 14px;
  border: 0; background: none;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--muted);
  cursor: pointer;
}
.modal-box h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1.7rem;
  text-align: center;
  margin: 2px 0 18px;
}
.modal-box label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 15px 0 6px;
}
.opt { color: var(--muted); text-transform: none; letter-spacing: 0.02em; font-size: 0.72rem; }
.modal-box input[type="text"],
.modal-box textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fffdf9;
}
.modal-box input:focus, .modal-box textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}
.hp { position: absolute; left: -9999px; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--line-gold);
  border-radius: var(--radius);
  padding: 24px 12px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold); background: #fbf7ef; }
.dz-icon { width: 34px; height: 34px; color: var(--gold); }
.dz-text { font-size: 0.9rem; }
.dz-text small { letter-spacing: 0.04em; }

.preview-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preview-item {
  position: relative;
  width: 72px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.preview-item img, .preview-item video { width: 100%; height: 100%; object-fit: cover; }
.preview-item .file-chip {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: #f4efe6;
}
.preview-remove {
  position: absolute;
  top: 3px; right: 3px;
  width: 20px; height: 20px;
  border: 0; border-radius: 50%;
  background: rgba(30, 24, 18, 0.6);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

/* Paylaşım bilgilendirmesi */
.consent-note {
  margin-top: 12px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}

.progress {
  position: relative;
  height: 26px;
  background: #efe8db;
  border-radius: 999px;
  margin-top: 14px;
  overflow: hidden;
}
.progress-bar { height: 100%; width: 0%; background: var(--gold); transition: width 0.2s; }
.progress-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 400; color: var(--ink);
}

.form-error { color: #a4453c; font-size: 0.87rem; margin-top: 10px; }
.modal-box .btn-block { margin-top: 16px; }

/* Bildirim */
.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -80px);
  background: var(--ink);
  color: #fdfaf5;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(20, 15, 10, 0.28);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 70;
  pointer-events: none;
  max-width: min(92vw, 420px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 11, 0.93);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-content { max-width: 92vw; max-height: 80vh; }
.lb-content img, .lb-content video {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 6px;
  display: block;
}
.lb-close {
  position: absolute; top: 10px; right: 18px;
  background: none; border: 0;
  color: #f4efe6; font-size: 2.3rem; font-weight: 300;
  cursor: pointer;
  z-index: 2;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(244, 239, 230, 0.12);
  border: 1px solid rgba(244, 239, 230, 0.25);
  color: #f4efe6;
  font-size: 1.7rem;
  line-height: 1;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 20px 20px;
  color: #f4efe6;
  text-align: center;
  background: linear-gradient(transparent, rgba(10, 7, 5, 0.75));
  font-size: 0.95rem;
}
.lb-caption b {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}
.lb-caption .cap-note { color: #d9d1c5; font-size: 0.88rem; white-space: pre-wrap; }
.lb-caption .cap-date { display: block; margin-top: 4px; font-size: 0.72rem; letter-spacing: 0.08em; color: #a99e8f; }

.lb-note {
  background: var(--card);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  max-width: min(480px, 88vw);
  padding: 40px 32px 34px;
  text-align: center;
}
.lb-note p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
}
.lb-note .note-name { margin-top: 16px; }

[hidden] { display: none !important; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 28px 16px 64px; }
.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.admin-bar h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 1.7rem; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}
.panel h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.login-box { max-width: 360px; margin: 60px auto; text-align: center; }
.login-box input[type="password"] {
  width: 100%; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; margin: 12px 0;
}
.qr-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
#qrBox { background: #fff; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
#qrBox img, #qrBox canvas { display: block; }
.qr-info { flex: 1; min-width: 240px; }
.qr-info input {
  width: 100%; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; margin-bottom: 10px;
}
.qr-info .btn { margin: 0 6px 6px 0; }
.stat-row { display: flex; gap: 14px; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 120px;
  text-align: center;
  background: #faf6ee;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}
.stat b {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  color: var(--gold-dark);
}
.maint-out {
  margin-top: 12px; padding: 12px; background: #faf6ee; border: 1px solid var(--line); border-radius: 10px;
  font: 0.78rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word;
}
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.admin-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.8rem;
}
.admin-item.is-hidden { opacity: 0.5; }
.admin-item img, .admin-item video { width: 100%; height: 120px; object-fit: cover; display: block; background: #efeae2; }
.admin-item .ai-note {
  height: 120px; display: flex; align-items: center; justify-content: center;
  padding: 10px; text-align: center; font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: #faf6ee;
  overflow: hidden;
}
.admin-item .ai-body { padding: 8px; }
.admin-item .ai-actions { display: flex; gap: 6px; padding: 0 8px 8px; }
.admin-item .ai-actions button {
  flex: 1; padding: 5px; font-size: 0.75rem;
  border: 1px solid var(--line); border-radius: 7px;
  background: #fff; cursor: pointer;
}
.admin-item .ai-actions .danger { color: #a4453c; border-color: #dfc0bb; }

@media print {
  body * { visibility: hidden; }
  .print-card, .print-card * { visibility: visible; }
  .print-card { position: absolute; inset: 0; }
}
