/* ═══════════════════════════════════════
   STUDIO SGA — Admin Panel Stylesheet
   ═══════════════════════════════════════ */

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

:root {
  --ad-bg:       #1c1a18;
  --ad-surface:  #252220;
  --ad-surface2: #2e2b28;
  --ad-border:   rgba(244,240,229,0.08);
  --ad-border2:  rgba(244,240,229,0.14);
  --ad-brown:    #7A3B26;
  --ad-brown-lt: #a05030;
  --ad-cream:    #F4F0E5;
  --ad-muted:    rgba(244,240,229,0.45);
  --ad-green:    #2D5D4F;
  --ad-red:      #8B2E2E;
  --font:        'Jost', sans-serif;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--font);
  background: var(--ad-bg);
  color: var(--ad-cream);
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hidden { display: none !important; }

/* ─────────────────────────────────────
   BUTTONS
   ───────────────────────────────────── */
.ad__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--ad-brown);
  color: var(--ad-cream);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}
.ad__btn-primary:hover { background: var(--ad-brown-lt); transform: translateY(-1px); }
.ad__btn-primary:active { transform: translateY(0); }

.ad__btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--ad-border2);
  color: var(--ad-muted);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}
.ad__btn-ghost:hover { color: var(--ad-cream); border-color: var(--ad-border2); }

.ad__btn-danger {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(139,46,46,0.4);
  color: #c97070;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.ad__btn-danger:hover { background: rgba(139,46,46,0.25); color: #e09090; }

/* ─────────────────────────────────────
   LOGIN SCREEN
   ───────────────────────────────────── */
#admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(122,59,38,0.12) 0%, transparent 65%),
    var(--ad-bg);
}

.al__card {
  width: 100%;
  max-width: 380px;
  background: var(--ad-surface);
  border: 1px solid var(--ad-border2);
  border-radius: 10px;
  padding: 48px 40px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

.al__logo {
  color: var(--ad-brown);
  margin-bottom: 28px;
}

.al__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ad-cream);
  margin-bottom: 6px;
}

.al__subtitle {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ad-muted);
  text-transform: uppercase;
  margin-bottom: 36px;
}

#login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.al__field input {
  width: 100%;
  padding: 13px 16px;
  background: var(--ad-bg);
  border: 1px solid var(--ad-border2);
  border-radius: 5px;
  color: var(--ad-cream);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.06em;
  transition: border-color 0.2s;
  outline: none;
}
.al__field input:focus { border-color: var(--ad-brown); }
.al__field input::placeholder { color: rgba(244,240,229,0.25); }

.al__btn {
  width: 100%;
  padding: 13px;
  background: var(--ad-brown);
  color: var(--ad-cream);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s;
  margin-top: 4px;
  cursor: pointer;
  border: none;
}
.al__btn:hover { background: var(--ad-brown-lt); }

.al__error {
  font-size: 12px;
  color: #c97070;
  text-align: center;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* ─────────────────────────────────────
   DASHBOARD NAV
   ───────────────────────────────────── */
.ad__nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: var(--ad-surface);
  border-bottom: 1px solid var(--ad-border);
  gap: 16px;
}

.ad__nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ad__nav-left .ad__logo { color: var(--ad-brown); flex-shrink: 0; }

.ad__nav-brand {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ad-cream);
}

.ad__nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad__nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-muted);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.ad__nav-link:hover { color: var(--ad-cream); background: rgba(244,240,229,0.06); }

/* ─────────────────────────────────────
   MAIN CONTENT
   ───────────────────────────────────── */
.ad__content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 36px 80px;
}

.ad__section-header {
  margin-bottom: 28px;
}

.ad__section-header h2 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ad-cream);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ad__section-header p {
  font-size: 13px;
  color: var(--ad-muted);
  font-weight: 300;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  border: 1px dashed var(--ad-border2);
  border-radius: 8px;
  padding: 64px 32px;
  text-align: center;
}

.empty-state__icon {
  font-size: 32px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ad-cream);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13px;
  color: var(--ad-muted);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── PROJECT LIST ─── */
.ad__project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--ad-surface);
  border: 1px solid var(--ad-border);
  border-radius: 8px;
  padding: 16px 20px;
  transition: border-color 0.2s;
}
.project-item:hover { border-color: var(--ad-border2); }

