/* EP15 Lulu Function Recipe Box Styles */
.ep15-func-wrap {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  max-width: 420px;
  width: calc(100% - 40px);
  pointer-events: auto;
  animation: ep15FadeIn 0.3s ease;
}

@keyframes ep15FadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ep15-panel {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(244, 63, 94, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 24px rgba(244, 63, 94, 0.2);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ep15-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ep15-badge {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.35);
}

.ep15-hint {
  font-size: 12px;
  color: #fda4af;
  font-weight: 600;
}

.ep15-steps-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.4s ease;
}

.ep15-steps-row.packaged {
  background: rgba(244, 63, 94, 0.12);
  border: 2px dashed rgba(244, 63, 94, 0.5);
  border-radius: 14px;
  padding: 8px;
}

.ep15-step-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ep15-step-card.inside-box {
  transform: scale(0.96);
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
}

.ep15-step-icon {
  font-size: 22px;
}

.ep15-step-text strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
}

.ep15-step-text small {
  font-size: 11px;
  color: #cbd5e1;
}

.ep15-action-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep15-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ep15-btn-pack {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: white;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}

.ep15-btn-pack:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.6);
}

.ep15-fn-box-active {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep15-fn-tag {
  font-size: 12px;
  color: #fb7185;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

.ep15-btn-exec {
  background: linear-gradient(135deg, #fb7185, #f43f5e);
  color: white;
  box-shadow: 0 4px 16px rgba(251, 113, 133, 0.5);
}

.ep15-btn-exec:hover {
  transform: translateY(-2px) scale(1.02);
}

.ep15-btn-exec.done {
  background: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Complete Card Under Screen */
.ep15-complete-wrap {
  width: 100%;
  max-width: 900px;
  margin: 14px auto 0;
  animation: ep15FadeIn 0.4s ease;
}

.ep15-complete-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 20px;
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.ep15-complete-badge {
  display: inline-block;
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.ep15-complete-card h3 {
  font-size: 18px;
  color: #f8fafc;
  margin-bottom: 8px;
}

.ep15-complete-card p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 16px;
}

.ep15-complete-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.ep15-comp-btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(30, 41, 59, 0.8);
  color: #f8fafc;
  cursor: pointer;
  min-height: 48px;
  transition: all 0.2s ease;
}

.ep15-comp-btn.primary {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border: none;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}

/* Mobile Responsive: Separate from canvas */
@media (max-width: 680px) {
  .ep15-func-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin: 12px auto 0;
  }
}
