/*
 * admin.css — Front-End Photo Manager for Jon Gilbert AZ Photography
 * Exclusive to jon@gilbertazphotography.com
 */

/* ─── Top Admin Bar ──────────────────────────────────────────────────────── */
#jg-admin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 48px;
  background: rgba(11, 12, 16, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 155, 38, 0.4);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #F9F8F6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#jg-admin-bar.active {
  transform: translateY(0);
}

/* Offset body when admin bar is active (with iOS safe area insets) */
body.jg-admin-active {
  padding-top: calc(48px + env(safe-area-inset-top, 0px)) !important;
}

body.jg-admin-active header.sticky {
  top: calc(48px + env(safe-area-inset-top, 0px)) !important;
}

/* Mobile & iPad responsive admin toolbar */
@media (max-width: 680px) {
  #jg-admin-bar {
    flex-direction: column;
    align-items: stretch;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 8px 12px;
    gap: 8px;
    min-height: auto;
  }

  .jg-admin-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .jg-admin-controls {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .jg-admin-controls .jg-toggle-btn,
  .jg-admin-controls .jg-save-bar-btn,
  .jg-admin-controls .jg-admin-btn-sm {
    font-size: 11px;
    padding: 8px 10px;
    min-height: 40px;
    white-space: nowrap;
    touch-action: manipulation;
  }

  body.jg-admin-active {
    padding-top: calc(92px + env(safe-area-inset-top, 0px)) !important;
  }

  body.jg-admin-active header.sticky {
    top: calc(92px + env(safe-area-inset-top, 0px)) !important;
  }
}

.jg-admin-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #E6E1D6;
}

.jg-admin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D99B26;
  box-shadow: 0 0 10px #D99B26;
}

.jg-admin-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Toggle Switch */
.jg-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #F9F8F6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jg-toggle-btn.editing-on {
  background: #D99B26;
  color: #0B0C10;
  border-color: #D99B26;
  box-shadow: 0 0 14px rgba(217, 155, 38, 0.4);
}

.jg-admin-btn-sm {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E6E1D6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jg-admin-btn-sm:hover {
  border-color: #C86D51;
  color: #C86D51;
}

/* ─── In-Place Photo Editable Overlay ────────────────────────────────────── */
.jg-edit-mode [data-slot] {
  position: relative !important;
  cursor: pointer !important;
  outline: 2px dashed #D99B26 !important;
  outline-offset: -2px;
  transition: all 0.25s ease !important;
}

.jg-edit-mode [data-slot]:hover {
  outline: 3px solid #D99B26 !important;
  box-shadow: 0 0 25px rgba(217, 155, 38, 0.4) !important;
}

.jg-edit-badge {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0B0C10;
  color: #D99B26;
  border: 1px solid #D99B26;
  padding: 6px 12px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 30;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.jg-edit-mode [data-slot] .jg-edit-badge {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

/* ─── Accessible Dialog Modals ───────────────────────────────────────────── */
dialog.jg-modal:modal {
  padding: 0;
  border: none;
  border-radius: 18px;
  background: transparent;
  max-width: 600px;
  width: 90%;
  overscroll-behavior: contain;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(217, 155, 38, 0.15);
}

dialog.jg-modal::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.jg-modal-content {
  background: #14161D;
  color: #F9F8F6;
  border: 1px solid rgba(217, 155, 38, 0.35);
  border-radius: 18px;
  overflow: hidden;
}

.jg-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jg-modal-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 700;
  color: #F9F8F6;
}

.jg-modal-close {
  background: transparent;
  border: none;
  color: #E6E1D6;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  line-height: 1;
}

.jg-modal-close:hover {
  color: #D99B26;
  background: rgba(255, 255, 255, 0.05);
}

.jg-modal-body {
  padding: 24px;
}

/* OTP Code input group */
.jg-otp-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.jg-otp-box {
  width: 46px;
  height: 56px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: bold;
  background: #0B0C10;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #D99B26;
  outline: none;
  transition: all 0.2s ease;
}

.jg-otp-box:focus {
  border-color: #D99B26;
  box-shadow: 0 0 15px rgba(217, 155, 38, 0.3);
}

/* Upload Drop Zone */
.jg-dropzone {
  border: 2px dashed rgba(217, 155, 38, 0.4);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  background: rgba(11, 12, 16, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}

.jg-dropzone:hover,
.jg-dropzone.dragover {
  border-color: #D99B26;
  background: rgba(217, 155, 38, 0.08);
}

/* Photo Library Grid */
.jg-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 10px;
  background: #0B0C10;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.jg-lib-item {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.jg-lib-item:hover {
  transform: scale(1.05);
  border-color: #D99B26;
}

.jg-lib-item.selected {
  border-color: #D99B26;
  box-shadow: 0 0 12px #D99B26;
}

/* Toast Notifications */
#jg-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jg-toast {
  background: #14161D;
  color: #F9F8F6;
  border: 1px solid #D99B26;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: jgSlideIn 0.3s ease;
}

@keyframes jgSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.jg-toast.error {
  border-color: #C86D51;
}

/* Footer Admin Lock Button */
.jg-admin-lock-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  opacity: 0.45;
  transition: opacity 0.2s ease;
  cursor: pointer;
}
.jg-admin-lock-link:hover {
  opacity: 1;
  color: #D99B26;
}

