/* ─── Tokens ─── */
:root {
  --bg:           #f7f5f2;
  --surface:      #ffffff;
  --border:       #e5e2dd;
  --text:         #1a1714;
  --text-muted:   #7a7370;
  --accent:       #a06840;
  --accent-lt:    #f3ebe3;
  --accent-dark:  #7d5030;
  --accent-hover: #8c5c38;
  --danger:       #c0392b;
  --success-bg:   #edf7ed;
  --success-text: #1e6b1e;
  --error-bg:     #fdecea;
  --error-text:   #b71c1c;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4.5rem;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2c1810 0%, #5c2e1a 35%, #8c4e2a 70%, #a0673a 100%);
  z-index: 0;
}

/* Subtle geometric SVG pattern */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='%23ffffff' fill-opacity='0.06'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='%23ffffff' fill-opacity='0.06'/%3E%3Ccircle cx='80' cy='0' r='1.5' fill='%23ffffff' fill-opacity='0.06'/%3E%3Ccircle cx='0' cy='80' r='1.5' fill='%23ffffff' fill-opacity='0.06'/%3E%3Ccircle cx='80' cy='80' r='1.5' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
  z-index: 0;
}

.hero-inner {
  position: relative; z-index: 1;
  max-width: 640px;
}

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  padding: .7rem 2rem;
  background: #fff;
  color: var(--accent-dark);
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  letter-spacing: .01em;
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.hero-cta:hover { background: var(--accent-lt); }
.hero-cta:active { transform: scale(.97); }

/* ─── Main layout ─── */
main { max-width: 960px; margin: 0 auto; padding: 3rem 1.25rem 5rem; }

.section { margin-bottom: 4rem; }

.section-header { margin-bottom: 1.75rem; }
.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: .3rem;
}
.section-header p { color: var(--text-muted); font-size: .9rem; }

/* ─── Upload Card ─── */
.upload-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--accent);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-lt);
}

.drop-icon-wrap svg { width: 48px; height: 48px; margin-bottom: 1rem; }
.drop-label { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.drop-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.5rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  letter-spacing: .01em;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-lt); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }

/* ─── Upload Form ─── */
.upload-form { padding-top: 1.5rem; }

.selected-files {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.25rem;
}

.file-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-lt);
  border: 1px solid #e0cfc2;
  border-radius: 50px;
  padding: .3rem .75rem .3rem .4rem;
  font-size: .82rem;
  color: var(--accent-dark);
  max-width: 220px;
}
.file-chip .chip-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.file-chip .chip-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1;
}
.file-chip .chip-remove {
  cursor: pointer; color: var(--text-muted);
  font-size: 1.1rem; line-height: 1; flex-shrink: 0;
  transition: color .1s;
}
.file-chip .chip-remove:hover { color: var(--danger); }

.form-row { margin-bottom: 1.1rem; }
.form-row label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
  letter-spacing: .01em;
}
.label-opt { font-weight: 400; color: var(--text-muted); }

.form-row input {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .15s, background .15s;
}
.form-row input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.form-actions {
  display: flex; gap: .75rem; flex-wrap: wrap;
  padding-top: .5rem;
}

/* ─── Upload Status ─── */
.upload-status {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
}
.upload-status[hidden] { display: none; }
.upload-status.success { background: var(--success-bg); color: var(--success-text); }
.upload-status.error   { background: var(--error-bg);   color: var(--error-text);   }
.upload-status.loading { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* ─── Gallery ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.gallery-placeholder {
  grid-column: 1/-1;
  display: flex; align-items: center; gap: .75rem;
  color: var(--text-muted); font-size: .9rem;
  padding: 2rem 0;
}

.gallery-empty {
  grid-column: 1/-1;
  color: var(--text-muted); font-size: .9rem;
  padding: 2rem 0; text-align: center;
  font-style: italic;
}

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.gallery-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; display: block;
  background: var(--bg);
}
.gallery-item .item-footer {
  padding: .6rem .75rem;
}
.item-uploader {
  font-size: .78rem;
  color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,10,6,.93);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }

.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: rgba(255,255,255,.1); border: none;
  width: 44px; height: 44px; border-radius: 50%;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-close svg { width: 20px; height: 20px; }

.lightbox-content { max-width: 1000px; width: 100%; text-align: center; }
.lightbox-content img {
  max-height: 78vh; max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 60px rgba(0,0,0,.6);
  display: block; margin: 0 auto;
}
.lightbox-meta {
  margin-top: .9rem;
  color: rgba(255,255,255,.65);
  font-size: .88rem;
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .82rem;
  line-height: 1.8;
}
.footer-admin a {
  color: var(--border);
  text-decoration: none;
  font-size: .72rem;
  letter-spacing: .04em;
  transition: color .15s;
}
.footer-admin a:hover { color: var(--text-muted); }

/* ─── Thank-you state ─── */
.thankyou { padding-top: .5rem; }
.thankyou[hidden] { display: none; }

