/* Modern Tierschutzmeldung Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-light: #ccfbf1;
  --primary-dark: #115e59;
  
  --bg-gradient-from: #0f172a;
  --bg-gradient-to: #1e293b;
  --card-bg: rgba(255, 255, 255, 0.98);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --status-neu-bg: #fef3c7;
  --status-neu-text: #92400e;
  --status-bearbeitung-bg: #dbeafe;
  --status-bearbeitung-text: #1e40af;
  --status-fertig-bg: #dcfce7;
  --status-fertig-text: #166534;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 30px -10px rgba(13, 148, 136, 0.15);

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: #f7f8f8;
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  padding: 2rem 1rem;
}

body.embed-mode {
  background: transparent !important;
  padding: 0.5rem;
}

.container {
  max-width: 760px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Title */
.header {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.header-logo-wrapper {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-logo {
  max-width: 320px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  border: 1px solid rgba(13, 148, 136, 0.3);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
  font-size: 1.05rem;
}

/* Form Card */
.form-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.embed-mode .form-card {
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.section-title svg {
  color: var(--primary);
}

.form-step {
  margin-bottom: 2.25rem;
}

.form-group,
.form-field,
.form-row {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-step > :last-child,
.form-group > :last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 1.5rem;
  }
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

label .required {
  color: #ef4444;
  margin-left: 0.2rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="search"],
input:not([type]),
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.975rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  outline: none;
}

.admin-nav { display:flex; gap:.35rem; flex-wrap:wrap; margin:1rem 0 1.25rem; }
.admin-nav a { color:var(--primary); text-decoration:none; font-weight:600; padding:.55rem .85rem; border-radius:8px; }
.admin-nav a.active, .admin-nav a:hover { background:var(--primary); color:white; }
.admin-nav .admin-home-link { font-size:1.35rem; line-height:1; padding:.4rem .65rem; }
.admin-back-link { display:none; }
.admin-logout-button { display:inline-flex; align-items:center; gap:.35rem; background:none; border:0; color:#475569; font-weight:500; cursor:pointer; font-size:.9rem; padding:.35rem; }
.admin-logout-button:hover { color:#1f2937; }
.admin-header-logout { display:flex; justify-content:flex-end; margin-top:-3.2rem; margin-bottom:1rem; }
.admin-header form { margin:0; }
.admin-header > div:last-child { position:absolute; right:1rem; top:1.15rem; align-self:auto; }
.container-wide { position:relative; }
.admin-header-logout { position:absolute; right:1rem; top:1.15rem; margin:0; }
.animal-toolbar { display:flex; gap:1rem; align-items:center; margin-bottom:1rem; }
.animal-toolbar input { flex:1; }
.animal-toolbar > input[type="search"], .animal-toolbar > select { flex:1 1 0; min-width:0; }
.animal-toolbar input[type="search"] { width:100%; min-width:0; }
.animal-toolbar .btn-submit, #placementForm > .btn-submit { width:auto; flex:0 0 auto; padding:.7rem 1.1rem; font-size:.95rem; white-space:nowrap; }
.admin-table-wrap { overflow-x:auto; background:var(--card-bg); border-radius:var(--radius-md); box-shadow:var(--shadow-sm); }
.admin-table { width:100%; min-width:900px; border-collapse:separate; border-spacing:0; text-align:left; }
.admin-table th, .admin-table td { padding:.8rem 1.15rem; border-bottom:1px solid #eef2f7; white-space:nowrap; }
.admin-table th { color:var(--text-muted); background:#f8fafc; font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; }
.admin-table th:first-child, .admin-table td:first-child { padding-left:1.35rem; }
.admin-table th:last-child, .admin-table td:last-child { padding-right:1.35rem; }
.admin-table th:nth-child(1) { min-width:190px; }
.admin-table th:nth-child(2) { min-width:150px; }
.admin-table th:nth-child(3) { min-width:180px; }
.admin-table th:nth-child(4), .admin-table th:nth-child(5) { min-width:100px; }
.animal-editor { margin-top:1.5rem; }
.animal-editor, #placementEditor { position:fixed; z-index:1000; top:50%; left:50%; transform:translate(-50%,-50%); width:min(720px, calc(100% - 2rem)); max-height:86vh; overflow:auto; margin:0; padding:2rem; box-sizing:border-box; border-radius:var(--radius-lg); background:#fff; backdrop-filter:none; box-shadow:0 20px 60px rgba(15,23,42,.28); }
.animal-editor::before, #placementEditor::before { content:''; position:fixed; inset:0; z-index:-1; background:rgba(15,23,42,.28); }
.form-actions { display:flex; gap:.75rem; align-items:center; }
.animal-editor .form-actions > .btn-submit,
.animal-editor .form-actions > .btn-case,
#placementEditor .form-actions > .btn-submit,
#placementEditor .form-actions > .btn-case { display:inline-flex; width:calc(50% - .4rem); min-height:3.05rem; box-sizing:border-box; align-items:center; justify-content:center; vertical-align:middle; padding:.95rem 1.5rem; font-size:1.05rem; border-radius:var(--radius-md); }
.animal-editor .form-actions > .btn-case, #placementEditor .form-actions > .btn-case { background:#f1f5f9; color:#334155; border:1px solid #cbd5e1; }

input:focus,
select:focus,
textarea:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Animal Selector Cards */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.animal-option {
  position: relative;
}

.animal-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.animal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  background: #f8fafc;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.animal-card .emoji {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  transition: transform 0.2s ease;
}

.animal-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
}

.animal-option input[type="radio"]:checked + .animal-card {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.animal-option input[type="radio"]:checked + .animal-card .emoji {
  transform: scale(1.15);
}

.animal-option input[type="radio"]:checked + .animal-card span {
  color: var(--primary-dark);
}

/* Dropzone Upload */
.dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.8rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.dropzone svg {
  width: 42px;
  height: 42px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.dropzone p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.dropzone p span {
  color: var(--primary);
  font-weight: 600;
}

.dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.preview-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f1f5f9;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .file-name {
  font-size: 0.75rem;
  padding: 0.3rem;
  text-align: center;
  word-break: break-all;
  color: var(--text-muted);
}

.preview-item .remove-file {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Primary Submit Button */
.btn-submit {
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success Message Card */
.success-card {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.success-card.active {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 36px;
  height: 36px;
}

/* Admin Dashboard Styles */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 84px;
}

.admin-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}

.admin-header > div:first-child { min-height: 64px; display:flex; flex-direction:column; justify-content:center; }
.admin-header > div:first-child p { margin-bottom:0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card .val {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-card .label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Filter Bar */
.filter-bar {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
}

/* Compact submissions table */
.submissions-feed {
  min-width: 0;
}

.submissions-table-wrapper,
.submissions-message {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.submissions-message {
  padding: 1.5rem;
}

.submissions-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  text-align: left;
}

.submissions-table th {
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}

.submission-row {
  --submission-status-color: var(--primary);
}

.submission-row.status-neu {
  --submission-status-color: #f59e0b;
}

.submission-row.status-in_bearbeitung {
  --submission-status-color: #3b82f6;
}

.submission-row.status-abgeschlossen {
  --submission-status-color: #10b981;
}

.submission-row td {
  padding: 0.7rem 0.9rem;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.88rem;
}

.submission-row td:first-child {
  border-left: 4px solid var(--submission-status-color);
}

.submission-row:hover td {
  background: #f8fafc;
}

.submission-date,
.submission-location {
  color: var(--text-muted);
  white-space: nowrap;
}

.submission-location {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submission-contact {
  min-width: 180px;
}

.submission-contact strong,
.submission-contact a {
  display: block;
}

.submission-contact a {
  color: var(--primary);
  font-size: 0.8rem;
  text-decoration: none;
}

.submission-contact a:hover {
  text-decoration: underline;
}

.attachment-count {
  white-space: nowrap;
  color: var(--text-muted);
}

.submission-actions {
  white-space: nowrap;
}

.btn-details {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-case {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}
.btn-danger { display:inline-block; background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; padding:.4rem .65rem; font-size:.8rem; border-radius:6px; cursor:pointer; font-weight:600; }
.btn-danger:hover { background:#fee2e2; }
.row-actions { text-align:right; white-space:nowrap; }
.admin-table td.row-actions { padding-right:.4rem; }
.icon-button { width:2rem; height:2rem; padding:0; margin-left:.3rem; border:1px solid #cbd5e1; border-radius:6px; background:#f8fafc; color:#475569; cursor:pointer; font-size:1rem; }
.icon-button { vertical-align:middle; line-height:1; }
.icon-button:hover { background:#e2e8f0; }
.danger-icon { color:#b91c1c; border-color:#fecaca; background:#fef2f2; }
.admin-table td.row-actions { padding-right:.2rem !important; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-animal {
  background: #e2e8f0;
  color: #334155;
}

.badge-neu {
  background: var(--status-neu-bg);
  color: var(--status-neu-text);
}

.badge-in_bearbeitung {
  background: var(--status-bearbeitung-bg);
  color: var(--status-bearbeitung-text);
}

.badge-abgeschlossen {
  background: var(--status-fertig-bg);
  color: var(--status-fertig-text);
}

.submission-details td {
  padding: 0;
  border-bottom: 1px solid var(--border-color);
}

.submission-details-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  padding: 1rem 1.25rem 1.25rem;
  background: #f8fafc;
}

.submission-details h3 {
  margin: 0 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.submission-description {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text-main);
  line-height: 1.45;
}

.empty-detail {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.thumb-item {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  position: relative;
  background: #f1f5f9;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-item.file-doc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  text-align: center;
  padding: 4px;
  color: var(--text-muted);
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.status-select {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-weight: 500;
}

.btn-delete {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-delete:hover {
  background: #fee2e2;
}

.cases-layout { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 2.2fr); gap: 1.25rem; align-items: start; }
.cases-list, .case-panel { background: rgba(255,255,255,.97); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1rem; }
.case-list-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-left: 3px solid transparent; padding: .75rem; cursor: pointer; border-radius: 4px; color: var(--text-main); }
.case-list-item:hover, .case-list-item.active { background: #f0fdf9; border-left-color: var(--primary); }
.case-list-item span, .case-list-item small { display: block; margin-top: .2rem; }
.case-list-item small, .case-kicker, .case-role { color: var(--text-muted); font-size: .8rem; }
.case-role { display: inline-block; margin-left: .5rem; }
.case-heading { border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.case-heading h2 { margin: 0; }
.case-kicker { margin: 0 0 .3rem; font-weight: 600; }
.case-section { margin-top: 1.25rem; }
.case-section h3, .case-panel .animal-card h4 { margin: 0 0 .6rem; font-size: 1rem; }
.case-section p { line-height: 1.5; }
.case-section a { color: var(--primary); }
.case-section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.case-panel .animal-card { border: 1px solid var(--border-color); border-radius: 8px; padding: .9rem; margin-top: .75rem; display: grid; grid-template-columns: minmax(160px, .8fr) minmax(0, 1.2fr); gap: 1rem; }
.case-panel .animal-card p, .case-panel .animal-card ul { margin: .35rem 0; font-size: .88rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem; margin: .6rem 0; background: #f8fafc; border: 1px solid var(--border-color); border-radius: 8px; }
.inline-form input, .inline-form select { min-width: 130px; flex: 1; padding: .4rem .55rem; border: 1px solid var(--border-color); border-radius: 6px; }
.contract-editor { max-width: 820px; margin: 0 auto; }
.contract-editor h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.contract-editor h2:not(:first-child) { margin-top: 1.75rem; }
.form-help { color: var(--text-muted); font-size: .9rem; }
.contract-animal-choices { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.contract-animal-choice { display: flex; align-items: flex-start; gap: .7rem; padding: .75rem; border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; }
.contract-animal-choice:hover { background: #f8fafc; border-color: var(--primary); }
.contract-animal-choice span { display: block; }
.contract-animal-choice small { display: block; color: var(--text-muted); margin-top: .2rem; }

@media (max-width: 768px) {
  .submission-details-content {
    grid-template-columns: 1fr;
  }
  .cases-layout, .case-panel .animal-card { grid-template-columns: 1fr; }
}

/* Lightbox Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.modal-content img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Footer & Embed Code Modal Trigger */
.footer-text {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

.staff-login-link {
  color: var(--text-main);
  font-size: 0.8rem;
  text-decoration: none;
}

.login-home-link {
  display: inline-block;
  margin-bottom: .75rem;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height:1;
  text-decoration: none;
}

.login-home-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.login-intro {
  margin: 0 0 1.5rem;
}

.staff-login-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-text a {
  color: #5eead4;
  text-decoration: none;
}
