/* =========================================
   JOBFLOW — style.css
   Job Application Tracker
   Design system: white cards, #061d33 text,
   #ff9901 accent — DM Sans
   ========================================= */

:root {
  --primary:        #ff9901;
  --primary-hover:  #e68a00;
  --primary-light:  #fff7e6;
  --dark:           #061d33;
  --mid:            #4a5568;
  --muted:          #9ca3af;
  --border:         #e2e8f0;
  --bg:             #f7f8fa;
  --white:          #ffffff;
  --radius:         10px;
  --radius-sm:      6px;
  --shadow:         0 4px 10px rgba(0,0,0,0.08);
  --shadow-md:      0 8px 24px rgba(0,0,0,0.12);
  --font-body:      'DM Sans', sans-serif;
  --font-mono:      'IBM Plex Mono', monospace;

  /* Stage colors */
  --stage-wishlist:   #8b5cf6;
  --stage-applied:    #3b82f6;
  --stage-phone:      #06b6d4;
  --stage-interview:  #f59e0b;
  --stage-offer:      #10b981;
  --stage-rejected:   #ef4444;
  --stage-withdrawn:  #9ca3af;
}

/* ---- APP WRAPPER ---- */
.jf-app {
  width: 100%;
  margin-bottom: 40px;
}

.jf-app .app-container.jf-container {
  max-width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: block;
  overflow: visible;
}

/* ---- STATS BAR ---- */
.jf-stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.jf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}

.jf-stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.jf-stat-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

.jf-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin: 0 4px;
}

.jf-stats-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.jf-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.jf-search-wrap svg {
  position: absolute;
  left: 10px;
  color: var(--muted);
  pointer-events: none;
}

.jf-search {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px 8px 32px;
  outline: none;
  width: 180px;
  transition: border-color 0.2s, width 0.2s;
}

.jf-search:focus {
  border-color: var(--primary);
  width: 220px;
}

.jf-sort-select {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--mid);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 28px 8px 10px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E%3Cpath fill=%22%239ca3af%22 d=%22M2 4l4 4 4-4z%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.2s;
}

.jf-sort-select:focus {
  border-color: var(--primary);
}

.jf-export-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  background: transparent;
  color: var(--mid);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.jf-export-btn:hover {
  border-color: var(--dark);
  color: var(--dark);
}


.jf-add-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.jf-add-btn:hover {
  background: var(--primary-hover);
}

/* ---- KANBAN BOARD ---- */
.jf-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 14px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 12px;
}

/* ---- COLUMN ---- */
.jf-col {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 200px;
}

.jf-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
}

.jf-col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jf-col-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.jf-col-title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.jf-col-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
  border-radius: 20px;
  padding: 1px 7px;
}

.jf-col-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.jf-col-empty {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 16px 8px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* ---- JOB CARD ---- */
.jf-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.12s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}

.jf-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 2px 0 0 2px;
}

.jf-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: #d1d5db;
}

.jf-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.jf-card-company {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  flex: 1;
}

.jf-card-priority {
  flex-shrink: 0;
  color: var(--primary);
  line-height: 1;
}

.jf-card-title {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 8px;
  line-height: 1.3;
}

.jf-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.jf-card-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--mid);
  white-space: nowrap;
}

.jf-card-tag.pay {
  color: #059669;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.jf-card-tag.location {
  color: var(--mid);
}

.jf-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.jf-card-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.jf-card-followup {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 3px;
}

.jf-card-followup.overdue {
  color: #ef4444;
}

/* Stage-colored left border per card */
.jf-card[data-stage="wishlist"]::before  { background: var(--stage-wishlist); }
.jf-card[data-stage="applied"]::before   { background: var(--stage-applied); }
.jf-card[data-stage="phone"]::before     { background: var(--stage-phone); }
.jf-card[data-stage="interview"]::before { background: var(--stage-interview); }
.jf-card[data-stage="offer"]::before     { background: var(--stage-offer); }
.jf-card[data-stage="rejected"]::before  { background: var(--stage-rejected); }
.jf-card[data-stage="withdrawn"]::before { background: var(--stage-withdrawn); }

/* ---- MODAL OVERLAY ---- */
.jf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 29, 51, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.jf-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.jf-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  transition: transform 0.2s;
  overflow: hidden;
}

.jf-modal-overlay.open .jf-modal {
  transform: translateY(0);
}

.jf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.jf-modal-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.jf-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.jf-modal-close:hover { color: var(--dark); }

.jf-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.jf-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.jf-modal-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- MODAL FIELDS ---- */
.jf-mfield {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.jf-mfield-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.jf-mfield label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
}

.jf-req {
  color: var(--primary);
}

.jf-mfield input,
.jf-mfield textarea,
.jf-mfield select {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.jf-mfield input:focus,
.jf-mfield textarea:focus,
.jf-mfield select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,153,1,0.15);
}

.jf-mfield select {
  appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E%3Cpath fill=%22%239ca3af%22 d=%22M2 4l4 4 4-4z%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

/* ---- PRIORITY CHECKBOX ---- */
.jf-priority-row {
  margin-top: 4px;
}

.jf-priority-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  user-select: none;
}

.jf-priority-label input[type="checkbox"] {
  display: none;
}