.thankyou-header {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem;
}

.thankyou-icon {
  flex-shrink: 0;
  color: #2e7d32;
  width: 44px; height: 44px;
}
.thankyou-icon svg { width: 44px; height: 44px; }

.thankyou-header h3 {
  font-size: 1.2rem; font-weight: 600;
  color: var(--text);
  margin-bottom: .2rem;
}
.thankyou-header p { color: var(--text-muted); font-size: .9rem; }

.thankyou-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.thankyou-grid img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}

/* ─── Responsive ─── */
@media (max-width: 540px) {
  .upload-card { padding: 1.25rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
}

/* ─── Admin styles (shared base) ─── */
.admin-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: 1.4rem; font-weight: 600;
}

.admin-header a {
  font-size: .82rem; color: var(--text-muted);
  text-decoration: none;
}
.admin-header a:hover { color: var(--text); }

.admin-stats {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  min-width: 140px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-card .stat-label { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; text-transform: uppercase; letter-spacing: .06em; }

.admin-toolbar {
  display: flex; align-items: center; gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-img-wrap { position: relative; }
.admin-photo-card img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; display: block;
}
.admin-photo-card.selected { outline: 2.5px solid var(--accent); outline-offset: -2px; }

/* Checkbox overlay */
.card-checkbox-wrap {
  position: absolute; top: .4rem; left: .4rem;
  cursor: pointer; z-index: 1;
}
.card-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.card-checkbox-ui {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 5px;
  border: 2px solid rgba(255,255,255,.8);
  background: rgba(0,0,0,.25);
  transition: background .12s, border-color .12s;
}
.card-checkbox-ui::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0; transition: opacity .1s;
}
.card-checkbox:checked ~ .card-checkbox-ui {
  background: var(--accent); border-color: var(--accent);
}
.card-checkbox:checked ~ .card-checkbox-ui::after { opacity: 1; }
.admin-photo-card .card-body {
  padding: .65rem .75rem;
  display: flex; flex-direction: column; gap: .25rem;
}
.card-uploader { font-size: .8rem; color: var(--text); font-weight: 500; }
.card-date { font-size: .73rem; color: var(--text-muted); }
.card-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .3rem;
}
.card-dl {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; color: var(--accent);
  cursor: pointer; text-decoration: none;
  font-weight: 600;
  transition: color .1s;
}
.card-dl:hover { color: var(--accent-dark); }
.card-dl svg { width: 13px; height: 13px; }

.card-delete {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: .15rem .3rem;
  border-radius: 4px; display: flex; align-items: center;
  transition: color .1s, background .1s;
}
.card-delete:hover { color: var(--danger); background: #fdecea; }
.card-delete svg { width: 14px; height: 14px; }

/* Login gate */
.login-gate {
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
}
.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%; max-width: 380px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.login-box h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: .5rem; }
.login-box p { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.75rem; }
.login-box input {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem;
  margin-bottom: 1rem;
  background: var(--bg); color: var(--text);
  transition: border-color .15s;
}
.login-box input:focus { outline: none; border-color: var(--accent); }
.login-box .btn { width: 100%; }
.login-error { color: var(--error-text); font-size: .82rem; margin-top: .75rem; }

/* Download progress bar */
.dl-progress-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  height: 8px;
  overflow: hidden;
  flex: 1;
  min-width: 120px;
  display: none;
}
.dl-progress-wrap.active { display: block; }
.dl-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0;
  border-radius: 50px;
  transition: width .1s;
}

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

.batch-toolbar {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding-left: .75rem;
  border-left: 1px solid var(--border);
  margin-left: .25rem;
}
.batch-toolbar[hidden] { display: none; }
.batch-count { font-size: .82rem; font-weight: 600; color: var(--accent); min-width: 70px; }

/* ─── Admin Tabs ─── */
.admin-tabs {
  display: flex; gap: .25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.admin-tab {
  background: none; border: none; cursor: pointer;
  padding: .65rem 1.25rem;
  font-family: inherit; font-size: .9rem; font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.btn-sm { padding: .35rem .85rem; font-size: .8rem; }

/* ─── Curate layout ─── */
.curate-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 860px) {
  .curate-layout { grid-template-columns: 1fr; }
}

.curate-section-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.curate-section-head h3 { font-size: 1rem; font-weight: 600; margin-bottom: .15rem; }
.curate-section-head p { font-size: .82rem; color: var(--text-muted); }
.pool-actions { display: flex; gap: .4rem; flex-shrink: 0; }

/* Selection grid */
.select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .6rem;
}

.select-item {
  position: relative; cursor: pointer; border-radius: var(--radius-sm);
  overflow: hidden; aspect-ratio: 1;
  border: 2.5px solid transparent;
  transition: border-color .15s, transform .1s;
}
.select-item:hover { transform: scale(1.03); }
.select-item.selected { border-color: var(--accent); }

