:root {
  --bg: #f8f2ef;
  --bg-2: #f5ece8;
  --card: rgba(255,255,255,0.84);
  --card-strong: rgba(255,255,255,0.93);
  --text: #403537;
  --muted: #7c6b6d;
  --rose: #b97f86;
  --rose-dark: #9f6770;
  --gold: #d5b27a;
  --line: rgba(138, 101, 108, 0.14);
  --shadow: 0 18px 45px rgba(126, 87, 95, 0.12);
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215,183,176,0.45), transparent 34%),
    radial-gradient(circle at bottom right, rgba(213,178,122,0.20), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
}
a { color: var(--rose-dark); }
.page-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 40px;
}
.hero-card, .card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-card {
  text-align: center;
  padding: 34px 24px;
  margin-bottom: 20px;
}
.hero-badge, .section-kicker {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(185,127,134,0.11);
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-card h1, .card h1, .card h2 {
  font-family: 'Cormorant Garamond', serif;
  margin: 14px 0 10px;
  line-height: .95;
}
.hero-card h1 { font-size: clamp(44px, 7vw, 74px); }
.card h1 { font-size: clamp(34px, 6vw, 52px); }
.card h2 { font-size: clamp(30px, 5vw, 42px); }
.hero-text, .section-copy, .hero-mini {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}
.hero-mini { margin-top: 10px; font-size: 14px; }
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr);
  gap: 20px;
  margin-bottom: 20px;
}
.card { padding: 26px; }
.field-label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 700;
}
.field-label span { color: var(--muted); font-weight: 500; }
.text-input, .primary-btn, .secondary-btn, .file-picker {
  width: 100%;
  border-radius: var(--radius);
}
.text-input {
  border: 1px solid var(--line);
  background: var(--card-strong);
  padding: 15px 16px;
  font-size: 16px;
  color: var(--text);
  outline: none;
}
.text-input:focus {
  border-color: rgba(185,127,134,0.55);
  box-shadow: 0 0 0 4px rgba(185,127,134,0.12);
}
.field-help {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}
.file-input { display: none; }
.file-picker {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(185,127,134,0.48);
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.94));
  padding: 18px 16px;
  cursor: pointer;
  text-align: center;
}
.file-picker strong { display:block; font-size: 16px; }
.file-picker small { color: var(--muted); display:block; margin-top: 4px; }
.file-picker-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(185,127,134,0.12);
  color: var(--rose-dark);
  font-size: 28px;
  line-height: 1;
}
.file-count {
  margin-top: 12px;
  font-weight: 700;
  color: var(--rose-dark);
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.preview-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  position: relative;
}
.preview-item img,
.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(64,53,55,0.7);
  color: white;
  font-size: 11px;
  border-radius: 999px;
  padding: 5px 8px;
}
.status-message {
  margin-top: 14px;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 600;
}
.status-message.success { background: rgba(92, 163, 118, 0.14); color: #2c6b42; }
.status-message.error, .error-static { background: rgba(201, 98, 98, 0.14); color: #8c2c2c; }
.progress-wrap {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.progress-track {
  height: 14px;
  background: rgba(185,127,134,0.12);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  transition: width .2s ease;
}
.primary-btn, .secondary-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 18px;
}
.primary-btn {
  margin-top: 18px;
  color: white;
  background: linear-gradient(135deg, var(--rose-dark), var(--rose));
  box-shadow: 0 10px 26px rgba(159,103,112,0.25);
}
.primary-btn[disabled] { opacity: .7; cursor: wait; }
.secondary-btn {
  width: auto;
  background: rgba(185,127,134,0.1);
  color: var(--rose-dark);
}
.steps-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.tip-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(213,178,122,0.13);
  color: #70552f;
}
.gallery-section { padding-bottom: 22px; }
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 18px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  min-height: 180px;
  position: relative;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}
.gallery-item .gallery-meta {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 10px;
  background: linear-gradient(180deg, transparent, rgba(40,32,34,0.72));
  color: white;
  font-size: 12px;
}
.gallery-empty {
  text-align: center;
  padding: 18px 8px 4px;
  color: var(--muted);
}
.admin-shell { max-width: 900px; }
.admin-list { margin-top: 18px; display: grid; gap: 12px; }
.admin-row {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius);
}
.admin-row a { font-weight: 700; text-decoration: none; }
.admin-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-shell { width: min(100% - 16px, 1120px); padding-top: 12px; }
  .hero-card, .card { padding: 20px; }
  .gallery-grid, .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-header { flex-direction: column; align-items: stretch; }
  .secondary-btn { width: 100%; }
}