.project-item__thumb {
  width: 80px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--ad-surface2);
}

.project-item__thumb .no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--ad-muted);
  letter-spacing: 0.06em;
}

.project-item__info {
  flex: 1;
  min-width: 0;
}

.project-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.project-item__code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ad-brown);
  text-transform: uppercase;
  background: rgba(122,59,38,0.15);
  padding: 2px 8px;
  border-radius: 3px;
}

.project-item__layout-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ad-muted);
  border: 1px solid var(--ad-border);
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.project-item__name {
  font-size: 15px;
  font-weight: 400;
  color: var(--ad-cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-item__type {
  font-size: 11px;
  color: var(--ad-muted);
  font-weight: 300;
}

.project-item__desc {
  font-size: 12px;
  color: rgba(244,240,229,0.35);
  font-weight: 300;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.project-item__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─────────────────────────────────────
   MODAL
   ───────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--ad-surface);
  border: 1px solid var(--ad-border2);
  border-radius: 12px;
  padding: 36px 36px 32px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}

.modal__box::-webkit-scrollbar { width: 4px; }
.modal__box::-webkit-scrollbar-track { background: transparent; }
.modal__box::-webkit-scrollbar-thumb { background: var(--ad-border2); border-radius: 2px; }

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 16px;
  color: var(--ad-muted);
  transition: color 0.2s, background 0.2s;
}
.modal__close:hover { color: var(--ad-cream); background: rgba(244,240,229,0.08); }

.modal__header {
  margin-bottom: 28px;
}

.modal__header h2 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-cream);
  margin-bottom: 12px;
}

.modal__steps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal__steps .step {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-muted);
  transition: color 0.3s;
}
.modal__steps .step.active { color: var(--ad-brown); }

.modal__steps .step-divider {
  font-size: 14px;
  color: var(--ad-border2);
}