.jf-priority-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  color: transparent;
}

.jf-priority-label input:checked + .jf-priority-check {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ---- MODAL FOOTER ---- */
.jf-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.jf-modal-footer-right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.jf-modal-cancel {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.15s;
}

.jf-modal-cancel:hover {
  border-color: var(--dark);
  color: var(--dark);
}

.jf-modal-save {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--primary);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s;
}

.jf-modal-save:hover {
  background: var(--primary-hover);
}

.jf-modal-delete {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #fca5a5;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.15s;
}

.jf-modal-delete:hover {
  background: #fef2f2;
}

/* ---- TOAST ---- */
.jf-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 2000;
  white-space: nowrap;
}

.jf-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1070px) {
  .jf-stats-bar {
    justify-content: center;
  }
  .jf-stats-actions {
    margin: auto;
  }
}

@media (max-width: 900px) {
  .jf-board {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  .jf-stats-bar {
    padding: 14px 16px;
  }

  .jf-stats-actions {
    width: 100%;
    margin-left: 0;
  }

  .jf-search {
    width: 100%;
  }

  .jf-search:focus {
    width: 100%;
  }

  .jf-board {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .jf-modal-grid {
    grid-template-columns: 1fr;
  }

  .jf-modal-footer {
    flex-wrap: wrap;
    gap: 8px;
  }

  .jf-modal-footer-right {
    margin-left: 0;
    width: 100%;
  }

  .jf-modal-save,
  .jf-modal-cancel {
    flex: 1;
    text-align: center;
  }
}

/* ---- BULK TOGGLE BUTTON ---- */
.jf-bulk-toggle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.jf-bulk-toggle:hover { border-color: var(--dark); color: var(--dark); }
.jf-bulk-toggle.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ---- BULK ACTION BAR ---- */
.jf-bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 10px 18px;
  margin-bottom: 16px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s, margin 0.2s, padding 0.2s;
  padding-top: 0; padding-bottom: 0; margin-bottom: 0;
}
.jf-bulk-bar.visible {
  max-height: 60px;
  opacity: 1;
  padding: 10px 18px;
  margin-bottom: 16px;
}
.jf-bulk-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #cbd5e1;
  white-space: nowrap;
}
.jf-bulk-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.jf-bulk-move {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--dark);
  background: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 28px 7px 10px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2212%22 viewBox=%220 0 12 12%22%3E%3Cpath fill=%22%239ca3af%22 d=%22M2 4l4 4 4-4z%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.jf-bulk-delete-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239,68,68,0.5);
  background: transparent;
  color: #fca5a5;
  cursor: pointer;
  transition: all 0.15s;
}
.jf-bulk-delete-btn:hover { background: rgba(239,68,68,0.15); border-color: #ef4444; color: #fca5a5; }

/* ---- CARD SELECTION ---- */
.jf-card.jf-selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.jf-card-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  transition: all 0.12s;
  margin-right: 2px;
}
.jf-card-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ---- CARD ACTIONS (three-dot) ---- */
.jf-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.jf-card-menu-btn {
  opacity: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 2px 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  line-height: 1;
}
.jf-card:hover .jf-card-menu-btn { opacity: 1; }
.jf-card-menu-btn:hover { background: var(--border); color: var(--dark); }

/* ---- CONTEXT MENU ---- */
.jf-context-menu {
  position: fixed;
  z-index: 3000;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  min-width: 180px;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: top left;
  transition: opacity 0.12s, transform 0.12s;
  pointer-events: none;
}
.jf-context-menu.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}
.jf-ctx-section-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px 6px;
}
.jf-ctx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 8px;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
}
.jf-ctx-item:hover { background: var(--bg); }
.jf-ctx-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.jf-ctx-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.jf-ctx-delete { color: #ef4444; }
.jf-ctx-delete:hover { background: #fef2f2; }

/* ---- EMPTY STATE ---- */
.jf-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
}
.jf-empty-icon {
  margin-bottom: 16px;
  opacity: 0.7;
}
.jf-empty-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}
.jf-empty-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 320px;
}
.jf-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.15s;
}

/* ---- BACKUP MENU ---- */
.jf-backup-wrap {
  position: relative;
}
.jf-backup-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  min-width: 190px;
  z-index: 500;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: top right;
  transition: opacity 0.12s, transform 0.12s;
  pointer-events: none;
}
.jf-backup-menu.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}


.jf-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,29,51,0.5);
  backdrop-filter: blur(3px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.jf-confirm-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.jf-confirm {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  padding: 24px;
  width: 100%;
  max-width: 340px;
  transform: translateY(8px);
  transition: transform 0.15s;
}
.jf-confirm-overlay.open .jf-confirm {
  transform: translateY(0);
}
.jf-confirm-msg {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  margin: 0 0 20px;
  line-height: 1.5;
}
.jf-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.jf-confirm-cancel {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.15s;
}
.jf-confirm-cancel:hover { border-color: var(--dark); color: var(--dark); }
.jf-confirm-alt {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.15s;
}
.jf-confirm-alt:hover { background: var(--primary-light); }
.jf-confirm-ok {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: #ef4444;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.jf-confirm-ok:hover { background: #dc2626; }