/* ─── Front-End Text Editing Controls & Highlights ───────────────────────── */
.jg-toggle-btn.text-editing-on {
  background: #D99B26;
  color: #0B0C10;
  border-color: #D99B26;
  box-shadow: 0 0 14px rgba(217, 155, 38, 0.4);
}

.jg-save-bar-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid #2ECC71;
  background: #2ECC71;
  color: #0B0C10;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.45);
  animation: jgPulseGreen 2s infinite;
  transition: all 0.2s ease;
}

.jg-save-bar-btn.active {
  display: inline-flex;
}

@keyframes jgPulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Editable text states when text edit mode is ON */
body.jg-text-edit-mode [data-text],
body.jg-text-edit-mode .jg-editable-text {
  position: relative !important;
  cursor: text !important;
  transition: outline 0.15s ease, background-color 0.15s ease !important;
  border-radius: 4px !important;
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: rgba(217, 155, 38, 0.25);
}

body.jg-text-edit-mode [data-text]:hover,
body.jg-text-edit-mode .jg-editable-text:hover {
  outline: 2px dashed rgba(217, 155, 38, 0.85) !important;
  outline-offset: 3px !important;
}

body.jg-text-edit-mode [data-text]:focus,
body.jg-text-edit-mode .jg-editable-text:focus {
  outline: 2px solid #D99B26 !important;
  outline-offset: 3px !important;
  background-color: rgba(217, 155, 38, 0.12) !important;
}

/* Prevent iOS Safari zoom on tap */
@media (max-width: 768px) {
  body.jg-text-edit-mode [data-text]:focus,
  body.jg-text-edit-mode .jg-editable-text:focus {
    font-size: max(16px, 1em) !important;
  }
  #jg-phone-input {
    font-size: 16px !important;
  }
}

/* Modified state (unsaved) */
body.jg-text-edit-mode [data-text].jg-modified,
body.jg-text-edit-mode .jg-editable-text.jg-modified {
  outline: 2px solid #2ECC71 !important;
  outline-offset: 3px !important;
  background-color: rgba(46, 204, 113, 0.10) !important;
}

/* Prevent link click navigation while in text editing mode */
body.jg-text-edit-mode a[data-text],
body.jg-text-edit-mode a:has([data-text]),
body.jg-text-edit-mode a.jg-editable-text {
  cursor: text !important;
  touch-action: manipulation !important;
}

/* Floating Bottom-Right Save Action Bar (with iOS safe area insets) */
#jg-floating-save-bar {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  z-index: 99998;
  background: rgba(20, 22, 29, 0.98);
  border: 1px solid #D99B26;
  border-radius: 14px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(217, 155, 38, 0.3);
  color: #F9F8F6;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  animation: jgSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: calc(100vw - 32px);
}

@keyframes jgSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 480px) {
  #jg-floating-save-bar {
    left: 12px !important;
    right: 12px !important;
    max-width: none !important;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 12px;
  }
  .jg-floating-btn-save {
    padding: 8px 14px !important;
    font-size: 12px !important;
    min-height: 40px !important;
  }
  .jg-floating-btn-discard {
    padding: 8px 12px !important;
    font-size: 12px !important;
    min-height: 40px !important;
  }
}

.jg-floating-count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #D99B26;
}

.jg-floating-btn-save {
  background: #D99B26;
  color: #0B0C10;
  border: none;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(217, 155, 38, 0.4);
  touch-action: manipulation;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jg-floating-btn-save:hover,
.jg-floating-btn-save:active {
  background: #F2B84B;
  transform: translateY(-1px);
}

.jg-floating-btn-discard {
  background: transparent;
  color: #A8A398;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jg-floating-btn-discard:hover,
.jg-floating-btn-discard:active {
  color: #F9F8F6;
  border-color: rgba(255, 255, 255, 0.4);
}

/* ─── Client Invoicing & Deliverables Hub ─────────────────────────────────── */
#jg-invoice-modal {
  max-width: 920px;
  width: 95%;
  max-height: 92vh;
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 18px;
}

#jg-invoice-modal .jg-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

#jg-invoice-modal .jg-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px 30px;
  flex: 1;
}