.select-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.select-check {
  position: absolute; top: .3rem; right: .3rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.select-item.selected .select-check { opacity: 1; }
.select-check svg { width: 12px; height: 12px; stroke: #fff; }

/* Order list */
.curate-order {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 1.5rem;
}

.order-list {
  display: flex; flex-direction: column; gap: .4rem;
  max-height: 420px; overflow-y: auto;
  margin-bottom: 1.25rem;
  padding-right: .25rem;
}
.order-empty {
  color: var(--text-muted); font-size: .82rem; font-style: italic;
  text-align: center; padding: 1.5rem 0; line-height: 1.7;
}

.order-item {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .4rem .5rem;
  cursor: grab; user-select: none;
  transition: background .1s, box-shadow .1s;
}
.order-item:active { cursor: grabbing; }
.order-item.dragging  { opacity: .4; }
.order-item.drag-over { background: var(--accent-lt); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

.order-handle { color: var(--border); flex-shrink: 0; display: flex; align-items: center; }
.order-handle svg { width: 10px; height: 16px; }

.order-num { font-size: .7rem; font-weight: 700; color: var(--text-muted); min-width: 16px; text-align: center; flex-shrink: 0; }

.order-thumb {
  width: 32px; height: 32px; border-radius: 4px;
  object-fit: cover; flex-shrink: 0;
}
.order-name { font-size: .78rem; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.order-move { display: flex; gap: .15rem; flex-shrink: 0; }
.order-arrow {
  background: none; border: 1px solid var(--border); cursor: pointer;
  width: 22px; height: 22px; border-radius: 4px;
  font-size: .75rem; color: var(--text-muted); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .1s, color .1s;
}
.order-arrow:hover:not(:disabled) { background: var(--accent-lt); color: var(--accent); border-color: var(--accent); }
.order-arrow:disabled { opacity: .3; cursor: not-allowed; }

.order-remove {
  background: none; border: none; cursor: pointer; font-size: 1.1rem;
  color: var(--text-muted); line-height: 1; padding: .1rem .2rem;
  transition: color .1s; flex-shrink: 0;
}
.order-remove:hover { color: var(--danger); }

/* Timing */
.timing-row {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.timing-label { font-size: .8rem; color: var(--text-muted); white-space: nowrap; }
.timing-btns  { display: flex; gap: .3rem; }
.timing-btn {
  background: var(--bg); border: 1.5px solid var(--border);
  padding: .3rem .65rem; border-radius: 50px;
  font-family: inherit; font-size: .78rem; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  color: var(--text-muted);
}
.timing-btn:hover  { border-color: var(--accent); color: var(--accent); }
.timing-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.curate-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.save-status {
  margin-top: .75rem; font-size: .82rem; padding: .5rem .75rem;
  border-radius: var(--radius-sm);
}
.save-status[hidden] { display: none; }
.save-status.success { background: var(--success-bg); color: var(--success-text); }
.save-status.error   { background: var(--error-bg);   color: var(--error-text);   }

/* ─── Slideshow Modal ─── */
.slideshow-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.slideshow-modal[hidden] { display: none; }

.slideshow-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  background: rgba(255,255,255,.12); border: none;
  width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.slideshow-close:hover { background: rgba(255,255,255,.22); }
.slideshow-close svg { width: 18px; height: 18px; }

.slideshow-stage {
  flex: 1; width: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 4rem 2rem 0;
  overflow: hidden;
}
.slideshow-img {
  max-width: 100%; max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.slideshow-uploader {
  margin-top: .75rem; color: rgba(255,255,255,.55);
  font-size: .9rem; font-style: italic;
}

.slideshow-progress-bar {
  position: absolute; bottom: 68px; left: 0;
  height: 3px; background: var(--accent);
  width: 0; transition: none;
}

.slideshow-controls {
  width: 100%; display: flex; align-items: center; justify-content: center;
  gap: .75rem; padding: 1rem;
  position: absolute; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
}
.ss-btn {
  background: rgba(255,255,255,.1); border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ss-btn:hover:not(:disabled) { background: rgba(255,255,255,.22); }
.ss-btn:disabled { opacity: .3; cursor: not-allowed; }
.ss-btn svg { width: 18px; height: 18px; }
.ss-play svg { width: 16px; height: 16px; }

.ss-counter { color: rgba(255,255,255,.7); font-size: .85rem; min-width: 56px; text-align: center; }

/* ─── Confirm Delete Dialog ─── */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.confirm-overlay[hidden] { display: none; }
.confirm-box {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2rem; max-width: 360px; width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.confirm-box h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
.confirm-box p  { color: var(--text-muted); font-size: .88rem; margin-bottom: 1.5rem; }
.confirm-actions { display: flex; gap: .6rem; justify-content: center; }

.btn-danger {
  background: var(--danger); color: #fff; border-color: var(--danger);
}
.btn-danger:hover { background: #a93226; border-color: #a93226; }