/* ─── FORM FIELDS ─── */
.form-step { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ad-muted);
}
.field label .req { color: var(--ad-brown); }
.field label .opt { color: rgba(244,240,229,0.25); font-weight: 300; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--ad-bg);
  border: 1px solid var(--ad-border2);
  border-radius: 5px;
  color: var(--ad-cream);
  font-size: 13px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ad-brown); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(244,240,229,0.2); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(244,240,229,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field select option { background: #2e2b28; color: var(--ad-cream); }

.field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

.char-count {
  font-size: 10px;
  color: rgba(244,240,229,0.25);
  text-align: right;
  letter-spacing: 0.04em;
  margin-top: -10px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ─── IMAGE PREVIEW ─── */
.img-preview-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.img-preview {
  height: 100px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--ad-bg);
  border: 1px solid var(--ad-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}
.img-preview span {
  font-size: 10px;
  color: rgba(244,240,229,0.2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview.has-img { border-color: rgba(122,59,38,0.4); }

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--ad-border);
}

.step-hint {
  font-size: 11px;
  color: rgba(244,240,229,0.2);
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────
   TEMPLATE PICKER
   ───────────────────────────────────── */
.tpl-instructions {
  font-size: 12px;
  color: var(--ad-muted);
  letter-spacing: 0.06em;
  margin-bottom: -4px;
}

.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.template-card {
  background: var(--ad-bg);
  border: 2px solid var(--ad-border);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.template-card:hover { border-color: rgba(122,59,38,0.5); background: rgba(122,59,38,0.04); }
.template-card.selected { border-color: var(--ad-brown); background: rgba(122,59,38,0.08); }

/* ─── TEMPLATE VISUAL PREVIEWS ─── */
.tpl-preview {
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  gap: 3px;
  align-items: stretch;
}

/* shared block styles */
.tpl-info-block {
  background: rgba(122,59,38,0.35);
  border-radius: 2px;
  flex-shrink: 0;
}
.tpl-img-block {
  background: rgba(244,240,229,0.12);
  border-radius: 2px;
  flex-shrink: 0;
}
.tpl-img-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

/* Template 1: Classic — info left (wide), 2 images right stacked */
.tpl-preview--classic {
  /* flex row: [wide info] [img stack] */
}
.tpl-preview--classic .tpl-info-block { flex: 1.8; }
.tpl-preview--classic .tpl-img-stack { flex: 1; }
.tpl-preview--classic .tpl-img-stack .tpl-img-block { flex: 1; }

/* Template 2: Flanked — img | info | img */
.tpl-preview--flanked .tpl-img-block { flex: 1; }
.tpl-preview--flanked .tpl-info-block { flex: 1.6; }

/* Template 3: Reversed — [img stack] [info right] */
.tpl-preview--reversed .tpl-img-stack { flex: 1; }
.tpl-preview--reversed .tpl-img-stack .tpl-img-block { flex: 1; }
.tpl-preview--reversed .tpl-info-block { flex: 1.8; }

/* Template 4: Minimal — info left, single large image */
.tpl-preview--minimal .tpl-info-block { flex: 1.2; }
.tpl-preview--minimal .tpl-img-block { flex: 1.8; }

.tpl-label strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-cream);
  margin-bottom: 2px;
}
.tpl-label span {
  font-size: 11px;
  color: var(--ad-muted);
  font-weight: 300;
}
.template-card.selected .tpl-label strong { color: #c07050; }

/* ─────────────────────────────────────
   TOAST NOTIFICATION
   ───────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ad-green);
  color: var(--ad-cream);
  padding: 14px 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: toast-in 0.4s var(--ease) forwards;
}
.toast--error {
  background: var(--ad-red);
}

@keyframes toast-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ─────────────────────────────────────
   IMAGE DIMENSIONS BADGE
   ───────────────────────────────────── */
.img-upload-zone { position: relative; }
.zone-dims {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
}

/* ─────────────────────────────────────
   FORM SECTION LABELS (landing vs detail)
   ───────────────────────────────────── */
.form-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.form-section-label__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(122,59,38,0.25);
  color: #d4845a;
  border: 1px solid rgba(122,59,38,0.4);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.form-section-label__tag--detail {
  background: rgba(45,93,79,0.25);
  color: #6bbfa4;
  border-color: rgba(45,93,79,0.4);
}
.form-section-label__hint {
  font-size: 12px;
  color: var(--ad-muted);
}
.detail-page-hint {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--ad-surface2);
  border-radius: 8px;
  border: 1px solid var(--ad-border);
}
.detail-hint-item {
  font-size: 12px;
  color: var(--ad-muted);
}

/* ─────────────────────────────────────
   DRAFT / LIVE BADGES
   ───────────────────────────────────── */
.project-item__badge--draft {
  background: rgba(180,120,0,0.18) !important;
  color: #c8922a !important;
  border: 1px solid rgba(180,120,0,0.3) !important;
}
.project-item__badge--live {
  background: rgba(45,130,70,0.18) !important;
  color: #4caf76 !important;
  border: 1px solid rgba(45,130,70,0.3) !important;
}

/* ─────────────────────────────────────
   REORDER BUTTONS
   ───────────────────────────────────── */
.project-item__reorder {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 8px;
  flex-shrink: 0;
}
.ad__btn-reorder {
  background: var(--ad-surface2);
  border: 1px solid var(--ad-border);
  color: var(--ad-muted);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}
.ad__btn-reorder:hover:not(:disabled) {
  background: var(--ad-border2);
  color: var(--ad-cream);
}
.ad__btn-reorder:disabled {
  opacity: 0.25;
  cursor: default;
}

/* ─────────────────────────────────────
   SECTION CARDS (home landing)
   ───────────────────────────────────── */
.ad__section-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.ad__section-card {
  background: var(--ad-surface);
  border: 1px solid var(--ad-border2);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: var(--ad-cream);
  font-family: var(--font);
}

.ad__section-card:hover {
  background: var(--ad-surface2);
  border-color: rgba(244,240,229,0.28);
  transform: translateY(-2px);
}

.ad__section-card__icon {
  font-size: 24px;
  margin-bottom: 14px;
  opacity: 0.5;
}

.ad__section-card__label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ad__section-card__hint {
  font-size: 13px;
  opacity: 0.5;
  line-height: 1.4;
}

.ad__panel.hidden { display: none; }

/* ─────────────────────────────────────
   MODAL TAB BAR (wizard navigation)
   ───────────────────────────────────── */
.modal__tab-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.modal-tab {
  background: none;
  border: 1px solid rgba(244,240,229,0.15);
  color: var(--ad-cream);
  opacity: 0.4;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: opacity 0.15s, border-color 0.15s, background 0.15s;
}
.modal-tab:not(:disabled):hover { opacity: 0.75; }
.modal-tab.active {
  opacity: 1;
  border-color: var(--ad-brown);
  background: rgba(122,59,38,0.15);
  color: #c07050;
}
.modal-tab:disabled { cursor: default; opacity: 0.2; }
.modal-tab-sep {
  font-size: 13px;
  color: rgba(244,240,229,0.2);
  padding: 0 2px;
}

/* ─────────────────────────────────────
   ALBUM GRID (step 3)
   ───────────────────────────────────── */
.album-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
}
.album-hint {
  font-size: 12px;
  color: var(--ad-muted);
  opacity: 0.5;
  text-align: center;
  padding: 16px 0 8px;
}
.album-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: grab;
  border: 2px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
}
.album-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
}
.album-thumb--deselected { opacity: 0.35; }
.album-thumb.dragging    { opacity: 0.5; cursor: grabbing; }
.album-thumb.drag-over   { border-color: var(--ad-brown); }