.jg-inv-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #0B0C10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.jg-inv-tab {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #E6E1D6;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.jg-inv-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #F9F8F6;
}

.jg-inv-tab.active {
  background: #D99B26;
  color: #0B0C10;
  border-color: #D99B26;
  box-shadow: 0 0 12px rgba(217, 155, 38, 0.35);
}

.jg-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.jg-inv-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.jg-inv-label {
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #D99B26;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.jg-inv-input,
.jg-inv-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0B0C10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F9F8F6;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.jg-inv-input:focus,
.jg-inv-select:focus {
  border-color: #D99B26;
  box-shadow: 0 0 8px rgba(217, 155, 38, 0.3);
}

.jg-preset-btn {
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(217, 155, 38, 0.12);
  border: 1px solid rgba(217, 155, 38, 0.35);
  color: #F2B84B;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.jg-preset-btn:hover {
  background: #D99B26;
  color: #0B0C10;
}

.jg-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.jg-items-table th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #D99B26;
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jg-items-table td {
  padding: 8px 6px;
  vertical-align: middle;
}

.jg-item-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.jg-inv-totals-box {
  background: #0B0C10;
  border: 1px solid rgba(217, 155, 38, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin-left: auto;
}

.jg-totals-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #E6E1D6;
}

.jg-totals-row.grand-total {
  font-size: 16px;
  font-weight: 700;
  color: #D99B26;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

/* Invoices list table */
.jg-invoices-list-table {
  width: 100%;
  border-collapse: collapse;
}

.jg-invoices-list-table th {
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #D99B26;
  text-transform: uppercase;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.jg-invoices-list-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  vertical-align: middle;
}

.jg-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-transform: uppercase;
}

.jg-status-badge.paid {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.jg-status-badge.due {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.jg-status-badge.draft {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.jg-inv-action-btn {
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #E6E1D6;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jg-inv-action-btn:hover {
  border-color: #D99B26;
  color: #D99B26;
  background: rgba(217, 155, 38, 0.08);
}

.jg-inv-action-btn.btn-paid {
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.jg-inv-action-btn.btn-paid:hover {
  background: rgba(34, 197, 94, 0.15);
}

@media (max-width: 640px) {
  #jg-invoice-modal {
    width: 98%;
    max-height: 96vh;
  }
  #jg-invoice-modal .jg-modal-body {
    padding: 14px 14px 24px;
  }
  .jg-inv-grid {
    grid-template-columns: 1fr;
  }
  .jg-inv-totals-box {
    max-width: none;
  }
  .jg-items-table {
    display: block;
    overflow-x: auto;
  }
}

/* ─── Shoot Proofing Gallery Manager ─────────────────────────────────────── */
#jg-proofs-modal {
  max-width: 960px;
  width: 95%;
  max-height: 92vh;
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 18px;
}

#jg-proofs-modal .jg-modal-content {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

#jg-proofs-modal .jg-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px 30px;
  flex: 1;
}

.jg-lightroom-box {
  background: #0B0C10;
  border: 1px dashed rgba(217, 155, 38, 0.6);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jg-lightroom-str {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #F2B84B;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}

.jg-proof-thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
  background: #0B0C10;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.jg-proof-thumb-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #14161D;
}

.jg-proof-thumb-card.is-selected {
  border-color: #D99B26;
  box-shadow: 0 0 10px rgba(217, 155, 38, 0.5);
}

.jg-proof-thumb-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jg-proof-thumb-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(11, 12, 16, 0.85);
  color: #D99B26;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: bold;
}

.jg-proof-thumb-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(200, 109, 81, 0.9);
  color: #FFF;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.jg-proof-thumb-delete:hover {
  transform: scale(1.15);
}

.jg-status-badge.submitted {
  background: rgba(217, 155, 38, 0.2);
  color: #F2B84B;
  border: 1px solid rgba(217, 155, 38, 0.5);
}

.jg-status-badge.awaiting_selections {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.jg-status-badge.in_editing {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.jg-status-badge.completed {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

@media (max-width: 640px) {
  #jg-proofs-modal {
    width: 98%;
    max-height: 96vh;
  }
  #jg-proofs-modal .jg-modal-body {
    padding: 14px 14px 24px;
  }
}