.album-thumb-check {
  position: absolute;
  top: 4px; left: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1.5px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.album-thumb-check--on { background: var(--ad-brown); border-color: var(--ad-brown); }

.album-thumb-del {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.album-thumb-del:hover { background: rgba(139,46,46,0.8); }

/* ─────────────────────────────────────
   DETAIL SECTIONS BUILDER (step 4)
   ───────────────────────────────────── */
.ds-card {
  background: var(--ad-surface2);
  border: 1px solid var(--ad-border2);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}
.ds-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ad-muted);
}
.ds-required {
  color: var(--ad-brown);
  font-size: 10px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.ds-remove-btn {
  background: none;
  border: 1px solid rgba(139,46,46,0.35);
  color: #c97070;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.ds-remove-btn:hover { background: rgba(139,46,46,0.2); }

.ds-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.detail-add-btn {
  width: 100%;
  padding: 14px;
  background: none;
  border: 1.5px dashed var(--ad-border2);
  color: var(--ad-muted);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
  text-align: center;
}
.detail-add-btn:hover { border-color: var(--ad-brown); color: var(--ad-cream); }

/* Hero desc checkbox label */
.hero-desc-check-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--ad-muted);
  cursor: pointer;
  font-weight: 300;
}

/* ─────────────────────────────────────
   SMALL MODAL (delete confirmation)
   ───────────────────────────────────── */
.modal__box--sm {
  max-width: 420px;
  padding: 36px 32px 28px;
}

/* ─── New-project highlight pulse ─── */
@keyframes proj-new-flash {
  0%   { border-color: var(--ad-brown); background: rgba(122,59,38,0.08); }
  60%  { border-color: var(--ad-brown); background: rgba(122,59,38,0.08); }
  100% { border-color: var(--ad-border); background: var(--ad-surface); }
}
.project-item--new {
  animation: proj-new-flash 3s var(--ease) forwards;
}

/* ─────────────────────────────────────
   ALBUM CONTEXT MENU
   ───────────────────────────────────── */
.album-ctx-menu {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e0d9d0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  min-width: 160px;
  padding: 4px 0;
  overflow: hidden;
}
.album-ctx-menu.hidden { display: none; }
.ctx-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 10px 16px;
  font-size: 13px;
  font-family: inherit;
  color: #2c2c2c;
  cursor: pointer;
  transition: background .15s;
}
.ctx-item:hover { background: #f4f0eb; }
.ctx-item--danger { color: #c0392b; }
.ctx-item--danger:hover { background: #fdf0ef; }

/* ─────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────── */
@media (max-width: 600px) {
  .ad__nav { padding: 0 20px; }
  .ad__nav-brand { display: none; }
  .ad__content { padding: 28px 20px 60px; }
  .al__card { padding: 36px 24px 32px; }
  .modal__box { padding: 28px 20px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .img-preview-row { grid-template-columns: 1fr 1fr; }
  .ad__section-cards { grid-template-columns: 1fr; }
  .project-item { flex-wrap: wrap; }
  .project-item__thumb { width: 60px; height: 48px; }
}
